I am working on a driver and device tree for the ADV7481 for JetPack 5.1.4 for a carrier board. I have successfully had this working with JetPack 4 and am now trying to get it working on JetPack 5.
The video capture is working but I cannot immediately see how to set up the device tree to link to the I2S endpoint. It looks as if I should add an extra port to the video receiver device but when I do this, the video capture fails to link.
This is the section of the device tree relating to the ADV chip. I have used port@2 for the audio because port@1 is used for composite input in the driver.
> adv7481_1:video-receiver@70 {
#if 1
port@2 {
reg = <2>;
adv7481_1_ep: endpoint {
remote-endpoint = <&i2s3_dap_ep>;
mclk-fs = <256>;
link-name = “adv7481-1”;
};
}; endif
};
};
I have added the following for to link the ADV to the audio:
&i2s3_dap_ep {
remote-endpoint = <&adv7481_1_ep>;
};
The port and I2S link configuration appear to be correct. Could you please share the device tree include file (sound node) and the driver source? also please capture the dmesg logs.
Hi
Thank you for sharing the debug and device tree files.
The Audio Graph Card DAI link (endpoints) is not applicable to JetPack 5.1.4 releases. Please refer to the link below for instructions on adding the I2S DAI link (e.g., &i2s1_to_codec in the example provided).
tegra-audio-debug.zip (40.7 KB)
In addition, I have attached a zip file containing a script and a text file; the text file is the result of running the script.
Hi
Please use the command below to capture pinctrl. The earlier command is for an older release.
cat /sys/kernel/debug/pinctrl/“addr”.pinmux/pinconf-groups > ~/pinmux_“addr”
Please change “addr” to in pinctrl address shown in the system
Could you please confirm if the I2S5 pinctrl is configured via the Jetson Linux Expansion Header?
Regarding the trace showing empty output, I believe you have set up the mixer controls and started capture, as you were previously able to capture DAPM routes.