Hi,
我们是 TDA4VL 型号(提交时的型号选择只有 VM,所以填写的 VM),开发过程中有需要读取 adc 值一步。
能否不用 mcu 或者上层系统帮忙,在驱动中就获取到某些 adc 的读值呢?比如配置好设备树,用专用封装好的函数等方法。
期待并感谢您的回复!

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.
Hi,
我们是 TDA4VL 型号(提交时的型号选择只有 VM,所以填写的 VM),开发过程中有需要读取 adc 值一步。
能否不用 mcu 或者上层系统帮忙,在驱动中就获取到某些 adc 的读值呢?比如配置好设备树,用专用封装好的函数等方法。
期待并感谢您的回复!

请看我们工程师的回复。
Currently the MCU_ADC0/1 are not enabled in TDA4VL/J721S2 in the SDK.
Looking at the J721s2/TDA4VL device descriptions:
https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j721s2/devices.html
The device numbers for MCU_ADC0/1 are the same as compared with J721e.
So We can add the DT nodes to J721s2 as well.
Something like: mcu_adc_j721s2_dt.patch
Then follow the ADC documentation: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/08_04_00_11/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/ADC.html
Note: I have not tried this on the TDA4VL hardware.