Skip to content

Commit

Permalink
schemas: gpio: Add GPIO nexus node
Browse files Browse the repository at this point in the history
GPIO Nexus Node [0] allows routing gpios in devicetree.

[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 7c04cc9 commit a49ae41
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions dtschema/schemas/gpio/gpio-nexus-node.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: BSD-2-Clause
# Copyright Ayush Singh <[email protected]>

$id: http://devicetree.org/schemas/gpio/gpio-nexus-node.yaml#
$schema: http://devicetree.org/meta-schemas/base.yaml#

title: GPIO Nexus node properties

description: Schema for nexus node devicetree bindings
maintainers:
- Ayush Singh <[email protected]>

# always select the core schema
select: true

properties:
"#gpio-cells": true
gpio-map:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
gpio-map-mask:
$ref: types.yaml#/definitions/uint32-array
gpio-map-pass-thru:
$ref: types.yaml#/definitions/uint32-array

dependentRequired:
gpio-map: ['#gpio-cells']
'gpio-map-mask': [ gpio-map ]
'gpio-map-pass-thru': [ gpio-map ]

additionalProperties: true

0 comments on commit a49ae41

Please sign in to comment.