]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: ux500: push down Rohm TS to STUIB
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Nov 2015 14:20:31 +0000 (15:20 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Nov 2015 08:37:09 +0000 (09:37 +0100)
The Rohm touchscreen reset and IRQ lines were registered and
configured at the HREF board level of the design, but it is an
integral part of the UIB (User Interface Board). Fix this by
pushing down the pin control node to the u8500 UIB file.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-href-stuib.dtsi
arch/arm/boot/dts/ste-hrefv60plus.dtsi

index 78b75256c638af2e70f8a4f95940bdac56b80079..c3987ad06d796e9133498253df31a608befd11b9 100644 (file)
                                rohm,touch-max-x = <384>;
                                rohm,touch-max-y = <704>;
                                rohm,flip-y;
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&touch_rohm_mode>;
                        };
 
                        bu21013_tp@5d {
                                rohm,touch-max-x = <384>;
                                rohm,touch-max-y = <704>;
                                rohm,flip-y;
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&touch_rohm_mode>;
                        };
                };
 
                                        };
                                };
                        };
+                       touch {
+                               touch_rohm_mode: touch_rohm {
+                                       /*
+                                        * ROHM touch screen uses GPIO 143 for
+                                        * RST1, GPIO 146 for RST2 and
+                                        * GPIO 67 for interrupts. Pull-up
+                                        * the IRQ line and drive both
+                                        * reset signals low.
+                                        */
+                                       stuib_cfg1 {
+                                               pins = "GPIO143_D12", "GPIO146_D13";
+                                               ste,config = <&gpio_out_lo>;
+                                       };
+                                       stuib_cfg2 {
+                                               pins = "GPIO67_G2";
+                                               ste,config = <&gpio_in_pu>;
+                                       };
+                               };
+                       };
                };
        };
 };
index 9c2387b34d0c73c6942c4051d7f6ce72ee2a0aec..149a72e7e37aa39a99798d04d741041732c97294 100644 (file)
@@ -43,7 +43,6 @@
                                  <&vaudio_hf_hrefv60_mode>,
                                  <&gbf_hrefv60_mode>,
                                  <&hdtv_hrefv60_mode>,
-                                 <&touch_hrefv60_mode>,
                                  <&gpios_hrefv60_mode>;
 
                        sdi0 {
                                        };
                                 };
                        };
-                       touch {
-                               touch_hrefv60_mode: touch_hrefv60 {
-                                       /*
-                                        * Touch screen uses GPIO 143 for RST1, GPIO 146 for RST2 and
-                                        * GPIO 67 for interrupts. Pull-up the IRQ line and drive both
-                                        * reset signals low.
-                                        */
-                                       hrefv60_cfg1 {
-                                               pins = "GPIO143_D12", "GPIO146_D13";
-                                               ste,config = <&gpio_out_lo>;
-                                       };
-                                       hrefv60_cfg2 {
-                                               pins = "GPIO67_G2";
-                                               ste,config = <&gpio_in_pu>;
-                                       };
-                               };
-                       };
                        mcde {
                                lcd_hrefv60_mode: lcd_hrefv60 {
                                        /*