LF-835-2 ARM: dts: imx7ulp-evk: add pinctrl for suspend
authorPeter Chen <peter.chen@nxp.com>
Mon, 20 Jan 2020 02:04:43 +0000 (10:04 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:22:10 +0000 (11:22 +0800)
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@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
arch/arm/boot/dts/imx7ulp-evk.dts

index 2e3c453..542ee03 100644 (file)
 
                reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
                        compatible = "regulator-fixed";
-                       pinctrl-names = "default";
+                       pinctrl-names = "default", "sleep";
                        pinctrl-0 = <&pinctrl_usbotg1_vbus>;
+                       pinctrl-1 = <&pinctrl_usbotg1_vbus>;
                        regulator-name = "usb_otg1_vbus";
                        regulator-min-microvolt = <5000000>;
                        regulator-max-microvolt = <5000000>;
 
 &usbotg1 {
        vbus-supply = <&reg_usb_otg1_vbus>;
-       pinctrl-names = "default";
+       pinctrl-names = "default", "sleep";
        pinctrl-0 = <&pinctrl_usbotg1_id>;
+       pinctrl-1 = <&pinctrl_usbotg1_id>;
        srp-disable;
        hnp-disable;
        adp-disable;