Skip to contentSkip to conversation

ARM: dts: sun8i-q8-common: Add support for USB wifi controllers

PATCH New Hans de Goede 2 participants 2 messages Jun 15, 2016 – Jun 16, 2016

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

PATCH 1/1 ARM: dts: sun8i-q8-common: Add support for USB wifi controllers

Some of the sun8i q8 boards have an usb wifi controller, on other variants this will result in an used usb root-hub, but the best way to deal with wifi on this boards is to simply let the kernel auto-detect usb or sdio wifi controllers.

This has been tested on an a23 based q8 tablet with a RTL8188ETV wifi controller.

---
 arch/arm/boot/dts/sun8i-q8-common.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/sun8i-q8-common.dtsi +11 -0
index 991087f..f3f4ce0 100644
@@ -63,6 +63,10 @@
 	};
 };
 
+&ehci0 {
+	status  = "okay";
+};
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_q8>;
@@ -171,6 +175,12 @@
 	regulator-name = "vcc-dram";
 };
 
+&reg_dldo1 {
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-wifi";
+};
+
 &reg_drivevbus {
 	regulator-name = "usb0-vbus";
 	status = "okay";
@@ -205,5 +215,6 @@
 	usb0_id_det-gpio = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
 	usb0_vbus_power-supply = <&usb_power_supply>;
 	usb0_vbus-supply = <&reg_drivevbus>;
+	usb1_vbus-supply = <&reg_dldo1>;
 	status = "okay";
 };
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 ARM: dts: sun8i-q8-common: Add support for USB wifi controllers

Quoted 9 lines · Hans de Goede

Some of the sun8i q8 boards have an usb wifi controller, on other variants this will result in an used usb root-hub, but the best way to deal with wifi on this boards is to simply let the kernel auto-detect usb or sdio wifi controllers.

This has been tested on an a23 based q8 tablet with a RTL8188ETV wifi controller.

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/20160616/1ff6172a/attachment.sig>