This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to configure the adc periheral in the Device Tree file *.dts

Hello,

I am trying to figure out a way to configure the adc node using the .dts Device Tree file in a similar way to what is done for other nodes such as &spi and &i2c.
Unfortunately, all the examples I have seen so far only set the status property for the adc node. I would like to add GPIO pin numbers, resolution, etc ...
Any suggestions?
&adc {
status = "okay";
};
&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
sck-pin = <13>;
mosi-pin = <09>;
miso-pin = <40>;
};
Thank you.
Related