]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
arm64: dts: hi3798cv200: add SD card support
authorShawn Guo <shawn.guo@linaro.org>
Sun, 15 Oct 2017 03:04:47 +0000 (11:04 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Wed, 20 Dec 2017 14:59:39 +0000 (14:59 +0000)
It adds device mmc@9820000 which is used as SD card on poplar board.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts
arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi

index a6fd13389f8d1547677381e958dec93fdc45f397..4d5d644abb126a9c4bc7e602b04ae82d80c050c0 100644 (file)
        status = "okay";
 };
 
+&sd0 {
+       bus-width = <4>;
+       cap-sd-highspeed;
+       status = "okay";
+};
+
 &spi0 {
        status = "okay";
        label = "LS-SPI0";
index 75865f8a862a9bfd423dafccc417944dcb3ce633..962bd79139e4804ee9dc4ca18cabe5775926a7c6 100644 (file)
                        status = "disabled";
                };
 
+               sd0: mmc@9820000 {
+                       compatible = "snps,dw-mshc";
+                       reg = <0x9820000 0x10000>;
+                       interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&crg HISTB_SDIO0_CIU_CLK>,
+                                <&crg HISTB_SDIO0_BIU_CLK>;
+                       clock-names = "ciu", "biu";
+                       resets = <&crg 0x9c 4>;
+                       reset-names = "reset";
+                       status = "disabled";
+               };
+
                emmc: mmc@9830000 {
                        compatible = "snps,dw-mshc";
                        reg = <0x9830000 0x10000>;