Skip to content

Commit 2700893

Browse files
committed
ARM: dts: at91: sama5d27_wlsom1_ek: add ADC node
Add node for ADC and pincontrol for it Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
1 parent cf526b0 commit 2700893

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

arch/arm/boot/dts/at91-sama5d27_wlsom1_ek.dts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@
6363
};
6464
};
6565

66+
&adc {
67+
vddana-supply = <&vdd_3v3>;
68+
vref-supply = <&vdd_3v3>;
69+
pinctrl-names = "default";
70+
pinctrl-0 = <&pinctrl_adc_default>;
71+
status = "okay";
72+
};
73+
6674
&flx0 {
6775
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
6876
status = "okay";
@@ -103,6 +111,21 @@
103111
};
104112

105113
&pioA {
114+
/*
115+
* There is no real pinmux for ADC, if the pin
116+
* is not requested by another peripheral then
117+
* the muxing is done when channel is enabled.
118+
* Requesting pins for ADC is GPIO is
119+
* encouraged to prevent conflicts and to
120+
* disable bias in order to be in the same
121+
* state when the pin is not muxed to the adc.
122+
*/
123+
pinctrl_adc_default: adc_default {
124+
pinmux = <PIN_PD25__GPIO>,
125+
<PIN_PD26__GPIO>;
126+
bias-disable;
127+
};
128+
106129
pinctrl_flx0_default: flx0_usart_default {
107130
pinmux = <PIN_PB28__FLEXCOM0_IO0>,
108131
<PIN_PB29__FLEXCOM0_IO1>;

0 commit comments

Comments
 (0)