Skip to content

Commit

Permalink
ARM: dts: imx6dl-yapp4: Enable the MPR121 touchkey controller on Hydra
Browse files Browse the repository at this point in the history
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áč <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
  • Loading branch information
zandar authored and Shawn Guo committed Oct 25, 2019
1 parent 7e28fc4 commit 764b5b5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>

/ {
Expand Down Expand Up @@ -330,6 +331,18 @@
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 {
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/imx6dl-yapp4-hydra.dts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
status = "okay";
};

&touchkeys {
status = "okay";
};

&usdhc3 {
status = "okay";
};

0 comments on commit 764b5b5

Please sign in to comment.