Skip to content

Commit 3948b4a

Browse files
sremmind
authored andcommitted
arm64: dts: rockchip: add WLAN to rk3588-evb1 controller
The RK3588 EVB1 has an onboard AP6275P WLAN/BT module. This adds support for the WLAN side, which is connected to the second PCIe bus. The Bluetooth side is connected to UART and handled separately. Signed-off-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 9d241b0 commit 3948b4a

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,28 @@
206206
pinctrl-0 = <&vcc3v3_pcie30_en>;
207207
};
208208

209+
vcc3v3_pciewl_vbat: regulator-vcc3v3-pciewl-vbat {
210+
compatible = "regulator-fixed";
211+
regulator-always-on;
212+
regulator-boot-on;
213+
regulator-min-microvolt = <3300000>;
214+
regulator-max-microvolt = <3300000>;
215+
regulator-name = "wlan-vbat";
216+
vin-supply = <&vcc_3v3_s0>;
217+
};
218+
219+
vcc3v3_wlan: regulator-vcc3v3-wlan {
220+
compatible = "regulator-fixed";
221+
enable-active-high;
222+
gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
223+
pinctrl-names = "default";
224+
pinctrl-0 = <&wifi_pwren>;
225+
regulator-min-microvolt = <3300000>;
226+
regulator-max-microvolt = <3300000>;
227+
regulator-name = "wlan-en";
228+
vin-supply = <&vcc3v3_pciewl_vbat>;
229+
};
230+
209231
vcc5v0_host: regulator-vcc5v0-host {
210232
compatible = "regulator-fixed";
211233
regulator-name = "vcc5v0_host";
@@ -249,12 +271,26 @@
249271
regulator-max-microvolt = <5000000>;
250272
vin-supply = <&vcc5v0_usbdcin>;
251273
};
274+
275+
vccio_wl: regulator-vccio-wl {
276+
compatible = "regulator-fixed";
277+
regulator-always-on;
278+
regulator-boot-on;
279+
regulator-min-microvolt = <1800000>;
280+
regulator-max-microvolt = <1800000>;
281+
regulator-name = "wlan-vddio";
282+
vin-supply = <&vcc_1v8_s0>;
283+
};
252284
};
253285

254286
&combphy0_ps {
255287
status = "okay";
256288
};
257289

290+
&combphy1_ps {
291+
status = "okay";
292+
};
293+
258294
&combphy2_psu {
259295
status = "okay";
260296
};
@@ -440,6 +476,30 @@
440476
};
441477
};
442478

479+
&pcie2x1l0 {
480+
pinctrl-names = "default";
481+
pinctrl-0 = <&pcie2_0_rst>, <&pcie2_0_wake>, <&pcie2_0_clkreq>, <&wifi_host_wake_irq>;
482+
reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
483+
vpcie3v3-supply = <&vcc3v3_wlan>;
484+
status = "okay";
485+
486+
pcie@0,0 {
487+
reg = <0x200000 0 0 0 0>;
488+
#address-cells = <3>;
489+
#size-cells = <2>;
490+
ranges;
491+
device_type = "pci";
492+
bus-range = <0x20 0x2f>;
493+
494+
wifi: wifi@0,0 {
495+
compatible = "pci14e4,449d";
496+
reg = <0x210000 0 0 0 0>;
497+
clocks = <&hym8563>;
498+
clock-names = "lpo";
499+
};
500+
};
501+
};
502+
443503
&pcie2x1l1 {
444504
reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
445505
pinctrl-names = "default";
@@ -494,6 +554,18 @@
494554
};
495555

496556
pcie2 {
557+
pcie2_0_rst: pcie2-0-rst {
558+
rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
559+
};
560+
561+
pcie2_0_wake: pcie2-0-wake {
562+
rockchip,pins = <4 RK_PA4 4 &pcfg_pull_none>;
563+
};
564+
565+
pcie2_0_clkreq: pcie2-0-clkreq {
566+
rockchip,pins = <4 RK_PA3 4 &pcfg_pull_none>;
567+
};
568+
497569
pcie2_1_rst: pcie2-1-rst {
498570
rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
499571
};
@@ -524,6 +596,16 @@
524596
rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
525597
};
526598
};
599+
600+
wlan {
601+
wifi_host_wake_irq: wifi-host-wake-irq {
602+
rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>;
603+
};
604+
605+
wifi_pwren: wifi-pwren {
606+
rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
607+
};
608+
};
527609
};
528610

529611
&pwm2 {

0 commit comments

Comments
 (0)