ARM: dts: at91: at91sam9rl: fix ADC triggers
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 28 Nov 2020 22:28:17 +0000 (23:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:28 +0000 (11:53 +0100)
[ Upstream commit 851a95da583c26e2ddeb7281e9b61f0d76ea5aba ]

The triggers for the ADC were taken from at91sam9260 dtsi but are not
correct.

Fixes: a4c1d6c75822 ("ARM: at91/dt: sam9rl: add lcd, adc, usb gadget and pwm support")
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201128222818.1910764-10-alexandre.belloni@bootlin.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/at91sam9rl.dtsi

index 5653e70..36a42a9 100644 (file)
                                atmel,adc-use-res = "highres";
 
                                trigger0 {
-                                       trigger-name = "timer-counter-0";
+                                       trigger-name = "external-rising";
                                        trigger-value = <0x1>;
+                                       trigger-external;
                                };
+
                                trigger1 {
-                                       trigger-name = "timer-counter-1";
-                                       trigger-value = <0x3>;
+                                       trigger-name = "external-falling";
+                                       trigger-value = <0x2>;
+                                       trigger-external;
                                };
 
                                trigger2 {
-                                       trigger-name = "timer-counter-2";
-                                       trigger-value = <0x5>;
+                                       trigger-name = "external-any";
+                                       trigger-value = <0x3>;
+                                       trigger-external;
                                };
 
                                trigger3 {
-                                       trigger-name = "external";
-                                       trigger-value = <0x13>;
-                                       trigger-external;
+                                       trigger-name = "continuous";
+                                       trigger-value = <0x6>;
                                };
                        };