I am currently working on a project with a Jetson Orin NX module and a custom carrier board. I have updated to JetPack 6.0 (Jetson Linux Driver Package 36.3) and build kernel successfully . Now need to add multiple custom drivers for components like an audio codec (which has I2S-I2C)and RTC. I have the source code for these drivers.
Could someone please provide guidance on the typical steps to follow for adding custom drivers to this setup? Any specific considerations or procedures I should be aware of?
To add a custom driver and get it working, you might need to add driver file and related headers to kernel. You may also need to add custom kernel config and add it to Makefile and add some the node in device tree for the configurations.
Thank you for the reply. Is there any DTB or DTS file that I can refer to? I am not very clear about what will be the contents in the DTS files. So, if you could provide or tell me which DTB/DTS files to refer to, that would be very helpful.
It may depend on what you are going to add.
Actually, you can add the node to the device tree which would be included by others and that should be fine.
For Audio, you can add the node in tegra234-soc-audio-dai-links.dtsi.
It may depend on what properties used in your driver.
Is the driver created by you?
If not, there should be document of the sample configuration in device tree for the driver.