[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87sg8e2w0y.fsf@kokedama.swc.toshiba.co.jp>
Date: Thu, 10 Dec 2020 12:13:33 +0900
From: Punit Agrawal <punit1.agrawal@...hiba.co.jp>
To: Rob Herring <robh@...nel.org>
Cc: devicetree@...r.kernel.org,
Linus Walleij <linus.walleij@...aro.org>,
linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org,
Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@...hiba.co.jp>,
yuji2.ishikawa@...hiba.co.jp, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v3 1/4] dt-bindings: gpio: Add bindings for Toshiba Visconti GPIO Controller
Rob Herring <robh@...nel.org> writes:
[...]
>> > + gpio-ranges: true
>>
>> I am not sure I have a good handle on the yaml schema definitions but
>> "gpio-ranges" feels like it should be a list of ranges not a boolean.
>>
>> Something like -
>>
>> gpio-ranges:
>> maxItems: 1
>>
>> feels more appropriate.
>>
>> I see both the usages in gpio bindings and for other range properties so
>> maybe it's OK. I hope Rob or somebody more knowledgeable on this can
>> clarify the usage.
>
> If you know how many (or a range) entries there are for gpio-ranges,
> then maxItems is good. If you don't, then 'gpio-ranges: true' is fine.
> That doesn't make the property a boolean, but just says the property can
> be present.
Makes sense. Thanks for the explanation.
[...]
Powered by blists - more mailing lists