ARM: at91/dt: sama5d4: move ADC pinctrl to board device trees
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 22 Jun 2015 07:45:48 +0000 (09:45 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 28 Jul 2015 07:35:10 +0000 (09:35 +0200)
The ADC pinctrl is board specific, move it to the board device trees.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/boot/dts/at91-sama5d4_xplained.dts
arch/arm/boot/dts/at91-sama5d4ek.dts
arch/arm/boot/dts/sama5d4.dtsi

index 22ad7c95910363ba1beef5a0615497314924ce6c..07f46963335bb6c98e305e9e4c1fb9bb613344f2 100644 (file)
                        };
 
                        adc0: adc@fc034000 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <
+                                       /* external trigger conflicts with USBA_VBUS */
+                                       &pinctrl_adc0_ad0
+                                       &pinctrl_adc0_ad1
+                                       &pinctrl_adc0_ad2
+                                       &pinctrl_adc0_ad3
+                                       &pinctrl_adc0_ad4
+                                       >;
                                atmel,adc-vref = <3300>;
                                status = "okay";
                        };
index d782f2926b73928a350bf8ecc0a01dbb24ea0735..49a59c7e4a5d1e3dcbac72585e799bbf00f0e78a 100644 (file)
                        };
 
                        adc0: adc@fc034000 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <
+                                       /* external trigger conflicts with USBA_VBUS */
+                                       &pinctrl_adc0_ad0
+                                       &pinctrl_adc0_ad1
+                                       &pinctrl_adc0_ad2
+                                       &pinctrl_adc0_ad3
+                                       &pinctrl_adc0_ad4
+                                       >;
                                /* The vref depends on JP22 of EK. If connect 1-2 then use 3.3V. connect 2-3 use 3.0V */
                                atmel,adc-vref = <3300>;
                                /*atmel,adc-ts-wires = <4>;*/   /* Set up ADC touch screen */
index 3e27e8a282839acce46252d64e118f2cc6223e3c..261b6acb76556335e79360b06d723f997c985906 100644 (file)
                                compatible = "atmel,at91sam9x5-adc";
                                reg = <0xfc034000 0x100>;
                                interrupts = <44 IRQ_TYPE_LEVEL_HIGH 5>;
-                               pinctrl-names = "default";
-                               pinctrl-0 = <
-                                       /* external trigger is conflict with USBA_VBUS */
-                                       &pinctrl_adc0_ad0
-                                       &pinctrl_adc0_ad1
-                                       &pinctrl_adc0_ad2
-                                       &pinctrl_adc0_ad3
-                                       &pinctrl_adc0_ad4
-                                       >;
                                clocks = <&adc_clk>,
                                         <&adc_op_clk>;
                                clock-names = "adc_clk", "adc_op_clk";