aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2014-03-31 03:22:46 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:58:09 -0400
commitb174412d7129d82920abf88fe88d7986b60b8fad (patch)
treeb51c2892a9740720dd1d37ce2e6100ea7d56a369 /arch/arm/boot
parentc77e47c5542b32e5a8a49b0b8e50df8bcdc35fde (diff)
ENGR00306156 ARM: dts: imx6sx-sdb: add gpio key support
Add GPIO key support on i.MX6SX-SDB, see below mapping: KEY_FUNC1 -> KEY_VOLUMEUP; KEY_FUNC2 -> KEY_VOLUMEDOWN; Signed-off-by: Anson Huang <b20788@freescale.com>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/imx6sx-sdb.dts19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6sx-sdb.dts b/arch/arm/boot/dts/imx6sx-sdb.dts
index 9d8802e04cff..6b1e7a426b47 100644
--- a/arch/arm/boot/dts/imx6sx-sdb.dts
+++ b/arch/arm/boot/dts/imx6sx-sdb.dts
@@ -8,6 +8,7 @@
8 8
9/dts-v1/; 9/dts-v1/;
10 10
11#include <dt-bindings/gpio/gpio.h>
11#include "imx6sx.dtsi" 12#include "imx6sx.dtsi"
12 13
13/ { 14/ {
@@ -101,6 +102,22 @@
101 102
102 }; 103 };
103 104
105 gpio-keys {
106 compatible = "gpio-keys";
107
108 volume-up {
109 label = "Volume Up";
110 gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
111 linux,code = <115>; /* KEY_VOLUMEUP */
112 };
113
114 volume-down {
115 label = "Volume Down";
116 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
117 linux,code = <114>; /* KEY_VOLUMEDOWN */
118 };
119 };
120
104 sound { 121 sound {
105 compatible = "fsl,imx6q-sabresd-wm8962", 122 compatible = "fsl,imx6q-sabresd-wm8962",
106 "fsl,imx-audio-wm8962"; 123 "fsl,imx-audio-wm8962";
@@ -376,6 +393,8 @@
376 MX6SX_PAD_QSPI1B_DATA1__GPIO4_IO_25 0x17059 393 MX6SX_PAD_QSPI1B_DATA1__GPIO4_IO_25 0x17059
377 MX6SX_PAD_QSPI1B_DATA2__GPIO4_IO_26 0x17059 394 MX6SX_PAD_QSPI1B_DATA2__GPIO4_IO_26 0x17059
378 MX6SX_PAD_QSPI1B_DATA3__GPIO4_IO_27 0x17059 395 MX6SX_PAD_QSPI1B_DATA3__GPIO4_IO_27 0x17059
396 MX6SX_PAD_CSI_DATA04__GPIO1_IO_18 0x17059
397 MX6SX_PAD_CSI_DATA05__GPIO1_IO_19 0x17059
379 >; 398 >;
380 }; 399 };
381 }; 400 };