diff options
author | Anson Huang <b20788@freescale.com> | 2014-06-20 01:17:29 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-07-18 04:49:38 -0400 |
commit | 4014a4f7c0dca2b3bec54fd0176340ba45a46385 (patch) | |
tree | 5ff9d0848264717cce36d6625f9d745e9c577b2e /arch/arm/boot/dts/imx6sx-sdb.dts | |
parent | c64b874f0eac6f450e8834e407bc98ec402b81e7 (diff) |
ARM: dts: imx6sx-sdb: add gpio key support
This patch adds support for imx6sx-sdb board's gpio keys:
SW4(FUNC1): KEY_VOLUMEUP
SW5(FUNC2): KEY_VOLUMEDOWN
Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/boot/dts/imx6sx-sdb.dts')
-rw-r--r-- | arch/arm/boot/dts/imx6sx-sdb.dts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6sx-sdb.dts b/arch/arm/boot/dts/imx6sx-sdb.dts index 9906f654e494..da40f1396798 100644 --- a/arch/arm/boot/dts/imx6sx-sdb.dts +++ b/arch/arm/boot/dts/imx6sx-sdb.dts | |||
@@ -8,6 +8,8 @@ | |||
8 | 8 | ||
9 | /dts-v1/; | 9 | /dts-v1/; |
10 | 10 | ||
11 | #include <dt-bindings/gpio/gpio.h> | ||
12 | #include <dt-bindings/input/input.h> | ||
11 | #include "imx6sx.dtsi" | 13 | #include "imx6sx.dtsi" |
12 | 14 | ||
13 | / { | 15 | / { |
@@ -22,6 +24,24 @@ | |||
22 | reg = <0x80000000 0x40000000>; | 24 | reg = <0x80000000 0x40000000>; |
23 | }; | 25 | }; |
24 | 26 | ||
27 | gpio-keys { | ||
28 | compatible = "gpio-keys"; | ||
29 | pinctrl-names = "default"; | ||
30 | pinctrl-0 = <&pinctrl_gpio_keys>; | ||
31 | |||
32 | volume-up { | ||
33 | label = "Volume Up"; | ||
34 | gpios = <&gpio1 18 GPIO_ACTIVE_LOW>; | ||
35 | linux,code = <KEY_VOLUMEUP>; | ||
36 | }; | ||
37 | |||
38 | volume-down { | ||
39 | label = "Volume Down"; | ||
40 | gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; | ||
41 | linux,code = <KEY_VOLUMEDOWN>; | ||
42 | }; | ||
43 | }; | ||
44 | |||
25 | regulators { | 45 | regulators { |
26 | compatible = "simple-bus"; | 46 | compatible = "simple-bus"; |
27 | #address-cells = <1>; | 47 | #address-cells = <1>; |
@@ -114,6 +134,13 @@ | |||
114 | >; | 134 | >; |
115 | }; | 135 | }; |
116 | 136 | ||
137 | pinctrl_gpio_keys: gpio_keysgrp { | ||
138 | fsl,pins = < | ||
139 | MX6SX_PAD_CSI_DATA04__GPIO1_IO_18 0x17059 | ||
140 | MX6SX_PAD_CSI_DATA05__GPIO1_IO_19 0x17059 | ||
141 | >; | ||
142 | }; | ||
143 | |||
117 | pinctrl_vcc_sd3: vccsd3grp { | 144 | pinctrl_vcc_sd3: vccsd3grp { |
118 | fsl,pins = < | 145 | fsl,pins = < |
119 | MX6SX_PAD_KEY_COL1__GPIO2_IO_11 0x17059 | 146 | MX6SX_PAD_KEY_COL1__GPIO2_IO_11 0x17059 |