Commit ebe3ae29 authored by Andre Przywara's avatar Andre Przywara Committed by Maxime Ripard

arm64: allwinner: pine64: add MMC support

All Pine64 boards connect an micro-SD card slot to the first MMC
controller.
Enable the respective DT node and specify the (always-on) regulator
and card-detect pin.
As a micro-SD slot does not feature a write-protect switch, we disable
this feature.
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 22be992f
...@@ -44,6 +44,8 @@ ...@@ -44,6 +44,8 @@
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Pine64"; model = "Pine64";
compatible = "pine64,pine64", "allwinner,sun50i-a64"; compatible = "pine64,pine64", "allwinner,sun50i-a64";
...@@ -55,6 +57,13 @@ aliases { ...@@ -55,6 +57,13 @@ aliases {
chosen { chosen {
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
reg_vcc3v3: vcc3v3 {
compatible = "regulator-fixed";
regulator-name = "vcc3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
}; };
&ehci1 { &ehci1 {
...@@ -71,6 +80,17 @@ &i2c1_pins { ...@@ -71,6 +80,17 @@ &i2c1_pins {
bias-pull-up; bias-pull-up;
}; };
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <&reg_vcc3v3>;
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
cd-inverted;
disable-wp;
bus-width = <4>;
status = "okay";
};
&ohci1 { &ohci1 {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment