diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-18 00:24:33 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-23 13:10:41 -0400 |
commit | 277b51e7050f3a0fb79c49e6177ccad901bb2a2d (patch) | |
tree | 7e80c9eb09e4bce24dc4ba7490ebcce5af26f6a1 | |
parent | 9cd7d03f2085c7f2e11d2f97812d1955bc0dc4df (diff) |
arm64: dts: uniphier: add GPIO controller nodes
The GPIO controller also acts as an interrupt controller and the
interrupt lines are connected to the AIDET block.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 25 | ||||
-rw-r--r-- | arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 19 | ||||
-rw-r--r-- | arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 19 |
3 files changed, 63 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi index 12a88ca6a5ed..c82612a370bc 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | |||
@@ -150,6 +150,31 @@ | |||
150 | clocks = <&peri_clk 3>; | 150 | clocks = <&peri_clk 3>; |
151 | }; | 151 | }; |
152 | 152 | ||
153 | gpio: gpio@55000000 { | ||
154 | compatible = "socionext,uniphier-gpio"; | ||
155 | reg = <0x55000000 0x200>; | ||
156 | interrupt-parent = <&aidet>; | ||
157 | interrupt-controller; | ||
158 | #interrupt-cells = <2>; | ||
159 | gpio-controller; | ||
160 | #gpio-cells = <2>; | ||
161 | gpio-ranges = <&pinctrl 0 0 0>, | ||
162 | <&pinctrl 43 0 0>, | ||
163 | <&pinctrl 51 0 0>, | ||
164 | <&pinctrl 96 0 0>, | ||
165 | <&pinctrl 160 0 0>, | ||
166 | <&pinctrl 184 0 0>; | ||
167 | gpio-ranges-group-names = "gpio_range0", | ||
168 | "gpio_range1", | ||
169 | "gpio_range2", | ||
170 | "gpio_range3", | ||
171 | "gpio_range4", | ||
172 | "gpio_range5"; | ||
173 | ngpios = <200>; | ||
174 | socionext,interrupt-ranges = <0 48 16>, <16 154 5>, | ||
175 | <21 217 3>; | ||
176 | }; | ||
177 | |||
153 | adamv@57920000 { | 178 | adamv@57920000 { |
154 | compatible = "socionext,uniphier-ld11-adamv", | 179 | compatible = "socionext,uniphier-ld11-adamv", |
155 | "simple-mfd", "syscon"; | 180 | "simple-mfd", "syscon"; |
diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi index 1815ad41d0a8..31aee55210a7 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | |||
@@ -257,6 +257,25 @@ | |||
257 | clocks = <&peri_clk 3>; | 257 | clocks = <&peri_clk 3>; |
258 | }; | 258 | }; |
259 | 259 | ||
260 | gpio: gpio@55000000 { | ||
261 | compatible = "socionext,uniphier-gpio"; | ||
262 | reg = <0x55000000 0x200>; | ||
263 | interrupt-parent = <&aidet>; | ||
264 | interrupt-controller; | ||
265 | #interrupt-cells = <2>; | ||
266 | gpio-controller; | ||
267 | #gpio-cells = <2>; | ||
268 | gpio-ranges = <&pinctrl 0 0 0>, | ||
269 | <&pinctrl 96 0 0>, | ||
270 | <&pinctrl 160 0 0>; | ||
271 | gpio-ranges-group-names = "gpio_range0", | ||
272 | "gpio_range1", | ||
273 | "gpio_range2"; | ||
274 | ngpios = <205>; | ||
275 | socionext,interrupt-ranges = <0 48 16>, <16 154 5>, | ||
276 | <21 217 3>; | ||
277 | }; | ||
278 | |||
260 | adamv@57920000 { | 279 | adamv@57920000 { |
261 | compatible = "socionext,uniphier-ld20-adamv", | 280 | compatible = "socionext,uniphier-ld20-adamv", |
262 | "simple-mfd", "syscon"; | 281 | "simple-mfd", "syscon"; |
diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi index 5963575c8dfc..fe3a193f2410 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | |||
@@ -178,6 +178,25 @@ | |||
178 | clocks = <&peri_clk 3>; | 178 | clocks = <&peri_clk 3>; |
179 | }; | 179 | }; |
180 | 180 | ||
181 | gpio: gpio@55000000 { | ||
182 | compatible = "socionext,uniphier-gpio"; | ||
183 | reg = <0x55000000 0x200>; | ||
184 | interrupt-parent = <&aidet>; | ||
185 | interrupt-controller; | ||
186 | #interrupt-cells = <2>; | ||
187 | gpio-controller; | ||
188 | #gpio-cells = <2>; | ||
189 | gpio-ranges = <&pinctrl 0 0 0>, | ||
190 | <&pinctrl 96 0 0>, | ||
191 | <&pinctrl 160 0 0>; | ||
192 | gpio-ranges-group-names = "gpio_range0", | ||
193 | "gpio_range1", | ||
194 | "gpio_range2"; | ||
195 | ngpios = <286>; | ||
196 | socionext,interrupt-ranges = <0 48 16>, <16 154 5>, | ||
197 | <21 217 3>; | ||
198 | }; | ||
199 | |||
181 | i2c0: i2c@58780000 { | 200 | i2c0: i2c@58780000 { |
182 | compatible = "socionext,uniphier-fi2c"; | 201 | compatible = "socionext,uniphier-fi2c"; |
183 | status = "disabled"; | 202 | status = "disabled"; |