From 1211f491e0d1f9466323f69a90ab2517d5586513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= Date: Thu, 6 Jul 2017 10:57:55 +0200 Subject: [PATCH 021/391] ARM: dts: sun8i-a83t-tbs-a711: Add powerup/down support for the 3G modem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The modem needs tree gpios to be powered-up: - PL10 = reset - PL8 = On/Off - PL9 = vbat Because of that, the PL9 corresponds to the regulator's gpio whereas the PL8 (on/off) will be a power-gpio of the power sequence. Thanks to that, the modem is powered up: # lsusb Bus 001 Device 004: ID 19d2:ffeb Signed-off-by: Ondrej Jirman Signed-off-by: Mylène Josserand --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index 27fadde82..2929af321 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts @@ -123,7 +123,7 @@ reg_vmain: reg-vmain { regulator-name = "vmain"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; - gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; + gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */ enable-active-high; vin-supply = <®_vbat>; }; @@ -139,6 +139,17 @@ wifi_pwrseq: wifi_pwrseq { clocks = <&ac100_rtc 1>; clock-names = "ext_clock"; }; + + modem { + compatible = "zte,mg3732"; + char-device-name = "modem-power"; + + power-supply = <®_vmain>; + + enable-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */ + reset-gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */ + wakeup-gpios = <&r_pio 0 11 GPIO_ACTIVE_HIGH>; /* PL11 */ + }; }; &cpu0 { -- 2.35.3