Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e320feb authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Maxime Ripard
Browse files

ARM: dts: sun9i: Enable mmc0 on A80 Optimus Board



Enable the micro-sd slot on the A80 Optimus Board, which is connected to
mmc0. This adds the card-detect gpio and enables mmc0.

Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 10eb98b1
Loading
Loading
Loading
Loading
+18 −0
Original line number Original line Diff line number Diff line
@@ -49,6 +49,7 @@


/dts-v1/;
/dts-v1/;
#include "sun9i-a80.dtsi"
#include "sun9i-a80.dtsi"
#include "sunxi-common-regulators.dtsi"


#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>
@@ -100,6 +101,23 @@
		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
	};
	};

	mmc0_cd_pin_optimus: mmc0_cd_pin@0 {
		allwinner,pins = "PH18";
		allwinner,function = "gpio_in";
		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
	};
};

&mmc0 {
	pinctrl-names = "default";
	pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin_optimus>;
	vmmc-supply = <&reg_vcc3v0>;
	bus-width = <4>;
	cd-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH8 */
	cd-inverted;
	status = "okay";
};
};


&uart0 {
&uart0 {