summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-02-11 15:42:02 +0200
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-02-17 20:35:57 +0200
commitd645c53eb54dc92c8f61267961e2a42166aae052 (patch)
treea19b6ded7a3b3daa59861da9561fe38a64e8a6e5
parent7a222ba72d947f7c20c7b01cd9ae1346d968202f (diff)
overlays: colibri-imx6: full set of PCAP overlays
Add overlays for: - Atmel MXT TS for boards with Capacitive Touch Connector - Atmel MXT TS for Capacitive Touch Adapter - Fusion F0710A TS for boards with Capacitive Touch Connector - Fusion F0710A TS for Capacitive Touch Adapter Related-to: ELB-3243 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--overlays/Makefile6
-rw-r--r--overlays/colibri-imx6-aster_atmel-mxt_overlay.dts42
-rw-r--r--overlays/colibri-imx6-eval_atmel-mxt_overlay.dts35
-rw-r--r--overlays/colibri-imx6_atmel-mxt-adapter_overlay.dts35
-rw-r--r--overlays/colibri-imx6_atmel-mxt-connector_overlay.dts24
-rw-r--r--overlays/colibri-imx6_fusion-f0710a-adapter_overlay.dts28
-rw-r--r--overlays/colibri-imx6_fusion-f0710a-connector_overlay.dts30
7 files changed, 121 insertions, 79 deletions
diff --git a/overlays/Makefile b/overlays/Makefile
index 9bda199..b1bd13e 100644
--- a/overlays/Makefile
+++ b/overlays/Makefile
@@ -37,9 +37,11 @@ dtb-y += apalis-imx8x_atmel-mxt_overlay.dtbo
dtb-y += apalis-imx8x_dsihdmi_overlay.dtbo
dtb-y += apalis-imx8x_lvds_overlay.dtbo
dtb-y += apalis-imx8x_parallel-rgb_overlay.dtbo
-dtb-y += colibri-imx6-aster_atmel-mxt_overlay.dtbo
-dtb-y += colibri-imx6-eval_atmel-mxt_overlay.dtbo
+dtb-y += colibri-imx6_atmel-mxt-adapter_overlay.dtbo
+dtb-y += colibri-imx6_atmel-mxt-connector_overlay.dtbo
dtb-y += colibri-imx6-eval_spidev_overlay.dtbo
+dtb-y += colibri-imx6_fusion-f0710a-adapter_overlay.dtbo
+dtb-y += colibri-imx6_fusion-f0710a-connector_overlay.dtbo
dtb-y += colibri-imx6_hdmi_overlay.dtbo
dtb-y += colibri-imx6_lcd-lt161010_overlay.dtbo
dtb-y += colibri-imx6_lcd-lt170410_overlay.dtbo
diff --git a/overlays/colibri-imx6-aster_atmel-mxt_overlay.dts b/overlays/colibri-imx6-aster_atmel-mxt_overlay.dts
deleted file mode 100644
index 6b76b74..0000000
--- a/overlays/colibri-imx6-aster_atmel-mxt_overlay.dts
+++ /dev/null
@@ -1,42 +0,0 @@
-// Atmel touchscreen for the 7inch capacitive display orderable at Toradex. Use this devicetree on the Aster board.
-
-/dts-v1/;
-/plugin/;
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/interrupt-controller/irq.h>
-#include <imx6dl-pinfunc.h>
-
-/ {
- compatible = "toradex,colibri_imx6dl";
-};
-
-&i2c3 {
- #address-cells = <1>;
- #size-cells = <0>;
-
- atmel_mxt_ts: atmel_mxt_ts@4a {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_atmel_mxt_ts>;
- compatible = "atmel,maxtouch";
- reg = <0x4a>;
- interrupt-parent = <&gpio2>;
- interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
- reset-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
- };
-};
-
-&iomuxc {
- gpio {
- pinctrl_atmel_mxt_ts: atmelmxttsgrp {
- fsl,pins = <
- MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x130b1 /* SODIMM_106 */
- MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x130b1 /* SODIMM_107 */
- >;
- };
- };
-};
-
-&weim {
- status = "disabled";
-};
diff --git a/overlays/colibri-imx6-eval_atmel-mxt_overlay.dts b/overlays/colibri-imx6-eval_atmel-mxt_overlay.dts
deleted file mode 100644
index 3e31803..0000000
--- a/overlays/colibri-imx6-eval_atmel-mxt_overlay.dts
+++ /dev/null
@@ -1,35 +0,0 @@
-// Atmel touchscreen for the 7inch and 10inch display orderable at Toradex. Use this devicetree on the Evaluation or Iris board.
-
-/dts-v1/;
-/plugin/;
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/interrupt-controller/irq.h>
-
-/ {
- compatible = "toradex,colibri_imx6dl";
-};
-
-&i2c3 {
- #address-cells = <1>;
- #size-cells = <0>;
-
- /* Atmel maxtouch controller */
- atmel_mxt_ts: atmel_mxt_ts@4a {
- compatible = "atmel,maxtouch";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_pcap_1>;
- reg = <0x4a>;
- interrupt-parent = <&gpio1>;
- interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
- reset-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
- };
-};
-
-&pwm1 {
- status = "disabled";
-};
-
-&pwm4{
- status = "disabled";
-};
diff --git a/overlays/colibri-imx6_atmel-mxt-adapter_overlay.dts b/overlays/colibri-imx6_atmel-mxt-adapter_overlay.dts
new file mode 100644
index 0000000..bcdeace
--- /dev/null
+++ b/overlays/colibri-imx6_atmel-mxt-adapter_overlay.dts
@@ -0,0 +1,35 @@
+// Atmel MXT touchscreen for the 7inch and 10inch display orderable at Toradex. Compatible with a Capacitive Touch Adapter.
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+ compatible = "toradex,colibri_imx6dl";
+};
+
+&atmel_mxt_ts {
+ pinctrl-0 = <&pinctrl_atmel_adap>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
+ reset-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
+ status = "okay";
+};
+
+&fusion_f0710a {
+ status = "disabled";
+};
+
+&i2c3 {
+ status = "okay";
+};
+
+&pwm1 {
+ status = "disabled";
+};
+
+&pwm4{
+ status = "disabled";
+};
diff --git a/overlays/colibri-imx6_atmel-mxt-connector_overlay.dts b/overlays/colibri-imx6_atmel-mxt-connector_overlay.dts
new file mode 100644
index 0000000..a99273f
--- /dev/null
+++ b/overlays/colibri-imx6_atmel-mxt-connector_overlay.dts
@@ -0,0 +1,24 @@
+// Atmel touchscreen for the 7inch and 10inch capacitive display orderable at Toradex. Compatible with a Capacitive Touch Connector.
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,colibri_imx6dl";
+};
+
+&atmel_mxt_ts {
+ status = "okay";
+};
+
+&fusion_f0710a {
+ status = "disabled";
+};
+
+&i2c3 {
+ status = "okay";
+};
+
+&weim {
+ status = "disabled";
+};
diff --git a/overlays/colibri-imx6_fusion-f0710a-adapter_overlay.dts b/overlays/colibri-imx6_fusion-f0710a-adapter_overlay.dts
new file mode 100644
index 0000000..a24a414
--- /dev/null
+++ b/overlays/colibri-imx6_fusion-f0710a-adapter_overlay.dts
@@ -0,0 +1,28 @@
+// Fusion F0710A touchscreen. Compatible with a Capacitive Touch Adapter.
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,colibri_imx6dl";
+};
+
+&atmel_mxt_ts {
+ status = "disabled";
+};
+
+&fusion_f0710a {
+ status = "okay";
+};
+
+&i2c3 {
+ status = "okay";
+};
+
+&pwm1 {
+ status = "disabled";
+};
+
+&pwm4{
+ status = "disabled";
+};
diff --git a/overlays/colibri-imx6_fusion-f0710a-connector_overlay.dts b/overlays/colibri-imx6_fusion-f0710a-connector_overlay.dts
new file mode 100644
index 0000000..b2594a8
--- /dev/null
+++ b/overlays/colibri-imx6_fusion-f0710a-connector_overlay.dts
@@ -0,0 +1,30 @@
+// Fusion F0710A touchscreen. Compatible with a Capacitive Touch Connector.
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+ compatible = "toradex,colibri_imx6dl";
+};
+
+&atmel_mxt_ts {
+ status = "disabled";
+};
+
+&fusion_f0710a {
+ pinctrl-0 = <&pinctrl_atmel_conn>;
+ gpios = <&gpio2 24 GPIO_ACTIVE_HIGH /* SODIMM 107, Pen intr */
+ &gpio1 14 GPIO_ACTIVE_HIGH /* SODIMM 106, Reset */
+ >;
+ status = "okay";
+};
+
+&i2c3 {
+ status = "okay";
+};
+
+&weim {
+ status = "disabled";
+};