[PATCH 1/1] ARM: dts: imx7ulp-evk: add pinctrl for suspend
From: Peter Chen
Date: Sun Jan 19 2020 - 21:04:43 EST
For imx7ulp, the power of pinctrl is lost during the system
susupend, so we need to restore the pinctrl value after resume.
Add one group pinctrl for "sleep" for both id and vbus pinctrl.
Reviewed-by: Jun Li <jun.li@xxxxxxx>
Acked-by: Leonard Crestez <leonard.crestez@xxxxxxx>
Signed-off-by: Peter Chen <peter.chen@xxxxxxx>
Signed-off-by: Dong Aisheng <aisheng.dong@xxxxxxx>
---
arch/arm/boot/dts/imx7ulp-evk.dts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-=
evk.dts
index d67ca52042eb..3bf6bb071fa0 100644
--- a/arch/arm/boot/dts/imx7ulp-evk.dts
+++ b/arch/arm/boot/dts/imx7ulp-evk.dts
@@ -125,8 +125,9 @@
=20
reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
compatible =3D "regulator-fixed";
- pinctrl-names =3D "default";
+ pinctrl-names =3D "default", "sleep";
pinctrl-0 =3D <&pinctrl_usbotg1_vbus>;
+ pinctrl-1 =3D <&pinctrl_usbotg1_vbus>;
regulator-name =3D "usb_otg1_vbus";
regulator-min-microvolt =3D <5000000>;
regulator-max-microvolt =3D <5000000>;
@@ -402,8 +403,9 @@
=20
&usbotg1 {
vbus-supply =3D <®_usb_otg1_vbus>;
- pinctrl-names =3D "default";
+ pinctrl-names =3D "default", "sleep";
pinctrl-0 =3D <&pinctrl_usbotg1_id>;
+ pinctrl-1 =3D <&pinctrl_usbotg1_id>;
srp-disable;
hnp-disable;
adp-disable;
--=20
2.17.1
--=20
Thanks,
Peter Chen=