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.

TDA4VM: Enable RTC on TD

Part Number: TDA4VM

I found the below. I made the changes and rebuilt the linux sdk but neither the driver nor the entry in the dtb exist. Can someone tell me the process for this? Do i need to do a clean build to get this to work?

  1. cd yocto-build
    ./oe-layertool-setup.sh -f configs/processor-sdk-linux/processor-sdk-linux-<version>.txt
    cd build
    echo "INHERIT += \"own-mirrors\"" >> conf/local.conf
    echo "SOURCE_MIRROR_URL = \"https://software-dl.ti.com/processor-sdk-mirror/sources/\"" >> conf/local.conf
    echo "ARAGO_BRAND  = \"psdkla\"" >> conf/local.conf
    echo "DISTRO_FEATURES_append = \" virtualization\"" >> conf/local.conf
    echo "IMAGE_INSTALL_append = \" docker\"">> conf/local.conf
    . conf/setenv
    TOOLCHAIN_BASE=<PATH_TO_TOOLCHAIN> MACHINE=<machine> bitbake -k tisdk-default-image
  2. CONFIG enabling. The driver supporting MCP79410 RTC is drivers/rtc/rtc-ds1307.c.
    CONFIG_RTC_DRV_DS1307 needs to be enabled.
    
    Add CONFIG_RTC_DRV_DS1307=y to arch/arm64/configs/tisdk_j7-evm_defconfig under linux folder.
    
    DTS changes as below:
    
    diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
    index 6788a3611..9d642eb7a 100644
    --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
    +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
    @@ -593,6 +593,11 @@
                    #gpio-cells = <2>;
            };
    
    +       rtc@67 {
    +               compatible = "microchip,mcp7941x";
    +               reg = <0x67>;
    +       };
    +
            exp2: gpio@22 {
                    compatible = "ti,tca6424";
                    reg = <0x22>;