Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx7-colibri: move and rename USB Host power regulator

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>

authored by

Stefan Agner and committed by
Shawn Guo
7e81cb3d 4d9a3877

+13 -13
+11
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi
··· 70 70 regulator-min-microvolt = <5000000>; 71 71 regulator-max-microvolt = <5000000>; 72 72 }; 73 + 74 + reg_usbh_vbus: regulator-usbh-vbus { 75 + compatible = "regulator-fixed"; 76 + pinctrl-names = "default"; 77 + pinctrl-0 = <&pinctrl_usbh_reg>; 78 + regulator-name = "VCC_USB[1-4]"; 79 + regulator-min-microvolt = <5000000>; 80 + regulator-max-microvolt = <5000000>; 81 + gpio = <&gpio4 7 GPIO_ACTIVE_LOW>; 82 + vin-supply = <&reg_5v0>; 83 + }; 73 84 }; 74 85 75 86 &bl {
+1 -1
arch/arm/boot/dts/imx7-colibri.dtsi
··· 559 559 >; 560 560 }; 561 561 562 - pinctrl_usbotg2_reg: gpio-usbotg2-vbus { 562 + pinctrl_usbh_reg: gpio-usbh-vbus { 563 563 fsl,pins = < 564 564 MX7D_PAD_UART3_CTS_B__GPIO4_IO7 0x14 /* SODIMM 129 USBH PEN */ 565 565 >;
+1 -12
arch/arm/boot/dts/imx7d-colibri-eval-v3.dts
··· 48 48 model = "Toradex Colibri iMX7D on Colibri Evaluation Board V3"; 49 49 compatible = "toradex,colibri-imx7d-eval-v3", "toradex,colibri-imx7d", 50 50 "fsl,imx7d"; 51 - 52 - reg_usb_otg2_vbus: regulator-usb-otg2-vbus { 53 - compatible = "regulator-fixed"; 54 - pinctrl-names = "default"; 55 - pinctrl-0 = <&pinctrl_usbotg2_reg>; 56 - regulator-name = "VCC_USB[1-4]"; 57 - regulator-min-microvolt = <5000000>; 58 - regulator-max-microvolt = <5000000>; 59 - gpio = <&gpio4 7 GPIO_ACTIVE_LOW>; 60 - vin-supply = <&reg_5v0>; 61 - }; 62 51 }; 63 52 64 53 &usbotg2 { 65 - vbus-supply = <&reg_usb_otg2_vbus>; 54 + vbus-supply = <&reg_usbh_vbus>; 66 55 status = "okay"; 67 56 };