Clarification on LTC2499 | ADC | verdin AM62

Driver Compatibility and Integration for LTC2499

Thank you for providing the system information! You’re running Torizon OS 7.3.0 with kernel 6.6.94 on your Verdin AM62.

LTC2497 vs LTC2499 Driver Compatibility

While the sources don’t provide specific details about LTC2497/LTC2499 driver compatibility, these are both Linear Technology ADC chips that are often part of the same driver family in the Linux kernel. You’ll need to check if the existing LTC2497 driver in your kernel supports the LTC2499 variant or if modifications are needed.

Adding Custom Driver Source Code to Torizon OS

Based on the available documentation, there are several approaches to add custom drivers to Torizon OS:

1. Using TorizonCore Builder for Kernel Modules

Torizon OS supports customization through TorizonCore Builder, which enables users to easily make common changes to their underlying operating system image without needing to use the more complex Yocto-based workflows(1).

Typical examples of these changes include:

  • Adding an out-of-tree kernel device driver(1)
  • Modifying a device-tree overlay(1)
  • Adding custom configuration files(1)

2. Yocto-based Development for Complex Customizations

For more complex driver integration, Torizon OS is open-source and built with Yocto(1). You may want to build Torizon OS with Yocto for some reasons:

  • You need to perform customizations beyond Torizon tooling support(1)
  • You require deep kernel modifications

The community discussion shows that for kernel modules, you can create recipes following Yocto best practices(2). When working with kernel module recipes, it’s important to understand that the module.bbclass splits kernel modules into packages named kernel-module-<modulename>(2).

3. Development Workflow Options

Torizon OS supports different development workflows(1):

  1. Torizon OS with Torizon customization tools: This is the traditional workflow for Torizon users. The Torizon OS image is provided as a pre-built binary, and tools such as TorizonCore Builder are used to customize the operating system for your needs(1).

  2. Torizon OS Reference Minimal Image with Yocto: This setup uses standard Yocto workflows for both OS and Application development, and does not include the Docker container runtime(1).

Recommended Next Steps

  1. Check existing driver support: First, verify if the LTC2499 is already supported by the LTC2497 driver in kernel 6.6.94
  2. Device Tree Configuration: Create appropriate device tree overlays for your LTC2499 integration
  3. Choose customization method: Based on your requirements, select either TorizonCore Builder for simpler customizations or full Yocto builds for complex driver modifications

The specific implementation will depend on whether you need to modify the existing LTC2497 driver or create a new one for LTC2499 support.

**


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.