From: Magnus Damm
Add support for the on-board voltage regulator hooked up to GPIO3_20
on r8a7779 Marzen. The board schematics describes the regulator as U4
TPS2110A. Input wise, U4 has D0 fixed to ground, D1 tied to GPIO3_20
while IN1 is fixed to 3.3V and IN2 is fixed to 1.8V. OUT goes to the
pull-ups for the data pins of SDHI0.
Signed-off-by: Magnus Damm
---
arch/arm/boot/dts/r8a7779-marzen.dts | 14 ++
1 file changed, 14 insertions(+)
--- 0001/arch/arm/boot/dts/r8a7779-marzen.dts
+++ work/arch/arm/boot/dts/r8a7779-marzen.dts 2018-02-19 21:21:14.400607110
+0900
@@ -42,6 +42,19 @@
regulator-always-on;
};
+ vccq_sdhi0: regulator-vccq-sdhi0 {
+ compatible = "regulator-gpio";
+
+ regulator-name = "SDHI0 VccQ";
+ regulator-min-microvolt = <180>;
+ regulator-max-microvolt = <330>;
+
+ gpios = < 20 GPIO_ACTIVE_HIGH>;
+ gpios-states = <1>;
+ states = <330 1
+ 180 0>;
+ };
+
ethernet@1800 {
compatible = "smsc,lan9220", "smsc,lan9115";
reg = <0x1800 0x100>;
@@ -243,6 +256,7 @@
pinctrl-names = "default";
vmmc-supply = <>;
+ vqmmc-supply = <_sdhi0>;
bus-width = <4>;
status = "okay";
};