lkml.org 
[lkml]   [2022]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] dt-bindings: PCI: uniphier: Convert uniphier-pcie.txt to json-schema
From
Date
Hi Rob,

Thank you for reviewing.

On 2022/03/29 1:22, Rob Herring wrote:
> On Mon, Mar 28, 2022 at 11:11:38AM +0900, Kunihiko Hayashi wrote:
>> Convert the file into a JSON description at the yaml format.
>>
>> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
>> ---
>> .../bindings/pci/socionext,uniphier-pcie.yaml | 100 ++++++++++++++++++
>> .../devicetree/bindings/pci/uniphier-pcie.txt | 82 --------------
>> MAINTAINERS | 2 +-
>> 3 files changed, 101 insertions(+), 83 deletions(-)
>> create mode 100644
> Documentation/devicetree/bindings/pci/socionext,uniphier-pcie.yaml
>> delete mode 100644 Documentation/devicetree/bindings/pci/uniphier-pcie.
> txt

[snip]

>> +properties:
>> + compatible:
>> + enum:
>> + - socionext,uniphier-pcie
>> +
>> + reg:
>> + minItems: 3
>> + maxItems: 4
>> +
>> + reg-names:
>> + oneOf:
>> + - items:
>> + - const: dbi
>> + - const: link
>> + - const: config
>> + - items:
>> + - const: dbi
>> + - const: link
>> + - const: config
>> + - const: atu
>
> You can have just the 2nd list plus 'minItems: 3' to do the same thing.

I see. I'll rewrite it that way.

Thank you,

---
Best Regards
Kunihiko Hayashi

\
 
 \ /
  Last update: 2022-03-29 12:55    [W:0.095 / U:2.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site