arm64: dts: imx8mn-somdevices.dtsi: Set proper configuration to usb1 (otg).
authorJosep Orga <jorga@somdevices.com>
Mon, 11 Oct 2021 07:28:01 +0000 (09:28 +0200)
committerJosep Orga <jorga@somdevices.com>
Mon, 11 Oct 2021 11:29:53 +0000 (13:29 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi

index a794c2d..45914e0 100644 (file)
                off-on-delay-us = <12000>;
                enable-active-high;
        };
+
+       reg_usb1: regulator-usb1 {
+               compatible = "regulator-fixed";
+               regulator-name = "vbus1_regulator";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &A53_0 {
 
 &usbotg1 {
        dr_mode = "otg";
-       hnp-disable;
-       srp-disable;
-       adp-disable;
-       usb-role-switch;
-       disable-over-current;
-       samsung,picophy-pre-emp-curr-control = <3>;
-       samsung,picophy-dc-vol-level-adjust = <7>;
+       over-current-active-low;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usbotg1>;
+       vbus-supply = <&reg_usb1>;
        status = "okay";
 };
 
                >;
        };
 
+       pinctrl_usbotg1: usbotg1grp {
+               fsl,pins = <
+                       MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12              0x16
+                       MX8MN_IOMUXC_GPIO1_IO13_USB1_OTG_OC             0x156
+               >;
+       };
+
        pinctrl_usdhc1_gpio: usdhc1grpgpio {
                fsl,pins = <
                        MX8MN_IOMUXC_SD1_RESET_B_GPIO2_IO10     0x41