DESK-RZ-L/Peripherals/ADC

From DAVE Developer's Wiki
Jump to: navigation, search
History
Issue Date Notes
2025/12/16 DESK-RZ-L-1.x.x release


Peripheral ADC[edit | edit source]

Configuration[edit | edit source]

These peripheral(s) can only be used with the following ConfigID(s) (see the associated BOM):

ConfigID Note
2002 -
2003 -

Device tree configuration[edit | edit source]

Below is an example of a device tree configuration used on a standard DAVE kit for the DSAB EVK.

From rzt2h-eb23-cb2002.dts:

...
&adc2 {
	status = "okay";
};
...

Accessing the peripheral[edit | edit source]

In the ZERO SOM SoC there is a specific bank adc2 for ADCs. This bank has 14 channels, but only 2 are routed on the carrier board to analog potentiometers:

  • Potentiometer A → /sys/bus/platform/drivers/rzt2h-adc/80008000.adc2/iio\:device0/in_voltage4_raw
  • Potentiometer B → /sys/bus/platform/drivers/rzt2h-adc/80008000.adc2/iio\:device0/in_voltage5_raw

Linux[edit | edit source]

...
root@desk-t2h-usd-devel:~# cat /sys/bus/platform/drivers/rzt2h-adc/80008000.adc2/iio\:device0/in_voltage4_raw 
20
root@desk-t2h-usd-devel:~# cat /sys/bus/platform/drivers/rzt2h-adc/80008000.adc2/iio\:device0/in_voltage5_raw 
4073
...