aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Packham <chris.packham@alliedtelesis.co.nz>2017-02-01 04:02:59 -0500
committerGregory CLEMENT <gregory.clement@free-electrons.com>2017-03-07 11:20:02 -0500
commita126de75c1b88dbfb0a313bc34d9cedf3b9dd644 (patch)
tree7eee40e255a2f9fb23bfc8306e31cd34554babc9
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff)
ARM: dts: armada-38x add node labels
As was done with Armada XP, add node labels to Armada 38x common and SoC specific nodes to make them easier to reference in board device trees. Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/armada-385.dtsi20
-rw-r--r--arch/arm/boot/dts/armada-388.dtsi9
-rw-r--r--arch/arm/boot/dts/armada-38x.dtsi38
3 files changed, 32 insertions, 35 deletions
diff --git a/arch/arm/boot/dts/armada-385.dtsi b/arch/arm/boot/dts/armada-385.dtsi
index 8e63be33472e..7fcc4c4885cf 100644
--- a/arch/arm/boot/dts/armada-385.dtsi
+++ b/arch/arm/boot/dts/armada-385.dtsi
@@ -70,13 +70,7 @@
70 }; 70 };
71 71
72 soc { 72 soc {
73 internal-regs { 73 pciec: pcie-controller {
74 pinctrl@18000 {
75 compatible = "marvell,mv88f6820-pinctrl";
76 };
77 };
78
79 pcie-controller {
80 compatible = "marvell,armada-370-pcie"; 74 compatible = "marvell,armada-370-pcie";
81 status = "disabled"; 75 status = "disabled";
82 device_type = "pci"; 76 device_type = "pci";
@@ -106,7 +100,7 @@
106 * configured in x4 by the bootloader, then 100 * configured in x4 by the bootloader, then
107 * pcie@4,0 is not available. 101 * pcie@4,0 is not available.
108 */ 102 */
109 pcie@1,0 { 103 pcie1: pcie@1,0 {
110 device_type = "pci"; 104 device_type = "pci";
111 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>; 105 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
112 reg = <0x0800 0 0 0 0>; 106 reg = <0x0800 0 0 0 0>;
@@ -124,7 +118,7 @@
124 }; 118 };
125 119
126 /* x1 port */ 120 /* x1 port */
127 pcie@2,0 { 121 pcie2: pcie@2,0 {
128 device_type = "pci"; 122 device_type = "pci";
129 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>; 123 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
130 reg = <0x1000 0 0 0 0>; 124 reg = <0x1000 0 0 0 0>;
@@ -142,7 +136,7 @@
142 }; 136 };
143 137
144 /* x1 port */ 138 /* x1 port */
145 pcie@3,0 { 139 pcie3: pcie@3,0 {
146 device_type = "pci"; 140 device_type = "pci";
147 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>; 141 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
148 reg = <0x1800 0 0 0 0>; 142 reg = <0x1800 0 0 0 0>;
@@ -163,7 +157,7 @@
163 * x1 port only available when pcie@1,0 is 157 * x1 port only available when pcie@1,0 is
164 * configured as a x1 port 158 * configured as a x1 port
165 */ 159 */
166 pcie@4,0 { 160 pcie4: pcie@4,0 {
167 device_type = "pci"; 161 device_type = "pci";
168 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>; 162 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
169 reg = <0x2000 0 0 0 0>; 163 reg = <0x2000 0 0 0 0>;
@@ -182,3 +176,7 @@
182 }; 176 };
183 }; 177 };
184}; 178};
179
180&pinctrl {
181 compatible = "marvell,mv88f6820-pinctrl";
182};
diff --git a/arch/arm/boot/dts/armada-388.dtsi b/arch/arm/boot/dts/armada-388.dtsi
index 564fa5937e25..1c0d151b2aaa 100644
--- a/arch/arm/boot/dts/armada-388.dtsi
+++ b/arch/arm/boot/dts/armada-388.dtsi
@@ -50,13 +50,8 @@
50 model = "Marvell Armada 388 family SoC"; 50 model = "Marvell Armada 388 family SoC";
51 compatible = "marvell,armada388", "marvell,armada385", 51 compatible = "marvell,armada388", "marvell,armada385",
52 "marvell,armada380"; 52 "marvell,armada380";
53
54 soc { 53 soc {
55 internal-regs { 54 internal-regs {
56 pinctrl@18000 {
57 compatible = "marvell,mv88f6828-pinctrl";
58 };
59
60 sata@e0000 { 55 sata@e0000 {
61 compatible = "marvell,armada-380-ahci"; 56 compatible = "marvell,armada-380-ahci";
62 reg = <0xe0000 0x2000>; 57 reg = <0xe0000 0x2000>;
@@ -68,3 +63,7 @@
68 }; 63 };
69 }; 64 };
70}; 65};
66
67&pinctrl {
68 compatible = "marvell,mv88f6828-pinctrl";
69};
diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi
index 79b767507eab..c558a5d6a21f 100644
--- a/arch/arm/boot/dts/armada-38x.dtsi
+++ b/arch/arm/boot/dts/armada-38x.dtsi
@@ -82,7 +82,7 @@
82 reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>; 82 reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>;
83 }; 83 };
84 84
85 devbus-bootcs { 85 devbus_bootcs: devbus-bootcs {
86 compatible = "marvell,mvebu-devbus"; 86 compatible = "marvell,mvebu-devbus";
87 reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>; 87 reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
88 ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>; 88 ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
@@ -92,7 +92,7 @@
92 status = "disabled"; 92 status = "disabled";
93 }; 93 };
94 94
95 devbus-cs0 { 95 devbus_cs0: devbus-cs0 {
96 compatible = "marvell,mvebu-devbus"; 96 compatible = "marvell,mvebu-devbus";
97 reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>; 97 reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
98 ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>; 98 ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
@@ -102,7 +102,7 @@
102 status = "disabled"; 102 status = "disabled";
103 }; 103 };
104 104
105 devbus-cs1 { 105 devbus_cs1: devbus-cs1 {
106 compatible = "marvell,mvebu-devbus"; 106 compatible = "marvell,mvebu-devbus";
107 reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>; 107 reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
108 ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>; 108 ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
@@ -112,7 +112,7 @@
112 status = "disabled"; 112 status = "disabled";
113 }; 113 };
114 114
115 devbus-cs2 { 115 devbus_cs2: devbus-cs2 {
116 compatible = "marvell,mvebu-devbus"; 116 compatible = "marvell,mvebu-devbus";
117 reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>; 117 reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
118 ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>; 118 ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
@@ -122,7 +122,7 @@
122 status = "disabled"; 122 status = "disabled";
123 }; 123 };
124 124
125 devbus-cs3 { 125 devbus_cs3: devbus-cs3 {
126 compatible = "marvell,mvebu-devbus"; 126 compatible = "marvell,mvebu-devbus";
127 reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>; 127 reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
128 ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>; 128 ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
@@ -339,7 +339,7 @@
339 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 339 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
340 }; 340 };
341 341
342 system-controller@18200 { 342 systemc: system-controller@18200 {
343 compatible = "marvell,armada-380-system-controller", 343 compatible = "marvell,armada-380-system-controller",
344 "marvell,armada-370-xp-system-controller"; 344 "marvell,armada-370-xp-system-controller";
345 reg = <0x18200 0x100>; 345 reg = <0x18200 0x100>;
@@ -373,7 +373,7 @@
373 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>; 373 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
374 }; 374 };
375 375
376 timer@20300 { 376 timer: timer@20300 {
377 compatible = "marvell,armada-380-timer", 377 compatible = "marvell,armada-380-timer",
378 "marvell,armada-xp-timer"; 378 "marvell,armada-xp-timer";
379 reg = <0x20300 0x30>, <0x21040 0x30>; 379 reg = <0x20300 0x30>, <0x21040 0x30>;
@@ -387,14 +387,14 @@
387 clock-names = "nbclk", "fixed"; 387 clock-names = "nbclk", "fixed";
388 }; 388 };
389 389
390 watchdog@20300 { 390 watchdog: watchdog@20300 {
391 compatible = "marvell,armada-380-wdt"; 391 compatible = "marvell,armada-380-wdt";
392 reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>; 392 reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>;
393 clocks = <&coreclk 2>, <&refclk>; 393 clocks = <&coreclk 2>, <&refclk>;
394 clock-names = "nbclk", "fixed"; 394 clock-names = "nbclk", "fixed";
395 }; 395 };
396 396
397 cpurst@20800 { 397 cpurst: cpurst@20800 {
398 compatible = "marvell,armada-370-cpu-reset"; 398 compatible = "marvell,armada-370-cpu-reset";
399 reg = <0x20800 0x10>; 399 reg = <0x20800 0x10>;
400 }; 400 };
@@ -404,12 +404,12 @@
404 reg = <0x20d20 0x6c>; 404 reg = <0x20d20 0x6c>;
405 }; 405 };
406 406
407 coherency-fabric@21010 { 407 coherencyfab: coherency-fabric@21010 {
408 compatible = "marvell,armada-380-coherency-fabric"; 408 compatible = "marvell,armada-380-coherency-fabric";
409 reg = <0x21010 0x1c>; 409 reg = <0x21010 0x1c>;
410 }; 410 };
411 411
412 pmsu@22000 { 412 pmsu: pmsu@22000 {
413 compatible = "marvell,armada-380-pmsu"; 413 compatible = "marvell,armada-380-pmsu";
414 reg = <0x22000 0x1000>; 414 reg = <0x22000 0x1000>;
415 }; 415 };
@@ -451,7 +451,7 @@
451 status = "disabled"; 451 status = "disabled";
452 }; 452 };
453 453
454 usb@58000 { 454 usb0: usb@58000 {
455 compatible = "marvell,orion-ehci"; 455 compatible = "marvell,orion-ehci";
456 reg = <0x58000 0x500>; 456 reg = <0x58000 0x500>;
457 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; 457 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
@@ -459,7 +459,7 @@
459 status = "disabled"; 459 status = "disabled";
460 }; 460 };
461 461
462 xor@60800 { 462 xor0: xor@60800 {
463 compatible = "marvell,armada-380-xor", "marvell,orion-xor"; 463 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
464 reg = <0x60800 0x100 464 reg = <0x60800 0x100
465 0x60a00 0x100>; 465 0x60a00 0x100>;
@@ -479,7 +479,7 @@
479 }; 479 };
480 }; 480 };
481 481
482 xor@60900 { 482 xor1: xor@60900 {
483 compatible = "marvell,armada-380-xor", "marvell,orion-xor"; 483 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
484 reg = <0x60900 0x100 484 reg = <0x60900 0x100
485 0x60b00 0x100>; 485 0x60b00 0x100>;
@@ -507,7 +507,7 @@
507 clocks = <&gateclk 4>; 507 clocks = <&gateclk 4>;
508 }; 508 };
509 509
510 crypto@90000 { 510 cesa: crypto@90000 {
511 compatible = "marvell,armada-38x-crypto"; 511 compatible = "marvell,armada-38x-crypto";
512 reg = <0x90000 0x10000>; 512 reg = <0x90000 0x10000>;
513 reg-names = "regs"; 513 reg-names = "regs";
@@ -522,7 +522,7 @@
522 marvell,crypto-sram-size = <0x800>; 522 marvell,crypto-sram-size = <0x800>;
523 }; 523 };
524 524
525 rtc@a3800 { 525 rtc: rtc@a3800 {
526 compatible = "marvell,armada-380-rtc"; 526 compatible = "marvell,armada-380-rtc";
527 reg = <0xa3800 0x20>, <0x184a0 0x0c>; 527 reg = <0xa3800 0x20>, <0x184a0 0x0c>;
528 reg-names = "rtc", "rtc-soc"; 528 reg-names = "rtc", "rtc-soc";
@@ -561,13 +561,13 @@
561 clock-output-names = "nand"; 561 clock-output-names = "nand";
562 }; 562 };
563 563
564 thermal@e8078 { 564 thermal: thermal@e8078 {
565 compatible = "marvell,armada380-thermal"; 565 compatible = "marvell,armada380-thermal";
566 reg = <0xe4078 0x4>, <0xe4074 0x4>; 566 reg = <0xe4078 0x4>, <0xe4074 0x4>;
567 status = "okay"; 567 status = "okay";
568 }; 568 };
569 569
570 flash@d0000 { 570 nand: flash@d0000 {
571 compatible = "marvell,armada370-nand"; 571 compatible = "marvell,armada370-nand";
572 reg = <0xd0000 0x54>; 572 reg = <0xd0000 0x54>;
573 #address-cells = <1>; 573 #address-cells = <1>;
@@ -577,7 +577,7 @@
577 status = "disabled"; 577 status = "disabled";
578 }; 578 };
579 579
580 sdhci@d8000 { 580 sdhci: sdhci@d8000 {
581 compatible = "marvell,armada-380-sdhci"; 581 compatible = "marvell,armada-380-sdhci";
582 reg-names = "sdhci", "mbus", "conf-sdio3"; 582 reg-names = "sdhci", "mbus", "conf-sdio3";
583 reg = <0xd8000 0x1000>, 583 reg = <0xd8000 0x1000>,