Skip to content

Commit 187d796

Browse files
Caesar-githubmmind
authored andcommitted
ARM: dts: rockchip: add the sdio/sdmmc node for rk3036
In general, the sdio/sdmmc is used by the wifi module and sd card. let's add the node for these function. Signed-off-by: Caesar Wang <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 68556dd commit 187d796

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

arch/arm/boot/dts/rk3036.dtsi

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
i2c1 = &i2c1;
5656
i2c2 = &i2c2;
5757
mshc0 = &emmc;
58+
mshc1 = &sdmmc;
59+
mshc2 = &sdio;
5860
serial0 = &uart0;
5961
serial1 = &uart1;
6062
serial2 = &uart2;
@@ -184,6 +186,30 @@
184186
status = "disabled";
185187
};
186188

189+
sdmmc: dwmmc@10214000 {
190+
compatible = "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc";
191+
reg = <0x10214000 0x4000>;
192+
clock-frequency = <37500000>;
193+
clock-freq-min-max = <400000 37500000>;
194+
clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
195+
clock-names = "biu", "ciu";
196+
fifo-depth = <0x100>;
197+
interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
198+
status = "disabled";
199+
};
200+
201+
sdio: dwmmc@10218000 {
202+
compatible = "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc";
203+
reg = <0x10218000 0x4000>;
204+
clock-freq-min-max = <400000 37500000>;
205+
clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
206+
<&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
207+
clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
208+
fifo-depth = <0x100>;
209+
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
210+
status = "disabled";
211+
};
212+
187213
emmc: dwmmc@1021c000 {
188214
compatible = "rockchip,rk3288-dw-mshc";
189215
reg = <0x1021c000 0x4000>;
@@ -459,6 +485,52 @@
459485
};
460486
};
461487

488+
sdmmc {
489+
sdmmc_clk: sdmmc-clk {
490+
rockchip,pins = <1 16 RK_FUNC_1 &pcfg_pull_none>;
491+
};
492+
493+
sdmmc_cmd: sdmmc-cmd {
494+
rockchip,pins = <1 15 RK_FUNC_1 &pcfg_pull_default>;
495+
};
496+
497+
sdmmc_cd: sdmcc-cd {
498+
rockchip,pins = <1 17 RK_FUNC_1 &pcfg_pull_default>;
499+
};
500+
501+
sdmmc_bus1: sdmmc-bus1 {
502+
rockchip,pins = <1 18 RK_FUNC_1 &pcfg_pull_default>;
503+
};
504+
505+
sdmmc_bus4: sdmmc-bus4 {
506+
rockchip,pins = <1 18 RK_FUNC_1 &pcfg_pull_default>,
507+
<1 19 RK_FUNC_1 &pcfg_pull_default>,
508+
<1 20 RK_FUNC_1 &pcfg_pull_default>,
509+
<1 21 RK_FUNC_1 &pcfg_pull_default>;
510+
};
511+
};
512+
513+
sdio {
514+
sdio_bus1: sdio-bus1 {
515+
rockchip,pins = <0 11 RK_FUNC_1 &pcfg_pull_default>;
516+
};
517+
518+
sdio_bus4: sdio-bus4 {
519+
rockchip,pins = <0 11 RK_FUNC_1 &pcfg_pull_default>,
520+
<0 12 RK_FUNC_1 &pcfg_pull_default>,
521+
<0 13 RK_FUNC_1 &pcfg_pull_default>,
522+
<0 14 RK_FUNC_1 &pcfg_pull_default>;
523+
};
524+
525+
sdio_cmd: sdio-cmd {
526+
rockchip,pins = <0 8 RK_FUNC_1 &pcfg_pull_default>;
527+
};
528+
529+
sdio_clk: sdio-clk {
530+
rockchip,pins = <0 9 RK_FUNC_1 &pcfg_pull_none>;
531+
};
532+
};
533+
462534
emmc {
463535
/*
464536
* We run eMMC at max speed; bump up drive strength.

0 commit comments

Comments
 (0)