Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e572844b authored by Roman Byshko's avatar Roman Byshko Committed by Maxime Ripard
Browse files

ARM: dtsi: sunxi: add common VBUS regulator



Until now the regulator nodes for powering USB VBUS
existed only for the two host controllers. Now the regulator
is added for USB OTG too.

Signed-off-by: default avatarRoman Byshko <rbyshko@gmail.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 9ce42e46
Loading
Loading
Loading
Loading
+19 −0
Original line number Original line Diff line number Diff line
@@ -57,6 +57,13 @@
				allwinner,pull = <0>;
				allwinner,pull = <0>;
			};
			};


			usb0_vbus_pin_a: usb0_vbus_pin@0 {
				allwinner,pins = "PB9";
				allwinner,function = "gpio_out";
				allwinner,drive = <0>;
				allwinner,pull = <0>;
			};

			usb1_vbus_pin_a: usb1_vbus_pin@0 {
			usb1_vbus_pin_a: usb1_vbus_pin@0 {
				allwinner,pins = "PH6";
				allwinner,pins = "PH6";
				allwinner,function = "gpio_out";
				allwinner,function = "gpio_out";
@@ -85,6 +92,18 @@
		status = "disabled";
		status = "disabled";
	};
	};


	reg_usb0_vbus: usb0-vbus {
		compatible = "regulator-fixed";
		pinctrl-names = "default";
		pinctrl-0 = <&usb0_vbus_pin_a>;
		regulator-name = "usb0-vbus";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		enable-active-high;
		gpio = <&pio 1 9 0>;
		status = "disabled";
	};

	reg_usb1_vbus: usb1-vbus {
	reg_usb1_vbus: usb1-vbus {
		compatible = "regulator-fixed";
		compatible = "regulator-fixed";
		pinctrl-names = "default";
		pinctrl-names = "default";