Skip to content

Commit 3463f32

Browse files
wensmripard
authored andcommitted
ARM: dts: sun5i: q8-common: Enable USB-based WiFi
The early A13 Q8 tablets all use a Realtek WiFi module connected to USB1. The module is powered by AXP209's LDO3 at 3.3V. Move the related settings from sun5i-a13-q8-tablet.dts to sun5i-q8-common.dtsi, for all q8-based tablets. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 04c85ec commit 3463f32

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

arch/arm/boot/dts/sun5i-a13-q8-tablet.dts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,3 @@
4848
model = "Q8 A13 Tablet";
4949
compatible = "allwinner,q8-a13", "allwinner,sun5i-a13";
5050
};
51-
52-
&reg_ldo3 {
53-
regulator-min-microvolt = <3300000>;
54-
regulator-max-microvolt = <3300000>;
55-
regulator-name = "vcc-wifi";
56-
};
57-
58-
&usbphy {
59-
usb1_vbus-supply = <&reg_ldo3>;
60-
};

arch/arm/boot/dts/sun5i-q8-common.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@
191191
regulator-name = "avcc";
192192
};
193193

194+
&reg_ldo3 {
195+
regulator-min-microvolt = <3300000>;
196+
regulator-max-microvolt = <3300000>;
197+
regulator-name = "vcc-wifi";
198+
};
199+
194200
&reg_usb0_vbus {
195201
gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
196202
status = "okay";
@@ -231,5 +237,6 @@
231237
usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
232238
usb0_vbus_power-supply = <&usb_power_supply>;
233239
usb0_vbus-supply = <&reg_usb0_vbus>;
240+
usb1_vbus-supply = <&reg_ldo3>;
234241
status = "okay";
235242
};

0 commit comments

Comments
 (0)