1. Home
  2. Docs
  3. How to use device tree overlays
  4. Enabling I2C, SPI, UART, ADC, and PWM
  5. Enable ADC

Enable ADC

To enable the ADC’s we need to edit /boot/uboot/uEnv.txt to include the GB-ADC.dtbo overlay. . There is some very good documentation availble about using and testing the ADC below.
https://www.linux4sam.org/bin/view/Linux4SAM/UsingSAMA5D2ADCDevice

Make sure to uncomment the line enable_uboot_overlays=1 this allows overlays to load on boot:

# enable u-boot overlays
enable_uboot_overlays=1

Then you can add the line GB-ADC.dtbo to one of the pre-existing slots.