Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: shmobile: silk: add SDHI1 DT support

Define the SILK board dependent part of the SDHI1 (connected to micro-SD
slot) device nodes along with the necessary voltage regulators.

Based on the original patch by Vladimir Barinov
<vladimir.barinov@cogentembedded.com>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

authored by

Sergei Shtylyov and committed by
Simon Horman
761b11e1 5d2ac865

+40
+40
arch/arm/boot/dts/r8a7794-silk.dts
··· 12 12 13 13 /dts-v1/; 14 14 #include "r8a7794.dtsi" 15 + #include <dt-bindings/gpio/gpio.h> 15 16 16 17 / { 17 18 model = "SILK"; ··· 39 38 regulator-max-microvolt = <3300000>; 40 39 regulator-boot-on; 41 40 regulator-always-on; 41 + }; 42 + 43 + vcc_sdhi1: regulator@3 { 44 + compatible = "regulator-fixed"; 45 + 46 + regulator-name = "SDHI1 Vcc"; 47 + regulator-min-microvolt = <3300000>; 48 + regulator-max-microvolt = <3300000>; 49 + 50 + gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>; 51 + enable-active-high; 52 + }; 53 + 54 + vccq_sdhi1: regulator@4 { 55 + compatible = "regulator-gpio"; 56 + 57 + regulator-name = "SDHI1 VccQ"; 58 + regulator-min-microvolt = <1800000>; 59 + regulator-max-microvolt = <3300000>; 60 + 61 + gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>; 62 + gpios-states = <1>; 63 + states = <3300000 1 64 + 1800000 0>; 42 65 }; 43 66 }; 44 67 ··· 94 69 mmcif0_pins: mmcif0 { 95 70 renesas,groups = "mmc_data8", "mmc_ctrl"; 96 71 renesas,function = "mmc"; 72 + }; 73 + 74 + sdhi1_pins: sd1 { 75 + renesas,groups = "sdhi1_data4", "sdhi1_ctrl"; 76 + renesas,function = "sdhi1"; 97 77 }; 98 78 99 79 qspi_pins: spi0 { ··· 174 144 vqmmc-supply = <&d3_3v>; 175 145 bus-width = <8>; 176 146 non-removable; 147 + status = "okay"; 148 + }; 149 + 150 + &sdhi1 { 151 + pinctrl-0 = <&sdhi1_pins>; 152 + pinctrl-names = "default"; 153 + 154 + vmmc-supply = <&vcc_sdhi1>; 155 + vqmmc-supply = <&vccq_sdhi1>; 156 + cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; 177 157 status = "okay"; 178 158 }; 179 159