Commit 84c70b23 authored by Eugen Hristev's avatar Eugen Hristev Committed by Nicolas Ferre

ARM: dts: at91: sama5d2_xplained: enable ADTRG pin

Enable pinctrl for ADTRG pin (PD31) for ADC hardware trigger support.
Signed-off-by: default avatarEugen Hristev <eugen.hristev@microchip.com>
Acked-by: default avatarLudovic Desroches <ludovic.desroches@microchip.com>
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
parent 2f61929e
...@@ -309,7 +309,7 @@ adc: adc@fc030000 { ...@@ -309,7 +309,7 @@ adc: adc@fc030000 {
vddana-supply = <&vdd_3v3_lp_reg>; vddana-supply = <&vdd_3v3_lp_reg>;
vref-supply = <&vdd_3v3_lp_reg>; vref-supply = <&vdd_3v3_lp_reg>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_adc_default>; pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>;
status = "okay"; status = "okay";
}; };
...@@ -340,6 +340,20 @@ pinctrl_can1_default: can1_default { ...@@ -340,6 +340,20 @@ pinctrl_can1_default: can1_default {
bias-disable; bias-disable;
}; };
/*
* The ADTRG pin can work on any edge type.
* In here it's being pulled up, so need to
* connect it to ground to get an edge e.g.
* Trigger can be configured on falling, rise
* or any edge, and the pull-up can be changed
* to pull-down or left floating according to
* needs.
*/
pinctrl_adtrg_default: adtrg_default {
pinmux = <PIN_PD31__ADTRG>;
bias-pull-up;
};
pinctrl_charger_chglev: charger_chglev { pinctrl_charger_chglev: charger_chglev {
pinmux = <PIN_PA12__GPIO>; pinmux = <PIN_PA12__GPIO>;
bias-disable; bias-disable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment