Skip to contentSkip to conversation

ARM: dts: Add Apalis iMX6 overlays

PATCH Superseded Leonardo Costa 3 participants 19 messages Oct 1 – Nov 4

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ARM: dts: Add Apalis iMX6 overlays

From: Leonardo Costa <[email protected]>

This series adds device tree overlays for the Apalis iMX6 SoM. The overlays cover HDMI, parallel and LVDS displays, audio configuration and OV5640 CSI camera modules.

The series adds support for:

- HDMI Displays
- Toradex Capacitive Touch Display 10.1" LVDS
- Toradex Capacitive and Resistive Touch 7" Parallel Displays
- NAU8822 Bridge Tied Load configuration on the Apalis Evaluation Board V1.2
- Toradex OV5640 CSI camera variants with 27 MHz and 24 MHz oscillators

The Makefile entries build the standalone overlays as DTBOs, and add ready-to-use composed DTBs for selected carrier boards and accessory combinations, for build-time coverage.

Leonardo Costa (7):
ARM: dts: imx6q-apalis: Add HDMI Overlay
ARM: dts: imx6q-apalis-ixora: Add 3.3V_SW power regulator
ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 10.1"
LVDS
ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 7"
Parallel
ARM: dts: imx6q-apalis: Add Toradex Resistive Touch Display 7"
Parallel
ARM: dts: imx6q-apalis: Add NAU8822 Bridge Tied Load
ARM: dts: imx6q-apalis: Add Toradex OV5640 CSI Cameras

 arch/arm/boot/dts/nxp/imx/Makefile            | 87 +++++++++++++++++++
 .../imx6q-apalis-eval-v1.2-nau8822-btl.dtso   | 15 ++++
 .../boot/dts/nxp/imx/imx6q-apalis-hdmi.dtso   | 13 +++
 .../dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts   |  7 ++
 .../boot/dts/nxp/imx/imx6q-apalis-ixora.dts   |  7 ++
 .../nxp/imx/imx6q-apalis-ov5640-24mhz.dtso    | 17 ++++
 .../boot/dts/nxp/imx/imx6q-apalis-ov5640.dtsi | 68 +++++++++++++++
 .../boot/dts/nxp/imx/imx6q-apalis-ov5640.dtso | 18 ++++
 ...6q-apalis-panel-cap-touch-10inch-lvds.dtso | 53 +++++++++++
 ...apalis-panel-cap-touch-7inch-parallel.dtso | 34 ++++++++
 ...apalis-panel-res-touch-7inch-parallel.dtso | 30 +++++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 86 ------------------
 12 files changed, 349 insertions(+), 86 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-eval-v1.2-nau8822-btl.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-hdmi.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640-24mhz.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtsi
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-7inch-parallel.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso
#1 lore raw

PATCH 1/7 ARM: dts: imx6q-apalis: Add HDMI Overlay

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the HDMI output on the Apalis iMX6.

The overlay is also combined with the various versions of the Ixora and Evaluation Board carrier board device trees to provide ready-to-use DTBs.

---
 arch/arm/boot/dts/nxp/imx/Makefile            | 51 +++++++++++++++++++
 .../boot/dts/nxp/imx/imx6q-apalis-hdmi.dtso   | 13 +++++
 2 files changed, 64 insertions(+)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-hdmi.dtso
arch/arm/boot/dts/nxp/imx/Makefile +51 -0
index c5caca92ea10c..32d77a59c4358 100644
@@ -59,6 +59,46 @@ dtb-$(CONFIG_SOC_IMX53) += \
 imx53-qsb-hdmi-dtbs := imx53-qsb.dtb imx53-qsb-hdmi.dtbo
 imx53-qsrb-hdmi-dtbs := imx53-qsrb.dtb imx53-qsb-hdmi.dtbo
 
+imx6q-apalis-eval-hdmi-dtbs := \
+	imx6q-apalis-eval.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-eval-v1.2-hdmi-dtbs := \
+	imx6q-apalis-eval-v1.2.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-ixora-hdmi-dtbs := \
+	imx6q-apalis-ixora.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-ixora-v1.1-hdmi-dtbs := \
+	imx6q-apalis-ixora-v1.1.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-ixora-v1.2-hdmi-dtbs := \
+	imx6q-apalis-ixora-v1.2.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-eval-hdmi-dtbs := \
+	imx6q-apalis-v1.2-eval.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-eval-v1.2-hdmi-dtbs := \
+	imx6q-apalis-v1.2-eval-v1.2.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-ixora-hdmi-dtbs := \
+	imx6q-apalis-v1.2-ixora.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-ixora-v1.1-hdmi-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.1.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-ixora-v1.2-hdmi-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-hdmi.dtbo
+
 imx6qdl-dhcom-pdk2-overlay-497-200-x12-dtbs := \
 	imx6q-dhcom-pdk2.dtb \
 	imx6qdl-dhcom-pdk2-overlay-497-200-x12.dtbo
@@ -183,15 +223,26 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6dl-yapp4-phoenix.dtb \
 	imx6dl-yapp4-ursa.dtb \
 	imx6q-apalis-eval.dtb \
+	imx6q-apalis-eval-hdmi.dtb \
 	imx6q-apalis-eval-v1.2.dtb \
+	imx6q-apalis-eval-v1.2-hdmi.dtb \
+	imx6q-apalis-hdmi.dtbo \
 	imx6q-apalis-ixora.dtb \
+	imx6q-apalis-ixora-hdmi.dtb \
 	imx6q-apalis-ixora-v1.1.dtb \
+	imx6q-apalis-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-ixora-v1.2.dtb \
+	imx6q-apalis-ixora-v1.2-hdmi.dtb \
 	imx6q-apalis-v1.2-eval.dtb \
+	imx6q-apalis-v1.2-eval-hdmi.dtb \
 	imx6q-apalis-v1.2-eval-v1.2.dtb \
+	imx6q-apalis-v1.2-eval-v1.2-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora.dtb \
+	imx6q-apalis-v1.2-ixora-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.1.dtb \
+	imx6q-apalis-v1.2-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-hdmi.dtb \
 	imx6q-apf6dev.dtb \
 	imx6q-arm2.dtb \
 	imx6q-b450v3.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-hdmi.dtso new file +13 -0
new file mode 100644
index 0000000000000..592bd366d94e4
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Enable the HDMI interface on the Apalis iMX6.
+ */
+
+/dts-v1/;
+/plugin/;
+
+&hdmi {
+	status = "okay";
+};
#2 lore raw

Re: [PATCH 1/7] ARM: dts: imx6q-apalis: Add HDMI Overlay

Quoted 4 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the HDMI output on the Apalis iMX6.

Quoted 8 lines

The overlay is also combined with the various versions of the Ixora and Evaluation Board carrier board device trees to provide ready-to-use DTBs.

---
 arch/arm/boot/dts/nxp/imx/Makefile            | 51 +++++++++++++++++++
 .../boot/dts/nxp/imx/imx6q-apalis-hdmi.dtso   | 13 +++++

Thank you share one dtso for difference boards.

Can you use imx-hdmi.dtso, so other boards also can share this file.

Frank

Quoted 101 lines
 2 files changed, 64 insertions(+)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-hdmi.dtso
arch/arm/boot/dts/nxp/imx/Makefile +51 -0
index c5caca92ea10c..32d77a59c4358 100644
@@ -59,6 +59,46 @@ dtb-$(CONFIG_SOC_IMX53) += \
 imx53-qsb-hdmi-dtbs := imx53-qsb.dtb imx53-qsb-hdmi.dtbo
 imx53-qsrb-hdmi-dtbs := imx53-qsrb.dtb imx53-qsb-hdmi.dtbo
 
+imx6q-apalis-eval-hdmi-dtbs := \
+	imx6q-apalis-eval.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-eval-v1.2-hdmi-dtbs := \
+	imx6q-apalis-eval-v1.2.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-ixora-hdmi-dtbs := \
+	imx6q-apalis-ixora.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-ixora-v1.1-hdmi-dtbs := \
+	imx6q-apalis-ixora-v1.1.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-ixora-v1.2-hdmi-dtbs := \
+	imx6q-apalis-ixora-v1.2.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-eval-hdmi-dtbs := \
+	imx6q-apalis-v1.2-eval.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-eval-v1.2-hdmi-dtbs := \
+	imx6q-apalis-v1.2-eval-v1.2.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-ixora-hdmi-dtbs := \
+	imx6q-apalis-v1.2-ixora.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-ixora-v1.1-hdmi-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.1.dtb \
+	imx6q-apalis-hdmi.dtbo
+
+imx6q-apalis-v1.2-ixora-v1.2-hdmi-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-hdmi.dtbo
+
 imx6qdl-dhcom-pdk2-overlay-497-200-x12-dtbs := \
 	imx6q-dhcom-pdk2.dtb \
 	imx6qdl-dhcom-pdk2-overlay-497-200-x12.dtbo
@@ -183,15 +223,26 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6dl-yapp4-phoenix.dtb \
 	imx6dl-yapp4-ursa.dtb \
 	imx6q-apalis-eval.dtb \
+	imx6q-apalis-eval-hdmi.dtb \
 	imx6q-apalis-eval-v1.2.dtb \
+	imx6q-apalis-eval-v1.2-hdmi.dtb \
+	imx6q-apalis-hdmi.dtbo \
 	imx6q-apalis-ixora.dtb \
+	imx6q-apalis-ixora-hdmi.dtb \
 	imx6q-apalis-ixora-v1.1.dtb \
+	imx6q-apalis-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-ixora-v1.2.dtb \
+	imx6q-apalis-ixora-v1.2-hdmi.dtb \
 	imx6q-apalis-v1.2-eval.dtb \
+	imx6q-apalis-v1.2-eval-hdmi.dtb \
 	imx6q-apalis-v1.2-eval-v1.2.dtb \
+	imx6q-apalis-v1.2-eval-v1.2-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora.dtb \
+	imx6q-apalis-v1.2-ixora-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.1.dtb \
+	imx6q-apalis-v1.2-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-hdmi.dtb \
 	imx6q-apf6dev.dtb \
 	imx6q-arm2.dtb \
 	imx6q-b450v3.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-hdmi.dtso new file +13 -0
new file mode 100644
index 0000000000000..592bd366d94e4
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Enable the HDMI interface on the Apalis iMX6.
+ */
+
+/dts-v1/;
+/plugin/;
+
+&hdmi {
+	status = "okay";
+};
#3 lore raw

PATCH 2/7 ARM: dts: imx6q-apalis-ixora: Add 3.3V_SW power regulator

In reply to Leonardo Costa

From: Leonardo Costa <[email protected]>

The Ixora carrier board has a switched 3.3V power lane that is used for powering peripherals. Add the correspondent power regulator node to the Ixora carrier board device trees, similarly to the already existing reg_3v3_sw node in imx6q-apalis-eval.dtsi, so that it can be referenced by peripherals that require a specified power supply.

---
 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts | 7 +++++++
 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora.dts      | 7 +++++++
 2 files changed, 14 insertions(+)
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts +7 -0
index 3ac7a45016205..f6eb2eeee417e 100644
@@ -57,6 +57,13 @@ led5-red {
 		};
 	};
 
+	reg_3v3_sw: regulator-3v3-sw {
+		compatible = "regulator-fixed";
+		regulator-max-microvolt = <3300000>;
+		regulator-min-microvolt = <3300000>;
+		regulator-name = "3.3V_SW";
+	};
+
 	reg_3v3_vmmc: regulator-3v3-vmmc {
 		compatible = "regulator-fixed";
 		enable-active-high;
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora.dts +7 -0
index f338be4352779..f015faf19199f 100644
@@ -55,6 +55,13 @@ led5-red {
 			label = "LED_5_RED";
 		};
 	};
+
+	reg_3v3_sw: regulator-3v3-sw {
+		compatible = "regulator-fixed";
+		regulator-max-microvolt = <3300000>;
+		regulator-min-microvolt = <3300000>;
+		regulator-name = "3.3V_SW";
+	};
 };
 
 &can1 {
#4 lore raw

PATCH 3/7 ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 10.1" LVDS

In reply to Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected via the Apalis iMX6 LDB.

The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

Remove the panel-lvds node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 +++
 ...6q-apalis-panel-cap-touch-10inch-lvds.dtso | 53 +++++++++++++++++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 13 -----
 3 files changed, 59 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso
arch/arm/boot/dts/nxp/imx/Makefile +6 -0
index 32d77a59c4358..23fcc80d7f309 100644
@@ -99,6 +99,10 @@ imx6q-apalis-v1.2-ixora-v1.2-hdmi-dtbs := \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-hdmi.dtbo
 
+imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo
+
 imx6qdl-dhcom-pdk2-overlay-497-200-x12-dtbs := \
 	imx6q-dhcom-pdk2.dtb \
 	imx6qdl-dhcom-pdk2-overlay-497-200-x12.dtbo
@@ -233,6 +237,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-ixora-v1.2.dtb \
 	imx6q-apalis-ixora-v1.2-hdmi.dtb \
+	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo \
 	imx6q-apalis-v1.2-eval.dtb \
 	imx6q-apalis-v1.2-eval-hdmi.dtb \
 	imx6q-apalis-v1.2-eval-v1.2.dtb \
@@ -243,6 +248,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-v1.2-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-hdmi.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds.dtb \
 	imx6q-apf6dev.dtb \
 	imx6q-arm2.dtb \
 	imx6q-b450v3.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +53 -0

53 lines not on this page · raw message

arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +0 -13
index 5fcd7cdb7001f..e52b55a386f7a 100644
@@ -95,18 +95,6 @@ lcd_panel_in: endpoint {
 		};
 	};
 
-	panel_lvds: panel-lvds {
-		compatible = "panel-lvds";
-		backlight = <&backlight>;
-		status = "disabled";
-
-		port {
-			lvds_panel_in: endpoint {
-				remote-endpoint = <&lvds0_out>;
-			};
-		};
-	};
-
 	poweroff {
 		compatible = "regulator-poweroff";
 		cpu-supply = <&vgen2_reg>;
@@ -738,7 +726,6 @@ port@4 {
 			reg = <4>;
 
 			lvds0_out: endpoint {
-				remote-endpoint = <&lvds_panel_in>;
 			};
 		};
 	};
#5 lore raw

Re: [PATCH 3/7] ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 10.1" LVDS

Quoted 15 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected via the Apalis iMX6 LDB.

The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

Remove the panel-lvds node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

Quoted 8 lines
---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 +++
 ...6q-apalis-panel-cap-touch-10inch-lvds.dtso | 53 +++++++++++++++++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 13 -----
 3 files changed, 59 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso

similar 7" case, add panel module name in file

imx6q-apalis-lvds-panel-lt170410.dtso

Quoted 48 lines
arch/arm/boot/dts/nxp/imx/Makefile +6 -0
index 32d77a59c4358..23fcc80d7f309 100644
@@ -99,6 +99,10 @@ imx6q-apalis-v1.2-ixora-v1.2-hdmi-dtbs := \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-hdmi.dtbo
 
+imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo
+
 imx6qdl-dhcom-pdk2-overlay-497-200-x12-dtbs := \
 	imx6q-dhcom-pdk2.dtb \
 	imx6qdl-dhcom-pdk2-overlay-497-200-x12.dtbo
@@ -233,6 +237,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-ixora-v1.2.dtb \
 	imx6q-apalis-ixora-v1.2-hdmi.dtb \
+	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo \
 	imx6q-apalis-v1.2-eval.dtb \
 	imx6q-apalis-v1.2-eval-hdmi.dtb \
 	imx6q-apalis-v1.2-eval-v1.2.dtb \
@@ -243,6 +248,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-v1.2-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-hdmi.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds.dtb \
 	imx6q-apf6dev.dtb \
 	imx6q-arm2.dtb \
 	imx6q-b450v3.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +10 -0
new file mode 100644
index 0000000000000..a84114e1d3fba
@@ -0,0 +1,53 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex Capacitive Touch Display 10.1" connected via Apalis iMX6 LDB
+ * on carrier boards with a Toradex standard LVDS display connector.
+ *
+ * https://docs.toradex.com/105952-10-1-inch-lvds-capacitive-touch-display-1280x800-datasheet.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-101inch-lvds
+ * https://www.toradex.com/accessories/capacitive-touch-display-10.1-inch-lvds

arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso line 20

Quoted 10 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +10 -0
+ */
+
+/dts-v1/;
+/plugin/;
+
+&{/} {
+	panel-lvds {
+		compatible = "logictechno,lt170410-2whc";
+		backlight = <&backlight>;
+		power-supply = <&reg_3v3_sw>;

use name reg_lvds_panel, it help improve reusablity.

Frank

Quoted 65 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +33 -0
+
+		port {
+			lvds_panel_in: endpoint {
+				remote-endpoint = <&lvds0_out>;
+			};
+		};
+	};
+};
+
+&atmel_mxt_ts {
+	status = "okay";
+};
+
+&backlight {
+	status = "okay";
+};
+
+&ldb {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	status = "okay";
+
+	lvds-channel@0 {
+		reg = <0>;
+
+		status = "okay";
+	};
+};
+
+&lvds0_out {
+	remote-endpoint = <&lvds_panel_in>;
+};
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +0 -13
index 5fcd7cdb7001f..e52b55a386f7a 100644
@@ -95,18 +95,6 @@ lcd_panel_in: endpoint {
 		};
 	};
 
-	panel_lvds: panel-lvds {
-		compatible = "panel-lvds";
-		backlight = <&backlight>;
-		status = "disabled";
-
-		port {
-			lvds_panel_in: endpoint {
-				remote-endpoint = <&lvds0_out>;
-			};
-		};
-	};
-
 	poweroff {
 		compatible = "regulator-poweroff";
 		cpu-supply = <&vgen2_reg>;
@@ -738,7 +726,6 @@ port@4 {
 			reg = <4>;
 
 			lvds0_out: endpoint {
-				remote-endpoint = <&lvds_panel_in>;
 			};
 		};
 	};
#6 lore raw

Re: [PATCH 3/7] ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 10.1" LVDS

Hello Frank,
thanks for the review

Quoted 25 lines · Frank Li
Quoted 15 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected via the Apalis iMX6 LDB.

The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

Remove the panel-lvds node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

Quoted 8 lines
---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 +++
 ...6q-apalis-panel-cap-touch-10inch-lvds.dtso | 53 +++++++++++++++++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 13 -----
 3 files changed, 59 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso
Quoted 3 lines

similar 7" case, add panel module name in file

imx6q-apalis-lvds-panel-lt170410.dtso

This does not work, sorry, the current name is the correct one, for various reasons:

- the product is a display made with a specific connector, touch controller and display and more. The actual panel is just part of it
- the current name wholly describe the product, it's a public product with an official name, all of that is clearly linked in the commit message and comments. there is no ambiguity.
- the same toradex accessories are not module specific, they are used across multiple families/carrier board. It is a whole ecosystem that is building on top of standardized interfaces and connectors. The same overlay file is available for multiple boards and in multiple SoC vendor directory (as of now TI and NXP, soon we are going to have also QCOM). Having a consistent naming scheme is important, we cannot call the same things differently every time.
- there was a situation in which we did a new product revision of a display, specifically the "Toradex Capacitive Touch Display 10.1" LVDS" there are two versions. The official product name is the same, apart an additional version number, one is version1, the other is version2. They have differences, and it's not just the panel, more stuff changed, so having the panel name in the filename will not help. v2 support is already in [1], for reference.
- the toradex naming scheme is not encoding the actual part number used in the product name, for example we have apalis imx6 v1.2 that uses a different touch/adc than previous apalis imx v1.1. The product has a different schematics, different BoM and so on, and there is no reference of the difference touch/adc in the name. You can see this information from the public documentation just looking at the version. or you can check yourself comparing the two DTS in the linux kernel tree.

[1] arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds.dtso arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds-v2.dtso

Frank: in general the names are clearly linked to the official product name, and this applies also to other patches in which you commented about the names, not planning to reply to every single one.

Quoted 20 lines
Quoted 20 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +14 -0
new file mode 100644
index 0000000000000..a84114e1d3fba
@@ -0,0 +1,53 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex Capacitive Touch Display 10.1" connected via Apalis iMX6 LDB
+ * on carrier boards with a Toradex standard LVDS display connector.
+ *
+ * https://docs.toradex.com/105952-10-1-inch-lvds-capacitive-touch-display-1280x800-datasheet.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-101inch-lvds
+ * https://www.toradex.com/accessories/capacitive-touch-display-10.1-inch-lvds
+ */
+
+/dts-v1/;
+/plugin/;
Quoted 8 lines

arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso line 20

Quoted 6 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +6 -0
+
+&{/} {
+	panel-lvds {
+		compatible = "logictechno,lt170410-2whc";
+		backlight = <&backlight>;
+		power-supply = <&reg_3v3_sw>;

use name reg_lvds_panel, it help improve reusablity.

I disagree.

The regulator should be the one that is physically used on the board. The DTS *must* describe the HW as accurately as possible, we are not supposed to invent non existing regulator and more in general non existing HW.

I see your need to avoid duplication, and I agree with it. But an accurate HW description and the user experience trumps this need. And I insist on the user experience, what we are doing is for someone to use, we should not make the life of people hard because we decide on non-descriptive or inaccurate names.

Francesco

#7 lore raw

Re: [PATCH 3/7] ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 10.1" LVDS

Quoted 51 lines · Francesco Dolcini

Hello Frank,
thanks for the review

Quoted 25 lines · Frank Li
Quoted 15 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected via the Apalis iMX6 LDB.

The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

Remove the panel-lvds node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

Quoted 8 lines
---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 +++
 ...6q-apalis-panel-cap-touch-10inch-lvds.dtso | 53 +++++++++++++++++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 13 -----
 3 files changed, 59 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso
Quoted 3 lines

similar 7" case, add panel module name in file

imx6q-apalis-lvds-panel-lt170410.dtso

This does not work, sorry, the current name is the correct one, for various reasons:

- the product is a display made with a specific connector, touch controller and display and more. The actual panel is just part of it
- the current name wholly describe the product, it's a public product with an official name, all of that is clearly linked in the commit message and comments. there is no ambiguity.
- the same toradex accessories are not module specific, they are used across multiple families/carrier board. It is a whole ecosystem that is building on top of standardized interfaces and connectors. The same overlay file is available for multiple boards and in multiple SoC vendor directory (as of now TI and NXP, soon we are going to have also QCOM). Having a consistent naming scheme is important, we cannot call the same things differently every time.
- there was a situation in which we did a new product revision of a display, specifically the "Toradex Capacitive Touch Display 10.1" LVDS" there are two versions. The official product name is the same,

Quoted 8 lines

apart an additional version number, one is version1, the other is version2. They have differences, and it's not just the panel, more stuff changed, so having the panel name in the filename will not help. v2 support is already in [1], for reference.
- the toradex naming scheme is not encoding the actual part number used in the product name, for example we have apalis imx6 v1.2 that uses a different touch/adc than previous apalis imx v1.1. The product has a different schematics, different BoM and so on

Do you have schematics number to identify it?

Quoted 9 lines

, and there is no
reference of the difference touch/adc in the name. You can see this information from the public documentation just looking at the version. or you can check yourself comparing the two DTS in the linux kernel tree.

[1] arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds.dtso arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds-v2.dtso

V2 is okay, but "panel-cap-touch-10inch-lvds" is too common. This may cause naming pollution if we implement shared one panel dtso for all boards.

Quoted 35 lines

Frank: in general the names are clearly linked to the official product name, and this applies also to other patches in which you commented about the names, not planning to reply to every single one.

Quoted 20 lines
Quoted 20 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +14 -0
new file mode 100644
index 0000000000000..a84114e1d3fba
@@ -0,0 +1,53 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex Capacitive Touch Display 10.1" connected via Apalis iMX6 LDB
+ * on carrier boards with a Toradex standard LVDS display connector.
+ *
+ * https://docs.toradex.com/105952-10-1-inch-lvds-capacitive-touch-display-1280x800-datasheet.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-101inch-lvds
+ * https://www.toradex.com/accessories/capacitive-touch-display-10.1-inch-lvds
+ */
+
+/dts-v1/;
+/plugin/;
Quoted 8 lines

arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso line 20

Quoted 6 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +6 -0
+
+&{/} {
+	panel-lvds {
+		compatible = "logictechno,lt170410-2whc";
+		backlight = <&backlight>;
+		power-supply = <&reg_3v3_sw>;

use name reg_lvds_panel, it help improve reusablity.

Quoted 6 lines

I disagree.

The regulator should be the one that is physically used on the board. The DTS *must* describe the HW as accurately as possible, we are not supposed to invent non existing regulator and more in general non existing HW.

It reflact hardware, it connect by a connectors HEAD. In Connect HEADER, VCC for panel is fixed naming, like vcc_lcd_xxxx. Difference mainboards route it to difference supply.

Dtso file should use name in HEADER. The main dts descript how connect it to provider, currently use additional label for it.

Quoted 6 lines

I see your need to avoid duplication, and I agree with it. But an accurate HW description and the user experience trumps this need. And I insist on the user experience, what we are doing is for someone to use, we should not make the life of people hard because we decide on non-descriptive or inaccurate names.

We take an iterative approach, learning and improving as we progress. New issues are addressed step by step, and better solutions are adopted whenever they are identified. Once a new approach proves to be more effective, we gradually transition to it, especially for new drivers and DTS changes.

Frank

Quoted 4 lines

Francesco

#8 lore raw

Re: [PATCH 3/7] ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 10.1" LVDS

Hello Frank,

Quoted 58 lines · Frank Li
Quoted 48 lines · Francesco Dolcini
Quoted 25 lines · Frank Li
Quoted 15 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected via the Apalis iMX6 LDB.

The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

Remove the panel-lvds node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

Quoted 8 lines
---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 +++
 ...6q-apalis-panel-cap-touch-10inch-lvds.dtso | 53 +++++++++++++++++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 13 -----
 3 files changed, 59 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso
Quoted 3 lines

similar 7" case, add panel module name in file

imx6q-apalis-lvds-panel-lt170410.dtso

This does not work, sorry, the current name is the correct one, for various reasons:

- the product is a display made with a specific connector, touch controller and display and more. The actual panel is just part of it
- the current name wholly describe the product, it's a public product with an official name, all of that is clearly linked in the commit message and comments. there is no ambiguity.
- the same toradex accessories are not module specific, they are used across multiple families/carrier board. It is a whole ecosystem that is building on top of standardized interfaces and connectors. The same overlay file is available for multiple boards and in multiple SoC vendor directory (as of now TI and NXP, soon we are going to have also QCOM). Having a consistent naming scheme is important, we cannot call the same things differently every time.
- there was a situation in which we did a new product revision of a display, specifically the "Toradex Capacitive Touch Display 10.1" LVDS" there are two versions. The official product name is the same,

Quoted 8 lines

apart an additional version number, one is version1, the other is version2. They have differences, and it's not just the panel, more stuff changed, so having the panel name in the filename will not help. v2 support is already in [1], for reference.
- the toradex naming scheme is not encoding the actual part number used in the product name, for example we have apalis imx6 v1.2 that uses a different touch/adc than previous apalis imx v1.1. The product has a different schematics, different BoM and so on

Quoted 1 line

Do you have schematics number to identify it?

Why do you ask specifically about schematics? We have schematics and we have a way to identify a product to the related schematic. The way we identify schematics, whatever is a number, a string, or anything else seems not relevant to me.

But yes, answering you question, we do have schematics and a unique way to identify them, and it's not using "numbers".

What matters here, is that Toradex products have a unique number, and we have a way to trace product revisions.

So, for each product we have

<product name> <pid>

and <pid> is 8 digits, the first 4 digits is the end customer product definition, and it matches with the product name, and the last 4 digits is the product revision.

All of that is documented, see https://developer.toradex.com/hardware/hardware-resources/general-product-information/ordering-information-and-product-identification-pid-pid4-and-pid8/,
and this is what is used for any kind of product traceability.

Staying on our LVDS 10inch panel example

Capacitive Touch Display 10.1" LVDS | PID4: 1212 | PID8: 12121000 | (version 1)
Capacitive Touch Display 10.1" LVDS | PID4: 1212 | PID8: 12122000 | (version 2)
Quoted 6 lines
Quoted 6 lines

, and there is no
reference of the difference touch/adc in the name. You can see this information from the public documentation just looking at the version. or you can check yourself comparing the two DTS in the linux kernel tree.

Quoted 6 lines
Quoted 3 lines

[1] arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds.dtso arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds-v2.dtso

V2 is okay, but "panel-cap-touch-10inch-lvds" is too common. This may cause naming pollution if we implement shared one panel dtso for all boards.

This is the product name, what is missing is the vendor. Given the vendor (Toradex), the product is unique.

We could rename all of our accessories dtbo adding a "tdx" prefix (when they are Toradex products, of course).

So for example we could have

k3-am625-verdin-tdx-panel-cap-touch-10inch-lvds.dtso k3-am625-verdin-tdx-panel-cap-touch-10inch-lvds-v2.dtso

This way your concern on name pollution is solved using the vendor ("tdx") as prefix in the accessory name.

It's going to be a pain to rename this stuff, and it's going to have an impact on users (that as I keep writing and insisting are the one that matter). On the other hand, when we have a toradex product ("verdin", or "apalis", ...), having a matching Toradex accessory to me is the default and this info is not needed.

When adding non-toradex accessory to a toradex board we make explicit the vendor of the accessory, see

arch/arm64/boot/dts/ti/k3-am625-verdin-rpi-display-2-7in.dtso

where we have the "rpi" prefix.

So, my proposal would be to accept that for dtbo, combined with Toradex board, the default is to be a Toradex accessory, therefore there is no need of any additional string in the name. The second option, would be to add a redundant "tdx" prefix. It will create a rename mess and it will have an impact to the user, but it will not be wrong.

Your proposal, onthe other hand, is not working, and not matching the reality of the product described by the dtbo.

Quoted 18 lines
Quoted 11 lines
Quoted 10 lines

arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso line 20

Quoted 8 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +8 -0
+/dts-v1/;
+/plugin/;
+
+&{/} {
+	panel-lvds {
+		compatible = "logictechno,lt170410-2whc";
+		backlight = <&backlight>;
+		power-supply = <&reg_3v3_sw>;

use name reg_lvds_panel, it help improve reusablity.

Quoted 6 lines

I disagree.

The regulator should be the one that is physically used on the board. The DTS *must* describe the HW as accurately as possible, we are not supposed to invent non existing regulator and more in general non existing HW.

Quoted 6 lines

It reflact hardware, it connect by a connectors HEAD. In Connect HEADER, VCC for panel is fixed naming, like vcc_lcd_xxxx. Difference mainboards route it to difference supply.

Dtso file should use name in HEADER. The main dts descript how connect it to provider, currently use additional label for it.

The power supply it is not the pin number on the connector.

The power supply is in the board. We have board in which the power supply can be controlled by a gpio, board in which it is fixed, board in which this power supply is shared with other peripherals. So no, the power supply is not the pin number in the connector. What you write here is wrong.

Quoted 11 lines
Quoted 5 lines

I see your need to avoid duplication, and I agree with it. But an accurate HW description and the user experience trumps this need. And I insist on the user experience, what we are doing is for someone to use, we should not make the life of people hard because we decide on non-descriptive or inaccurate names.

We take an iterative approach, learning and improving as we progress. New issues are addressed step by step, and better solutions are adopted whenever they are identified. Once a new approach proves to be more effective, we gradually transition to it, especially for new drivers and DTS changes.

Yes, of course. I agree. And this has nothing to do with that we are discussing here.

Francesco

#9 lore raw

Re: [PATCH 3/7] ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 10.1" LVDS

Quoted 82 lines · Francesco Dolcini

Hello Frank,

Quoted 58 lines · Frank Li
Quoted 48 lines · Francesco Dolcini
Quoted 25 lines · Frank Li
Quoted 15 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected via the Apalis iMX6 LDB.

The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

Remove the panel-lvds node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

Quoted 8 lines
---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 +++
 ...6q-apalis-panel-cap-touch-10inch-lvds.dtso | 53 +++++++++++++++++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 13 -----
 3 files changed, 59 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso
Quoted 3 lines

similar 7" case, add panel module name in file

imx6q-apalis-lvds-panel-lt170410.dtso

This does not work, sorry, the current name is the correct one, for various reasons:

- the product is a display made with a specific connector, touch controller and display and more. The actual panel is just part of it
- the current name wholly describe the product, it's a public product with an official name, all of that is clearly linked in the commit message and comments. there is no ambiguity.
- the same toradex accessories are not module specific, they are used across multiple families/carrier board. It is a whole ecosystem that is building on top of standardized interfaces and connectors. The same overlay file is available for multiple boards and in multiple SoC vendor directory (as of now TI and NXP, soon we are going to have also QCOM). Having a consistent naming scheme is important, we cannot call the same things differently every time.
- there was a situation in which we did a new product revision of a display, specifically the "Toradex Capacitive Touch Display 10.1" LVDS" there are two versions. The official product name is the same,

Quoted 8 lines

apart an additional version number, one is version1, the other is version2. They have differences, and it's not just the panel, more stuff changed, so having the panel name in the filename will not help. v2 support is already in [1], for reference.
- the toradex naming scheme is not encoding the actual part number used in the product name, for example we have apalis imx6 v1.2 that uses a different touch/adc than previous apalis imx v1.1. The product has a different schematics, different BoM and so on

Quoted 1 line

Do you have schematics number to identify it?

Why do you ask specifically about schematics? We have schematics and we have a way to identify a product to the related schematic. The way we identify schematics, whatever is a number, a string, or anything else seems not relevant to me.

But yes, answering you question, we do have schematics and a unique way to identify them, and it's not using "numbers".

What matters here, is that Toradex products have a unique number, and we have a way to trace product revisions.

So, for each product we have

<product name> <pid>

and <pid> is 8 digits, the first 4 digits is the end customer product definition, and it matches with the product name, and the last 4 digits is the product revision.

Quoted 7 lines

All of that is documented, see https://developer.toradex.com/hardware/hardware-resources/general-product-information/ordering-information-and-product-identification-pid-pid4-and-pid8/,
and this is what is used for any kind of product traceability.

Staying on our LVDS 10inch panel example

Capacitive Touch Display 10.1" LVDS | PID4: 1212 | PID8: 12121000 | (version 1)
Capacitive Touch Display 10.1" LVDS | PID4: 1212 | PID8: 12122000 | (version 2)

include 12121000 in your file names.

Quoted 12 lines
Quoted 12 lines
Quoted 11 lines

, and there is no
reference of the difference touch/adc in the name. You can see this information from the public documentation just looking at the version. or you can check yourself comparing the two DTS in the linux kernel tree.

[1] arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds.dtso arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds-v2.dtso

Quoted 5 lines
Quoted 2 lines

V2 is okay, but "panel-cap-touch-10inch-lvds" is too common. This may cause naming pollution if we implement shared one panel dtso for all boards.

This is the product name, what is missing is the vendor. Given the vendor (Toradex), the product is unique.

Generally, it is not unique. We met similar problem. LCD panel is EOL. Need reply with new one. i.MX production life is longer than other external componenets. You are still work on i.mx6, even i.mx28 still have some customer use it.

Quoted 8 lines

We could rename all of our accessories dtbo adding a "tdx" prefix (when they are Toradex products, of course).

So for example we could have

k3-am625-verdin-tdx-panel-cap-touch-10inch-lvds.dtso k3-am625-verdin-tdx-panel-cap-touch-10inch-lvds-v2.dtso

tdx is good. The problem is that "panel-cap-touch-10inch-lvds" is too generally.

Quoted 3 lines

This way your concern on name pollution is solved using the vendor ("tdx") as prefix in the accessory name.

pollution is just one problem. We need identify it quickly. if you create imx7-xxx-panel-cap-touch-10inch-lvds.dtso, it is hard to know if it is similar existing imx6's panel-cap-touch-10inch-lvds. even it may use for other imx8 imx9's productions.

Quoted 9 lines

It's going to be a pain to rename this stuff, and it's going to have an impact on users (that as I keep writing and insisting are the one that matter). On the other hand, when we have a toradex product ("verdin", or "apalis", ...), having a matching Toradex accessory to me is the default and this info is not needed.

Quoted 6 lines

When adding non-toradex accessory to a toradex board we make explicit the vendor of the accessory, see

arch/arm64/boot/dts/ti/k3-am625-verdin-rpi-display-2-7in.dtso

where we have the "rpi" prefix.

Ideally, rpi-display-2-7in.dtso should reused for all boards, which use rpi defined connectors. Now exsiting these combinations reason is current nexus node is not good enough. but we face to this directions.

And anyway, rpi-display-2-7in is not good name because rpi many produce difference 2-7in panels in future.

Frank

Quoted 32 lines

So, my proposal would be to accept that for dtbo, combined with Toradex board, the default is to be a Toradex accessory, therefore there is no need of any additional string in the name. The second option, would be to add a redundant "tdx" prefix. It will create a rename mess and it will have an impact to the user, but it will not be wrong.

Your proposal, onthe other hand, is not working, and not matching the reality of the product described by the dtbo.

Quoted 22 lines
Quoted 11 lines
Quoted 10 lines

arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso line 20

Quoted 8 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso new file +8 -0
+/dts-v1/;
+/plugin/;
+
+&{/} {
+	panel-lvds {
+		compatible = "logictechno,lt170410-2whc";
+		backlight = <&backlight>;
+		power-supply = <&reg_3v3_sw>;

use name reg_lvds_panel, it help improve reusablity.

Quoted 6 lines

I disagree.

The regulator should be the one that is physically used on the board. The DTS *must* describe the HW as accurately as possible, we are not supposed to invent non existing regulator and more in general non existing HW.

It reflact hardware, it connect by a connectors HEAD. In Connect HEADER, VCC for panel is fixed naming, like vcc_lcd_xxxx. Difference mainboards route it to difference supply.

Quoted 6 lines
Quoted 2 lines

Dtso file should use name in HEADER. The main dts descript how connect it to provider, currently use additional label for it.

The power supply it is not the pin number on the connector.

The power supply is in the board.

In addon boards or mainboard? generally, there always power supply into connector.

Quoted 5 lines

We have board in which the power
supply can be controlled by a gpio, board in which it is fixed, board in which this power supply is shared with other peripherals. So no, the power supply is not the pin number in the connector. What you write here is wrong.

It depend on where controller it, in addon boards or mainboards?

if in addon boards, gpio should be in connectors. if it is mainboars, a power-supply wire should go through connectors, you use it as connector's regulators.

Frank

Quoted 18 lines
Quoted 7 lines
Quoted 6 lines

I see your need to avoid duplication, and I agree with it. But an accurate HW description and the user experience trumps this need. And I insist on the user experience, what we are doing is for someone to use, we should not make the life of people hard because we decide on non-descriptive or inaccurate names.

Quoted 5 lines

We take an iterative approach, learning and improving as we progress. New issues are addressed step by step, and better solutions are adopted whenever they are identified. Once a new approach proves to be more effective, we gradually transition to it, especially for new drivers and DTS changes.

Yes, of course. I agree. And this has nothing to do with that we are discussing here.

Francesco

#10 lore raw

Re: [PATCH 3/7] ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 10.1" LVDS

Hello Frank,

Quoted 86 lines · Frank Li
Quoted 85 lines · Francesco Dolcini

Hello Frank,

Quoted 58 lines · Frank Li
Quoted 48 lines · Francesco Dolcini
Quoted 25 lines · Frank Li
Quoted 15 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected via the Apalis iMX6 LDB.

The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

Remove the panel-lvds node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

Quoted 8 lines
---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 +++
 ...6q-apalis-panel-cap-touch-10inch-lvds.dtso | 53 +++++++++++++++++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 13 -----
 3 files changed, 59 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso
Quoted 3 lines

similar 7" case, add panel module name in file

imx6q-apalis-lvds-panel-lt170410.dtso

This does not work, sorry, the current name is the correct one, for various reasons:

- the product is a display made with a specific connector, touch controller and display and more. The actual panel is just part of it
- the current name wholly describe the product, it's a public product with an official name, all of that is clearly linked in the commit message and comments. there is no ambiguity.
- the same toradex accessories are not module specific, they are used across multiple families/carrier board. It is a whole ecosystem that is building on top of standardized interfaces and connectors. The same overlay file is available for multiple boards and in multiple SoC vendor directory (as of now TI and NXP, soon we are going to have also QCOM). Having a consistent naming scheme is important, we cannot call the same things differently every time.
- there was a situation in which we did a new product revision of a display, specifically the "Toradex Capacitive Touch Display 10.1" LVDS" there are two versions. The official product name is the same,

Quoted 8 lines

apart an additional version number, one is version1, the other is version2. They have differences, and it's not just the panel, more stuff changed, so having the panel name in the filename will not help. v2 support is already in [1], for reference.
- the toradex naming scheme is not encoding the actual part number used in the product name, for example we have apalis imx6 v1.2 that uses a different touch/adc than previous apalis imx v1.1. The product has a different schematics, different BoM and so on

Quoted 1 line

Do you have schematics number to identify it?

Why do you ask specifically about schematics? We have schematics and we have a way to identify a product to the related schematic. The way we identify schematics, whatever is a number, a string, or anything else seems not relevant to me.

But yes, answering you question, we do have schematics and a unique way to identify them, and it's not using "numbers".

What matters here, is that Toradex products have a unique number, and we have a way to trace product revisions.

So, for each product we have

<product name> <pid>

and <pid> is 8 digits, the first 4 digits is the end customer product definition, and it matches with the product name, and the last 4 digits is the product revision.

All of that is documented, see https://developer.toradex.com/hardware/hardware-resources/general-product-information/ordering-information-and-product-identification-pid-pid4-and-pid8/,
and this is what is used for any kind of product traceability.

Quoted 6 lines
Quoted 4 lines

Staying on our LVDS 10inch panel example

Capacitive Touch Display 10.1" LVDS | PID4: 1212 | PID8: 12121000 | (version 1)
Capacitive Touch Display 10.1" LVDS | PID4: 1212 | PID8: 12122000 | (version 2)

include 12121000 in your file names.

That would result in filenames such as:

imx6q-apalis-tdx-panel-cap-touch-10inch-lvds-12121000.dtbo imx6q-apalis-tdx-panel-cap-touch-10inch-lvds-12122000.dtbo

While technically correct, this creates a usability problem. PID8 ("12121000" is what is called a PID8 in Toradex product naming/number scheme) tracks hardware revisions, including changes that do not affect the DT, such as passive components or mechanical changes.

A user with PID8 12122001 would not know which overlay to use, and duplicating identical overlays for every hardware revision makes no sense.

I therefore propose:

imx6q-apalis-tdx-panel-cap-touch-10inch-lvds-v1.dtbo imx6q-apalis-tdx-panel-cap-touch-10inch-lvds-v2.dtbo

These names match the product names and versions used in our ordering information, documentation and product labels. Users can easily identify the correct overlay.

Toradex is responsible for tracking hardware revisions and their software requirements. If a revision requires a different DT, we can distinguish it with an additional suffix, and be sure that this suffix is something that clearly related to the specific product.

Quoted 13 lines
Quoted 13 lines
Quoted 12 lines
Quoted 9 lines

, and there is no
reference of the difference touch/adc in the name. You can see this information from the public documentation just looking at the version. or you can check yourself comparing the two DTS in the linux kernel tree.

[1] arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds.dtso arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds-v2.dtso

V2 is okay, but "panel-cap-touch-10inch-lvds" is too common. This may cause naming pollution if we implement shared one panel dtso for all boards.

Quoted 7 lines
Quoted 2 lines

This is the product name, what is missing is the vendor. Given the vendor (Toradex), the product is unique.

Generally, it is not unique. We met similar problem. LCD panel is EOL. Need reply with new one. i.MX production life is longer than other external componenets. You are still work on i.mx6, even i.mx28 still have some customer use it.

This is precisely why we have product versioning and traceability. Toradex owns and maintains its product definitions, including changes to internal components. The naming scheme has been designed to handle these situations consistently.

Quoted 10 lines
Quoted 7 lines

We could rename all of our accessories dtbo adding a "tdx" prefix (when they are Toradex products, of course).

So for example we could have

k3-am625-verdin-tdx-panel-cap-touch-10inch-lvds.dtso k3-am625-verdin-tdx-panel-cap-touch-10inch-lvds-v2.dtso

tdx is good. The problem is that "panel-cap-touch-10inch-lvds" is too generally.

It is the name of a specific Toradex product, not a generic description. Together with the vendor prefix and product version, it is unambiguous.

Our DT filenames should reflect the actual products our customers use.

Quoted 7 lines
Quoted 2 lines

This way your concern on name pollution is solved using the vendor ("tdx") as prefix in the accessory name.

pollution is just one problem. We need identify it quickly. if you create imx7-xxx-panel-cap-touch-10inch-lvds.dtso, it is hard to know if it is similar existing imx6's panel-cap-touch-10inch-lvds. even it may use for other imx8 imx9's productions.

That is exactly why consistent naming matters. The same accessory can be used across different SoC families. Keeping its name consistent makes that relationship immediately recognizable.

Internal component details belong in the DT description, not necessarily in the filename.

Quoted 5 lines
Quoted 5 lines

When adding non-toradex accessory to a toradex board we make explicit the vendor of the accessory, see

arch/arm64/boot/dts/ti/k3-am625-verdin-rpi-display-2-7in.dtso

Quoted 8 lines
Quoted 1 line

where we have the "rpi" prefix.

Ideally, rpi-display-2-7in.dtso should reused for all boards, which use rpi defined connectors. Now exsiting these combinations reason is current nexus node is not good enough. but we face to this directions.

And anyway, rpi-display-2-7in is not good name because rpi many produce difference 2-7in panels in future.

This is an existing upstream naming convention, already reviewed and accepted by multiple maintainers.

Product naming and versioning are the responsibility of the manufacturer (whatever is raspberrypi or toradex). I do not think we should second-guess those decisions without a concrete technical issue.

Francesco

#11 lore raw

Re: [PATCH 3/7] ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 10.1" LVDS

Quoted 106 lines · Francesco Dolcini

Hello Frank,

Quoted 86 lines · Frank Li
Quoted 85 lines · Francesco Dolcini

Hello Frank,

Quoted 58 lines · Frank Li
Quoted 48 lines · Francesco Dolcini
Quoted 25 lines · Frank Li
Quoted 15 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected via the Apalis iMX6 LDB.

The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

Remove the panel-lvds node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

Quoted 8 lines
---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 +++
 ...6q-apalis-panel-cap-touch-10inch-lvds.dtso | 53 +++++++++++++++++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 13 -----
 3 files changed, 59 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-10inch-lvds.dtso
Quoted 3 lines

similar 7" case, add panel module name in file

imx6q-apalis-lvds-panel-lt170410.dtso

This does not work, sorry, the current name is the correct one, for various reasons:

- the product is a display made with a specific connector, touch controller and display and more. The actual panel is just part of it
- the current name wholly describe the product, it's a public product with an official name, all of that is clearly linked in the commit message and comments. there is no ambiguity.
- the same toradex accessories are not module specific, they are used across multiple families/carrier board. It is a whole ecosystem that is building on top of standardized interfaces and connectors. The same overlay file is available for multiple boards and in multiple SoC vendor directory (as of now TI and NXP, soon we are going to have also QCOM). Having a consistent naming scheme is important, we cannot call the same things differently every time.
- there was a situation in which we did a new product revision of a display, specifically the "Toradex Capacitive Touch Display 10.1" LVDS" there are two versions. The official product name is the same,

Quoted 8 lines

apart an additional version number, one is version1, the other is version2. They have differences, and it's not just the panel, more stuff changed, so having the panel name in the filename will not help. v2 support is already in [1], for reference.
- the toradex naming scheme is not encoding the actual part number used in the product name, for example we have apalis imx6 v1.2 that uses a different touch/adc than previous apalis imx v1.1. The product has a different schematics, different BoM and so on

Quoted 1 line

Do you have schematics number to identify it?

Why do you ask specifically about schematics? We have schematics and we have a way to identify a product to the related schematic. The way we identify schematics, whatever is a number, a string, or anything else seems not relevant to me.

But yes, answering you question, we do have schematics and a unique way to identify them, and it's not using "numbers".

What matters here, is that Toradex products have a unique number, and we have a way to trace product revisions.

So, for each product we have

<product name> <pid>

and <pid> is 8 digits, the first 4 digits is the end customer product definition, and it matches with the product name, and the last 4 digits is the product revision.

All of that is documented, see https://developer.toradex.com/hardware/hardware-resources/general-product-information/ordering-information-and-product-identification-pid-pid4-and-pid8/,
and this is what is used for any kind of product traceability.

Quoted 6 lines
Quoted 4 lines

Staying on our LVDS 10inch panel example

Capacitive Touch Display 10.1" LVDS | PID4: 1212 | PID8: 12121000 | (version 1)
Capacitive Touch Display 10.1" LVDS | PID4: 1212 | PID8: 12122000 | (version 2)

include 12121000 in your file names.

That would result in filenames such as:

imx6q-apalis-tdx-panel-cap-touch-10inch-lvds-12121000.dtbo imx6q-apalis-tdx-panel-cap-touch-10inch-lvds-12122000.dtbo

While technically correct, this creates a usability problem. PID8 ("12121000" is what is called a PID8 in Toradex product naming/number scheme) tracks hardware revisions, including changes that do not affect the DT, such as passive components or mechanical changes.

Quoted 7 lines

A user with PID8 12122001 would not know which overlay to use, and duplicating identical overlays for every hardware revision makes no sense.

I therefore propose:

imx6q-apalis-tdx-panel-cap-touch-10inch-lvds-v1.dtbo imx6q-apalis-tdx-panel-cap-touch-10inch-lvds-v2.dtbo

It is okay.

Quoted 1 line
Quoted 1 line

...

Quoted 9 lines
Quoted 6 lines

Ideally, rpi-display-2-7in.dtso should reused for all boards, which use rpi defined connectors. Now exsiting these combinations reason is current nexus node is not good enough. but we face to this directions.

And anyway, rpi-display-2-7in is not good name because rpi many produce difference 2-7in panels in future.

This is an existing upstream naming convention, already reviewed and accepted by multiple maintainers.

The existing doesn't means good enough. That's reason why there are hundreds patches each days.

Our goal is making thing better.

Frank

Quoted 7 lines

Product naming and versioning are the responsibility of the manufacturer (whatever is raspberrypi or toradex). I do not think we should second-guess those decisions without a concrete technical issue.

Francesco

#12 lore raw

PATCH 4/7 ARM: dts: imx6q-apalis: Add Toradex Capacitive Touch Display 7" Parallel

In reply to Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Capacitive Touch Display 7" Parallel on the Apalis iMX6 parallel RGB LCD interface.

The panel is a LogicTechno LT161010-2NHC 7" WVGA TFT Transmissive LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller.

The touch controller is connected to the Toradex 10-way Capacitive Touch Interface connector available on Ixora carrier board and Apalis Evaluation Board.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 ++++
 ...apalis-panel-cap-touch-7inch-parallel.dtso | 34 +++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-7inch-parallel.dtso
arch/arm/boot/dts/nxp/imx/Makefile +6 -0
index 23fcc80d7f309..5f35771cc3626 100644
@@ -103,6 +103,10 @@ imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds-dtbs := \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo
 
+imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-7inch-parallel-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-panel-cap-touch-7inch-parallel.dtbo
+
 imx6qdl-dhcom-pdk2-overlay-497-200-x12-dtbs := \
 	imx6q-dhcom-pdk2.dtb \
 	imx6qdl-dhcom-pdk2-overlay-497-200-x12.dtbo
@@ -238,6 +242,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-ixora-v1.2.dtb \
 	imx6q-apalis-ixora-v1.2-hdmi.dtb \
 	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo \
+	imx6q-apalis-panel-cap-touch-7inch-parallel.dtbo \
 	imx6q-apalis-v1.2-eval.dtb \
 	imx6q-apalis-v1.2-eval-hdmi.dtb \
 	imx6q-apalis-v1.2-eval-v1.2.dtb \
@@ -249,6 +254,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-7inch-parallel.dtb \
 	imx6q-apf6dev.dtb \
 	imx6q-arm2.dtb \
 	imx6q-b450v3.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-cap-touch-7inch-parallel.dtso new file +34 -0
new file mode 100644
index 0000000000000..f04516e3c5cfa
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex Capacitive Touch Display 7" Parallel connected through the 40-way
+ * Unified Interface Display and 10-way Capacitive Touch Interface connectors
+ * (as featured on Ixora carrier board and Apalis Evaluation Board).
+ *
+ * https://docs.toradex.com/104497-7-inch-parallel-capacitive-touch-display-800x480-datasheet.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-7inch-parallel/
+ * https://www.toradex.com/accessories/capacitive-touch-display-7-inch-parallel
+ */
+
+/dts-v1/;
+/plugin/;
+
+&atmel_mxt_ts {
+	status = "okay";
+};
+
+&backlight {
+	status = "okay";
+};
+
+&lcd_display {
+	status = "okay";
+};
+
+&panel_dpi {
+	compatible = "logictechno,lt161010-2nhc";
+	power-supply = <&reg_3v3_sw>;
+
+	status = "okay";
+};
#13 lore raw

PATCH 5/7 ARM: dts: imx6q-apalis: Add Toradex Resistive Touch Display 7" Parallel

In reply to Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Resistive Touch Display 7" Parallel on the Apalis iMX6 parallel RGB LCD interface.

The panel is a LogicTechno LT161010-2NHR 7" WVGA TFT Transmissive LCD with a resistive touch.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 ++++
 ...apalis-panel-res-touch-7inch-parallel.dtso | 30 +++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso
arch/arm/boot/dts/nxp/imx/Makefile +6 -0
index 5f35771cc3626..cd1b095ce06f4 100644
@@ -107,6 +107,10 @@ imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-7inch-parallel-dtbs := \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-panel-cap-touch-7inch-parallel.dtbo
 
+imx6q-apalis-v1.2-ixora-v1.2-panel-res-touch-7inch-parallel-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-panel-res-touch-7inch-parallel.dtbo
+
 imx6qdl-dhcom-pdk2-overlay-497-200-x12-dtbs := \
 	imx6q-dhcom-pdk2.dtb \
 	imx6qdl-dhcom-pdk2-overlay-497-200-x12.dtbo
@@ -243,6 +247,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-ixora-v1.2-hdmi.dtb \
 	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo \
 	imx6q-apalis-panel-cap-touch-7inch-parallel.dtbo \
+	imx6q-apalis-panel-res-touch-7inch-parallel.dtbo \
 	imx6q-apalis-v1.2-eval.dtb \
 	imx6q-apalis-v1.2-eval-hdmi.dtb \
 	imx6q-apalis-v1.2-eval-v1.2.dtb \
@@ -255,6 +260,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-v1.2-ixora-v1.2-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-7inch-parallel.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-panel-res-touch-7inch-parallel.dtb \
 	imx6q-apf6dev.dtb \
 	imx6q-arm2.dtb \
 	imx6q-b450v3.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso new file +30 -0
new file mode 100644
index 0000000000000..be2164dcd0369
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex Resistive Touch Display 7" Parallel connected through the 40-way
+ * Unified Interface Display connector (as featured on Ixora carrier board and
+ * Apalis Evaluation Board). Touchscreen is available only on Apalis iMX6 v1.2.
+ *
+ * https://docs.toradex.com/104498-7-inch-parallel-resistive-touch-display-800x480.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/resistive-touch-display-7inch-parallel/
+ * https://www.toradex.com/accessories/resistive-touch-display
+ */
+
+/dts-v1/;
+/plugin/;
+
+&backlight {
+	status = "okay";
+};
+
+&lcd_display {
+	status = "okay";
+};
+
+&panel_dpi {
+	compatible = "logictechno,lt161010-2nhr";
+	power-supply = <&reg_3v3_sw>;
+
+	status = "okay";
+};
#14 lore raw

Re: [PATCH 5/7] ARM: dts: imx6q-apalis: Add Toradex Resistive Touch Display 7" Parallel

arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso

Quoted 55 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add a device tree overlay for the Resistive Touch Display 7" Parallel on the Apalis iMX6 parallel RGB LCD interface.

The panel is a LogicTechno LT161010-2NHR 7" WVGA TFT Transmissive LCD with a resistive touch.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

---
 arch/arm/boot/dts/nxp/imx/Makefile            |  6 ++++
 ...apalis-panel-res-touch-7inch-parallel.dtso | 30 +++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso
arch/arm/boot/dts/nxp/imx/Makefile +6 -0
index 5f35771cc3626..cd1b095ce06f4 100644
@@ -107,6 +107,10 @@ imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-7inch-parallel-dtbs := \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-panel-cap-touch-7inch-parallel.dtbo
 
+imx6q-apalis-v1.2-ixora-v1.2-panel-res-touch-7inch-parallel-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-panel-res-touch-7inch-parallel.dtbo
+
 imx6qdl-dhcom-pdk2-overlay-497-200-x12-dtbs := \
 	imx6q-dhcom-pdk2.dtb \
 	imx6qdl-dhcom-pdk2-overlay-497-200-x12.dtbo
@@ -243,6 +247,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-ixora-v1.2-hdmi.dtb \
 	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo \
 	imx6q-apalis-panel-cap-touch-7inch-parallel.dtbo \
+	imx6q-apalis-panel-res-touch-7inch-parallel.dtbo \
 	imx6q-apalis-v1.2-eval.dtb \
 	imx6q-apalis-v1.2-eval-hdmi.dtb \
 	imx6q-apalis-v1.2-eval-v1.2.dtb \
@@ -255,6 +260,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-v1.2-ixora-v1.2-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-7inch-parallel.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-panel-res-touch-7inch-parallel.dtb \
 	imx6q-apf6dev.dtb \
 	imx6q-arm2.dtb \
 	imx6q-b450v3.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso new file +0 -0
new file mode 100644
index 0000000000000..be2164dcd0369

imx6q-apalis-panel-lt161010.dtso, in case other 7inch panel added. it may be end of life in future.

or imx6q-apalis-parallel-panel-lt161010

Quoted 18 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso new file +17 -0
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex Resistive Touch Display 7" Parallel connected through the 40-way
+ * Unified Interface Display connector (as featured on Ixora carrier board and
+ * Apalis Evaluation Board). Touchscreen is available only on Apalis iMX6 v1.2.
+ *
+ * https://docs.toradex.com/104498-7-inch-parallel-resistive-touch-display-800x480.pdf
+ * https://developer.toradex.com/hardware/accessories/displays/resistive-touch-display-7inch-parallel/
+ * https://www.toradex.com/accessories/resistive-touch-display
+ */
+
+/dts-v1/;
+/plugin/;
+
+&backlight {

arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso line 27

Quoted 10 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso new file +10 -0
+	status = "okay";
+};
+
+&lcd_display {
+	status = "okay";
+};
+
+&panel_dpi {
+	compatible = "logictechno,lt161010-2nhr";
+	power-supply = <&reg_3v3_sw>;

You'd better use additional unified name reg_lcd_panel

in main board dts,
reg_lcd_panel: reg_3v3_sw: regulator... {
}

So this dtso may be easy shared in future.

Frank

Quoted 4 lines
arch/arm/boot/dts/nxp/imx/imx6q-apalis-panel-res-touch-7inch-parallel.dtso new file +3 -0
+
+	status = "okay";
+};
#15 lore raw

PATCH 6/7 ARM: dts: imx6q-apalis: Add NAU8822 Bridge Tied Load

In reply to Leonardo Costa

From: Leonardo Costa <[email protected]>

The NAU8822 on the Apalis Evaluation Board V1.2 can combine its two loudspeaker outputs into a Bridge Tied Load output. Add an overlay to select this mode when using the board with Apalis iMX6.

The overlay is also combined with the Apalis iMX6 V1.2 Evaluation Board V1.2 device tree to provide a ready-to-use DTB. The codec and its routing are already described by the carrier device tree.

---
 arch/arm/boot/dts/nxp/imx/Makefile                |  6 ++++++
 .../imx/imx6q-apalis-eval-v1.2-nau8822-btl.dtso   | 15 +++++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-eval-v1.2-nau8822-btl.dtso
arch/arm/boot/dts/nxp/imx/Makefile +6 -0
index cd1b095ce06f4..cb2ad0756e7fe 100644
@@ -87,6 +87,10 @@ imx6q-apalis-v1.2-eval-v1.2-hdmi-dtbs := \
 	imx6q-apalis-v1.2-eval-v1.2.dtb \
 	imx6q-apalis-hdmi.dtbo
 
+imx6q-apalis-v1.2-eval-v1.2-nau8822-btl-dtbs := \
+	imx6q-apalis-v1.2-eval-v1.2.dtb \
+	imx6q-apalis-eval-v1.2-nau8822-btl.dtbo
+
 imx6q-apalis-v1.2-ixora-hdmi-dtbs := \
 	imx6q-apalis-v1.2-ixora.dtb \
 	imx6q-apalis-hdmi.dtbo
@@ -238,6 +242,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-eval-hdmi.dtb \
 	imx6q-apalis-eval-v1.2.dtb \
 	imx6q-apalis-eval-v1.2-hdmi.dtb \
+	imx6q-apalis-eval-v1.2-nau8822-btl.dtbo \
 	imx6q-apalis-hdmi.dtbo \
 	imx6q-apalis-ixora.dtb \
 	imx6q-apalis-ixora-hdmi.dtb \
@@ -252,6 +257,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-v1.2-eval-hdmi.dtb \
 	imx6q-apalis-v1.2-eval-v1.2.dtb \
 	imx6q-apalis-v1.2-eval-v1.2-hdmi.dtb \
+	imx6q-apalis-v1.2-eval-v1.2-nau8822-btl.dtb \
 	imx6q-apalis-v1.2-ixora.dtb \
 	imx6q-apalis-v1.2-ixora-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.1.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-eval-v1.2-nau8822-btl.dtso new file +15 -0
new file mode 100644
index 0000000000000..b2f9c43d29cd2
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Enable Bridge Tied Load (BTL) speaker mode on the Apalis Evaluation
+ * Board V1.2, combining the two loudspeaker outputs for higher output
+ * power.
+ */
+
+/dts-v1/;
+/plugin/;
+
+&nau8822_1a {
+	nuvoton,spk-btl;
+};
#16 lore raw

PATCH 7/7 ARM: dts: imx6q-apalis: Add Toradex OV5640 CSI Cameras

In reply to Leonardo Costa

From: Leonardo Costa <[email protected]>

Add device tree overlays for the Toradex OV5640 CSI Camera on Apalis iMX6 CSI.

The default overlay describes the current CSI Camera Set 5MP OV5640 with a 27 MHz on-board oscillator. Add a separate 24 MHz overlay for the legacy camera module.

Remove the ov5640_mipi node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level. The camera modules have their own on-board oscillator, so the sensor xclk is now described as a fixed clock instead of the SoC CLKO2 output.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

---
 arch/arm/boot/dts/nxp/imx/Makefile            | 12 +++
 .../nxp/imx/imx6q-apalis-ov5640-24mhz.dtso    | 17 +++++
 .../boot/dts/nxp/imx/imx6q-apalis-ov5640.dtsi | 68 +++++++++++++++++
 .../boot/dts/nxp/imx/imx6q-apalis-ov5640.dtso | 18 +++++
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 73 -------------------
 5 files changed, 115 insertions(+), 73 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640-24mhz.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtsi
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtso
arch/arm/boot/dts/nxp/imx/Makefile +12 -0
index cb2ad0756e7fe..9bb3bd9756d11 100644
@@ -103,6 +103,14 @@ imx6q-apalis-v1.2-ixora-v1.2-hdmi-dtbs := \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-hdmi.dtbo
 
+imx6q-apalis-v1.2-ixora-v1.2-ov5640-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-ov5640.dtbo
+
+imx6q-apalis-v1.2-ixora-v1.2-ov5640-24mhz-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-ov5640-24mhz.dtbo
+
 imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds-dtbs := \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo
@@ -250,6 +258,8 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-ixora-v1.2.dtb \
 	imx6q-apalis-ixora-v1.2-hdmi.dtb \
+	imx6q-apalis-ov5640.dtbo \
+	imx6q-apalis-ov5640-24mhz.dtbo \
 	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo \
 	imx6q-apalis-panel-cap-touch-7inch-parallel.dtbo \
 	imx6q-apalis-panel-res-touch-7inch-parallel.dtbo \
@@ -264,6 +274,8 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-v1.2-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-hdmi.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-ov5640.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-ov5640-24mhz.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-7inch-parallel.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-res-touch-7inch-parallel.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640-24mhz.dtso new file +17 -0
new file mode 100644
index 0000000000000..3e4bbb11ce203
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Legacy Toradex CSI Camera Module 5MP OV5640 on Apalis iMX6 CSI.
+ *
+ * https://developer.toradex.com/hardware/legacy-products/other/csi-camera-module-5mp-ov5640
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "imx6q-apalis-ov5640.dtsi"
+
+&clock_camera {
+	clock-frequency = <24000000>;
+};
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtsi new file +68 -0

68 lines not on this page · raw message

arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtso new file +18 -0
new file mode 100644
index 0000000000000..9cf7587c263bf
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex CSI Camera Set 5MP OV5640 on Apalis iMX6 CSI.
+ *
+ * https://developer.toradex.com/hardware/accessories/cameras/csi-camera-module-5mp-ov5640-arducam
+ * https://www.toradex.com/accessories/csi-camera-ov5640
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "imx6q-apalis-ov5640.dtsi"
+
+&clock_camera {
+	clock-frequency = <27000000>;
+};
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +0 -73

103 lines not on this page · raw message

#17 lore raw

Re: [PATCH 7/7] ARM: dts: imx6q-apalis: Add Toradex OV5640 CSI Cameras

Quoted 21 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add device tree overlays for the Toradex OV5640 CSI Camera on Apalis iMX6 CSI.

The default overlay describes the current CSI Camera Set 5MP OV5640 with a 27 MHz on-board oscillator. Add a separate 24 MHz overlay for the legacy camera module.

Remove the ov5640_mipi node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level. The camera modules have their own on-board oscillator, so the sensor xclk is now described as a fixed clock instead of the SoC CLKO2 output.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

Quoted 5 lines
---
 arch/arm/boot/dts/nxp/imx/Makefile            | 12 +++
 .../nxp/imx/imx6q-apalis-ov5640-24mhz.dtso    | 17 +++++
 .../boot/dts/nxp/imx/imx6q-apalis-ov5640.dtsi | 68 +++++++++++++++++
 .../boot/dts/nxp/imx/imx6q-apalis-ov5640.dtso | 18 +++++

Please use nexus connector to share one ov5460 for all boards.

https://lore.kernel.org/imx/20261001-verdin-imx8mp-hmp-camera-ready-v2-3-7d1343ecd3ec@toradex.com/

Frank

Quoted 277 lines
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 73 -------------------
 5 files changed, 115 insertions(+), 73 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640-24mhz.dtso
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtsi
 create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtso
arch/arm/boot/dts/nxp/imx/Makefile +12 -0
index cb2ad0756e7fe..9bb3bd9756d11 100644
@@ -103,6 +103,14 @@ imx6q-apalis-v1.2-ixora-v1.2-hdmi-dtbs := \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-hdmi.dtbo
 
+imx6q-apalis-v1.2-ixora-v1.2-ov5640-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-ov5640.dtbo
+
+imx6q-apalis-v1.2-ixora-v1.2-ov5640-24mhz-dtbs := \
+	imx6q-apalis-v1.2-ixora-v1.2.dtb \
+	imx6q-apalis-ov5640-24mhz.dtbo
+
 imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds-dtbs := \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo
@@ -250,6 +258,8 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-ixora-v1.2.dtb \
 	imx6q-apalis-ixora-v1.2-hdmi.dtb \
+	imx6q-apalis-ov5640.dtbo \
+	imx6q-apalis-ov5640-24mhz.dtbo \
 	imx6q-apalis-panel-cap-touch-10inch-lvds.dtbo \
 	imx6q-apalis-panel-cap-touch-7inch-parallel.dtbo \
 	imx6q-apalis-panel-res-touch-7inch-parallel.dtbo \
@@ -264,6 +274,8 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-apalis-v1.2-ixora-v1.1-hdmi.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-hdmi.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-ov5640.dtb \
+	imx6q-apalis-v1.2-ixora-v1.2-ov5640-24mhz.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-10inch-lvds.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-cap-touch-7inch-parallel.dtb \
 	imx6q-apalis-v1.2-ixora-v1.2-panel-res-touch-7inch-parallel.dtb \
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640-24mhz.dtso new file +17 -0
new file mode 100644
index 0000000000000..3e4bbb11ce203
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Legacy Toradex CSI Camera Module 5MP OV5640 on Apalis iMX6 CSI.
+ *
+ * https://developer.toradex.com/hardware/legacy-products/other/csi-camera-module-5mp-ov5640
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "imx6q-apalis-ov5640.dtsi"
+
+&clock_camera {
+	clock-frequency = <24000000>;
+};
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtsi new file +68 -0
new file mode 100644
index 0000000000000..302f1ceb6a102
@@ -0,0 +1,68 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Common device tree include for Toradex OV5640 CSI camera on Apalis iMX6 CSI.
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+
+&{/} {
+	clock_camera: clock-camera {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+	};
+
+	regulator_camera: regulator-camera {
+		compatible = "regulator-fixed";
+		/* Apalis GPIO4 - CSI Camera Connector pin 24 */
+		gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-name = "V_CSI";
+		startup-delay-us = <5000>;
+	};
+};
+
+&i2c3 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	camera@3c {
+		compatible = "ovti,ov5640";
+		reg = <0x3c>;
+		clocks = <&clock_camera>;
+		clock-names = "xclk";
+		AVDD-supply = <&regulator_camera>;
+		DOVDD-supply = <&regulator_camera>;
+		DVDD-supply = <&regulator_camera>;
+		/* Apalis GPIO2 - CSI Camera Connector pin 22 */
+		powerdown-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
+		/* Apalis GPIO1 - CSI Camera Connector pin 11 */
+		reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
+
+		port {
+			ov5640_to_mipi_csi2: endpoint {
+				clock-lanes = <0>;
+				data-lanes = <1 2>;
+				remote-endpoint = <&imx6q_mipi_csi_in>;
+			};
+		};
+	};
+};
+
+&mipi_csi {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	status = "okay";
+
+	port@0 {
+		reg = <0>;
+
+		imx6q_mipi_csi_in: endpoint {
+			clock-lanes = <0>;
+			data-lanes = <1 2>;
+			remote-endpoint = <&ov5640_to_mipi_csi2>;
+		};
+	};
+};
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ov5640.dtso new file +18 -0
new file mode 100644
index 0000000000000..9cf7587c263bf
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex CSI Camera Set 5MP OV5640 on Apalis iMX6 CSI.
+ *
+ * https://developer.toradex.com/hardware/accessories/cameras/csi-camera-module-5mp-ov5640-arducam
+ * https://www.toradex.com/accessories/csi-camera-ov5640
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "imx6q-apalis-ov5640.dtsi"
+
+&clock_camera {
+	clock-frequency = <27000000>;
+};
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +0 -73
index e52b55a386f7a..ce160fad5ee06 100644
@@ -36,12 +36,6 @@ backlight: backlight {
 		status = "disabled";
 	};
 
-	clk_ov5640_osc: clk-ov5640-osc {
-		compatible = "fixed-clock";
-		#clock-cells = <0>;
-		clock-frequency = <24000000>;
-	};
-
 	gpio-keys {
 		compatible = "gpio-keys";
 		pinctrl-names = "default";
@@ -116,26 +110,6 @@ reg_module_3v3_audio: regulator-module-3v3-audio {
 		regulator-name = "+V3.3_AUDIO";
 	};
 
-	reg_ov5640_1v8_d_o_vdd: regulator-ov5640-1v8-d-o-vdd {
-		compatible = "regulator-fixed";
-		regulator-always-on;
-		regulator-max-microvolt = <1800000>;
-		regulator-min-microvolt = <1800000>;
-		regulator-name = "DOVDD/DVDD_1.8V";
-		/* Note: The CSI module uses on-board 3.3V_SW supply */
-		vin-supply = <&reg_module_3v3>;
-	};
-
-	reg_ov5640_2v8_a_vdd: regulator-ov5640-2v8-a-vdd {
-		compatible = "regulator-fixed";
-		regulator-always-on;
-		regulator-max-microvolt = <2800000>;
-		regulator-min-microvolt = <2800000>;
-		regulator-name = "AVDD/AFVDD_2.8V";
-		/* Note: The CSI module uses on-board 3.3V_SW supply */
-		vin-supply = <&reg_module_3v3>;
-	};
-
 	reg_usb_otg_vbus: regulator-usb-otg-vbus {
 		compatible = "regulator-fixed";
 		enable-active-high;
@@ -690,30 +664,6 @@ adv7280_to_ipu1_csi0_mux: endpoint {
 			};
 		};
 	};
-
-	ov5640_csi_cam: ov5640_mipi@3c {
-		compatible = "ovti,ov5640";
-		AVDD-supply = <&reg_ov5640_2v8_a_vdd>;
-		DOVDD-supply = <&reg_ov5640_1v8_d_o_vdd>;
-		DVDD-supply = <&reg_ov5640_1v8_d_o_vdd>;
-		clock-names = "xclk";
-		clocks = <&clks IMX6QDL_CLK_CKO2>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_cam_mclk>;
-		/* These GPIOs are muxed with the iomuxc node */
-		powerdown-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
-		reg = <0x3c>;
-		reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
-		status = "disabled";
-
-		port {
-			ov5640_to_mipi_csi2: endpoint {
-				clock-lanes = <0>;
-				data-lanes = <1 2>;
-				remote-endpoint = <&mipi_csi_from_ov5640>;
-			};
-		};
-	};
 };
 
 &ipu1_di1_disp1 {
@@ -743,22 +693,6 @@ lvds1_out: endpoint {
 	};
 };
 
-&mipi_csi {
-	#address-cells = <1>;
-	#size-cells = <0>;
-	status = "disabled";
-
-	port@0 {
-		reg = <0>;
-
-		mipi_csi_from_ov5640: endpoint {
-			clock-lanes = <0>;
-			data-lanes = <1 2>;
-			remote-endpoint = <&ov5640_to_mipi_csi2>;
-		};
-	};
-};
-
 &pwm1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_pwm1>;
@@ -933,13 +867,6 @@ MX6QDL_PAD_DISP0_DAT23__AUD4_RXD	0x130b0
 		>;
 	};
 
-	pinctrl_cam_mclk: cammclkgrp {
-		fsl,pins = <
-			/* CAM sys_mclk */
-			MX6QDL_PAD_NANDF_CS2__CCM_CLKO2 0x00b0
-		>;
-	};
-
 	pinctrl_ecspi1: ecspi1grp {
 		fsl,pins = <
 			MX6QDL_PAD_CSI0_DAT6__ECSPI1_MISO 0x100b1
#18 lore raw

Re: [PATCH 7/7] ARM: dts: imx6q-apalis: Add Toradex OV5640 CSI Cameras

Hi Frank,

Quoted 28 lines · Frank Li
Quoted 21 lines · Leonardo Costa

From: Leonardo Costa <[email protected]>

Add device tree overlays for the Toradex OV5640 CSI Camera on Apalis iMX6 CSI.

The default overlay describes the current CSI Camera Set 5MP OV5640 with a 27 MHz on-board oscillator. Add a separate 24 MHz overlay for the legacy camera module.

Remove the ov5640_mipi node from the Apalis iMX6 dtsi, as it is an external component that does not exist at the SoM level. The camera modules have their own on-board oscillator, so the sensor xclk is now described as a fixed clock instead of the SoC CLKO2 output.

The overlay is also combined with the Apalis iMX6 V1.2 Ixora Carrier Board V1.2 device tree to provide a ready-to-use DTB.

Quoted 5 lines
---
 arch/arm/boot/dts/nxp/imx/Makefile            | 12 +++
 .../nxp/imx/imx6q-apalis-ov5640-24mhz.dtso    | 17 +++++
 .../boot/dts/nxp/imx/imx6q-apalis-ov5640.dtsi | 68 +++++++++++++++++
 .../boot/dts/nxp/imx/imx6q-apalis-ov5640.dtso | 18 +++++
Quoted 5 lines

Please use nexus connector to share one ov5460 for all boards.

https://lore.kernel.org/imx/20261001-verdin-imx8mp-hmp-camera-ready-v2-3-7d1343ecd3ec@toradex.com/

Frank

Hi Frank,

At the moment we don't have plans to add other overlays for this camera on Apalis iMX6, so there's no need for nexus connectors in this case.

Leonardo