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

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

title: 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 c4512e3

Please sign in to comment.