ARM: dts: imx6ul-kontron-n6x1x-s: Add vbus-supply and overcurrent polarity to usb...
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 4 Nov 2019 11:54:16 +0000 (11:54 +0000)
committerShawn Guo <shawnguo@kernel.org>
Mon, 4 Nov 2019 14:34:08 +0000 (22:34 +0800)
To silence the warnings shown by the driver at boot time, we add a
fixed regulator for the 5V supply of usbotg2 and specify the polarity
of the overcurrent signal for usbotg1.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6ul-kontron-n6x1x-s.dtsi

index 93a0f0c..5725e5f 100644 (file)
                regulator-max-microvolt = <3300000>;
        };
 
+       reg_5v: regulator-5v {
+               compatible = "regulator-fixed";
+               regulator-name = "5v";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+       };
+
        reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
                compatible = "regulator-fixed";
                regulator-name = "usb_otg1_vbus";
        srp-disable;
        hnp-disable;
        adp-disable;
+       over-current-active-low;
        vbus-supply = <&reg_usb_otg1_vbus>;
        status = "okay";
 };
 &usbotg2 {
        dr_mode = "host";
        disable-over-current;
+       vbus-supply = <&reg_5v>;
        status = "okay";
 };