summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksii Bidnichenko <oleksii.bidnichenko@toradex.com>2021-08-22 13:38:22 +0300
committerOleksii Bidnichenko <oleksii.bidnichenko@toradex.com>2021-09-02 15:53:44 +0300
commit653cb21b42a735b8dca99489837c0baa61ec1503 (patch)
tree96f1a8fdb0dfab2aa8d57f906fde70bdbaa5a0b6
parentf4b74d8a48e76a626d66cdd9d5e358f630940005 (diff)
imx6ull-emmc: add overlaystoradex_5.4.y
Add following overlays: - Parallel RGB support - Parallel RGB LVDS support - Atmel MXT TS for boards with Capacitive Touch Connector - Atmel MXT TS for Capacitive Touch Adapter - Toradex 7" resistive touchscreen ad7879 Related-to: ELB-4065 Related-to: ELB-4080 Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com>
-rw-r--r--overlays/Makefile5
-rw-r--r--overlays/colibri-imx6ull_ad7879_overlay.dts22
-rw-r--r--overlays/colibri-imx6ull_atmel-mxt-adapter_overlay.dts41
-rw-r--r--overlays/colibri-imx6ull_atmel-mxt-connector_overlay.dts34
-rw-r--r--overlays/colibri-imx6ull_parallel-rgb-lvds_overlay.dts75
-rw-r--r--overlays/colibri-imx6ull_parallel-rgb_overlay.dts30
-rw-r--r--overlays/display-dpi-lt170410_overlay.dts2
-rw-r--r--overlays/display-edt5.7_overlay.dts2
-rw-r--r--overlays/display-edt7_overlay.dts2
-rw-r--r--overlays/display-fullhd_overlay.dts3
-rw-r--r--overlays/display-lt161010_overlay.dts2
-rw-r--r--overlays/display-vga_overlay.dts2
12 files changed, 214 insertions, 6 deletions
diff --git a/overlays/Makefile b/overlays/Makefile
index c45ca04..db8697c 100644
--- a/overlays/Makefile
+++ b/overlays/Makefile
@@ -34,6 +34,11 @@ dtb-y += colibri-imx6_hdmi_overlay.dtbo
dtb-y += colibri-imx6_parallel-rgb-lvds_overlay.dtbo
dtb-y += colibri-imx6_parallel-rgb_overlay.dtbo
dtb-y += colibri-imx6_stmpe-ts_overlay.dtbo
+dtb-y += colibri-imx6ull_ad7879_overlay.dtbo
+dtb-y += colibri-imx6ull_atmel-mxt-adapter_overlay.dtbo
+dtb-y += colibri-imx6ull_atmel-mxt-connector_overlay.dtbo
+dtb-y += colibri-imx6ull_parallel-rgb-lvds_overlay.dtbo
+dtb-y += colibri-imx6ull_parallel-rgb_overlay.dtbo
dtb-y += colibri-imx7_ad7879_overlay.dtbo
dtb-y += colibri-imx7_atmel-mxt-adapter_overlay.dtbo
dtb-y += colibri-imx7_atmel-mxt-connector_overlay.dtbo
diff --git a/overlays/colibri-imx6ull_ad7879_overlay.dts b/overlays/colibri-imx6ull_ad7879_overlay.dts
new file mode 100644
index 0000000..c109926
--- /dev/null
+++ b/overlays/colibri-imx6ull_ad7879_overlay.dts
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2021 Toradex
+ */
+
+// Enable the resistive touch controller (AD7879) on the Colibri iMX6ULL.
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,colibri-imx6ull-emmc";
+};
+
+&ad7879_ts {
+ status = "okay";
+};
+
+&i2c2 {
+ /* Was disabled because ad7879 is a single I2C slave */
+ status = "okay";
+};
diff --git a/overlays/colibri-imx6ull_atmel-mxt-adapter_overlay.dts b/overlays/colibri-imx6ull_atmel-mxt-adapter_overlay.dts
new file mode 100644
index 0000000..5f74742
--- /dev/null
+++ b/overlays/colibri-imx6ull_atmel-mxt-adapter_overlay.dts
@@ -0,0 +1,41 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2021 Toradex
+ */
+
+// 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-imx6ull-emmc";
+};
+
+&atmel_mxt_ts {
+ pinctrl-0 = <&pinctrl_atmel_adap>;
+ interrupt-parent = <&gpio4>;
+ interrupts = <16 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28, INT */
+ reset-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* SODIMM 30, RST */
+ status = "okay";
+};
+
+&i2c1 {
+ status = "okay";
+};
+
+/* PWM <B> */
+&pwm5 {
+ /* Pin already used by atmel_mxt_ts touchscreen */
+ status = "disabled";
+};
+
+/* PWM <C> */
+&pwm6 {
+ /* Pin already used by atmel_mxt_ts touchscreen */
+ status = "disabled";
+};
diff --git a/overlays/colibri-imx6ull_atmel-mxt-connector_overlay.dts b/overlays/colibri-imx6ull_atmel-mxt-connector_overlay.dts
new file mode 100644
index 0000000..5806170
--- /dev/null
+++ b/overlays/colibri-imx6ull_atmel-mxt-connector_overlay.dts
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2021 Toradex
+ */
+
+// Atmel touchscreen for the 7inch and 10inch capacitive display orderable at
+// Toradex. Compatible with a Capacitive Touch Connector.
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,colibri-imx6ull-emmc";
+};
+
+&atmel_mxt_ts {
+ status = "okay";
+};
+
+&i2c1 {
+ status = "okay";
+};
+
+/* PWM <B> */
+&pwm5 {
+ /* Pin already used by atmel_mxt_ts touchscreen */
+ status = "disabled";
+};
+
+/* PWM <C> */
+&pwm6 {
+ /* Pin already used by atmel_mxt_ts touchscreen */
+ status = "disabled";
+};
diff --git a/overlays/colibri-imx6ull_parallel-rgb-lvds_overlay.dts b/overlays/colibri-imx6ull_parallel-rgb-lvds_overlay.dts
new file mode 100644
index 0000000..e4a740e
--- /dev/null
+++ b/overlays/colibri-imx6ull_parallel-rgb-lvds_overlay.dts
@@ -0,0 +1,75 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2020-2021 Toradex
+ */
+
+// Enable the parallel RGB interface on the Colibri iMX6ULL and the LVDS
+// trasceiver on the Iris v2.0A.
+
+#include <dt-bindings/gpio/gpio.h>
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,colibri-imx6ull-emmc";
+};
+
+&backlight {
+ status = "okay";
+};
+
+&can1 {
+ // Disabled due to the SODIMM 55 and 63 pins overlapping
+ status = "disabled";
+};
+
+&gpio1 {
+ // This turns the LVDS transceiver on
+ LVDS_PWRDWN {
+ gpio-hog;
+ gpios = <14 GPIO_ACTIVE_HIGH>; /* SODIMM 99 */
+ line-name = "LVDS_PWRDWN";
+ output-high;
+ };
+};
+
+&gpio2 {
+ // This switches the LVDS transceiver to the single-channel output mode
+ LVDS_MODE {
+ gpio-hog;
+ gpios = <0 GPIO_ACTIVE_HIGH>; /* SODIMM 55 */
+ line-name = "LVDS_MODE";
+ output-high;
+ };
+
+ // This switches the LVDS transceiver to the 24-bit RGB mode
+ LVDS_RGB_MODE {
+ gpio-hog;
+ gpios = <1 GPIO_ACTIVE_HIGH>; /* SODIMM 63 */
+ line-name = "LVDS_RGB_MODE";
+ output-low;
+ };
+};
+
+&gpio5 {
+ // This switches the LVDS transceiver to VESA color mapping mode
+ LVDS_COLOR_MAP {
+ gpio-hog;
+ gpios = <3 GPIO_ACTIVE_HIGH>; /* SODIMM 95 */
+ line-name = "LVDS_COLOR_MAP";
+ output-low;
+ };
+};
+
+&lcdif {
+ status = "okay";
+};
+
+&panel_dpi {
+ status = "okay";
+};
+
+&pwm4 {
+ status = "okay";
+};
diff --git a/overlays/colibri-imx6ull_parallel-rgb_overlay.dts b/overlays/colibri-imx6ull_parallel-rgb_overlay.dts
new file mode 100644
index 0000000..225d77d
--- /dev/null
+++ b/overlays/colibri-imx6ull_parallel-rgb_overlay.dts
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2021 Toradex
+ */
+
+// Enable the parallel RGB interface on the Colibri iMX6ULL. Make sure to also
+// select a valid display configuration.
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,colibri-imx6ull-emmc";
+};
+
+&backlight {
+ status = "okay";
+};
+
+&lcdif {
+ status = "okay";
+};
+
+&panel_dpi {
+ status = "okay";
+};
+
+&pwm4 {
+ status = "okay";
+};
diff --git a/overlays/display-dpi-lt170410_overlay.dts b/overlays/display-dpi-lt170410_overlay.dts
index cb3caaa..ee89c70 100644
--- a/overlays/display-dpi-lt170410_overlay.dts
+++ b/overlays/display-dpi-lt170410_overlay.dts
@@ -13,7 +13,7 @@
compatible = "toradex,colibri_imx6dl",
"toradex,colibri-imx7s",
"toradex,colibri-imx7d",
- "toradex,colibri-imx6ull",
+ "toradex,colibri-imx6ull-emmc",
"toradex,colibri-imx8x";
};
diff --git a/overlays/display-edt5.7_overlay.dts b/overlays/display-edt5.7_overlay.dts
index 8e5701e..d191687 100644
--- a/overlays/display-edt5.7_overlay.dts
+++ b/overlays/display-edt5.7_overlay.dts
@@ -12,7 +12,7 @@
compatible = "toradex,apalis_imx6q",
"toradex,apalis-imx8x",
"toradex,colibri_imx6dl",
- "toradex,colibri-imx6ull",
+ "toradex,colibri-imx6ull-emmc",
"toradex,colibri-imx7d",
"toradex,colibri-imx7s",
"toradex,colibri-imx8x";
diff --git a/overlays/display-edt7_overlay.dts b/overlays/display-edt7_overlay.dts
index 1974baf..e89f29e 100644
--- a/overlays/display-edt7_overlay.dts
+++ b/overlays/display-edt7_overlay.dts
@@ -12,7 +12,7 @@
compatible = "toradex,apalis_imx6q",
"toradex,apalis-imx8x",
"toradex,colibri_imx6dl",
- "toradex,colibri-imx6ull",
+ "toradex,colibri-imx6ull-emmc",
"toradex,colibri-imx7d",
"toradex,colibri-imx7s",
"toradex,colibri-imx8x";
diff --git a/overlays/display-fullhd_overlay.dts b/overlays/display-fullhd_overlay.dts
index 7730a21..fb0ebd7 100644
--- a/overlays/display-fullhd_overlay.dts
+++ b/overlays/display-fullhd_overlay.dts
@@ -12,8 +12,9 @@
compatible = "toradex,apalis_imx6q",
"toradex,apalis-imx8x",
"toradex,colibri_imx6dl",
- "toradex,colibri-imx6ull",
+ "toradex,colibri-imx6ull-emmc",
"toradex,colibri-imx7d",
+ "toradex,colibri-imx7d-emmc",
"toradex,colibri-imx7s",
"toradex,colibri-imx8x";
};
diff --git a/overlays/display-lt161010_overlay.dts b/overlays/display-lt161010_overlay.dts
index 896ce81..21c9068 100644
--- a/overlays/display-lt161010_overlay.dts
+++ b/overlays/display-lt161010_overlay.dts
@@ -12,7 +12,7 @@
compatible = "toradex,apalis_imx6q",
"toradex,apalis-imx8x",
"toradex,colibri_imx6dl",
- "toradex,colibri-imx6ull",
+ "toradex,colibri-imx6ull-emmc",
"toradex,colibri-imx7d",
"toradex,colibri-imx7s",
"toradex,colibri-imx7d-emmc",
diff --git a/overlays/display-vga_overlay.dts b/overlays/display-vga_overlay.dts
index e00771b..d85d647 100644
--- a/overlays/display-vga_overlay.dts
+++ b/overlays/display-vga_overlay.dts
@@ -12,7 +12,7 @@
compatible = "toradex,apalis_imx6q",
"toradex,apalis-imx8x",
"toradex,colibri_imx6dl",
- "toradex,colibri-imx6ull",
+ "toradex,colibri-imx6ull-emmc",
"toradex,colibri-imx7d",
"toradex,colibri-imx7s",
"toradex,colibri-imx8x";