ARM: dts: imx7-colibri: move and rename USB Host power regulator
authorStefan Agner <stefan@agner.ch>
Tue, 19 Dec 2017 18:10:30 +0000 (19:10 +0100)
committerShawn Guo <shawnguo@kernel.org>
Tue, 26 Dec 2017 08:15:44 +0000 (16:15 +0800)
The Colibri default which enables USB Host power is not necessarily
tied to the OTG2 controller, some carrier board use the pin to
control USB power for both controllers. Hence name the pinctrl
group more generic.

Also move the regulator to the generic eval-v3 device tree since
the regulator is always on the carrier board. In the Colibri iMX7S
case the regulator is just not used.  This allows to reuse the
regulator in a upcoming SKU Colibri iMX7D 1GB with eMMC.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi
arch/arm/boot/dts/imx7-colibri.dtsi
arch/arm/boot/dts/imx7d-colibri-eval-v3.dts

index a2e5cbdc98430a31bf89982e08a2e8fcb1f58a1a..a4027bd600f2412951e547277d1258b63018c500 100644 (file)
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
        };
+
+       reg_usbh_vbus: regulator-usbh-vbus {
+               compatible = "regulator-fixed";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_usbh_reg>;
+               regulator-name = "VCC_USB[1-4]";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gpio4 7 GPIO_ACTIVE_LOW>;
+               vin-supply = <&reg_5v0>;
+       };
 };
 
 &bl {
index bb5bf94f1a3295f38ca5497a1e11e1a8646e1045..60ea7557d8c9805981abfb68937f405d9e142385 100644 (file)
                >;
        };
 
-       pinctrl_usbotg2_reg: gpio-usbotg2-vbus {
+       pinctrl_usbh_reg: gpio-usbh-vbus {
                fsl,pins = <
                        MX7D_PAD_UART3_CTS_B__GPIO4_IO7 0x14 /* SODIMM 129 USBH PEN */
                >;
index a608a14d8c8556afbb5f8bf92157250117af82d2..136e11ab48936ea61f95f7d12bef3c2f683c84bd 100644 (file)
        model = "Toradex Colibri iMX7D on Colibri Evaluation Board V3";
        compatible = "toradex,colibri-imx7d-eval-v3", "toradex,colibri-imx7d",
                     "fsl,imx7d";
-
-       reg_usb_otg2_vbus: regulator-usb-otg2-vbus {
-               compatible = "regulator-fixed";
-               pinctrl-names = "default";
-               pinctrl-0 = <&pinctrl_usbotg2_reg>;
-               regulator-name = "VCC_USB[1-4]";
-               regulator-min-microvolt = <5000000>;
-               regulator-max-microvolt = <5000000>;
-               gpio = <&gpio4 7 GPIO_ACTIVE_LOW>;
-               vin-supply = <&reg_5v0>;
-       };
 };
 
 &usbotg2 {
-       vbus-supply = <&reg_usb_otg2_vbus>;
+       vbus-supply = <&reg_usbh_vbus>;
        status = "okay";
 };