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 /arch/arm/boot/dts/ste-snowball.dts | |
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>
Diffstat (limited to 'arch/arm/boot/dts/ste-snowball.dts')
-rw-r--r-- | arch/arm/boot/dts/ste-snowball.dts | 19 |
1 files changed, 9 insertions, 10 deletions
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 | }; |