From c4512e3ac525c0737d6819a72f13e2b834977fd1 Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Fri, 13 Sep 2024 00:38:55 +0530 Subject: [PATCH] schemas: gpio: Add GPIO nexus node 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 --- dtschema/schemas/gpio/gpio-nexus-node.yaml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 dtschema/schemas/gpio/gpio-nexus-node.yaml diff --git a/dtschema/schemas/gpio/gpio-nexus-node.yaml b/dtschema/schemas/gpio/gpio-nexus-node.yaml new file mode 100644 index 0000000..9a62a2a --- /dev/null +++ b/dtschema/schemas/gpio/gpio-nexus-node.yaml @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: BSD-2-Clause +# Copyright Ayush Singh + +$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 + +# 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