1 From ebe3ae29c6314217edf40d9ee23c36d610ff0fb8 Mon Sep 17 00:00:00 2001
2 From: Andre Przywara <andre.przywara@arm.com>
3 Date: Tue, 10 Jan 2017 01:22:31 +0000
4 Subject: arm64: allwinner: pine64: add MMC support
6 All Pine64 boards connect an micro-SD card slot to the first MMC
8 Enable the respective DT node and specify the (always-on) regulator
10 As a micro-SD slot does not feature a write-protect switch, we disable
13 Signed-off-by: Andre Przywara <andre.przywara@arm.com>
14 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
15 Acked-by: Chen-Yu Tsai <wens@csie.org>
17 arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 20 ++++++++++++++++++++
18 1 file changed, 20 insertions(+)
20 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
21 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
24 #include "sun50i-a64.dtsi"
26 +#include <dt-bindings/gpio/gpio.h>
30 compatible = "pine64,pine64", "allwinner,sun50i-a64";
33 stdout-path = "serial0:115200n8";
36 + reg_vcc3v3: vcc3v3 {
37 + compatible = "regulator-fixed";
38 + regulator-name = "vcc3v3";
39 + regulator-min-microvolt = <3300000>;
40 + regulator-max-microvolt = <3300000>;
50 + pinctrl-names = "default";
51 + pinctrl-0 = <&mmc0_pins>;
52 + vmmc-supply = <®_vcc3v3>;
53 + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;