wifi模組使用主控輸出的32k時鐘

M-kobe發表於2024-11-11

soc:rk3568

WiFi模組需要的32.768K時鐘,有三種時鐘源,rk809和8563提供,或者使用主控輸出的。

dts修改如下:

 &wireless_bluetooth {
        compatible = "bluetooth-platdata";
-       clocks = <&rk809 1>;
+       clocks = <&cru SCLK_32K_IOE>;
        clock-names = "ext_clock";
        //wifi-bt-power-toggle;
        uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
        pinctrl-names = "default", "rts_gpio";
-       pinctrl-0 = <&uart8m0_rtsn>;
+       pinctrl-0 = <&uart8m0_rtsn &clk32k_out1>;
        pinctrl-1 = <&uart8_gpios>;
        BT,reset_gpio    = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
        BT,wake_gpio     = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;

相關文章