Skip to content

Commit 4d2663f

Browse files
rclaveau-techsuperna9999
authored andcommitted
arm64: dts: amlogic: t7: khadas-vim4: Add SDIO power sequence and WiFi clock
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>
1 parent 97f08ce commit 4d2663f

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@
6868
regulator-always-on;
6969
};
7070

71+
sdio_pwrseq: sdio-pwrseq {
72+
compatible = "mmc-pwrseq-simple";
73+
reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
74+
post-power-on-delay-ms = <500>;
75+
power-off-delay-us = <200000>;
76+
clocks = <&wifi32k>;
77+
clock-names = "ext_clock";
78+
};
79+
7180
vcc5v: regulator-vcc-5v {
7281
compatible = "regulator-fixed";
7382
regulator-name = "VCC5V";
@@ -136,6 +145,19 @@
136145
states = <1800000 1
137146
3300000 0>;
138147
};
148+
149+
wifi32k: wifi32k {
150+
compatible = "pwm-clock";
151+
#clock-cells = <0>;
152+
clock-frequency = <32768>;
153+
pwms = <&pwm_ab 0 30518 0>;
154+
};
155+
};
156+
157+
&pwm_ab {
158+
status = "okay";
159+
pinctrl-0 = <&pwm_a_pins>;
160+
pinctrl-names = "default";
139161
};
140162

141163
&uart_a {

0 commit comments

Comments
 (0)