1*4737499cSJohn Crispin# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*4737499cSJohn Crispin%YAML 1.2 3*4737499cSJohn Crispin--- 4*4737499cSJohn Crispin$id: http://devicetree.org/schemas/gpio/airoha,en7523-gpio.yaml# 5*4737499cSJohn Crispin$schema: http://devicetree.org/meta-schemas/core.yaml# 6*4737499cSJohn Crispin 7*4737499cSJohn Crispintitle: Airoha EN7523 GPIO controller 8*4737499cSJohn Crispin 9*4737499cSJohn Crispinmaintainers: 10*4737499cSJohn Crispin - John Crispin <john@phrozen.org> 11*4737499cSJohn Crispin 12*4737499cSJohn Crispindescription: | 13*4737499cSJohn Crispin Airoha's GPIO controller on their ARM EN7523 SoCs consists of two banks of 32 14*4737499cSJohn Crispin GPIOs. 15*4737499cSJohn Crispin 16*4737499cSJohn Crispinproperties: 17*4737499cSJohn Crispin $nodename: 18*4737499cSJohn Crispin pattern: "^gpio@[0-9a-f]+$" 19*4737499cSJohn Crispin 20*4737499cSJohn Crispin compatible: 21*4737499cSJohn Crispin items: 22*4737499cSJohn Crispin - const: airoha,en7523-gpio 23*4737499cSJohn Crispin 24*4737499cSJohn Crispin reg: 25*4737499cSJohn Crispin description: | 26*4737499cSJohn Crispin The first tuple points to the input register. 27*4737499cSJohn Crispin The second and third tuple point to the direction registers 28*4737499cSJohn Crispin The fourth tuple points to the output register 29*4737499cSJohn Crispin maxItems: 4 30*4737499cSJohn Crispin 31*4737499cSJohn Crispin "#gpio-cells": 32*4737499cSJohn Crispin const: 2 33*4737499cSJohn Crispin 34*4737499cSJohn Crispin gpio-controller: true 35*4737499cSJohn Crispin 36*4737499cSJohn Crispinrequired: 37*4737499cSJohn Crispin - compatible 38*4737499cSJohn Crispin - reg 39*4737499cSJohn Crispin - "#gpio-cells" 40*4737499cSJohn Crispin - gpio-controller 41*4737499cSJohn Crispin 42*4737499cSJohn CrispinadditionalProperties: false 43*4737499cSJohn Crispin 44*4737499cSJohn Crispinexamples: 45*4737499cSJohn Crispin - | 46*4737499cSJohn Crispin gpio0: gpio@1fbf0200 { 47*4737499cSJohn Crispin compatible = "airoha,en7523-gpio"; 48*4737499cSJohn Crispin reg = <0x1fbf0204 0x4>, 49*4737499cSJohn Crispin <0x1fbf0200 0x4>, 50*4737499cSJohn Crispin <0x1fbf0220 0x4>, 51*4737499cSJohn Crispin <0x1fbf0214 0x4>; 52*4737499cSJohn Crispin gpio-controller; 53*4737499cSJohn Crispin #gpio-cells = <2>; 54*4737499cSJohn Crispin }; 55*4737499cSJohn Crispin 56*4737499cSJohn Crispin gpio1: gpio@1fbf0270 { 57*4737499cSJohn Crispin compatible = "airoha,en7523-gpio"; 58*4737499cSJohn Crispin reg = <0x1fbf0270 0x4>, 59*4737499cSJohn Crispin <0x1fbf0260 0x4>, 60*4737499cSJohn Crispin <0x1fbf0264 0x4>, 61*4737499cSJohn Crispin <0x1fbf0278 0x4>; 62*4737499cSJohn Crispin gpio-controller; 63*4737499cSJohn Crispin #gpio-cells = <2>; 64*4737499cSJohn Crispin }; 65*4737499cSJohn Crispin 66*4737499cSJohn Crispin... 67