linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] arm64: dts: rockchip: add WiFi module support for Firefly-RK3399
@ 2018-07-18 14:58 Maruyama Shohei
  2018-07-25 11:02 ` Heiko Stuebner
  0 siblings, 1 reply; 2+ messages in thread
From: Maruyama Shohei @ 2018-07-18 14:58 UTC (permalink / raw)
  To: linux-arm-kernel

From: Shohei Maruyama <cheat.sc.linux@outlook.com>

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

Signed-off-by: Shohei Maruyama <cheat.sc.linux@outlook.com>
---
 .../boot/dts/rockchip/rk3399-firefly.dts      | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
index 2a352763c848..8ac29824923c 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
@@ -642,6 +642,41 @@
 	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;
+	disable-wp;
+	cap-sd-highspeed;
+	keep-power-in-suspend;
+	non-removable;
+	sd-uhs-sdr104;
+
+	/* Card detection */
+	cd-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>;
+
+	/* Write protection */
+	wp-gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
+
+	/* 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";
+		brcm,drive-strength = <5>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <RK_PA4 GPIO_ACTIVE_HIGH>;
+		interrupt-names = "host-wake";
+	};
+};
+
 &sdmmc {
 	bus-width = <4>;
 	cap-mmc-highspeed;
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 1/3] arm64: dts: rockchip: add WiFi module support for Firefly-RK3399
  2018-07-18 14:58 [PATCH 1/3] arm64: dts: rockchip: add WiFi module support for Firefly-RK3399 Maruyama Shohei
@ 2018-07-25 11:02 ` Heiko Stuebner
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stuebner @ 2018-07-25 11:02 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Am Mittwoch, 18. Juli 2018, 16:58:16 CEST schrieb Maruyama Shohei:
> From: Shohei Maruyama <cheat.sc.linux@outlook.com>
> 
> This commit adds WiFi module support for the Firefly-RK3399.
> 
> Signed-off-by: Shohei Maruyama <cheat.sc.linux@outlook.com>

[...]

> +	/* Card detection */
> +	cd-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>;
> +
> +	/* Write protection */
> +	wp-gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;

these two gpio connections look not correct. According to
the schematics, gpio2_d2 is bt_wake_l and gpio0_a3 is
wifi_host_wake_l, so definitly properties of the wifi module
below and not the sdio controller itself.


> +	brcmf: wifi at 1 {
> +		compatible = "brcm,bcm4329-fmac";
> +		brcm,drive-strength = <5>;
> +		interrupt-parent = <&gpio0>;
> +		interrupts = <RK_PA4 GPIO_ACTIVE_HIGH>;

And this seems to be bt_host_wake_l, so not sure
if this is the correct one from the module's point of view.


> +		interrupt-names = "host-wake";
> +	};
> +};


Heiko

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-25 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18 14:58 [PATCH 1/3] arm64: dts: rockchip: add WiFi module support for Firefly-RK3399 Maruyama Shohei
2018-07-25 11:02 ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).