--- v6.5.6-danctnix1/arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi 2023-11-22 01:25:22.244673900 +0100 +++ v6.5.5-danctnix1/arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi 2023-11-22 01:26:19.199828433 +0100 @@ -145,6 +145,16 @@ }; }; + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rk817 1>; + clock-names = "ext_clock"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_reset>; + reset-gpios = <&gpio3 RK_PD2 GPIO_ACTIVE_LOW>; + post-power-on-delay-ms = <200>; + }; + speaker_amp: speaker-amplifier { compatible = "simple-audio-amplifier"; pinctrl-names = "default"; @@ -246,6 +256,20 @@ vin-supply = <&vcc_bat>; }; + vcc_wl: vcc_wl { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_pwren>; + regulator-name = "vcc_wl"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc3v3_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + vdd1v2_dvp: vdd1v2-dvp { compatible = "regulator-fixed"; regulator-name = "vdd1v2_dvp"; @@ -819,6 +843,14 @@ rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; }; + wifi_reg_on_h: wifi-reg-on-h { + rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + wifi_reset: wifi-reset { + rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + wifi_wake_host_h: wifi-wake-host-h { rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>; }; @@ -886,12 +918,14 @@ cap-sd-highspeed; cap-sdio-irq; keep-power-in-suspend; + mmc-pwrseq = <&sdio_pwrseq>; non-removable; pinctrl-names = "default"; pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; sd-uhs-sdr104; + vmmc-supply = <&vcc_wl>; vqmmc-supply = <&vcca1v8_pmu>; status = "okay"; };