| From f49485d6ea1373146f832f0480f73620d5c343d6 Mon Sep 17 00:00:00 2001 |
| From: Magnus Damm <damm+renesas@opensource.se> |
| Date: Mon, 19 Feb 2018 21:37:58 +0900 |
| Subject: [PATCH 1112/1795] ARM: dts: marzen: Add SDHI0 VCCQ Regulator |
| |
| 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 <damm+renesas@opensource.se> |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| (cherry picked from commit 56bac953b15087dbced6951248ca05a6f0888831) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| arch/arm/boot/dts/r8a7779-marzen.dts | 14 ++++++++++++++ |
| 1 file changed, 14 insertions(+) |
| |
| diff --git a/arch/arm/boot/dts/r8a7779-marzen.dts b/arch/arm/boot/dts/r8a7779-marzen.dts |
| index 9412a86f9b30..4b9006bac3cb 100644 |
| --- a/arch/arm/boot/dts/r8a7779-marzen.dts |
| +++ b/arch/arm/boot/dts/r8a7779-marzen.dts |
| @@ -42,6 +42,19 @@ |
| regulator-always-on; |
| }; |
| |
| + vccq_sdhi0: regulator-vccq-sdhi0 { |
| + compatible = "regulator-gpio"; |
| + |
| + regulator-name = "SDHI0 VccQ"; |
| + regulator-min-microvolt = <1800000>; |
| + regulator-max-microvolt = <3300000>; |
| + |
| + gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>; |
| + gpios-states = <1>; |
| + states = <3300000 1 |
| + 1800000 0>; |
| + }; |
| + |
| ethernet@18000000 { |
| compatible = "smsc,lan9220", "smsc,lan9115"; |
| reg = <0x18000000 0x100>; |
| @@ -243,6 +256,7 @@ |
| pinctrl-names = "default"; |
| |
| vmmc-supply = <&fixedregulator3v3>; |
| + vqmmc-supply = <&vccq_sdhi0>; |
| bus-width = <4>; |
| status = "okay"; |
| }; |
| -- |
| 2.19.0 |
| |