]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: amlogic: t7: khadas-vim4: Add SDIO power sequence and WiFi clock
authorRonald Claveau <linux-kernel-dev@aliel.fr>
Thu, 26 Mar 2026 09:59:18 +0000 (10:59 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 2 Jun 2026 07:49:45 +0000 (09:49 +0200)
Add the SDIO power sequence node using mmc-pwrseq-simple and a
32.768kHz PWM-based clock required by the Wi-Fi module.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Ronald Claveau <linux-kernel-dev@aliel.fr>
Link: https://patch.msgid.link/20260326-add-emmc-t7-vim4-v5-7-d3f182b48e9d@aliel.fr
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts

index 003b3bcdaf2bcff0721c6f35834bfc322806f4ab..994d04f3f5f0affd85a2014bce9149685f03074a 100644 (file)
                regulator-always-on;
        };
 
+       sdio_pwrseq: sdio-pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
+               post-power-on-delay-ms = <500>;
+               power-off-delay-us = <200000>;
+               clocks = <&wifi32k>;
+               clock-names = "ext_clock";
+       };
+
        vcc5v: regulator-vcc-5v {
                compatible = "regulator-fixed";
                regulator-name = "VCC5V";
                states = <1800000 1
                          3300000 0>;
        };
+
+       wifi32k: wifi32k {
+               compatible = "pwm-clock";
+               #clock-cells = <0>;
+               clock-frequency = <32768>;
+                       pwms = <&pwm_ab 0 30518 0>;
+       };
+};
+
+&pwm_ab {
+       status = "okay";
+       pinctrl-0 = <&pwm_a_pins>;
+       pinctrl-names = "default";
 };
 
 &uart_a {