Re: [PATCH v3 1/2] dt-bindings: pinctrl: Add dt-bindings for Sunplus SP7021
From: Linus Walleij <hidden>
Date: 2021-12-09 23:30:29
Also in:
linux-arm-kernel, linux-gpio, lkml
From: Linus Walleij <hidden>
Date: 2021-12-09 23:30:29
Also in:
linux-arm-kernel, linux-gpio, lkml
On Tue, Dec 7, 2021 at 5:17 AM Wells Lu [off-list ref] wrote:
Add dt-bindings header files and documentation for Sunplus SP7021 SoC. Signed-off-by: Wells Lu <wellslutw@gmail.com>
+patternProperties: + '-pins$': + if: + type: object + then: + description: | + A pinctrl node should contain at least one subnodes representing the + pins or function-pins group available on the machine. Each subnode + will list the pins it needs, and how they should be configured. + + Pinctrl node's client devices use subnodes for desired pin + configuration. Client device subnodes use below standard properties.
I don't understand this if type object stuff here, Rob, help...
+ properties: + pins: + description: | + Define pins which are used by pinctrl node's client device.
(...)
+ $ref: /schemas/types.yaml#/definitions/uint32-array
Why can this not $ref the standard binings in Documentation/devicetree/bindings/pinctrl/pinmux-node.yaml See for example Documentation/devicetree/bindings/pinctrl/actions,s500-pinctrl.yaml for a nice example of how to use this. Yours, Linus Walleij