aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2015-03-24 12:31:35 -0400
committerShawn Guo <shawn.guo@linaro.org>2015-03-30 07:22:06 -0400
commit3274af07c924fbb682bd4a8eb25bcf41f899d50a (patch)
tree5fbd20056e1f919a27a82de01d1fca960cd3784c /arch/arm
parentffbae6b719227662f3baca349d1e17ac7e652ec4 (diff)
ARM: dts: cubox: Map gpio-keys to gpio3 8
The Cubox has a recessed button between the HDMI and RJ-45 connectors that wasn't mapped in the device tree, so I've mapped it to gpio-keys BTN_0. Signed-off-by: George Joseph <george.joseph@fairview5.com> Tested-by: George Joseph <george.joseph@fairview5.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/imx6qdl-cubox-i.dtsi20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6qdl-cubox-i.dtsi b/arch/arm/boot/dts/imx6qdl-cubox-i.dtsi
index 4303bc0b6284..d033bb182060 100644
--- a/arch/arm/boot/dts/imx6qdl-cubox-i.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-cubox-i.dtsi
@@ -41,6 +41,8 @@
41 */ 41 */
42#include "imx6qdl-microsom.dtsi" 42#include "imx6qdl-microsom.dtsi"
43#include "imx6qdl-microsom-ar8035.dtsi" 43#include "imx6qdl-microsom-ar8035.dtsi"
44#include <dt-bindings/input/input.h>
45#include <dt-bindings/gpio/gpio.h>
44 46
45/ { 47/ {
46 ir_recv: ir-receiver { 48 ir_recv: ir-receiver {
@@ -104,6 +106,18 @@
104 spdif-controller = <&spdif>; 106 spdif-controller = <&spdif>;
105 spdif-out; 107 spdif-out;
106 }; 108 };
109
110 gpio-keys {
111 compatible = "gpio-keys";
112 pinctrl-0 = <&pinctrl_gpio_key>;
113 pinctrl-names = "default";
114
115 button_0 {
116 label = "Button 0";
117 gpios = <&gpio3 8 GPIO_ACTIVE_LOW>;
118 linux,code = <BTN_0>;
119 };
120 };
107}; 121};
108 122
109&hdmi { 123&hdmi {
@@ -208,6 +222,12 @@
208 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 222 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
209 >; 223 >;
210 }; 224 };
225
226 pinctrl_gpio_key: gpio-key {
227 fsl,pins = <
228 MX6QDL_PAD_EIM_DA8__GPIO3_IO08 0x17059
229 >;
230 };
211 }; 231 };
212}; 232};
213 233