ARM: dts: wheat: add SDHI0 support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 30 Aug 2016 22:24:41 +0000 (01:24 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 5 Sep 2016 12:32:42 +0000 (14:32 +0200)
Define the Wheat board dependent  part of  the SDHI0 (connected to the
micro-SD slot)  device node along with the necessary voltage regulator.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7792-wheat.dts

index 65d13c83d4243d84a9ef170828279e6cb2e31752..ff37de35c57c0921b50194b4910645dd990f3d54 100644 (file)
@@ -11,6 +11,7 @@
 
 /dts-v1/;
 #include "r8a7792.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Wheat";
                pinctrl-0 = <&lan89218_pins>;
                pinctrl-names = "default";
        };
+
+       vcc_sdhi0: regulator-vcc-sdhi0 {
+               compatible = "regulator-fixed";
+
+               regulator-name = "SDHI0 Vcc";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+
+               gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &extal_clk {
                groups = "can1_data";
                function = "can1";
        };
+
+       sdhi0_pins: sdhi0 {
+               groups = "sdhi0_data4", "sdhi0_ctrl";
+               function = "sdhi0";
+       };
 };
 
 &scif0 {
 
        status = "okay";
 };
+
+&sdhi0 {
+       pinctrl-0 = <&sdhi0_pins>;
+       pinctrl-names = "default";
+
+       vmmc-supply = <&vcc_sdhi0>;
+       cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>;
+       status = "okay";
+};
This page took 0.025919 seconds and 5 git commands to generate.