[U-Boot] [PATCH 04/25] ARM: dts: sun4i: Add mmc0 node for iNet 3W

Jagan Teki jagan at amarulasolutions.com
Mon Jul 16 08:19:35 UTC 2018


Since SUN4I moved to DM_MMC, we need to have mmc node
in iNet 3W DT otherwise it will not probe.

Cc: Paul Kocialkowski <contact at paulk.fr>
Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
 arch/arm/dts/sun4i-a10-inet-3w.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/dts/sun4i-a10-inet-3w.dts b/arch/arm/dts/sun4i-a10-inet-3w.dts
index d0267ceee9..4168e2c0d0 100644
--- a/arch/arm/dts/sun4i-a10-inet-3w.dts
+++ b/arch/arm/dts/sun4i-a10-inet-3w.dts
@@ -7,6 +7,8 @@
 
 /dts-v1/;
 #include "sun4i-a10.dtsi"
+#include "sunxi-common-regulators.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "iNet 3W";
@@ -21,6 +23,13 @@
 	};
 };
 
+&mmc0 {
+	vmmc-supply = <&reg_vcc3v3>;
+	bus-width = <4>;
+	cd-gpios = <&pio 7 20 GPIO_ACTIVE_LOW>; /* PH20 */
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pins_a>;
-- 
2.17.1



More information about the U-Boot mailing list