arm64: allwinner: a64-sopine: Add cd-gpios to mmc0 node
authorEmmanuel Vadot <manu@freebsd.org>
Wed, 20 Jun 2018 09:30:55 +0000 (11:30 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 22 Jun 2018 07:43:02 +0000 (09:43 +0200)
The card detect GPIO for Sopine and Pine64-LTS is PF6.
Add this to the dts.

Signed-off-by: Emmanuel Vadot <manu@freebsd.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi

index b94f93c..6723b86 100644 (file)
@@ -45,6 +45,8 @@
 
 #include "sun50i-a64.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 &mmc0 {
        pinctrl-names = "default";
        pinctrl-0 = <&mmc0_pins>;
@@ -52,6 +54,7 @@
        non-removable;
        disable-wp;
        bus-width = <4>;
+       cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
        status = "okay";
 };