This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM62P:SDK 10.1:dmesg 打印有关 RTC 时钟速率不正确的错误信息

Guru**** 2474630 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1464299/am62p-sdk-10-1-dmesg-prints-error-about-rtc-clock-rate-being-incorrect

器件型号:AM62P

工具与软件:

rtc-ti-k3 2b1f0000.rtc: Clock rate 32552 is not 32768! Could misbehave!

该 RTC 在 k3-am62p-wakeup.dtsi 中进行配置。  它使用了错误的时钟源吗?

请注意、对于62X 和62A、还有其他几个此类报告、但已有几个月之久、从未去过任何地方。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    事实证明我在 u-boot spl_board_init ()中缺少32K 时钟命令。  在 u-boot 2023中、它们被移至 board/ti/common/rtc.c、但在 u-boot 2024中、它们似乎被移回单个 AM62*板级配置文件。

    	/* We have 32k crystal, so lets enable it */
    	val = readl(MCU_CTRL_LFXOSC_CTRL);
    	val &= ~(MCU_CTRL_LFXOSC_32K_DISABLE_VAL);
    	writel(val, MCU_CTRL_LFXOSC_CTRL);
    	/* Add any TRIM needed for the crystal here.. */
    	/* Make sure to mux up to take the SoC 32k from the crystal */
    	writel(MCU_CTRL_DEVICE_CLKOUT_LFOSC_SELECT_VAL,
    	       MCU_CTRL_DEVICE_CLKOUT_32K_CTRL);