Skip to content

Commit

Permalink
ARM: dts: imx6q-sabresd: add volume up/down gpio keys
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liu Ying authored and Shawn Guo committed Nov 16, 2012
1 parent a1fff23 commit 82c4570
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/arm/boot/dts/imx6q-sabresd.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
};
};
};

0 comments on commit 82c4570

Please sign in to comment.