Skip to content

Commit 5a0803b

Browse files
bkrepokhilman
authored andcommitted
ARM64: dts: meson-gxbb-odroidc2: Enable USB Nodes
Enable both gxbb USB controller and add a 5V regulator for the OTG port VBUS Signed-off-by: Brian Kim <brian.kim@hardkernel.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
1 parent 3be2d9c commit 5a0803b

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

‎arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@
6464
reg = <0x0 0x0 0x0 0x80000000>;
6565
};
6666

67+
usb_otg_pwr: regulator-usb-pwrs {
68+
compatible = "regulator-fixed";
69+
70+
regulator-name = "USB_OTG_PWR";
71+
72+
regulator-min-microvolt = <5000000>;
73+
regulator-max-microvolt = <5000000>;
74+
75+
gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
76+
enable-active-high;
77+
};
78+
6779
leds {
6880
compatible = "gpio-leds";
6981
blue {
@@ -98,3 +110,20 @@
98110
pinctrl-0 = <&i2c_a_pins>;
99111
pinctrl-names = "default";
100112
};
113+
114+
&usb0_phy {
115+
status = "okay";
116+
phy-supply = <&usb_otg_pwr>;
117+
};
118+
119+
&usb1_phy {
120+
status = "okay";
121+
};
122+
123+
&usb0 {
124+
status = "okay";
125+
};
126+
127+
&usb1 {
128+
status = "okay";
129+
};

0 commit comments

Comments
 (0)