Skip to content

Commit bd42a25

Browse files
Xianwei Zhaosuperna9999
authored andcommitted
dts: arm64: amlogic: add S7D pinctrl node
Add pinctrl device to support Amlogic S7D. Signed-off-by: Xianwei Zhao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]>
1 parent 9291207 commit bd42a25

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed

arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <dt-bindings/interrupt-controller/irq.h>
77
#include <dt-bindings/interrupt-controller/arm-gic.h>
88
#include <dt-bindings/gpio/gpio.h>
9+
#include <dt-bindings/pinctrl/amlogic,pinctrl.h>
910

1011
/ {
1112
cpus {
@@ -94,6 +95,95 @@
9495
clock-names = "xtal", "pclk", "baud";
9596
status = "disabled";
9697
};
98+
99+
periphs_pinctrl: pinctrl@4000 {
100+
compatible = "amlogic,pinctrl-s7d",
101+
"amlogic,pinctrl-s7";
102+
#address-cells = <2>;
103+
#size-cells = <2>;
104+
ranges = <0x0 0x0 0x0 0x4000 0x0 0x340>;
105+
106+
gpioz: gpio@c0 {
107+
reg = <0 0xc0 0 0x20>, <0 0x18 0 0x8>;
108+
reg-names = "gpio", "mux";
109+
gpio-controller;
110+
#gpio-cells = <2>;
111+
gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_Z<<8) 13>;
112+
};
113+
114+
gpiox: gpio@100 {
115+
reg = <0 0x100 0 0x30>, <0 0xc 0 0x8>;
116+
reg-names = "gpio", "mux";
117+
gpio-controller;
118+
#gpio-cells = <2>;
119+
gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_X<<8) 20>;
120+
};
121+
122+
gpioh: gpio@140 {
123+
reg = <0 0x140 0 0x20>, <0 0x2c 0 0x8>;
124+
reg-names = "gpio", "mux";
125+
gpio-controller;
126+
#gpio-cells = <2>;
127+
gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_H<<8) 12>;
128+
};
129+
130+
gpiod: gpio@180 {
131+
reg = <0 0x180 0 0x20>, <0 0x40 0 0x4>;
132+
reg-names = "gpio", "mux";
133+
gpio-controller;
134+
#gpio-cells = <2>;
135+
gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_D<<8) 5>;
136+
};
137+
138+
gpioe: gpio@1c0 {
139+
reg = <0 0x1c0 0 0x20>, <0 0x48 0 0x4>;
140+
reg-names = "gpio", "mux";
141+
gpio-controller;
142+
#gpio-cells = <2>;
143+
gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_E<<8) 2>;
144+
};
145+
146+
gpioc: gpio@200 {
147+
reg = <0 0x200 0 0x20>, <0 0x24 0 0x4>;
148+
reg-names = "gpio", "mux";
149+
gpio-controller;
150+
#gpio-cells = <2>;
151+
gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_C<<8) 8>;
152+
};
153+
154+
gpiob: gpio@240 {
155+
reg = <0 0x240 0 0x20>, <0 0x0 0 0x8>;
156+
reg-names = "gpio", "mux";
157+
gpio-controller;
158+
#gpio-cells = <2>;
159+
gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_B<<8) 14>;
160+
};
161+
162+
gpiodv: gpio@280 {
163+
reg = <0 0x280 0 0x20>, <0 0x8 0 0x4>;
164+
reg-names = "gpio", "mux";
165+
gpio-controller;
166+
#gpio-cells = <2>;
167+
gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_DV<<8) 7>;
168+
};
169+
170+
test_n: gpio@2c0 {
171+
reg = <0 0x2c0 0 0x20>;
172+
reg-names = "gpio";
173+
gpio-controller;
174+
#gpio-cells = <2>;
175+
gpio-ranges =
176+
<&periphs_pinctrl 0 (AMLOGIC_GPIO_TEST_N<<8) 1>;
177+
};
178+
179+
gpiocc: gpio@300 {
180+
reg = <0 0x300 0 0x20>, <0 0x14 0 0x4>;
181+
reg-names = "gpio", "mux";
182+
gpio-controller;
183+
#gpio-cells = <2>;
184+
gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_CC<<8) 2>;
185+
};
186+
};
97187
};
98188
};
99189
};

0 commit comments

Comments
 (0)