ARM: dts: imx6dl-yapp4: Enable the MPR121 touchkey controller on Hydra
authorMichal Vokáč <michal.vokac@ysoft.com>
Thu, 3 Oct 2019 06:12:56 +0000 (08:12 +0200)
committerShawn Guo <shawnguo@kernel.org>
Fri, 25 Oct 2019 02:45:08 +0000 (10:45 +0800)
Add the touch keyboard present on Hydra board. The controller
is connected only using I2C lines. The interrupt line is not
available hence we use the polling mode.

Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
arch/arm/boot/dts/imx6dl-yapp4-hydra.dts

index e8d800f..6507bfc 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/pwm/pwm.h>
 
 / {
                vcc-supply = <&sw2_reg>;
                status = "disabled";
        };
+
+       touchkeys: keys@5a {
+               compatible = "fsl,mpr121-touchkey";
+               reg = <0x5a>;
+               vdd-supply = <&sw2_reg>;
+               autorepeat;
+               linux,keycodes = <KEY_1>, <KEY_2>, <KEY_3>, <KEY_4>, <KEY_5>,
+                               <KEY_6>, <KEY_7>, <KEY_8>, <KEY_9>,
+                               <KEY_BACKSPACE>, <KEY_0>, <KEY_ENTER>;
+               poll-interval = <50>;
+               status = "disabled";
+       };
 };
 
 &iomuxc {
index f979270..84c275b 100644 (file)
        status = "okay";
 };
 
+&touchkeys {
+       status = "okay";
+};
+
 &usdhc3 {
        status = "okay";
 };