aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2013-03-19 08:47:43 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-03-21 06:35:16 -0400
commit546e5d3ef6f2f17c63de01f1cf43cdb51c1e9a6b (patch)
tree16ec702ee3b9e9127fb035cd7cf4b9ebc0f006de /arch/arm
parentc791c036f844622bff767637be6df64b28634305 (diff)
ARM: shmobile: sh73a0: move SDHI and MMCIF DT nodes to sh73a0.dtsi
To avoid having to repeat common DT node properties in all .dts files move them to SoC's .dtsi file, setting their status to "disabled." Individual boards will pick up devices, that they want to use and change their DT node status to enabled. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/sh73a0-kzm9g-reference.dts41
-rw-r--r--arch/arm/boot/dts/sh73a0-reference.dtsi24
-rw-r--r--arch/arm/boot/dts/sh73a0.dtsi44
3 files changed, 59 insertions, 50 deletions
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
index cadcf30e9641..f33b5ccb7446 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14/dts-v1/; 14/dts-v1/;
15/include/ "sh73a0-reference.dtsi" 15/include/ "sh73a0.dtsi"
16 16
17/ { 17/ {
18 model = "KZM-A9-GT"; 18 model = "KZM-A9-GT";
@@ -44,34 +44,23 @@
44 regulator-always-on; 44 regulator-always-on;
45 regulator-boot-on; 45 regulator-boot-on;
46 }; 46 };
47
48 sdhi0: sdhi@0xee100000 {
49 compatible = "renesas,shmobile-sdhi";
50 reg = <0xee100000 0x100>;
51 interrupt-parent = <&gic>;
52 interrupts = <0 83 4
53 0 84 4
54 0 85 4>;
55 vmmc-supply = <&reg_3p3v>;
56 bus-width = <4>;
57 toshiba,mmc-has-idle-wait;
58 };
59
60 sdhi2: sdhi@0xee140000 {
61 compatible = "renesas,shmobile-sdhi";
62 reg = <0xee140000 0x100>;
63 interrupt-parent = <&gic>;
64 interrupts = <0 104 4
65 0 105 4>;
66 vmmc-supply = <&reg_3p3v>;
67 bus-width = <4>;
68 broken-cd;
69 toshiba,mmc-wrprotect-disable;
70 toshiba,mmc-has-idle-wait;
71 };
72}; 47};
73 48
74&mmcif { 49&mmcif {
75 bus-width = <8>; 50 bus-width = <8>;
76 vmmc-supply = <&reg_1p8v>; 51 vmmc-supply = <&reg_1p8v>;
52 status = "okay";
53};
54
55&sdhi0 {
56 vmmc-supply = <&reg_3p3v>;
57 bus-width = <4>;
58 status = "okay";
59};
60
61&sdhi2 {
62 vmmc-supply = <&reg_3p3v>;
63 bus-width = <4>;
64 broken-cd;
65 status = "okay";
77}; 66};
diff --git a/arch/arm/boot/dts/sh73a0-reference.dtsi b/arch/arm/boot/dts/sh73a0-reference.dtsi
deleted file mode 100644
index d4bb0125b2b2..000000000000
--- a/arch/arm/boot/dts/sh73a0-reference.dtsi
+++ /dev/null
@@ -1,24 +0,0 @@
1/*
2 * Device Tree Source for the SH73A0 SoC
3 *
4 * Copyright (C) 2012 Renesas Solutions Corp.
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10
11/include/ "sh73a0.dtsi"
12
13/ {
14 compatible = "renesas,sh73a0";
15
16 mmcif: mmcif@0x10010000 {
17 compatible = "renesas,sh-mmcif";
18 reg = <0xe6bd0000 0x100>;
19 interrupt-parent = <&gic>;
20 interrupts = <0 140 0x4
21 0 141 0x4>;
22 reg-io-width = <4>;
23 };
24};
diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi
index 8a59465d0231..c89be386cd37 100644
--- a/arch/arm/boot/dts/sh73a0.dtsi
+++ b/arch/arm/boot/dts/sh73a0.dtsi
@@ -97,4 +97,48 @@
97 0 189 0x4 97 0 189 0x4
98 0 190 0x4>; 98 0 190 0x4>;
99 }; 99 };
100
101 mmcif: mmcif@0x10010000 {
102 compatible = "renesas,sh-mmcif";
103 reg = <0xe6bd0000 0x100>;
104 interrupt-parent = <&gic>;
105 interrupts = <0 140 0x4
106 0 141 0x4>;
107 reg-io-width = <4>;
108 status = "disabled";
109 };
110
111 sdhi0: sdhi@0xee100000 {
112 compatible = "renesas,shmobile-sdhi";
113 reg = <0xee100000 0x100>;
114 interrupt-parent = <&gic>;
115 interrupts = <0 83 4
116 0 84 4
117 0 85 4>;
118 toshiba,mmc-has-idle-wait;
119 status = "disabled";
120 };
121
122 /* SDHI1 and SDHI2 have no CD pins, no need for CD IRQ */
123 sdhi1: sdhi@0xee120000 {
124 compatible = "renesas,shmobile-sdhi";
125 reg = <0xee120000 0x100>;
126 interrupt-parent = <&gic>;
127 interrupts = <0 88 4
128 0 89 4>;
129 toshiba,mmc-wrprotect-disable;
130 toshiba,mmc-has-idle-wait;
131 status = "disabled";
132 };
133
134 sdhi2: sdhi@0xee140000 {
135 compatible = "renesas,shmobile-sdhi";
136 reg = <0xee140000 0x100>;
137 interrupt-parent = <&gic>;
138 interrupts = <0 104 4
139 0 105 4>;
140 toshiba,mmc-wrprotect-disable;
141 toshiba,mmc-has-idle-wait;
142 status = "disabled";
143 };
100}; 144};