Skip to content

Commit a5002c4

Browse files
cheat-scmmind
authored andcommitted
arm64: dts: rockchip: add WiFi module support for Firefly-RK3399
This commit adds WiFi module support for the Firefly-RK3399. Signed-off-by: Shohei Maruyama <cheat.sc.linux@outlook.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 707fa9e commit a5002c4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3399-firefly.dts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,12 @@
622622
};
623623
};
624624

625+
wifi {
626+
wifi_host_wake_l: wifi-host-wake-l {
627+
rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
628+
};
629+
};
630+
625631
leds {
626632
work_led_gpio: work_led-gpio {
627633
rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -646,6 +652,36 @@
646652
status = "okay";
647653
};
648654

655+
&sdio0 {
656+
/* WiFi & BT combo module Ampak AP6356S */
657+
bus-width = <4>;
658+
cap-sdio-irq;
659+
cap-sd-highspeed;
660+
keep-power-in-suspend;
661+
mmc-pwrseq = <&sdio_pwrseq>;
662+
non-removable;
663+
num-slots = <1>;
664+
pinctrl-names = "default";
665+
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
666+
sd-uhs-sdr104;
667+
668+
/* Power supply */
669+
vqmmc-supply = &vcc1v8_s3; /* IO line */
670+
vmmc-supply = &vcc_sdio; /* card's power */
671+
672+
status = "okay";
673+
674+
brcmf: wifi@1 {
675+
compatible = "brcm,bcm4329-fmac";
676+
interrupt-parent = <&gpio0>;
677+
interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
678+
interrupt-names = "host-wake";
679+
brcm,drive-strength = <5>;
680+
pinctrl-names = "default";
681+
pinctrl-0 = <&wifi_host_wake_l>;
682+
};
683+
};
684+
649685
&sdmmc {
650686
bus-width = <4>;
651687
cap-mmc-highspeed;

0 commit comments

Comments
 (0)