]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: rockchip: Add host wake pin for wifi on Indiedroid Nova
authorChris Morgan <macromorgan@hotmail.com>
Tue, 18 Nov 2025 22:30:48 +0000 (16:30 -0600)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 20 Nov 2025 22:04:19 +0000 (23:04 +0100)
Add the pin definition for the host wake interrupt on the Indiedroid
Nova. This necessitates adding a node for the wifi controller to
properly define the interrupt. Additionally, we can consolidate both
pinctrl definitions under a wifi node to note their common functionality.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://patch.msgid.link/20251118223048.4531-5-macroalpha82@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts

index 7233e290d0cfb408fd18fc34c49f89c5cbc189b0..174d299cc6bb94ac570999ed9a7e753e53b35a66 100644 (file)
                };
        };
 
-       sdio-pwrseq {
-               wifi_enable_h: wifi-enable-h {
-                       rockchip,pins =
-                               <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
-               };
-       };
-
        usb-typec {
                usbc0_int: usbc0-int {
                        rockchip,pins =
                                <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
+
+       wifi {
+               wifi_enable_h: wifi-enable-h {
+                       rockchip,pins =
+                               <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+
+               wifi_host_wake_irq: wifi-host-wake-irq {
+                       rockchip,pins =
+                               <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
+               };
+       };
 };
 
 &rknn_core_0 {
 };
 
 &sdio {
+       #address-cells = <1>;
        bus-width = <4>;
        cap-sd-highspeed;
        cap-sdio-irq;
        no-sd;
        non-removable;
        sd-uhs-sdr104;
+       #size-cells = <0>;
        vmmc-supply = <&vcc_3v3_s3>;
        vqmmc-supply = <&vcc_1v8_s3>;
        status = "okay";
+
+       sdio_wifi: wifi@1 {
+               reg = <1>;
+               interrupt-parent = <&gpio0>;
+               interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-names = "host-wake";
+               pinctrl-0 = <&wifi_host_wake_irq>;
+               pinctrl-names = "default";
+       };
 };
 
 &sdmmc {