提交 ecd2a1c1 编写于 作者: J John Crispin 提交者: Matthias Brugger

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: NJohn Crispin <john@phrozen.org>
Signed-off-by: NFelix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20220130145116.88406-14-nbd@nbd.nameSigned-off-by: NMatthias Brugger <matthias.bgg@gmail.com>
上级 2cf1c348
...@@ -25,3 +25,11 @@ ...@@ -25,3 +25,11 @@
reg = <0x80000000 0x20000000>; reg = <0x80000000 0x20000000>;
}; };
}; };
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
/ { / {
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
...@@ -114,4 +115,24 @@ ...@@ -114,4 +115,24 @@
clock-frequency = <1843200>; clock-frequency = <1843200>;
status = "okay"; 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>;
};
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册