From: Michal Wilczynski Date: Fri, 6 Dec 2024 10:45:37 +0000 (+0100) Subject: riscv: dts: thead: Implement rfkill using generic driver X-Git-Tag: accepted/tizen/unified/20241216.185838~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fdf1a5e7b4cdf6442cc3173560c965bf005f27d;p=platform%2Fkernel%2Flinux-thead.git riscv: dts: thead: Implement rfkill using generic driver 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 --- 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 1ed4927e9faf..be72c82de6ae 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -6,6 +6,7 @@ /dts-v1/; #include "th1520.dtsi" +#include #include #include @@ -384,17 +385,18 @@ }; }; - 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>; }; };