[PATCH v2 1/3] dt-bindings: gpio: Add support for ATCGPIO100 GPIO controller
From: CL Wang
Date: Tue Dec 01 2026 - 19:47:31 EST
Document devicetree bindings for the Andes ATCGPIO100 GPIO controller.
ATCGPIO100 is the IP name, which is embedded in AndesCore-based
platforms such as AE350.
Signed-off-by: CL Wang <cl634@xxxxxxxxxxxxx>
---
Changes in v2:
- Dropped "andestech,qilai-gpio" from compatible property.
- Dropped property ngpios.
- Made "pclk, extclk, interrupts, interrupt-controller and
#interrupt-cells" required.
---
.../bindings/gpio/andestech,ae350-gpio.yaml | 80 +++++++++++++++++++
1 file changed, 80 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/andestech,ae350-gpio.yaml
diff --git a/Documentation/devicetree/bindings/gpio/andestech,ae350-gpio.yaml b/Documentation/devicetree/bindings/gpio/andestech,ae350-gpio.yaml
new file mode 100644
index 000000000000..f604c7765d1e
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/andestech,ae350-gpio.yaml
@@ -0,0 +1,80 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/gpio/andestech,ae350-gpio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Andes ATCGPIO100 GPIO controller on AE350 platform
+
+maintainers:
+ - CL Wang <cl634@xxxxxxxxxxxxx>
+
+properties:
+ compatible:
+ const: andestech,ae350-gpio
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ interrupt-controller: true
+
+ "#interrupt-cells":
+ const: 2
+
+ gpio-controller: true
+
+ "#gpio-cells":
+ const: 2
+
+ gpio-line-names:
+ minItems: 1
+ maxItems: 32
+
+ clocks:
+ items:
+ - description: APB bus clock
+ - description: External clock for debounce
+
+ clock-names:
+ items:
+ - const: pclk
+ - const: extclk
+
+patternProperties:
+ "^.+-hog(-[0-9]+)?$":
+ type: object
+ required:
+ - gpio-hog
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - interrupt-controller
+ - "#interrupt-cells"
+ - gpio-controller
+ - "#gpio-cells"
+ - clocks
+ - clock-names
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ gpio@f0700000 {
+ compatible = "andestech,ae350-gpio";
+ reg = <0xf0700000 0x100>;
+ interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-parent = <&plic>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ clocks = <&pclk>, <&extclk>;
+ clock-names = "pclk", "extclk";
+ };
--
2.34.1