diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2016-08-31 00:24:41 +0200 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2016-09-05 14:32:42 +0200 |
commit | 0c157ad23bb02fbda8b9cee82941d7c5ecac26f1 (patch) | |
tree | 6b28c9345c31106a4809d7c704fee2c568bed8f7 /arch/arm/boot | |
parent | ARM: dts: wheat: add CAN support (diff) | |
download | linux-0c157ad23bb02fbda8b9cee82941d7c5ecac26f1.tar.xz linux-0c157ad23bb02fbda8b9cee82941d7c5ecac26f1.zip |
ARM: dts: wheat: add SDHI0 support
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>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/r8a7792-wheat.dts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a7792-wheat.dts b/arch/arm/boot/dts/r8a7792-wheat.dts index 65d13c83d424..ff37de35c57c 100644 --- a/arch/arm/boot/dts/r8a7792-wheat.dts +++ b/arch/arm/boot/dts/r8a7792-wheat.dts @@ -11,6 +11,7 @@ /dts-v1/; #include "r8a7792.dtsi" +#include <dt-bindings/gpio/gpio.h> / { model = "Wheat"; @@ -54,6 +55,17 @@ 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 { @@ -86,6 +98,11 @@ groups = "can1_data"; function = "can1"; }; + + sdhi0_pins: sdhi0 { + groups = "sdhi0_data4", "sdhi0_ctrl"; + function = "sdhi0"; + }; }; &scif0 { @@ -108,3 +125,12 @@ status = "okay"; }; + +&sdhi0 { + pinctrl-0 = <&sdhi0_pins>; + pinctrl-names = "default"; + + vmmc-supply = <&vcc_sdhi0>; + cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>; + status = "okay"; +}; |