summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Fustini <drew@beagleboard.org>2021-05-31 10:07:38 +0300
committerEmil Renner Berthing <kernel@esmil.dk>2021-06-07 01:55:57 +0300
commit0fa6dd2ee27cfc9260baa0734e1c18d4fbd2bee7 (patch)
treecae71f8ace9d5c70b66a15f5b99be7fad8607347
parent09a73a6fbb30a868682b2d6178743d0da3e5e8ae (diff)
downloadlinux-0fa6dd2ee27cfc9260baa0734e1c18d4fbd2bee7.tar.xz
dt-bindings: gpio: add starfive,jh7100-gpio bindings
Add bindings for the GPIO controller in the StarFive JH7100 SoC [1]. [1] https://github.com/starfive-tech/beaglev_doc Signed-off-by: Drew Fustini <drew@beagleboard.org>
-rw-r--r--Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml60
1 files changed, 60 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml b/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml
new file mode 100644
index 000000000000..8c9d14d9ac3b
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/gpio/starfive,jh7100-gpio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: StarFive JH7100 GPIO controller
+
+maintainers:
+ - Huan Feng <huan.feng@starfivetech.com>
+ - Drew Fustini <drew@beagleboard.org>
+
+properties:
+ compatible:
+ items:
+ - const: starfive,jh7100-gpio
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ description:
+ Interrupt mapping, one per GPIO. Maximum 32 GPIOs.
+ minItems: 1
+ maxItems: 32
+
+ gpio-controller: true
+
+ "#gpio-cells":
+ const: 2
+
+ interrupt-controller: true
+
+ "#interrupt-cells":
+ const: 2
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - interrupt-controller
+ - "#interrupt-cells"
+ - "#gpio-cells"
+ - gpio-controller
+
+additionalProperties: false
+
+examples:
+ - |
+ gpio@11910000 {
+ compatible = "starfive,jh7100-gpio";
+ reg = <0x11910000 0x10000>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ interrupts = <32>;
+ };
+
+...