[PATCH v3 1/3] dt-bindings: pinctrl: Add cix,sky1-pinctrl
Linus Walleij
linus.walleij at linaro.org
Tue Oct 14 03:44:15 PDT 2025
Hi Gary,
thanks for your patch!
On Tue, Oct 14, 2025 at 3:57 AM Gary Yang <gary.yang at cixtech.com> wrote:
> +# Client device subnode's properties
> +patternProperties:
> + 'pins$':
> + type: object
> + additionalProperties: false
> + patternProperties:
> + '(^pins|pins?$)':
> + type: object
> + additionalProperties: false
> + description:
> + A pinctrl node should contain at least one subnodes representing the
> + pinctrl groups available on the machine. Each subnode will list the
> + pins it needs, and how they should be configured, with regard to muxer
> + configuration, pullups, and drive strength.
> +
> + properties:
> + pinmux:
> + description:
> + Values are constructed from pin number and mux setting and are
> + defined as macros in arch/arm64/boot/dts/cix/sky1-pinfunc.h directly.
> +
> + bias-disable: true
> +
> + bias-pull-up: true
> +
> + bias-pull-down: true
> +
> + drive-strength:
> + description:
> + Can support 15 levels, from DS_LEVEL1 to DS_LEVEL15.
> + defined as macros in arch/arm64/boot/dts/cix/sky1-pinfunc.h.
> +
> + required:
> + - pinmux
Can't you just include both pinmux-node.yaml and pincfg-node.yaml
to get validation from the generic schemas?
'pins$':
type: object
additionalProperties: false
patternProperties:
'(^pins|pins?$)':
type: object
$ref: /schemas/pinctrl/pinmux-node.yaml
$ref: /schemas/pinctrl/pincfg-node.yaml
additionalProperties: false
Something like this, I never get this right before actually testcompiling...
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list