diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-07-27 17:09:43 +0300 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-08-19 16:32:03 +0300 |
commit | 4e3d3758b343b0dc3b172e726623033d20557df7 (patch) | |
tree | d31226c9d47d1711805dab9514ec7b05c6973c26 | |
parent | d2a77cde6ce7eeb5e3656dcd566cfcee94400379 (diff) |
apalis-imx6: convert atmel mxt to syntactic sugar
Convert an overlay file for Atmel MXT multitouch adapter
for Apalis iMX6 module into Syntactic Sugar format, as this format
is strongly recommended in Embedded Linux Wiki [1].
[1] https://elinux.org/Device_Tree_Reference#Overlay_Source_Format
Related-to: ELB-2834
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r-- | overlays/apalis-imx6_atmel-mxt_overlay.dts | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/overlays/apalis-imx6_atmel-mxt_overlay.dts b/overlays/apalis-imx6_atmel-mxt_overlay.dts index 6fae23b..505dcb7 100644 --- a/overlays/apalis-imx6_atmel-mxt_overlay.dts +++ b/overlays/apalis-imx6_atmel-mxt_overlay.dts @@ -3,20 +3,25 @@ /dts-v1/; /plugin/; +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> + / { compatible = "toradex,apalis_imx6q"; - fragment@0 { - target-path="/soc/aips-bus@2100000/i2c@21a0000"; - __overlay__ { - status = "okay"; - atmel_mxt_ts: atmel_mxt_ts@4a { - compatible = "atmel,maxtouch"; - reg = <0x4a>; - interrupt-parent = <&gpio6>; - interrupts = <10 2>; - reset-gpios = <&gpio6 9 0>; - status = "okay"; - }; - }; +}; + +&i2c0 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + atmel_mxt_ts: atmel_mxt_ts@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio6>; + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; + status = "okay"; }; }; + |