diff options
author | Xinwei Kong <kong.kongxinwei@hisilicon.com> | 2015-11-08 16:08:02 +0800 |
---|---|---|
committer | Xinwei Kong <kong.kongxinwei@hisilicon.com> | 2015-11-08 17:28:38 +0800 |
commit | d880643119ede4cf58c7e577d3f292ad61a7e341 (patch) | |
tree | 742aa1106bea5c7f6943cd7cc2be87b2a7b2f841 | |
parent | 8150568cbbe28dd2fad4f986110eda54fd851017 (diff) |
dts: hikey: add mmc dts file
Signed-off-by: Xinwei Kong <kong.kongxinwei@hisilicon.com>
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 33 | ||||
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 56 |
2 files changed, 86 insertions, 3 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 9e9e100b13cf..a84cf3065234 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -10,9 +10,9 @@ /memreserve/ 0x00000000 0x07400000; /memreserve/ 0x0740f000 0x1000; -#include "hi6220.dtsi" #include "hikey-pinctrl.dtsi" #include "hikey-gpio.dtsi" +#include "hi6220.dtsi" / { model = "HiKey Development Board"; @@ -25,6 +25,9 @@ aliases { serial0 = &uart0; serial3 = &uart3; + mshc0 = &dwmmc_0; + mshc1 = &dwmmc_1; + mshc2 = &dwmmc_2; }; chosen { @@ -67,4 +70,32 @@ status = "ok"; }; }; + + dwmmc_0: dwmmc0@f723d000 { + bus-width = <0x8>; + vmmc-supply = <&ldo19>; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_pmx_func &emmc_clk_cfg_func + &emmc_cfg_func &emmc_rst_cfg_func>; + }; + + dwmmc_1: dwmmc1@f723e000 { + bus-width = <0x4>; + disable-wp; + cd-gpios = <&gpio1 0 1>; + pinctrl-names = "default", "idle"; + pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>; + pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>; + }; + + dwmmc_2: dwmmc2@f723f000 { + bus-width = <0x4>; + broken-cd; + non-removable; + /* WL_EN */ + pinctrl-names = "default", "idle"; + pinctrl-0 = <&sdio_pmx_func &sdio_clk_cfg_func &sdio_cfg_func>; + pinctrl-1 = <&sdio_pmx_idle &sdio_clk_cfg_idle &sdio_cfg_idle>; + }; + }; diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index cc4545167912..44c6d6cef347 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -215,7 +215,7 @@ interrupts = <0 36 4>; clocks = <&clock_ao HI6220_UART0_PCLK>; clock-names = "apb_pclk"; - status = "ok"; + status = "disabled"; }; uart3: uart@f7113000 { @@ -242,6 +242,19 @@ status = "disabled"; }; + dma0: dma@f7370000 { + compatible = "hisilicon,k3-dma-1.0"; + reg = <0x0 0xf7370000 0x0 0x1000>; + #dma-cells = <1>; + dma-channels = <15>; + dma-requests = <32>; + interrupts = <0 84 4>; + clocks = <&clock_sys HI6220_EDMAC_ACLK>; + dma-no-cci; + dma-type = "hi6220_dma"; + status = "ok"; + }; + pmx0: pinmux@f7010000 { compatible = "pinctrl-single"; reg = <0x0 0xf7010000 0x0 0x27c>; @@ -796,6 +809,46 @@ }; }; + dwmmc_0: dwmmc0@f723d000 { + compatible = "hisilicon,hi6220-dw-mshc"; + num-slots = <0x1>; + board-mmc-bus-clk = <0x0>; + cap-mmc-highspeed; + non-removable; + reg = <0x0 0xf723d000 0x0 0x1000>; + interrupts = <0x0 0x48 0x4>; + clocks = <&clock_sys HI6220_MMC0_CIUCLK>, <&clock_sys HI6220_MMC0_CLK>; + clock-names = "ciu", "biu"; + vmmc-supply = <&ldo19>; + }; + + dwmmc_1: dwmmc1@f723e000 { + compatible = "hisilicon,hi6220-dw-mshc"; + num-slots = <0x1>; + board-mmc-bus-clk = <0x0>; + card-detect-delay = <200>; + hisilicon,peripheral-syscon = <&ao_ctrl>; + cap-sd-highspeed; + reg = <0x0 0xf723e000 0x0 0x1000>; + interrupts = <0x0 0x49 0x4>; + clocks = <&clock_sys HI6220_MMC1_CIUCLK>, <&clock_sys HI6220_MMC1_CLK>; + clock-names = "ciu", "biu"; + vqmmc-supply = <&ldo7>; + vmmc-supply = <&ldo10>; + }; + + dwmmc_2: dwmmc2@f723f000 { + compatible = "hisilicon,hisi-dw-mshc"; + num-slots = <0x1>; + board-mmc-bus-clk = <0x0>; + reg = <0x0 0xf723f000 0x0 0x1000>; + interrupts = <0x0 0x4a 0x4>; + #address-cells = <0x1>; + #size-cells = <0x0>; + clocks = <&clock_sys HI6220_MMC2_CIUCLK>, <&clock_sys HI6220_MMC2_CLK>; + clock-names = "ciu", "biu"; + }; + mtcmos { compatible = "hisilicon,hi6220-mtcmos-driver"; hisilicon,mtcmos-steady-us = <10>; @@ -813,5 +866,4 @@ hisilicon,ctrl-data = <2 0x1>; }; }; - }; |