Skip to contentSkip to conversation

arm64: dts: rockchip: add WiFi module support for Firefly-RK3399

PATCH New Maruyama Shohei 2 participants 2 messages Aug 23, 2018 – Sep 10, 2018

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

PATCH v2 1/1 arm64: dts: rockchip: add WiFi module support for Firefly-RK3399

From: Shohei Maruyama <[email protected]>

This commit adds WiFi module support for the Firefly-RK3399.

---

Changes for v2:
- Remove cd and wp gpios
- Fix wrong interrupt pin
- Add pinctrl for interrupt

 .../boot/dts/rockchip/rk3399-firefly.dts      | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +36 -0
index 2a352763c848..b1b49d382f63 100644
@@ -610,6 +610,12 @@
 		};
 	};
 
+	wifi {
+		wifi_host_wake_l: wifi-host-wake-l {
+			rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	rt5640 {
 		rt5640_hpcon: rt5640-hpcon {
 			rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -642,6 +648,36 @@
 	status = "okay";
 };
 
+&sdio0 {
+	/* WiFi & BT combo module Ampak AP6356S */
+	mmc-pwrseq = <&sdio_pwrseq>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
+	num-slots = <1>;
+	bus-width = <4>;
+	cap-sdio-irq;
+	cap-sd-highspeed;
+	keep-power-in-suspend;
+	non-removable;
+	sd-uhs-sdr104;
+
+	/* Power supply */
+	vqmmc-supply = &vcc1v8_s3;	/* IO line */
+	vmmc-supply = &vcc_sdio;	/* card's power */
+
+	status = "okay";
+
+	brcmf: wifi at 1 {
+		compatible = "brcm,bcm4329-fmac";
+		pinctrl-names = "default";
+		pinctrl-0 = <&wifi_host_wake_l>;
+		brcm,drive-strength = <5>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
+		interrupt-names = "host-wake";
+	};
+};
+
 &sdmmc {
 	bus-width = <4>;
 	cap-mmc-highspeed;
Signature · 1 line
2.18.0
maintainer
#1 lore raw

PATCH v2 1/1 arm64: dts: rockchip: add WiFi module support for Firefly-RK3399

Am Donnerstag, 23. August 2018, 18:35:32 CEST schrieb Maruyama Shohei:

Quoted 5 lines

From: Shohei Maruyama <[email protected]>

This commit adds WiFi module support for the Firefly-RK3399.

applied for 4.20

Thanks
Heiko