Skip to content

Commit aabff7b

Browse files
bebarinoKumar Gala
authored andcommitted
ARM: DT: msm8960: 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 55602a0 commit aabff7b

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

arch/arm/boot/dts/qcom-msm8960-cdp.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-msm8960.dtsi

Lines changed: 50 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-msm8960.h>
67
#include <dt-bindings/soc/qcom,gsbi.h>
78

@@ -188,5 +189,54 @@
188189
clocks = <&gcc PRNG_CLK>;
189190
clock-names = "core";
190191
};
192+
193+
/* Temporary fixed regulator */
194+
vsdcc_fixed: vsdcc-regulator {
195+
compatible = "regulator-fixed";
196+
regulator-name = "SDCC Power";
197+
regulator-min-microvolt = <2700000>;
198+
regulator-max-microvolt = <2700000>;
199+
regulator-always-on;
200+
};
201+
202+
amba {
203+
compatible = "arm,amba-bus";
204+
#address-cells = <1>;
205+
#size-cells = <1>;
206+
ranges;
207+
sdcc1: sdcc@12400000 {
208+
status = "disabled";
209+
compatible = "arm,pl18x", "arm,primecell";
210+
arm,primecell-periphid = <0x00051180>;
211+
reg = <0x12400000 0x8000>;
212+
interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
213+
interrupt-names = "cmd_irq";
214+
clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
215+
clock-names = "mclk", "apb_pclk";
216+
bus-width = <8>;
217+
max-frequency = <96000000>;
218+
non-removable;
219+
cap-sd-highspeed;
220+
cap-mmc-highspeed;
221+
vmmc-supply = <&vsdcc_fixed>;
222+
};
223+
224+
sdcc3: sdcc@12180000 {
225+
compatible = "arm,pl18x", "arm,primecell";
226+
arm,primecell-periphid = <0x00051180>;
227+
status = "disabled";
228+
reg = <0x12180000 0x8000>;
229+
interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
230+
interrupt-names = "cmd_irq";
231+
clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
232+
clock-names = "mclk", "apb_pclk";
233+
bus-width = <4>;
234+
cap-sd-highspeed;
235+
cap-mmc-highspeed;
236+
max-frequency = <192000000>;
237+
no-1-8-v;
238+
vmmc-supply = <&vsdcc_fixed>;
239+
};
240+
};
191241
};
192242
};

0 commit comments

Comments
 (0)