aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@free-electrons.com>2014-05-18 14:15:57 -0400
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-05-19 17:02:31 -0400
commit50cc24ffcdbce9d0904a4ed89ae14fdf76522de5 (patch)
tree8e585a12f2e279e6f1c376da05cbb4931a429b8c /arch/arm
parente9673a752897c2127e5aefd4663016bca817a0fe (diff)
ARM: dts: berlin: add the pinctrl node and muxing setup for uarts
Add pinctrl bindings and system control nodes to what we currently know about Berlin SoCs. Where available, also set default pinctrl property for uarts, when there is only one pinmux option for it. Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/berlin2.dtsi26
-rw-r--r--arch/arm/boot/dts/berlin2cd.dtsi12
-rw-r--r--arch/arm/boot/dts/berlin2q.dtsi19
3 files changed, 57 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/berlin2.dtsi b/arch/arm/boot/dts/berlin2.dtsi
index 591d4b8c1c2b..2477dac4d643 100644
--- a/arch/arm/boot/dts/berlin2.dtsi
+++ b/arch/arm/boot/dts/berlin2.dtsi
@@ -296,6 +296,8 @@
296 reg-io-width = <1>; 296 reg-io-width = <1>;
297 interrupts = <8>; 297 interrupts = <8>;
298 clocks = <&refclk>; 298 clocks = <&refclk>;
299 pinctrl-0 = <&uart0_pmux>;
300 pinctrl-names = "default";
299 status = "disabled"; 301 status = "disabled";
300 }; 302 };
301 303
@@ -306,6 +308,8 @@
306 reg-io-width = <1>; 308 reg-io-width = <1>;
307 interrupts = <9>; 309 interrupts = <9>;
308 clocks = <&refclk>; 310 clocks = <&refclk>;
311 pinctrl-0 = <&uart1_pmux>;
312 pinctrl-names = "default";
309 status = "disabled"; 313 status = "disabled";
310 }; 314 };
311 315
@@ -316,9 +320,31 @@
316 reg-io-width = <1>; 320 reg-io-width = <1>;
317 interrupts = <10>; 321 interrupts = <10>;
318 clocks = <&refclk>; 322 clocks = <&refclk>;
323 pinctrl-0 = <&uart2_pmux>;
324 pinctrl-names = "default";
319 status = "disabled"; 325 status = "disabled";
320 }; 326 };
321 327
328 sysctrl: system-controller@d000 {
329 compatible = "marvell,berlin2-system-ctrl";
330 reg = <0xd000 0x100>;
331
332 uart0_pmux: uart0-pmux {
333 groups = "GSM4";
334 function = "uart0";
335 };
336
337 uart1_pmux: uart1-pmux {
338 groups = "GSM5";
339 function = "uart1";
340 };
341
342 uart2_pmux: uart2-pmux {
343 groups = "GSM3";
344 function = "uart2";
345 };
346 };
347
322 sic: interrupt-controller@e000 { 348 sic: interrupt-controller@e000 {
323 compatible = "snps,dw-apb-ictl"; 349 compatible = "snps,dw-apb-ictl";
324 reg = <0xe000 0x400>; 350 reg = <0xe000 0x400>;
diff --git a/arch/arm/boot/dts/berlin2cd.dtsi b/arch/arm/boot/dts/berlin2cd.dtsi
index 1385caa6d029..cc1df65da504 100644
--- a/arch/arm/boot/dts/berlin2cd.dtsi
+++ b/arch/arm/boot/dts/berlin2cd.dtsi
@@ -234,6 +234,11 @@
234 reg = <0xea0000 0x400>; 234 reg = <0xea0000 0x400>;
235 clocks = <&refclk>; 235 clocks = <&refclk>;
236 clock-names = "refclk"; 236 clock-names = "refclk";
237
238 uart0_pmux: uart0-pmux {
239 groups = "G6";
240 function = "uart0";
241 };
237 }; 242 };
238 243
239 apb@fc0000 { 244 apb@fc0000 {
@@ -281,6 +286,8 @@
281 reg-io-width = <1>; 286 reg-io-width = <1>;
282 interrupts = <8>; 287 interrupts = <8>;
283 clocks = <&refclk>; 288 clocks = <&refclk>;
289 pinctrl-0 = <&uart0_pmux>;
290 pinctrl-names = "default";
284 status = "disabled"; 291 status = "disabled";
285 }; 292 };
286 293
@@ -294,6 +301,11 @@
294 status = "disabled"; 301 status = "disabled";
295 }; 302 };
296 303
304 sysctrl: system-controller@d000 {
305 compatible = "marvell,berlin2cd-system-ctrl";
306 reg = <0xd000 0x100>;
307 };
308
297 sic: interrupt-controller@e000 { 309 sic: interrupt-controller@e000 {
298 compatible = "snps,dw-apb-ictl"; 310 compatible = "snps,dw-apb-ictl";
299 reg = <0xe000 0x400>; 311 reg = <0xe000 0x400>;
diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi
index cd3287c95f1a..81712f5954ef 100644
--- a/arch/arm/boot/dts/berlin2q.dtsi
+++ b/arch/arm/boot/dts/berlin2q.dtsi
@@ -294,6 +294,8 @@
294 interrupts = <8>; 294 interrupts = <8>;
295 clocks = <&refclk>; 295 clocks = <&refclk>;
296 reg-shift = <2>; 296 reg-shift = <2>;
297 pinctrl-0 = <&uart0_pmux>;
298 pinctrl-names = "default";
297 status = "disabled"; 299 status = "disabled";
298 }; 300 };
299 301
@@ -304,9 +306,26 @@
304 interrupts = <9>; 306 interrupts = <9>;
305 clocks = <&refclk>; 307 clocks = <&refclk>;
306 reg-shift = <2>; 308 reg-shift = <2>;
309 pinctrl-0 = <&uart1_pmux>;
310 pinctrl-names = "default";
307 status = "disabled"; 311 status = "disabled";
308 }; 312 };
309 313
314 sysctrl: pin-controller@d000 {
315 compatible = "marvell,berlin2q-system-ctrl";
316 reg = <0xd000 0x100>;
317
318 uart0_pmux: uart0-pmux {
319 groups = "GSM12";
320 function = "uart0";
321 };
322
323 uart1_pmux: uart1-pmux {
324 groups = "GSM14";
325 function = "uart1";
326 };
327 };
328
310 sic: interrupt-controller@e000 { 329 sic: interrupt-controller@e000 {
311 compatible = "snps,dw-apb-ictl"; 330 compatible = "snps,dw-apb-ictl";
312 reg = <0xe000 0x30>; 331 reg = <0xe000 0x30>;