Skip to content

Commit eebf594

Browse files
Nicolas Frattarolimmind
authored andcommitted
arm64: dts: rockchip: theoretically enable Wi-Fi on ROCK 4D
The production version of the ROCK 4D appears to sport a AICSEMI AIC8800D80 USB Wi-Fi + BT chipset. This chip does not yet have a mainline driver. Add the necessary rfkill node and wifi regulator node to at least make it show up in lsusb output. The regulator is set as always-on, as like 2 hours deep into debugging why onboard_usb_dev.c wouldn't try enabling the regulator the device needs to actually show up and thus bind to onboard_usb_dev.c, I decided that it's not worth the effort. Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Link: https://lore.kernel.org/r/20250630-rock4d-reg-usb-wifi-v1-3-1057f412d98c@collabora.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 787595b commit eebf594

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
};
3838
};
3939

40+
rfkill {
41+
compatible = "rfkill-gpio";
42+
pinctrl-names = "default";
43+
pinctrl-0 = <&wifi_en_h>;
44+
radio-type = "wlan";
45+
shutdown-gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>;
46+
};
47+
4048
leds: leds {
4149
compatible = "gpio-leds";
4250
pinctrl-names = "default";
@@ -159,6 +167,19 @@
159167
vin-supply = <&vcc_5v0_sys>;
160168
};
161169

170+
vcc_3v3_wifi: regulator-vcc-3v3-wifi {
171+
compatible = "regulator-fixed";
172+
enable-active-high;
173+
gpios = <&gpio2 RK_PC7 GPIO_ACTIVE_HIGH>;
174+
pinctrl-names = "default";
175+
pinctrl-0 = <&usb_wifi_pwr>;
176+
regulator-always-on;
177+
regulator-min-microvolt = <3300000>;
178+
regulator-max-microvolt = <3300000>;
179+
regulator-name = "vcc_3v3_wifi";
180+
vin-supply = <&vcc_3v3_s3>;
181+
};
182+
162183
vcc_5v0_device: regulator-vcc-5v0-device {
163184
compatible = "regulator-fixed";
164185
regulator-always-on;
@@ -720,6 +741,15 @@
720741

721742
};
722743
};
744+
745+
wifi {
746+
usb_wifi_pwr: usb-wifi-pwr {
747+
rockchip,pins = <2 RK_PC7 RK_FUNC_GPIO &pcfg_pull_down>;
748+
};
749+
wifi_en_h: wifi-en-h {
750+
rockchip,pins = <2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_down>;
751+
};
752+
};
723753
};
724754

725755
&sdmmc {

0 commit comments

Comments
 (0)