* [PATCH] arm64: dts: hi3798cv200: add SD card support
@ 2017-10-15 3:04 Shawn Guo
2017-12-22 9:34 ` Wei Xu
0 siblings, 1 reply; 2+ messages in thread
From: Shawn Guo @ 2017-10-15 3:04 UTC (permalink / raw)
To: linux-arm-kernel
From: Shawn Guo <shawn.guo@linaro.org>
It adds device mmc at 9820000 which is used as SD card on poplar board.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts | 6 ++++++
arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi | 12 ++++++++++++
2 files changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts
index b9142871d6fe..e6fd9f296497 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts
@@ -146,6 +146,12 @@
status = "okay";
};
+&sd0 {
+ bus-width = <4>;
+ cap-sd-highspeed;
+ status = "okay";
+};
+
&spi0 {
status = "okay";
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 @@
status = "disabled";
};
+ sd0: mmc at 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 at 9830000 {
compatible = "snps,dw-mshc";
reg = <0x9830000 0x10000>;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] arm64: dts: hi3798cv200: add SD card support
2017-10-15 3:04 [PATCH] arm64: dts: hi3798cv200: add SD card support Shawn Guo
@ 2017-12-22 9:34 ` Wei Xu
0 siblings, 0 replies; 2+ messages in thread
From: Wei Xu @ 2017-12-22 9:34 UTC (permalink / raw)
To: linux-arm-kernel
Hi Shawn,
On 2017/10/15 4:04, Shawn Guo wrote:
> From: Shawn Guo <shawn.guo@linaro.org>
>
> It adds device mmc at 9820000 which is used as SD card on poplar board.
>
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Applied into hisilicon dt tree.
Thanks!
Best Regards,
Wei
> ---
> arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts | 6 ++++++
> arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi | 12 ++++++++++++
> 2 files changed, 18 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts
> index b9142871d6fe..e6fd9f296497 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts
> +++ b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts
> @@ -146,6 +146,12 @@
> status = "okay";
> };
>
> +&sd0 {
> + bus-width = <4>;
> + cap-sd-highspeed;
> + status = "okay";
> +};
> +
> &spi0 {
> status = "okay";
> 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 @@
> status = "disabled";
> };
>
> + sd0: mmc at 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 at 9830000 {
> compatible = "snps,dw-mshc";
> reg = <0x9830000 0x10000>;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-22 9:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-15 3:04 [PATCH] arm64: dts: hi3798cv200: add SD card support Shawn Guo
2017-12-22 9:34 ` Wei Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).