Skip to content

Commit 55602a0

Browse files
bebarinoKumar Gala
authored andcommitted
ARM: DT: msm8660: Add sdcc nodes
Add the sdcc nodes to support the SD card controller using pl180 mmci driver. We also add a temporary fixed regulator until the regulator driver is mainlined. Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Kumar Gala <galak@codeaurora.org>
1 parent 8c3166f commit 55602a0

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

arch/arm/boot/dts/qcom-msm8660-surf.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
status = "ok";
1515
};
1616
};
17+
18+
amba {
19+
/* eMMC */
20+
sdcc1: sdcc@12400000 {
21+
status = "okay";
22+
};
23+
24+
/* External micro SD card */
25+
sdcc3: sdcc@12180000 {
26+
status = "okay";
27+
};
28+
};
1729
};
1830
};
1931

arch/arm/boot/dts/qcom-msm8660.dtsi

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/include/ "skeleton.dtsi"
44

5+
#include <dt-bindings/interrupt-controller/arm-gic.h>
56
#include <dt-bindings/clock/qcom,gcc-msm8660.h>
67
#include <dt-bindings/soc/qcom,gsbi.h>
78

@@ -146,5 +147,55 @@
146147
};
147148
};
148149
};
150+
151+
/* Temporary fixed regulator */
152+
vsdcc_fixed: vsdcc-regulator {
153+
compatible = "regulator-fixed";
154+
regulator-name = "SDCC Power";
155+
regulator-min-microvolt = <2700000>;
156+
regulator-max-microvolt = <2700000>;
157+
regulator-always-on;
158+
};
159+
160+
amba {
161+
compatible = "arm,amba-bus";
162+
#address-cells = <1>;
163+
#size-cells = <1>;
164+
ranges;
165+
sdcc1: sdcc@12400000 {
166+
status = "disabled";
167+
compatible = "arm,pl18x", "arm,primecell";
168+
arm,primecell-periphid = <0x00051180>;
169+
reg = <0x12400000 0x8000>;
170+
interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
171+
interrupt-names = "cmd_irq";
172+
clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
173+
clock-names = "mclk", "apb_pclk";
174+
bus-width = <8>;
175+
max-frequency = <48000000>;
176+
non-removable;
177+
cap-sd-highspeed;
178+
cap-mmc-highspeed;
179+
vmmc-supply = <&vsdcc_fixed>;
180+
};
181+
182+
sdcc3: sdcc@12180000 {
183+
compatible = "arm,pl18x", "arm,primecell";
184+
arm,primecell-periphid = <0x00051180>;
185+
status = "disabled";
186+
reg = <0x12180000 0x8000>;
187+
interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
188+
interrupt-names = "cmd_irq";
189+
clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
190+
clock-names = "mclk", "apb_pclk";
191+
bus-width = <4>;
192+
cap-sd-highspeed;
193+
cap-mmc-highspeed;
194+
max-frequency = <48000000>;
195+
no-1-8-v;
196+
vmmc-supply = <&vsdcc_fixed>;
197+
};
198+
};
149199
};
200+
150201
};

0 commit comments

Comments
 (0)