From c9cda299c1572bee3357d284e848d62aef6952d7 Mon Sep 17 00:00:00 2001 From: Michal Wilczynski Date: Fri, 4 Oct 2024 12:14:20 +0200 Subject: [PATCH] riscv: dts: thead: Add Wi-Fi rfkill node, and SDIO bus node In order for Wi-Fi to work the SDIO bus needs to be enabled in the device tree, as well as the node required to turn on the GPIO to power on the device - wcn_wifi. Port them from the vendor kernel [1]. [1] - https://gitee.com/thead-yocto/kernel.git Change-Id: I4b673316100f5a75195105befb6895095a9cb690 Signed-off-by: Michal Wilczynski --- .../dts/thead/th1520-lichee-module-4a.dtsi | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi index 7453068a6c32..551f7a0ecd8e 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -383,6 +383,19 @@ compatible = "thead,light-aon-test"; }; }; + + wcn_wifi: wireless-wlan { + compatible = "wlan-platdata"; + clock-names = "clk_wifi"; + ref-clock-frequency = <24000000>; + keep_wifi_power_on; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wifi_wake>; + wifi_chip_type = "aic8800"; + WIFI,poweren_gpio-gpios = <&pcal6408ahk_c 4 0>; + support_power_ctrl; + status = "okay"; + }; }; &resmem { @@ -637,6 +650,19 @@ status = "okay"; }; +&sdio1 { + bus-width = <4>; + max-frequency = <100000000>; + no-sd; + no-mmc; + broken-cd; + cap-sd-highspeed; + post-power-on-delay-ms = <50>; + status = "okay"; + wakeup-source; + keep-power-in-suspend; +}; + &gpu { status = "okay"; }; -- 2.34.1