Skip to contentSkip to conversation

ARM64: dts: meson-gxbb-nexbox-a95x: Enable USB Nodes

PATCH New Peter Korsgaard 3 participants 3 messages Oct 5, 2017 – Oct 6, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM64: dts: meson-gxbb-nexbox-a95x: Enable USB Nodes

Enable both gxbb USB controllers and add a 5V regulator for the OTG port VBUS, similar to p20x.

---
 .../boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts    | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts +29 -0
index 38dfdde5c147..60cd9c3b11c8 100644
@@ -88,6 +88,18 @@
 		};
 	};
 
+	usb_pwr: regulator-usb-pwrs {
+		compatible = "regulator-fixed";
+
+		regulator-name = "USB_PWR";
+
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+
+		gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
+
 	vddio_card: gpio-regulator {
 		compatible = "regulator-gpio";
 
@@ -294,3 +306,20 @@
 	pinctrl-0 = <&uart_ao_a_pins>;
 	pinctrl-names = "default";
 };
+
+&usb0_phy {
+	status = "okay";
+	phy-supply = <&usb_pwr>;
+};
+
+&usb1_phy {
+	status = "okay";
+};
+
+&usb0 {
+	status = "okay";
+};
+
+&usb1 {
+	status = "okay";
+};
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 ARM64: dts: meson-gxbb-nexbox-a95x: Enable USB Nodes

Quoted 43 lines · Peter Korsgaard

Enable both gxbb USB controllers and add a 5V regulator for the OTG port VBUS, similar to p20x.

---
 .../boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts    | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts +19 -0
index 38dfdde5c147..60cd9c3b11c8 100644
@@ -88,6 +88,18 @@
 		};
 	};
 
+	usb_pwr: regulator-usb-pwrs {
+		compatible = "regulator-fixed";
+
+		regulator-name = "USB_PWR";
+
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+
+		gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
+
 	vddio_card: gpio-regulator {
 		compatible = "regulator-gpio";
 
@@ -294,3 +306,20 @@
 	pinctrl-0 = <&uart_ao_a_pins>;
 	pinctrl-names = "default";
 };
+
+&usb0_phy {
+	status = "okay";
+	phy-supply = <&usb_pwr>;
+};
+
+&usb1_phy {

arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts line 325

Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts +10 -0
+	status = "okay";
+};
+
+&usb0 {
+	status = "okay";
+};
+
+&usb1 {
+	status = "okay";
+};

Indeed, I forgot to add USB to this board,
Thanks

maintainer Applied
#2 lore raw

PATCH 1/1 ARM64: dts: meson-gxbb-nexbox-a95x: Enable USB Nodes

Quoted 5 lines · Neil Armstrong
Quoted 4 lines · Peter Korsgaard

Enable both gxbb USB controllers and add a 5V regulator for the OTG port VBUS, similar to p20x.

[...]

Quoted 4 lines

Indeed, I forgot to add USB to this board,
Thanks

Applied to v4.15/dt64,

Thanks,

Kevin