riscv: dts: thead: Add Wi-Fi rfkill node, and SDIO bus node 59/318659/1
authorMichal Wilczynski <m.wilczynski@samsung.com>
Fri, 4 Oct 2024 10:14:20 +0000 (12:14 +0200)
committerMichal Wilczynski <m.wilczynski@samsung.com>
Fri, 4 Oct 2024 11:13:25 +0000 (13:13 +0200)
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 <m.wilczynski@samsung.com>
arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi

index 7453068a6c3288ddc85079d9e04ba310ecd16317..551f7a0ecd8ed3a6ff0fc59e9e28ae38fdbdc15d 100644 (file)
                        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 {
        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";
 };