riscv: dts: thead: Implement rfkill using generic driver 68/315968/2
authorMichal Wilczynski <m.wilczynski@samsung.com>
Fri, 6 Dec 2024 10:45:37 +0000 (11:45 +0100)
committerMichal Wilczynski <m.wilczynski@samsung.com>
Tue, 10 Dec 2024 18:54:46 +0000 (19:54 +0100)
Currently the wireless chip is being enabled by the custom rfkill
driver. Use the generic upstream driver - rfkill-gpio. Also, since the
rtk chip requires separate GPIO to be enabled for Bluetooth add a
separate node with appropriate GPIO.

Change-Id: Id27e99d407e1370d3be2c9492f7b7791e7dea11f
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi

index 1ed4927e9faff28e0750f025c52223a99c061538..be72c82de6aebfc1458e65499212a2e7d3d70b53 100644 (file)
@@ -6,6 +6,7 @@
 /dts-v1/;
 
 #include "th1520.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/pinctrl/light-fm-left-pinctrl.h>
 #include <dt-bindings/pinctrl/light-fm-right-pinctrl.h>
 
                };
        };
 
-       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";
+       rfkill-sdio-wlan {
+               compatible = "rfkill-gpio";
+               label = "rfkill-sdio-wlan";
+               radio-type = "wlan";
+               shutdown-gpios = <&pcal6408ahk_c 4 GPIO_ACTIVE_HIGH>;
+       };
+
+       rfkill-sdio-bluetooth {
+               compatible = "rfkill-gpio";
+               label = "rfkill-sdio-bluetooth";
+               radio-type = "bluetooth";
+               shutdown-gpios = <&pcal6408ahk_c 5 GPIO_ACTIVE_HIGH>;
        };
 };