]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm: dts: Add MMC nodes for HiKey board
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 27 Dec 2018 13:34:05 +0000 (19:04 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 15 Jan 2019 20:28:21 +0000 (15:28 -0500)
Add MMC nodes for HiKey board based on HI6220 SoC. There are three MMC
controllers in this SoC, first one used for eMMC, second one used
for SD card and third one is not used by u-boot.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/dts/hi6220-hikey-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/hi6220-hikey.dts
arch/arm/dts/hi6220.dtsi

diff --git a/arch/arm/dts/hi6220-hikey-u-boot.dtsi b/arch/arm/dts/hi6220-hikey-u-boot.dtsi
new file mode 100644 (file)
index 0000000..3113983
--- /dev/null
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * U-Boot additions
+ *
+ * Copyright (c) 2018 Linaro Ltd.
+ */
+
+&mmc0 {
+       u-boot,dm-pre-reloc;
+};
+
+&mmc1 {
+       u-boot,dm-pre-reloc;
+};
index 24f09257af00ebd451de67b10468aa13a9dbbaa8..d63929348bb30b04fe613b6d51669fab84560615 100644 (file)
        };
 };
 
+&mmc0 {
+       status = "okay";
+       non-removable;
+       bus-width = <8>;
+};
+
+&mmc1 {
+       status = "okay";
+       bus-width = <4>;
+};
+
 &uart2 {
        label = "LS-UART0";
 };
index a610ccb63463ccbbb2bf58ada4edf8f1796c71c2..501c8906fd61d38fbc5941f3be67a25bdcc1252f 100644 (file)
                        #clock-cells = <1>;
                };
 
+               mmc0: dwmmc@f723d000 {
+                       compatible = "hisilicon,hi6220-dw-mshc";
+                       reg = <0x0 0xf723d000 0x0 0x1000>;
+                       interrupts = <0x0 0x48 0x4>;
+                       clocks = <&sys_ctrl 2>, <&sys_ctrl 1>;
+                       clock-names = "ciu", "biu";
+                       status = "disabled";
+               };
+
+               mmc1: dwmmc@f723e000 {
+                       compatible = "hisilicon,hi6220-dw-mshc";
+                       reg = <0x0 0xf723e000 0x0 0x1000>;
+                       interrupts = <0x0 0x49 0x4>;
+                       clocks = <&sys_ctrl 4>, <&sys_ctrl 3>;
+                       clock-names = "ciu", "biu";
+                       status = "disabled";
+               };
+
                uart0: uart@f8015000 {  /* console */
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x0 0xf8015000 0x0 0x1000>;