diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2017-10-14 23:04:47 -0400 |
---|---|---|
committer | Wei Xu <xuwei5@hisilicon.com> | 2017-12-20 09:59:39 -0500 |
commit | 4dcf0f9a6efcfc3763c50f73589da2781ade6f70 (patch) | |
tree | 6ef4bbc8dceaf40e56458bcdba2dbc9087edd42a | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) |
arm64: dts: hi3798cv200: add SD card support
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>
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts | 6 | ||||
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts index a6fd13389f8d..4d5d644abb12 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts | |||
@@ -146,6 +146,12 @@ | |||
146 | status = "okay"; | 146 | status = "okay"; |
147 | }; | 147 | }; |
148 | 148 | ||
149 | &sd0 { | ||
150 | bus-width = <4>; | ||
151 | cap-sd-highspeed; | ||
152 | status = "okay"; | ||
153 | }; | ||
154 | |||
149 | &spi0 { | 155 | &spi0 { |
150 | status = "okay"; | 156 | status = "okay"; |
151 | label = "LS-SPI0"; | 157 | label = "LS-SPI0"; |
diff --git a/arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi b/arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi index 75865f8a862a..962bd79139e4 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi | |||
@@ -192,6 +192,18 @@ | |||
192 | status = "disabled"; | 192 | status = "disabled"; |
193 | }; | 193 | }; |
194 | 194 | ||
195 | sd0: mmc@9820000 { | ||
196 | compatible = "snps,dw-mshc"; | ||
197 | reg = <0x9820000 0x10000>; | ||
198 | interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; | ||
199 | clocks = <&crg HISTB_SDIO0_CIU_CLK>, | ||
200 | <&crg HISTB_SDIO0_BIU_CLK>; | ||
201 | clock-names = "ciu", "biu"; | ||
202 | resets = <&crg 0x9c 4>; | ||
203 | reset-names = "reset"; | ||
204 | status = "disabled"; | ||
205 | }; | ||
206 | |||
195 | emmc: mmc@9830000 { | 207 | emmc: mmc@9830000 { |
196 | compatible = "snps,dw-mshc"; | 208 | compatible = "snps,dw-mshc"; |
197 | reg = <0x9830000 0x10000>; | 209 | reg = <0x9830000 0x10000>; |