ARM64: dtsi: Rockchip: add eMMC/SDMMC/SDIO node for RK3366
authorxiaoyao <xiaoyao@rock-chips.com>
Mon, 1 Feb 2016 02:36:20 +0000 (10:36 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Tue, 2 Feb 2016 08:11:45 +0000 (16:11 +0800)
Change-Id: I0ab4980da43c914a2925a41a92807688458759d3
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3366.dtsi

index a315e104f5ed317016b3174ab97006540fe75ec5..1916e3e68d5e4f1b8533203acc047ea27a50586c 100644 (file)
                status = "disabled";
        };
 
+       sdmmc: rksdmmc@ff400000 {
+               compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
+               clock-freq-min-max = <400000 150000000>;
+               clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
+                        <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
+               clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
+               fifo-depth = <0x100>;
+               interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
+               reg = <0x0 0xff400000 0x0 0x4000>;
+               status = "disabled";
+       };
+
+       sdio: rksdmmc@ff410000 {
+               compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
+               clock-freq-min-max = <400000 150000000>;
+               clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO0>,
+                        <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
+               clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
+               fifo-depth = <0x100>;
+               interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
+               reg = <0x0 0xff410000 0x0 0x4000>;
+               status = "disabled";
+       };
+
+       emmc: rksdmmc@ff420000 {
+               compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
+               clock-freq-min-max = <400000 150000000>;
+               clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
+                        <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
+               clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
+               fifo-depth = <0x100>;
+               interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
+               reg = <0x0 0xff420000 0x0 0x4000>;
+               status = "disabled";
+       };
+
        i2c0: i2c@ff650000 {
                compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
                reg = <0x0 0xff728000 0x0 0x1000>;
                        };
                };
 
+               sdmmc {
+                       sdmmc_cd: sdmmc-cd {
+                               rockchip,pins = <0 9 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdmmc_bus1: sdmmc-bus1 {
+                               rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdmmc_bus4: sdmmc-bus4 {
+                               rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>,
+                                               <5 1 RK_FUNC_1 &pcfg_pull_up>,
+                                               <5 2 RK_FUNC_1 &pcfg_pull_up>,
+                                               <5 3 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdmmc_clk: sdmmc-clk {
+                               rockchip,pins = <5 4 RK_FUNC_1 &pcfg_pull_none>;
+                       };
+
+                       sdmmc_cmd: sdmmc-cmd {
+                               rockchip,pins = <5 5 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+               };
+
+               sdio {
+                       sdio_bus1: sdio-bus1 {
+                               rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdio_bus4: sdio-bus4 {
+                               rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>,
+                                               <3 13 RK_FUNC_1 &pcfg_pull_up>,
+                                               <3 14 RK_FUNC_1 &pcfg_pull_up>,
+                                               <3 15 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdio_cmd: sdio-cmd {
+                               rockchip,pins = <3 16 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdio_clk: sdio-clk {
+                               rockchip,pins = <3 17 RK_FUNC_1 &pcfg_pull_none>;
+                       };
+
+                       sdio_cd: sdio-cd {
+                               rockchip,pins = <3 18 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdio_wp: sdio-wp {
+                               rockchip,pins = <3 19 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdio_int: sdio-int {
+                               rockchip,pins = <3 20 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdio_pwr: sdio-pwr {
+                               rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+               };
+
                i2c0 {
                        i2c0_xfer: i2c0-xfer {
                                rockchip,pins =