diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-01-02 09:59:12 -0500 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2017-01-04 05:39:01 -0500 |
commit | b8e98db0dc64516ab66a6354f7b50c768df3185c (patch) | |
tree | 6bcf7a391d31ae61f57f6f95e2f2f8fcd49819c9 | |
parent | 869fe59cd194c2b0799bc9bb4c0b2de184dea0a9 (diff) |
ARM: dts: armada388-clearfog: move rear button
Move the rear button support into the clearfog pro support file.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/armada-388-clearfog.dts | 18 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-388-clearfog.dtsi | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/arch/arm/boot/dts/armada-388-clearfog.dts b/arch/arm/boot/dts/armada-388-clearfog.dts index 72fd80e209ce..7aca6c130f69 100644 --- a/arch/arm/boot/dts/armada-388-clearfog.dts +++ b/arch/arm/boot/dts/armada-388-clearfog.dts | |||
@@ -126,6 +126,20 @@ | |||
126 | }; | 126 | }; |
127 | }; | 127 | }; |
128 | }; | 128 | }; |
129 | |||
130 | gpio-keys { | ||
131 | compatible = "gpio-keys"; | ||
132 | pinctrl-0 = <&rear_button_pins>; | ||
133 | pinctrl-names = "default"; | ||
134 | |||
135 | button_0 { | ||
136 | /* The rear SW3 button */ | ||
137 | label = "Rear Button"; | ||
138 | gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; | ||
139 | linux,can-disable; | ||
140 | linux,code = <BTN_0>; | ||
141 | }; | ||
142 | }; | ||
129 | }; | 143 | }; |
130 | 144 | ||
131 | ð1 { | 145 | ð1 { |
@@ -183,6 +197,10 @@ | |||
183 | marvell,pins = "mpp55"; | 197 | marvell,pins = "mpp55"; |
184 | marvell,function = "spi1"; | 198 | marvell,function = "spi1"; |
185 | }; | 199 | }; |
200 | rear_button_pins: rear-button-pins { | ||
201 | marvell,pins = "mpp34"; | ||
202 | marvell,function = "gpio"; | ||
203 | }; | ||
186 | }; | 204 | }; |
187 | 205 | ||
188 | &spi1 { | 206 | &spi1 { |
diff --git a/arch/arm/boot/dts/armada-388-clearfog.dtsi b/arch/arm/boot/dts/armada-388-clearfog.dtsi index 30b75379377a..770d4bff6884 100644 --- a/arch/arm/boot/dts/armada-388-clearfog.dtsi +++ b/arch/arm/boot/dts/armada-388-clearfog.dtsi | |||
@@ -240,10 +240,6 @@ | |||
240 | marvell,pins = "mpp24", "mpp25"; | 240 | marvell,pins = "mpp24", "mpp25"; |
241 | marvell,function = "ua1"; | 241 | marvell,function = "ua1"; |
242 | }; | 242 | }; |
243 | rear_button_pins: rear-button-pins { | ||
244 | marvell,pins = "mpp34"; | ||
245 | marvell,function = "gpio"; | ||
246 | }; | ||
247 | }; | 243 | }; |
248 | 244 | ||
249 | sata@a8000 { | 245 | sata@a8000 { |
@@ -299,20 +295,6 @@ | |||
299 | }; | 295 | }; |
300 | }; | 296 | }; |
301 | }; | 297 | }; |
302 | |||
303 | gpio-keys { | ||
304 | compatible = "gpio-keys"; | ||
305 | pinctrl-0 = <&rear_button_pins>; | ||
306 | pinctrl-names = "default"; | ||
307 | |||
308 | button_0 { | ||
309 | /* The rear SW3 button */ | ||
310 | label = "Rear Button"; | ||
311 | gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; | ||
312 | linux,can-disable; | ||
313 | linux,code = <BTN_0>; | ||
314 | }; | ||
315 | }; | ||
316 | }; | 298 | }; |
317 | 299 | ||
318 | &spi1 { | 300 | &spi1 { |