]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
ARM: sun7i: a20: cubietruck: Tie AXP209's USB power supply to USB PHY
authorChen-Yu Tsai <wens@csie.org>
Thu, 25 May 2017 07:31:38 +0000 (15:31 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 29 May 2017 06:51:40 +0000 (08:51 +0200)
The USB PHY can use either a GPIO pin or the PMIC's USB power supply
to sense VBUS. Since both options are available on the Cubietruck,
add the missing property for the USB power supply to the USB PHY node.

The device tree provides all usable options. Ultimately, which method
is used is up to the driver implementation.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun7i-a20-cubietruck.dts

index 8dbf732c7aa938bddf80b038c45a881e9d6be15f..bb510187602c1c2e43c01d43a210430f3317b70b 100644 (file)
        pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
        usb0_id_det-gpios = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */
        usb0_vbus_det-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
+       usb0_vbus_power-supply = <&usb_power_supply>;
        usb0_vbus-supply = <&reg_usb0_vbus>;
        usb1_vbus-supply = <&reg_usb1_vbus>;
        usb2_vbus-supply = <&reg_usb2_vbus>;