Skip to content

Commit

Permalink
arm64: dts: hi3798cv200: add SD card support
Browse files Browse the repository at this point in the history
It adds device mmc@9820000 which is used as SD card on poplar board.

Signed-off-by: Shawn Guo <[email protected]>
Signed-off-by: Wei Xu <[email protected]>
  • Loading branch information
shawnguo2 authored and joyxu committed Dec 20, 2017
1 parent 4fbd8d1 commit 4dcf0f9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@
status = "okay";
};

&sd0 {
bus-width = <4>;
cap-sd-highspeed;
status = "okay";
};

&spi0 {
status = "okay";
label = "LS-SPI0";
Expand Down
12 changes: 12 additions & 0 deletions arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,18 @@
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>;
Expand Down

0 comments on commit 4dcf0f9

Please sign in to comment.