aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-11-13 08:57:49 -0500
committerLinus Walleij <linus.walleij@linaro.org>2013-11-26 15:01:55 -0500
commita45cb698a7db6c623214a5345a32a4ce724ca560 (patch)
tree485d1483615c20fc2fac5c579bbeae8cd29c760c
parent70b41abc151f9cd06cfb2f7f6cd726753db99484 (diff)
ARM: ux500: move GPIO217/218 config to device tree
This moves the input-pulled-up setting for GPIO217 as used on the HREFs prior to v60 from the boardfile to the device tree. GPIO218 is only used with the TVK UIB so move it to that .dtsi file. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/arm/boot/dts/ste-href-tvk1281618.dtsi13
-rw-r--r--arch/arm/boot/dts/ste-hrefprev60.dtsi10
-rw-r--r--arch/arm/boot/dts/ste-nomadik-pinctrl.dtsi5
-rw-r--r--arch/arm/mach-ux500/board-mop500-pins.c7
4 files changed, 28 insertions, 7 deletions
diff --git a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi
index 61b180ea92ca..3f31f9206fb3 100644
--- a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi
+++ b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi
@@ -22,6 +22,8 @@
22 reg = <0x44>; 22 reg = <0x44>;
23 interrupt-parent = <&gpio6>; 23 interrupt-parent = <&gpio6>;
24 interrupts = <26 IRQ_TYPE_EDGE_RISING>; 24 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
25 pinctrl-names = "default";
26 pinctrl-0 = <&tc35893_tvk_mode>;
25 27
26 interrupt-controller; 28 interrupt-controller;
27 #interrupt-cells = <1>; 29 #interrupt-cells = <1>;
@@ -64,5 +66,16 @@
64 }; 66 };
65 }; 67 };
66 }; 68 };
69 pinctrl {
70 /* Pull up this GPIO pin */
71 tc35893 {
72 tc35893_tvk_mode: tc35893_tvk {
73 tvk_cfg {
74 ste,pins = "GPIO218_AH11";
75 ste,config = <&gpio_in_pu>;
76 };
77 };
78 };
79 };
67 }; 80 };
68}; 81};
diff --git a/arch/arm/boot/dts/ste-hrefprev60.dtsi b/arch/arm/boot/dts/ste-hrefprev60.dtsi
index cfd7ef306d49..6fc94ea65ab9 100644
--- a/arch/arm/boot/dts/ste-hrefprev60.dtsi
+++ b/arch/arm/boot/dts/ste-hrefprev60.dtsi
@@ -33,6 +33,8 @@
33 reg = <0x42>; 33 reg = <0x42>;
34 interrupt-parent = <&gpio6>; 34 interrupt-parent = <&gpio6>;
35 interrupts = <25 IRQ_TYPE_EDGE_RISING>; 35 interrupts = <25 IRQ_TYPE_EDGE_RISING>;
36 pinctrl-names = "default";
37 pinctrl-0 = <&tc35892_hrefprev60_mode>;
36 38
37 interrupt-controller; 39 interrupt-controller;
38 #interrupt-cells = <1>; 40 #interrupt-cells = <1>;
@@ -71,6 +73,14 @@
71 73
72 }; 74 };
73 }; 75 };
76 tc35892 {
77 tc35892_hrefprev60_mode: tc35892_hrefprev60 {
78 hrefprev60_cfg {
79 ste,pins = "GPIO217_AH12";
80 ste,config = <&gpio_in_pu>;
81 };
82 };
83 };
74 }; 84 };
75 }; 85 };
76}; 86};
diff --git a/arch/arm/boot/dts/ste-nomadik-pinctrl.dtsi b/arch/arm/boot/dts/ste-nomadik-pinctrl.dtsi
index f213222cf220..9aea983e78b5 100644
--- a/arch/arm/boot/dts/ste-nomadik-pinctrl.dtsi
+++ b/arch/arm/boot/dts/ste-nomadik-pinctrl.dtsi
@@ -31,6 +31,11 @@
31 ste,output = <OUTPUT_LOW>; 31 ste,output = <OUTPUT_LOW>;
32 }; 32 };
33 33
34 gpio_in_pu: gpio_input_pull_up {
35 ste,gpio = <GPIOMODE_ENABLED>;
36 ste,input = <INPUT_PULLUP>;
37 };
38
34 gpio_out_lo: gpio_output_low { 39 gpio_out_lo: gpio_output_low {
35 ste,gpio = <GPIOMODE_ENABLED>; 40 ste,gpio = <GPIOMODE_ENABLED>;
36 ste,output = <OUTPUT_LOW>; 41 ste,output = <OUTPUT_LOW>;
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c
index f7034cbdc630..c032392294a0 100644
--- a/arch/arm/mach-ux500/board-mop500-pins.c
+++ b/arch/arm/mach-ux500/board-mop500-pins.c
@@ -340,11 +340,6 @@ static struct pinctrl_map __initdata mop500_family_pinmap[] = {
340 DB8500_MUX_HOG("lcdvsi0_a_1", "lcd"), 340 DB8500_MUX_HOG("lcdvsi0_a_1", "lcd"),
341 DB8500_PIN_HOG("GPIO68_E1", in_pu), 341 DB8500_PIN_HOG("GPIO68_E1", in_pu),
342 DB8500_PIN_HOG("GPIO84_C2", gpio_in_pu), 342 DB8500_PIN_HOG("GPIO84_C2", gpio_in_pu),
343 /*
344 * STMPE1601/tc35893 keypad IRQ GPIO 218
345 * TODO: set for snowball and HREF really??
346 */
347 DB8500_PIN_HOG("GPIO218_AH11", gpio_in_pu),
348 /* Mux in LCD data lines 8 thru 11 and LCDA CLK for MCDE TVOUT */ 343 /* Mux in LCD data lines 8 thru 11 and LCDA CLK for MCDE TVOUT */
349 DB8500_MUX("lcd_d8_d11_a_1", "lcd", "mcde-tvout"), 344 DB8500_MUX("lcd_d8_d11_a_1", "lcd", "mcde-tvout"),
350 DB8500_MUX("lcdaclk_b_1", "lcda", "mcde-tvout"), 345 DB8500_MUX("lcdaclk_b_1", "lcda", "mcde-tvout"),
@@ -625,8 +620,6 @@ static struct pinctrl_map __initdata mop500_pinmap[] = {
625 DB8500_MUX_HOG("ipgpio1_c_1", "ipgpio"), 620 DB8500_MUX_HOG("ipgpio1_c_1", "ipgpio"),
626 DB8500_PIN_HOG("GPIO6_AF6", in_pu), 621 DB8500_PIN_HOG("GPIO6_AF6", in_pu),
627 DB8500_PIN_HOG("GPIO7_AG5", in_pu), 622 DB8500_PIN_HOG("GPIO7_AG5", in_pu),
628 /* TC35892 IRQ, pull up the line, let the driver mux in the pin */
629 DB8500_PIN_HOG("GPIO217_AH12", gpio_in_pu),
630 /* 623 /*
631 * Runtime stuff: make it possible to mux in the SKE keypad 624 * Runtime stuff: make it possible to mux in the SKE keypad
632 * and bias the pins 625 * and bias the pins