1 From 40a0ec0fdb6a110d69151de5480148772877f267 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Thu, 26 Aug 2021 20:39:33 -0500
4 Subject: [PATCH 04/90] ARM: dts: sun6i: mixtile-loftq: Add USB1 VBUS regulator
6 This board is configured with CONFIG_USB1_VBUS_PIN="PH24", but no
7 regulator exists in its device tree. Add the regulator, so USB will
8 continue to work when the PHY driver switches to using the regulator
9 uclass instead of a GPIO.
11 Update the device tree here because it does not exist in Linux.
13 Signed-off-by: Samuel Holland <samuel@sholland.org>
15 arch/arm/dts/sun6i-a31-mixtile-loftq.dts | 17 +++++++++++++++++
16 1 file changed, 17 insertions(+)
18 --- a/arch/arm/dts/sun6i-a31-mixtile-loftq.dts
19 +++ b/arch/arm/dts/sun6i-a31-mixtile-loftq.dts
25 +#include <dt-bindings/gpio/gpio.h>
27 #include "sun6i-a31.dtsi"
32 stdout-path = "serial0:115200n8";
35 + reg_usb1_vbus: usb1-vbus {
36 + compatible = "regulator-fixed";
37 + regulator-name = "usb1-vbus";
38 + regulator-min-microvolt = <5000000>;
39 + regulator-max-microvolt = <5000000>;
41 + gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */
47 pinctrl-0 = <&uart0_ph_pins>;
52 + usb1_vbus-supply = <®_usb1_vbus>;