Skip to contentSkip to conversation

ARM: dts: sun5i: q8-common: Enable USB-based WiFi

PATCH New Chen-Yu Tsai 2 participants 2 messages Jun 23, 2016

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

PATCH v2 1/1 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.

---
Changes since v1:

- Move the WiFi module settings from sun5i-a13-q8-tablet.dts

---
 arch/arm/boot/dts/sun5i-a13-q8-tablet.dts | 10 ----------
 arch/arm/boot/dts/sun5i-q8-common.dtsi    |  7 +++++++
 2 files changed, 7 insertions(+), 10 deletions(-)
arch/arm/boot/dts/sun5i-a13-q8-tablet.dts +0 -10
index 72e93acb5a9e..dce77825571d 100644
@@ -48,13 +48,3 @@
 	model = "Q8 A13 Tablet";
 	compatible = "allwinner,q8-a13", "allwinner,sun5i-a13";
 };
-
-&reg_ldo3 {
-	regulator-min-microvolt = <3300000>;
-	regulator-max-microvolt = <3300000>;
-	regulator-name = "vcc-wifi";
-};
-
-&usbphy {
-	usb1_vbus-supply = <&reg_ldo3>;
-};
arch/arm/boot/dts/sun5i-q8-common.dtsi +7 -0
index b6af9a498eda..a5de28d12b16 100644
@@ -191,6 +191,12 @@
 	regulator-name = "avcc";
 };
 
+&reg_ldo3 {
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-wifi";
+};
+
 &reg_usb0_vbus {
 	gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
 	status = "okay";
@@ -231,5 +237,6 @@
 	usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
 	usb0_vbus_power-supply = <&usb_power_supply>;
 	usb0_vbus-supply = <&reg_usb0_vbus>;
+	usb1_vbus-supply = <&reg_ldo3>;
 	status = "okay";
 };
Signature · 1 line
2.8.1
#1 lore raw

PATCH v2 1/1 ARM: dts: sun5i: q8-common: Enable USB-based WiFi

Quoted 7 lines · Chen-Yu Tsai

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.

Applied, thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160623/810d4e65/attachment.sig>