diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-03-24 10:29:30 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-03-29 03:34:08 -0400 |
commit | 1b1e8e024b9ea4c07e05a44b9aeb48d5d89a06e0 (patch) | |
tree | c3a4321abb48587ab069fb56ef7040c0f11f9ca6 | |
parent | f55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff) |
ARM: dts: ux500: use the GPIO DT header
Use the <dt-bindings/gpio/gpio.h> header instead of using
hardcoded values for the GPIO flags. Eradicate the totally
bogus "0x4" flag used and set that to GPIO_ACTIVE_HIGH as is
proper, switch the inverted card detect on the Snowball to
flag using GPIO_ACTIVE_LOW instead of using the MMC-specific
inversion flag.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/ste-ccu9540.dts | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/ste-dbx5x0.dtsi | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/ste-href-stuib.dtsi | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/ste-href-tvk1281618.dtsi | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/ste-hrefprev60.dtsi | 8 | ||||
-rw-r--r-- | arch/arm/boot/dts/ste-hrefv60plus.dtsi | 6 | ||||
-rw-r--r-- | arch/arm/boot/dts/ste-snowball.dts | 19 |
7 files changed, 22 insertions, 22 deletions
diff --git a/arch/arm/boot/dts/ste-ccu9540.dts b/arch/arm/boot/dts/ste-ccu9540.dts index c8b815819cfe..b3b9bb8e1aa8 100644 --- a/arch/arm/boot/dts/ste-ccu9540.dts +++ b/arch/arm/boot/dts/ste-ccu9540.dts | |||
@@ -49,7 +49,7 @@ | |||
49 | cap-mmc-highspeed; | 49 | cap-mmc-highspeed; |
50 | vmmc-supply = <&ab8500_ldo_aux3_reg>; | 50 | vmmc-supply = <&ab8500_ldo_aux3_reg>; |
51 | 51 | ||
52 | cd-gpios = <&gpio7 6 0x4>; // 230 | 52 | cd-gpios = <&gpio7 6 GPIO_ACTIVE_HIGH>; // 230 |
53 | cd-inverted; | 53 | cd-inverted; |
54 | 54 | ||
55 | status = "okay"; | 55 | status = "okay"; |
diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi index 341f5b7ed242..d85830d80252 100644 --- a/arch/arm/boot/dts/ste-dbx5x0.dtsi +++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <dt-bindings/interrupt-controller/irq.h> | 12 | #include <dt-bindings/interrupt-controller/irq.h> |
13 | #include <dt-bindings/mfd/dbx500-prcmu.h> | 13 | #include <dt-bindings/mfd/dbx500-prcmu.h> |
14 | #include <dt-bindings/arm/ux500_pm_domains.h> | 14 | #include <dt-bindings/arm/ux500_pm_domains.h> |
15 | #include <dt-bindings/gpio/gpio.h> | ||
15 | #include "skeleton.dtsi" | 16 | #include "skeleton.dtsi" |
16 | 17 | ||
17 | / { | 18 | / { |
diff --git a/arch/arm/boot/dts/ste-href-stuib.dtsi b/arch/arm/boot/dts/ste-href-stuib.dtsi index c3987ad06d79..6f720756057d 100644 --- a/arch/arm/boot/dts/ste-href-stuib.dtsi +++ b/arch/arm/boot/dts/ste-href-stuib.dtsi | |||
@@ -22,13 +22,13 @@ | |||
22 | 22 | ||
23 | button@139 { | 23 | button@139 { |
24 | /* Proximity sensor */ | 24 | /* Proximity sensor */ |
25 | gpios = <&gpio6 25 0x4>; | 25 | gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>; |
26 | linux,code = <11>; /* SW_FRONT_PROXIMITY */ | 26 | linux,code = <11>; /* SW_FRONT_PROXIMITY */ |
27 | label = "SFH7741 Proximity Sensor"; | 27 | label = "SFH7741 Proximity Sensor"; |
28 | }; | 28 | }; |
29 | button@145 { | 29 | button@145 { |
30 | /* Hall sensor */ | 30 | /* Hall sensor */ |
31 | gpios = <&gpio4 17 0x4>; | 31 | gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>; |
32 | linux,code = <0>; /* SW_LID */ | 32 | linux,code = <0>; /* SW_LID */ |
33 | label = "HED54XXU11 Hall Effect Sensor"; | 33 | label = "HED54XXU11 Hall Effect Sensor"; |
34 | }; | 34 | }; |
diff --git a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi index 55f9d0cc90f3..54d80da2a5df 100644 --- a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi +++ b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi | |||
@@ -24,13 +24,13 @@ | |||
24 | 24 | ||
25 | button@139 { | 25 | button@139 { |
26 | /* Proximity sensor */ | 26 | /* Proximity sensor */ |
27 | gpios = <&gpio6 25 0x4>; | 27 | gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>; |
28 | linux,code = <11>; /* SW_FRONT_PROXIMITY */ | 28 | linux,code = <11>; /* SW_FRONT_PROXIMITY */ |
29 | label = "SFH7741 Proximity Sensor"; | 29 | label = "SFH7741 Proximity Sensor"; |
30 | }; | 30 | }; |
31 | button@145 { | 31 | button@145 { |
32 | /* Hall sensor */ | 32 | /* Hall sensor */ |
33 | gpios = <&gpio4 17 0x4>; | 33 | gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>; |
34 | linux,code = <0>; /* SW_LID */ | 34 | linux,code = <0>; /* SW_LID */ |
35 | label = "HED54XXU11 Hall Effect Sensor"; | 35 | label = "HED54XXU11 Hall Effect Sensor"; |
36 | }; | 36 | }; |
diff --git a/arch/arm/boot/dts/ste-hrefprev60.dtsi b/arch/arm/boot/dts/ste-hrefprev60.dtsi index b0278f4c486c..ece222d51717 100644 --- a/arch/arm/boot/dts/ste-hrefprev60.dtsi +++ b/arch/arm/boot/dts/ste-hrefprev60.dtsi | |||
@@ -18,7 +18,7 @@ | |||
18 | / { | 18 | / { |
19 | gpio_keys { | 19 | gpio_keys { |
20 | button@1 { | 20 | button@1 { |
21 | gpios = <&tc3589x_gpio 7 0x4>; | 21 | gpios = <&tc3589x_gpio 7 GPIO_ACTIVE_HIGH>; |
22 | }; | 22 | }; |
23 | }; | 23 | }; |
24 | 24 | ||
@@ -68,12 +68,12 @@ | |||
68 | 68 | ||
69 | // External Micro SD slot | 69 | // External Micro SD slot |
70 | sdi0_per1@80126000 { | 70 | sdi0_per1@80126000 { |
71 | cd-gpios = <&tc3589x_gpio 3 0x4>; | 71 | cd-gpios = <&tc3589x_gpio 3 GPIO_ACTIVE_HIGH>; |
72 | }; | 72 | }; |
73 | 73 | ||
74 | vmmci: regulator-gpio { | 74 | vmmci: regulator-gpio { |
75 | gpios = <&tc3589x_gpio 18 0x4>; | 75 | gpios = <&tc3589x_gpio 18 GPIO_ACTIVE_HIGH>; |
76 | enable-gpio = <&tc3589x_gpio 17 0x4>; | 76 | enable-gpio = <&tc3589x_gpio 17 GPIO_ACTIVE_HIGH>; |
77 | }; | 77 | }; |
78 | 78 | ||
79 | pinctrl { | 79 | pinctrl { |
diff --git a/arch/arm/boot/dts/ste-hrefv60plus.dtsi b/arch/arm/boot/dts/ste-hrefv60plus.dtsi index 149a72e7e37a..45d7af326718 100644 --- a/arch/arm/boot/dts/ste-hrefv60plus.dtsi +++ b/arch/arm/boot/dts/ste-hrefv60plus.dtsi | |||
@@ -20,12 +20,12 @@ | |||
20 | soc { | 20 | soc { |
21 | // External Micro SD slot | 21 | // External Micro SD slot |
22 | sdi0_per1@80126000 { | 22 | sdi0_per1@80126000 { |
23 | cd-gpios = <&gpio2 31 0x4>; // 95 | 23 | cd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; // 95 |
24 | }; | 24 | }; |
25 | 25 | ||
26 | vmmci: regulator-gpio { | 26 | vmmci: regulator-gpio { |
27 | gpios = <&gpio0 5 0x4>; | 27 | gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; |
28 | enable-gpio = <&gpio5 9 0x4>; | 28 | enable-gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>; |
29 | }; | 29 | }; |
30 | 30 | ||
31 | pinctrl { | 31 | pinctrl { |
diff --git a/arch/arm/boot/dts/ste-snowball.dts b/arch/arm/boot/dts/ste-snowball.dts index 08f82077b64d..36e84efc401c 100644 --- a/arch/arm/boot/dts/ste-snowball.dts +++ b/arch/arm/boot/dts/ste-snowball.dts | |||
@@ -50,35 +50,35 @@ | |||
50 | wakeup-source; | 50 | wakeup-source; |
51 | linux,code = <2>; | 51 | linux,code = <2>; |
52 | label = "userpb"; | 52 | label = "userpb"; |
53 | gpios = <&gpio1 0 0x4>; | 53 | gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; |
54 | }; | 54 | }; |
55 | button@2 { | 55 | button@2 { |
56 | debounce_interval = <50>; | 56 | debounce_interval = <50>; |
57 | wakeup-source; | 57 | wakeup-source; |
58 | linux,code = <3>; | 58 | linux,code = <3>; |
59 | label = "extkb1"; | 59 | label = "extkb1"; |
60 | gpios = <&gpio4 23 0x4>; | 60 | gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>; |
61 | }; | 61 | }; |
62 | button@3 { | 62 | button@3 { |
63 | debounce_interval = <50>; | 63 | debounce_interval = <50>; |
64 | wakeup-source; | 64 | wakeup-source; |
65 | linux,code = <4>; | 65 | linux,code = <4>; |
66 | label = "extkb2"; | 66 | label = "extkb2"; |
67 | gpios = <&gpio4 24 0x4>; | 67 | gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>; |
68 | }; | 68 | }; |
69 | button@4 { | 69 | button@4 { |
70 | debounce_interval = <50>; | 70 | debounce_interval = <50>; |
71 | wakeup-source; | 71 | wakeup-source; |
72 | linux,code = <5>; | 72 | linux,code = <5>; |
73 | label = "extkb3"; | 73 | label = "extkb3"; |
74 | gpios = <&gpio5 1 0x4>; | 74 | gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; |
75 | }; | 75 | }; |
76 | button@5 { | 76 | button@5 { |
77 | debounce_interval = <50>; | 77 | debounce_interval = <50>; |
78 | wakeup-source; | 78 | wakeup-source; |
79 | linux,code = <6>; | 79 | linux,code = <6>; |
80 | label = "extkb4"; | 80 | label = "extkb4"; |
81 | gpios = <&gpio5 2 0x4>; | 81 | gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>; |
82 | }; | 82 | }; |
83 | }; | 83 | }; |
84 | 84 | ||
@@ -88,7 +88,7 @@ | |||
88 | pinctrl-0 = <&gpioled_snowball_mode>; | 88 | pinctrl-0 = <&gpioled_snowball_mode>; |
89 | used-led { | 89 | used-led { |
90 | label = "user_led"; | 90 | label = "user_led"; |
91 | gpios = <&gpio4 14 0x4>; | 91 | gpios = <&gpio4 14 GPIO_ACTIVE_HIGH>; |
92 | default-state = "on"; | 92 | default-state = "on"; |
93 | linux,default-trigger = "heartbeat"; | 93 | linux,default-trigger = "heartbeat"; |
94 | }; | 94 | }; |
@@ -155,8 +155,8 @@ | |||
155 | vmmci: regulator-gpio { | 155 | vmmci: regulator-gpio { |
156 | compatible = "regulator-gpio"; | 156 | compatible = "regulator-gpio"; |
157 | 157 | ||
158 | gpios = <&gpio7 4 0x4>; | 158 | gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>; |
159 | enable-gpio = <&gpio6 25 0x4>; | 159 | enable-gpio = <&gpio6 25 GPIO_ACTIVE_HIGH>; |
160 | 160 | ||
161 | regulator-min-microvolt = <1800000>; | 161 | regulator-min-microvolt = <1800000>; |
162 | regulator-max-microvolt = <2900000>; | 162 | regulator-max-microvolt = <2900000>; |
@@ -182,8 +182,7 @@ | |||
182 | pinctrl-0 = <&sdi0_default_mode>; | 182 | pinctrl-0 = <&sdi0_default_mode>; |
183 | pinctrl-1 = <&sdi0_sleep_mode>; | 183 | pinctrl-1 = <&sdi0_sleep_mode>; |
184 | 184 | ||
185 | cd-gpios = <&gpio6 26 0x4>; // 218 | 185 | cd-gpios = <&gpio6 26 GPIO_ACTIVE_LOW>; // 218 |
186 | cd-inverted; | ||
187 | 186 | ||
188 | status = "okay"; | 187 | status = "okay"; |
189 | }; | 188 | }; |