Tool/software:
Hi, experts
My SDK version:
linux: ti-processor-sdk-linux-adas-j784s4-evm-09_01_00_06
rtos: ti-processor-sdk-rtos-j784s4-evm-09_01_00_06
The RTC chip used in TI EVM is DS3232, and the RTC chip used in my custom board is MCP7940, so I need to change the RTC driver to use the RTC function normally.
I did not find the description of DS3232 device in the device tree file,
Q1: do I not need to describe the RTC chip in the device tree? Where is the equipment information indicated?
I created code rtc-mcp7940.c under the "board-support/ti-linux-kernel-6.1.46+gitAUTOINC+5892b80d6b-g5892b80d6b/drivers/rtc" path,
added configuration items in " board-support/ti-linux-kernel-6.1.46+gitAUTOINC+5892b80d6b-g5892b80d6b/arch/arm64/configs/defconfig",
added compilation options in the "board-support/ti-linux-kernel-6.1.46+gitAUTOINC+5892b80d6b-g5892b80d6b/drivers/rtc/Makefile",
but the rtc-mcp7940.c file still didn't compile.
Q2: How should I configure my driver code to compile?
Best regards,
Jin