[U-Boot] [PATCH 09/25] ARM: dts: sun7i: Add mmc0 node for Ainol AW1
Jagan Teki
jagan at amarulasolutions.com
Mon Jul 16 08:19:40 UTC 2018
Since SUN7I moved to DM_MMC, we need to have mmc node
in Ainol AW1 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/sun7i-a20-ainol-aw1.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm/dts/sun7i-a20-ainol-aw1.dts b/arch/arm/dts/sun7i-a20-ainol-aw1.dts
index 57fe0066cb..3831adc88d 100644
--- a/arch/arm/dts/sun7i-a20-ainol-aw1.dts
+++ b/arch/arm/dts/sun7i-a20-ainol-aw1.dts
@@ -7,6 +7,9 @@
/dts-v1/;
#include "sun7i-a20.dtsi"
+#include "sunxi-common-regulators.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "Ainol AW1";
@@ -21,6 +24,16 @@
};
};
+&mmc0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
+ vmmc-supply = <®_vcc3v3>;
+ bus-width = <4>;
+ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
+ cd-inverted;
+ status = "okay";
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins_a>;
--
2.17.1
More information about the U-Boot
mailing list