Skip to content

Commit

Permalink
schemas: gpio: Remove #gpio-cells dependence on gpio-controller
Browse files Browse the repository at this point in the history
Nexus node [0] introduced with devicetree spec v0.3 allow routing GPIO,
clock, etc.

For a GPIO nexus node, the dependence of #gpio-cells on gpio-controller
does not make sense.

[0]: https://devicetree-specification.readthedocs.io/en/v0.3/devicetree-basics.html#nexus-nodes-and-specifier-mapping

Signed-off-by: Ayush Singh <[email protected]>
  • Loading branch information
Ayush1325 committed Sep 12, 2024
1 parent dc4787b commit 7c04cc9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions dtschema/schemas/gpio/gpio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ properties:
- description: number of pins

dependencies:
gpio-controller: ['#gpio-cells']
'#gpio-cells': [ gpio-controller ]
gpio-line-names: ['#gpio-cells']
ngpios: ['#gpio-cells']
gpio-reserved-ranges: ['#gpio-cells']
gpio-ranges: ['#gpio-cells']
gpio-controller: ['#gpio-cells', gpio-controller]
gpio-line-names: ['#gpio-cells', gpio-controller]
ngpios: ['#gpio-cells', gpio-controller]
gpio-reserved-ranges: ['#gpio-cells', gpio-controller]
gpio-ranges: ['#gpio-cells', gpio-controller]

additionalProperties: true

0 comments on commit 7c04cc9

Please sign in to comment.