summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/en7523.dtsi
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2022-01-30 15:51:16 +0100
committerMatthias Brugger <matthias.bgg@gmail.com>2022-03-01 09:04:45 +0100
commitecd2a1c1d541a80a2197fd5cac274c65b3ec30c8 (patch)
treeda46b52affbaff58084c09dc652584650d75bfc5 /arch/arm/boot/dts/en7523.dtsi
parentARM: Add basic support for Airoha EN7523 SoC (diff)
downloadlinux-ecd2a1c1d541a80a2197fd5cac274c65b3ec30c8.tar.xz
linux-ecd2a1c1d541a80a2197fd5cac274c65b3ec30c8.zip
ARM: dts: add GPIO support for Airoha EN7523
Airoha's GPIO controller on their ARM EN7523 SoCs consists of two banks of 32 GPIOs Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Felix Fietkau <nbd@nbd.name> Link: https://lore.kernel.org/r/20220130145116.88406-14-nbd@nbd.name Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'arch/arm/boot/dts/en7523.dtsi')
-rw-r--r--arch/arm/boot/dts/en7523.dtsi21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/en7523.dtsi b/arch/arm/boot/dts/en7523.dtsi
index f1d4c03aad89..36597f587f46 100644
--- a/arch/arm/boot/dts/en7523.dtsi
+++ b/arch/arm/boot/dts/en7523.dtsi
@@ -2,6 +2,7 @@
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/gpio/gpio.h>
/ {
interrupt-parent = <&gic>;
@@ -114,4 +115,24 @@
clock-frequency = <1843200>;
status = "okay";
};
+
+ gpio0: gpio@1fbf0200 {
+ compatible = "airoha,en7523-gpio";
+ reg = <0x1fbf0204 0x4>,
+ <0x1fbf0200 0x4>,
+ <0x1fbf0220 0x4>,
+ <0x1fbf0214 0x4>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+
+ gpio1: gpio@1fbf0270 {
+ compatible = "airoha,en7523-gpio";
+ reg = <0x1fbf0270 0x4>,
+ <0x1fbf0260 0x4>,
+ <0x1fbf0264 0x4>,
+ <0x1fbf0278 0x4>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
};