From 44f753e6f7be183e49c408d4db8a2c7530e7f057 Mon Sep 17 00:00:00 2001 From: ashthespy Date: Wed, 15 Jan 2020 20:03:48 +0100 Subject: [PATCH 03/23] WIP: Wireless support --- .../boot/dts/rockchip/rk3308-rock-pi-s.dts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts index f06ff0c6e028..88468a6065cf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts @@ -39,6 +39,12 @@ sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; pinctrl-names = "default"; pinctrl-0 = <&wifi_enable_h>; + /* + * On the module itself this is one of these (depending + * on the actual card populated): + * - SDIO_RESET_L_WL_REG_ON + * - PDN (power down when low) + */ reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; }; @@ -114,6 +120,19 @@ vcc5v0_otg: vcc5v0-otg { pinctrl-0 = <&otg_vbus_drv>; vin-supply = <&vcc5v0_sys>; }; + + wireless-wlan { + compatible = "wlan-platdata"; + rockchip,grf = <&grf>; + clocks = <&cru SCLK_WIFI>; + clock-names = "clk_wifi"; + ref-clock-frequency = <24000000>; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake>; + wifi_chip_type = "rtl8723ds"; + WIFI,host_wake_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; }; &cpu0 { @@ -180,7 +199,9 @@ sdio-pwrseq { wifi_enable_h: wifi-enable-h { rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; }; + }; + wireless-wlan { wifi_host_wake: wifi-host-wake { rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; }; -- 2.25.1