[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <58a62c7b-3348-4252-91be-ec30d5b723b6@linaro.org>
Date: Tue, 5 Mar 2024 15:07:16 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Yuklin Soo <yuklin.soo@...rfivetech.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>,
Hal Feng <hal.feng@...rfivetech.com>,
Leyfoon Tan <leyfoon.tan@...rfivetech.com>,
Jianlong Huang <jianlong.huang@...rfivetech.com>,
Emil Renner Berthing <kernel@...il.dk>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>, Drew Fustini <drew@...gleboard.org>
Cc: "linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-riscv@...ts.infradead.org" <linux-riscv@...ts.infradead.org>,
Paul Walmsley <paul.walmsley@...ive.com>, Palmer Dabbelt
<palmer@...belt.com>, Albert Ou <aou@...s.berkeley.edu>
Subject: Re: [RFC PATCH 1/6] dt-bindings: pinctrl: starfive: add JH8100
pinctrl bindings
On 05/03/2024 13:00, Yuklin Soo wrote:
>
>
>> -----Original Message-----
>> From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
>> Sent: Tuesday, February 20, 2024 4:10 PM
>> To: Yuklin Soo <yuklin.soo@...rfivetech.com>; Linus Walleij
>> <linus.walleij@...aro.org>; Bartosz Golaszewski
>> <bartosz.golaszewski@...aro.org>; Hal Feng <hal.feng@...rfivetech.com>;
>> Leyfoon Tan <leyfoon.tan@...rfivetech.com>; Jianlong Huang
>> <jianlong.huang@...rfivetech.com>; Emil Renner Berthing
>> <kernel@...il.dk>; Rob Herring <robh@...nel.org>; Krzysztof Kozlowski
>> <krzysztof.kozlowski+dt@...aro.org>; Conor Dooley <conor+dt@...nel.org>;
>> Drew Fustini <drew@...gleboard.org>
>> Cc: linux-gpio@...r.kernel.org; linux-kernel@...r.kernel.org;
>> devicetree@...r.kernel.org; linux-riscv@...ts.infradead.org; Paul Walmsley
>> <paul.walmsley@...ive.com>; Palmer Dabbelt <palmer@...belt.com>;
>> Albert Ou <aou@...s.berkeley.edu>
>> Subject: Re: [RFC PATCH 1/6] dt-bindings: pinctrl: starfive: add JH8100 pinctrl
>> bindings
>>
>> On 07/02/2024 03:42, Yuklin Soo wrote:
>>>>
>>>>> + type: object
>>>>> + additionalProperties: false
>>>>> + patternProperties:
>>>>> + '-pins$':
>>>>> + type: object
>>>>> + description: |
>>>>> + A pinctrl node should contain at least one subnode representing
>> the
>>>>> + pinctrl groups available in the domain. Each subnode will list the
>>>>> + pins it needs, and how they should be configured, with regard to
>>>>> + muxer configuration, bias, input enable/disable, input schmitt
>>>>> + trigger enable/disable, slew-rate and drive strength.
>>>>> + allOf:
>>>>> + - $ref: /schemas/pinctrl/pincfg-node.yaml
>>>>> + - $ref: /schemas/pinctrl/pinmux-node.yaml
>>>>> + additionalProperties: false
>>>>
>>>> Why the rest of the properties is not applicable?
>>>
>>> The regex “-pins$” make sure all client subnode names end with suffix
>>> “-pins” (e.g, i2c0-scl-pins, i2c-sda-pins)
>>
>> I did not talk about subnodes.
>>
>> I asked why the rest of pincfg and pinmux schema properties are not allowed.
>
> Initially, I wanted to allow all properties in the pincfg and pinmux schema. I misunderstood the meaning of “additionalProperties: false”
> and I thought it means all additional properties outside the pincfg and pinmux schema are excluded. The “additionalProperties” will be
> set to “true” to include the rest of the properties in pincfg and pinmux schema and not to be restricted to only the properties defined in
In that case drop all the properties and use unevaluatedProperties: false.
Fix your email setup, to wrap emails properly. This is unreadable.
>
>>
>> Best regards,
>> Krzysztof
>
Best regards,
Krzysztof
Powered by blists - more mailing lists