summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/imx6q-sabresd.dts
diff options
context:
space:
mode:
authorLiu Ying <Ying.Liu@freescale.com>2012-11-12 09:26:18 +0100
committerShawn Guo <shawn.guo@linaro.org>2012-11-16 07:18:53 +0100
commit82c45705743c8f9e9662bc42f02d34731f0a24df (patch)
treeb37d09715641abffd40d6d42627a7be62443301d /arch/arm/boot/dts/imx6q-sabresd.dts
parentARM: dts: imx53: pinctl update (diff)
downloadlinux-82c45705743c8f9e9662bc42f02d34731f0a24df.tar.xz
linux-82c45705743c8f9e9662bc42f02d34731f0a24df.zip
ARM: dts: imx6q-sabresd: add volume up/down gpio keys
Add volume up/down gpio keys support in imx6q-sabresd.dts. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/imx6q-sabresd.dts')
-rw-r--r--arch/arm/boot/dts/imx6q-sabresd.dts18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6q-sabresd.dts b/arch/arm/boot/dts/imx6q-sabresd.dts
index e596c28c214d..a42402562b7b 100644
--- a/arch/arm/boot/dts/imx6q-sabresd.dts
+++ b/arch/arm/boot/dts/imx6q-sabresd.dts
@@ -38,6 +38,8 @@
hog {
pinctrl_hog: hoggrp {
fsl,pins = <
+ 1004 0x80000000 /* MX6Q_PAD_GPIO_4__GPIO_1_4 */
+ 1012 0x80000000 /* MX6Q_PAD_GPIO_5__GPIO_1_5 */
1402 0x80000000 /* MX6Q_PAD_NANDF_D0__GPIO_2_0 */
1410 0x80000000 /* MX6Q_PAD_NANDF_D1__GPIO_2_1 */
1418 0x80000000 /* MX6Q_PAD_NANDF_D2__GPIO_2_2 */
@@ -73,4 +75,20 @@
};
};
};
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ volume-up {
+ label = "Volume Up";
+ gpios = <&gpio1 4 0>;
+ linux,code = <115>; /* KEY_VOLUMEUP */
+ };
+
+ volume-down {
+ label = "Volume Down";
+ gpios = <&gpio1 5 0>;
+ linux,code = <114>; /* KEY_VOLUMEDOWN */
+ };
+ };
};