boards: arduino: uno_r4: Add ADC mapping

Add `arduino,uno-adc` node for adding ADC mapping.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
TOKITA Hiroshi 2025-03-26 22:30:16 +09:00 committed by Benjamin Cabé
parent fa1e385b77
commit 84eadd2ddd
2 changed files with 22 additions and 0 deletions

View File

@ -61,6 +61,17 @@
<20 0 &ioport1 1 0>, /* D14 */
<21 0 &ioport1 0 0>; /* D15 */
};
arduino_adc: analog-connector {
compatible = "arduino,uno-adc";
#io-channel-cells = <1>;
io-channel-map = <0 &adc0 9>, /* A0 = P009 = CH09 */
<1 &adc0 0>, /* A1 = P000 = CH00 */
<2 &adc0 1>, /* A2 = P001 = CH01 */
<3 &adc0 2>, /* A3 = P002 = CH02 */
<4 &adc0 21>, /* A4 = P101 = CH21 */
<5 &adc0 22>; /* A5 = P100 = CH22 */
};
};
&spi1 {

View File

@ -61,6 +61,17 @@
<20 0 &ioport1 1 0>, /* D14 */
<21 0 &ioport1 0 0>; /* D15 */
};
arduino_adc: analog-connector {
compatible = "arduino,uno-adc";
#io-channel-cells = <1>;
io-channel-map = <0 &adc0 9>, /* A0 = P009 = CH09 */
<1 &adc0 0>, /* A1 = P000 = CH00 */
<2 &adc0 1>, /* A2 = P001 = CH01 */
<3 &adc0 2>, /* A3 = P002 = CH02 */
<4 &adc0 21>, /* A4 = P101 = CH21 */
<5 &adc0 22>; /* A5 = P100 = CH22 */
};
};
&spi0 {