0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/airoha,en7523-gpio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Airoha EN7523 GPIO controller
0008
0009 maintainers:
0010 - John Crispin <john@phrozen.org>
0011
0012 description: |
0013 Airoha's GPIO controller on their ARM EN7523 SoCs consists of two banks of 32
0014 GPIOs.
0015
0016 properties:
0017 $nodename:
0018 pattern: "^gpio@[0-9a-f]+$"
0019
0020 compatible:
0021 items:
0022 - const: airoha,en7523-gpio
0023
0024 reg:
0025 description: |
0026 The first tuple points to the input register.
0027 The second and third tuple point to the direction registers
0028 The fourth tuple points to the output register
0029 maxItems: 4
0030
0031 "#gpio-cells":
0032 const: 2
0033
0034 gpio-controller: true
0035
0036 required:
0037 - compatible
0038 - reg
0039 - "#gpio-cells"
0040 - gpio-controller
0041
0042 additionalProperties: false
0043
0044 examples:
0045 - |
0046 gpio0: gpio@1fbf0200 {
0047 compatible = "airoha,en7523-gpio";
0048 reg = <0x1fbf0204 0x4>,
0049 <0x1fbf0200 0x4>,
0050 <0x1fbf0220 0x4>,
0051 <0x1fbf0214 0x4>;
0052 gpio-controller;
0053 #gpio-cells = <2>;
0054 };
0055
0056 gpio1: gpio@1fbf0270 {
0057 compatible = "airoha,en7523-gpio";
0058 reg = <0x1fbf0270 0x4>,
0059 <0x1fbf0260 0x4>,
0060 <0x1fbf0264 0x4>,
0061 <0x1fbf0278 0x4>;
0062 gpio-controller;
0063 #gpio-cells = <2>;
0064 };
0065
0066 ...