External RTC Colibri IMX8X Torizon OS device driver support

Hi,

We are using torizon OS torizon-core-docker-colibri-imx8x-Tezi_5.7.2+build.20.tar
and we have below external RTC IC’s options to be used for our product, does torizon OS has device driver support for below, If yes can you please help to on how to configure the same from device tree.

  1. microchip,mcp7940x
  2. dallas,ds1340
  3. pericom,pt7c4339

Thank you

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

Thank you for reaching out with your question about RTC IC support on Torizon OS for the Colibri iMX8X module. Torizon OS, being based on the Linux kernel, generally supports a wide range of hardware through existing drivers.

For the RTC ICs you mentioned:

  1. microchip,mcp7940x: This RTC is supported by the Linux kernel. You can verify if the driver is available in your Torizon OS image by using the command lsmod to list loaded modules or modinfo mcp7940x to check for the module’s presence.

  2. dallas,ds1340: Similarly, the DS1340 is supported by the Linux kernel. Use the same method as above to confirm its availability in your Torizon OS image.

  3. pericom,pt7c4339: This RTC might not be as commonly supported. You should check the Linux kernel documentation or source to confirm driver availability.

To configure these RTCs in the device tree, you will need to add a node for the RTC in your device tree source file. Here is a general example of how you might configure an RTC in the device tree:

&i2c1 {
    status = "okay";
    rtc: rtc@68 {
        compatible = "microchip,mcp7940x"; // or "dallas,ds1340"
        reg = <0x68>;
    };
};
  • compatible: This property should match the driver name in the kernel.
  • reg: This is the I2C address of the RTC.

For applying these changes, you can use Device Tree Overlays, which allow you to modify the device tree without recompiling the entire kernel. The TorizonCore Builder tool can be used to apply these overlays to your Torizon OS image.

If the driver for a specific RTC is not included in your Torizon OS image, you may need to build it as an external module using the TorizonCore Builder tool. This involves downloading the kernel source, configuring the module, and integrating it into your system.

Ensure that your device tree modifications are correctly applied by checking the /proc/device-tree directory on your running system. This will confirm that your changes are active.

I hope this helps! If you have any more questions, feel free to ask.

Best regards,
Toradex AI Assistant.

Please, also check if these links can help you solve your problem:

IOT RTC rv-3028 driver is written for 5.13 and Torizon is 5.5.