Skip to contentSkip to conversation

ARM: dts: imx6: Update dts files for the Ka-Ro TX6 module series

PATCH In review Lothar Waßmann 2 participants 14 messages Oct 11, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover ARM: dts: imx6: Update dts files for the Ka-Ro TX6 module series

This patchset updates the dts files for the Ka-Ro electronics GmbH TX6 module series and adds some include files to facilitate supporting various SoM/baseboard combinations.

#1 lore raw

PATCH 1/12 ARM: dts: imx6-tx6: update model property to match current module HW revision

The current TX6Q module HW revision is 3 reflected in the module name suffix '-1030' (-1130 for LVDS).
Change the model string to prevent confusion about what DTS file to use for these modules.

---
 arch/arm/boot/dts/imx6q-tx6q-1010.dts | 4 ++--
 arch/arm/boot/dts/imx6q-tx6q-1110.dts | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/imx6q-tx6q-1010.dts +2 -2
index f9cd21a..54bc442 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014-2016 Lothar Wa?mann <[email protected]>
+ * Copyright 2014-2017 Lothar Wa?mann <[email protected]>
  *
  * This file is dual-licensed: you can use it either under the terms
  * of the GPL or the X11 license, at your option. Note that this dual
@@ -44,7 +44,7 @@
 #include "imx6qdl-tx6.dtsi"
 
 / {
-	model = "Ka-Ro electronics TX6Q-1010 Module";
+	model = "Ka-Ro electronics TX6Q-1010/-1030 Module";
 	compatible = "karo,imx6q-tx6q", "fsl,imx6q";
 
 	aliases {
arch/arm/boot/dts/imx6q-tx6q-1110.dts +2 -2
index 0433e22..0f5e638 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014-2016 Lothar Wa?mann <[email protected]>
+ * Copyright 2014-2017 Lothar Wa?mann <[email protected]>
  *
  * This file is dual-licensed: you can use it either under the terms
  * of the GPL or the X11 license, at your option. Note that this dual
@@ -44,7 +44,7 @@
 #include "imx6qdl-tx6.dtsi"
 
 / {
-	model = "Ka-Ro electronics TX6Q-1110 Module";
+	model = "Ka-Ro electronics TX6Q-1110/-1130 Module";
 	compatible = "karo,imx6q-tx6q", "fsl,imx6q";
 
 	aliases {
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/12 ARM: dts: imx6-tx6: remove obsolete eeti,egalax_ts

In reply to Lothar Waßmann

The display, that incorporates this touchpanel is obsolete and won't be supported any more.

---
 arch/arm/boot/dts/imx6dl-tx6u-811x.dts     | 23 +----------------------
 arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts | 22 +---------------------
 arch/arm/boot/dts/imx6q-tx6q-1110.dts      | 21 ---------------------
 arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts  | 22 +---------------------
 4 files changed, 3 insertions(+), 85 deletions(-)
arch/arm/boot/dts/imx6dl-tx6u-811x.dts +1 -22
index 5e0c6bb..f0f759a 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014-2016 Lothar Wa?mann <[email protected]>
+ * Copyright 2014-2017 Lothar Wa?mann <[email protected]>
  *
  * This file is dual-licensed: you can use it either under the terms
  * of the GPL or the X11 license, at your option. Note that this dual
@@ -98,19 +98,6 @@
 	};
 };
 
-&i2c3 {
-	polytouch2: eeti at 04 {
-		compatible = "eeti,egalax_ts";
-		reg = <0x04>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_eeti>;
-		interrupt-parent = <&gpio3>;
-		interrupts = <22 0>;
-		wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
-		wakeup-source;
-	};
-};
-
 &kpp {
 	status = "disabled"; /* pad conflict with backlight1 PWM */
 };
@@ -168,11 +155,3 @@
 &pwm1 {
 	status = "okay";
 };
-
-&iomuxc {
-	pinctrl_eeti: eetigrp {
-		fsl,pins = <
-			MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b1 /* Interrupt */
-		>;
-	};
-};
arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts +1 -21
index b9a783f..c817324 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Lothar Wa?mann <[email protected]>
+ * Copyright 2016-2017 Lothar Wa?mann <[email protected]>
  *
  * This file is dual-licensed: you can use it either under the terms
  * of the GPL or the X11 license, at your option. Note that this dual
@@ -106,18 +106,6 @@
 	xceiver-supply = <&reg_3v3>;
 };
 
-&i2c3 {
-	polytouch1: eeti at 04 {
-		compatible = "eeti,egalax_ts";
-		reg = <0x04>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_eeti>;
-		interrupts-extended = <&gpio3 22 IRQ_TYPE_EDGE_FALLING>;
-		wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
-		wakeup-source;
-	};
-};
-
 &kpp {
 	status = "disabled"; /* pads partially clash with backlight1 PWM */
 };
@@ -245,11 +233,3 @@
 &pwm1 {
 	status = "okay";
 };
-
-&iomuxc {
-	pinctrl_eeti: eetigrp {
-		fsl,pins = <
-			MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b1 /* Interrupt */
-		>;
-	};
-};
arch/arm/boot/dts/imx6q-tx6q-1110.dts +0 -21
index 0f5e638..900557d 100644
@@ -98,19 +98,6 @@
 	};
 };
 
-&i2c3 {
-	polytouch1: eeti at 04 {
-		compatible = "eeti,egalax_ts";
-		reg = <0x04>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_eeti>;
-		interrupt-parent = <&gpio3>;
-		interrupts = <22 0>;
-		wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
-		wakeup-source;
-	};
-};
-
 &kpp {
 	status = "disabled"; /* pad conflict with backlight1 PWM */
 };
@@ -172,11 +159,3 @@
 &sata {
 	status = "okay";
 };
-
-&iomuxc {
-	pinctrl_eeti: eetigrp {
-		fsl,pins = <
-			MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b1 /* Interrupt */
-		>;
-	};
-};
arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts +1 -21
index d78b129..6b42c44 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Lothar Wa?mann <[email protected]>
+ * Copyright 2016-2017 Lothar Wa?mann <[email protected]>
  *
  * This file is dual-licensed: you can use it either under the terms
  * of the GPL or the X11 license, at your option. Note that this dual
@@ -107,18 +107,6 @@
 	xceiver-supply = <&reg_3v3>;
 };
 
-&i2c3 {
-	polytouch1: eeti at 04 {
-		compatible = "eeti,egalax_ts";
-		reg = <0x04>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_eeti>;
-		interrupts-extended = <&gpio3 22 IRQ_TYPE_EDGE_FALLING>;
-		wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
-		wakeup-source;
-	};
-};
-
 &ipu2 {
 	status = "disabled";
 };
@@ -254,11 +242,3 @@
 &sata {
 	status = "okay";
 };
-
-&iomuxc {
-	pinctrl_eeti: eetigrp {
-		fsl,pins = <
-			MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b1 /* Interrupt */
-		>;
-	};
-};
Signature · 1 line
2.1.4
#3 lore raw

PATCH 3/12 ARM: dts: imx6-tx6: remove obsolete ipu1 alias

In reply to Lothar Waßmann

The 'ipu1' alias is already defined in imx6q.dtsi. There is no need to redefine it here.

---
 arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts +0 -1
index 6b42c44..be9233d 100644
@@ -49,7 +49,6 @@
 
 	aliases {
 		display = &lvds0;
-		ipu1 = &ipu2;
 		lvds0 = &lvds0;
 		lvds1 = &lvds1;
 	};
Signature · 1 line
2.1.4
#4 lore raw

PATCH 4/12 ARM: dts: imx6-tx6: add trickle-charge config for DS1339

In reply to Lothar Waßmann

As the DS1339 driver now supports enabling the trickle charge feature via DTB, add the appropriate properties to utilize this feature.

---
 arch/arm/boot/dts/imx6qdl-tx6.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx6qdl-tx6.dtsi +2 -0
index c6bec97..a50bf71 100644
@@ -284,6 +284,8 @@
 	ds1339: rtc at 68 {
 		compatible = "dallas,ds1339";
 		reg = <0x68>;
+		trickle-resistor-ohms = <250>;
+		trickle-diode-disable;
 	};
 };
 
Signature · 1 line
2.1.4
#5 lore raw

PATCH 5/12 ARM: dts: imx6-tx6: improve ethernet related pinctrl setup

In reply to Lothar Waßmann

Remove the PHY INT and RESET pins from hog section and put them into their own pinctrl nodes referenced by the appropriate driver nodes. Also, the MDIO pins are required for probing the Ethernet PHY, so they must be configured by the FEC driver, not by the PHY driver. Move the corresponding pinctrl settings from the PHY subnode to the FEC node.

---
 arch/arm/boot/dts/imx6qdl-tx6.dtsi | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx6qdl-tx6.dtsi +15 -5
index a50bf71..aa32956 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014-2016 Lothar Wa?mann <[email protected]>
+ * Copyright 2014-2017 Lothar Wa?mann <[email protected]>
  *
  * This file is dual-licensed: you can use it either under the terms
  * of the GPL or the X11 license, at your option. Note that this dual
@@ -241,7 +241,7 @@
 
 &fec {
 	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_enet>;
+	pinctrl-0 = <&pinctrl_enet &pinctrl_enet_mdio &pinctrl_etnphy_rst>;
 	clocks = <&clks IMX6QDL_CLK_ENET>,
 		 <&clks IMX6QDL_CLK_ENET>,
 		 <&clks IMX6QDL_CLK_ENET_REF>,
@@ -261,7 +261,7 @@
 			compatible = "ethernet-phy-ieee802.3-c22";
 			reg = <0>;
 			pinctrl-names = "default";
-			pinctrl-0 = <&pinctrl_enet_mdio>;
+			pinctrl-0 = <&pinctrl_etnphy_int>;
 			interrupts-extended = <&gpio7 1 IRQ_TYPE_EDGE_FALLING>;
 		};
 	};
@@ -334,8 +334,6 @@
 
 	pinctrl_hog: hoggrp {
 		fsl,pins = <
-			MX6QDL_PAD_SD3_DAT2__GPIO7_IO06		0x1b0b1 /* ETN PHY RESET */
-			MX6QDL_PAD_SD3_DAT4__GPIO7_IO01		0x1b0b1 /* ETN PHY INT */
 			MX6QDL_PAD_EIM_A25__GPIO5_IO02		0x1b0b1 /* PWR BTN */
 		>;
 	};
@@ -453,12 +451,24 @@
 		>;
 	};
 
+	pinctrl_etnphy_int: etnphy-intgrp {
+		fsl,pins = <
+			MX6QDL_PAD_SD3_DAT4__GPIO7_IO01		0x1b0b1 /* ETN PHY INT */
+		>;
+	};
+
 	pinctrl_etnphy_power: etnphy-pwrgrp {
 		fsl,pins = <
 			MX6QDL_PAD_EIM_D20__GPIO3_IO20		0x1b0b1 /* ETN PHY POWER */
 		>;
 	};
 
+	pinctrl_etnphy_rst: etnphy-rstgrp {
+		fsl,pins = <
+			MX6QDL_PAD_SD3_DAT2__GPIO7_IO06		0x1b0b1 /* ETN PHY RESET */
+		>;
+	};
+
 	pinctrl_flexcan1: flexcan1grp {
 		fsl,pins = <
 			MX6QDL_PAD_GPIO_7__FLEXCAN1_TX		0x1b0b0
Signature · 1 line
2.1.4
#6 lore raw

PATCH 6/12 ARM: dts: imx6-tx6: specify ethernet phy reset duration

In reply to Lothar Waßmann

Under certain circumstances the ethernet PHY cannot be detected on Ka-Ro electronics TX6 modules. Using a phy-reset-duration of at least 2ms alleviates this problem.

---
 arch/arm/boot/dts/imx6qdl-tx6.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx6qdl-tx6.dtsi +1 -0
index aa32956..c6b2d63 100644
@@ -249,6 +249,7 @@
 	clock-names = "ipg", "ahb", "ptp", "enet_out";
 	phy-mode = "rmii";
 	phy-reset-gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
+	phy-reset-post-delay = <10>;
 	phy-handle = <&etnphy>;
 	phy-supply = <&reg_3v3_etn>;
 	status = "okay";
Signature · 1 line
2.1.4
#7 lore raw

PATCH 7/12 ARM: dts: imx6-tx6: convert to using simple-audio-card

In reply to Lothar Waßmann

Convert the DTS sound setup to use the simple-audio-card driver.

---
 arch/arm/boot/dts/imx6qdl-tx6.dtsi | 50 ++++++++++++++++++++++++++++++++------
 1 file changed, 42 insertions(+), 8 deletions(-)
arch/arm/boot/dts/imx6qdl-tx6.dtsi +42 -8
index c6b2d63..e0dbf8b 100644
@@ -43,6 +43,7 @@
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/sound/fsl-imx-audmux.h>
 
 / {
 	aliases {
@@ -183,24 +184,56 @@
 	};
 
 	sound {
-		compatible = "karo,imx6qdl-tx6qdl-sgtl5000",
-			     "fsl,imx-audio-sgtl5000";
-		model = "sgtl5000-audio";
+		compatible = "karo,imx6qdl-tx6-sgtl5000",
+			     "simple-audio-card";
+		simple-audio-card,name = "imx6qdl-tx6-sgtl5000-audio";
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_audmux>;
-		ssi-controller = <&ssi1>;
-		audio-codec = <&sgtl5000>;
-		audio-routing =
+		simple-audio-card,format = "i2s";
+		simple-audio-card,bitclock-master = <&codec_dai>;
+		simple-audio-card,frame-master = <&codec_dai>;
+		simple-audio-card,widgets =
+			"Microphone", "Mic Jack",
+			"Line", "Line In",
+			"Line", "Line Out",
+			"Headphone", "Headphone Jack";
+		simple-audio-card,routing =
 			"MIC_IN", "Mic Jack",
 			"Mic Jack", "Mic Bias",
 			"Headphone Jack", "HP_OUT";
-		mux-int-port = <1>;
-		mux-ext-port = <5>;
+
+		cpu_dai: simple-audio-card,cpu {
+			sound-dai = <&ssi1>;
+		};
+
+		codec_dai: simple-audio-card,codec {
+			sound-dai = <&sgtl5000>;
+		};
 	};
 };
 
 &audmux {
 	status = "okay";
+
+	ssi1 {
+		fsl,audmux-port = <0>;
+		fsl,port-config = <
+			(IMX_AUDMUX_V2_PTCR_SYN |
+			IMX_AUDMUX_V2_PTCR_TFSEL(4) |
+			IMX_AUDMUX_V2_PTCR_TCSEL(4) |
+			IMX_AUDMUX_V2_PTCR_TFSDIR |
+			IMX_AUDMUX_V2_PTCR_TCLKDIR)
+			IMX_AUDMUX_V2_PDCR_RXDSEL(4)
+		>;
+	};
+
+	pins5 {
+		fsl,audmux-port = <4>;
+		fsl,port-config = <
+			IMX_AUDMUX_V2_PTCR_SYN
+			IMX_AUDMUX_V2_PDCR_RXDSEL(0)
+		>;
+	};
 };
 
 &can1 {
@@ -298,6 +331,7 @@
 
 	sgtl5000: sgtl5000 at 0a {
 		compatible = "fsl,sgtl5000";
+		#sound-dai-cells = <0>;
 		reg = <0x0a>;
 		VDDA-supply = <&reg_2v5>;
 		VDDIO-supply = <&reg_3v3>;
Signature · 1 line
2.1.4
#8 lore raw

PATCH 8/12 ARM: dts: imx6-tx6: add support for I2C bus recovery

In reply to Lothar Waßmann

Define the required properties to enable I2C bus recovery supported by the I2C subsystem.

---
 arch/arm/boot/dts/imx6qdl-tx6.dtsi | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6qdl-tx6.dtsi +22 -2
index e0dbf8b..9b563d4 100644
@@ -310,8 +310,11 @@
 };
 
 &i2c1 {
-	pinctrl-names = "default";
+	pinctrl-names = "default", "gpio";
 	pinctrl-0 = <&pinctrl_i2c1>;
+	pinctrl-1 = <&pinctrl_i2c1_gpio>;
+	scl-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+	sda-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
 	clock-frequency = <400000>;
 	status = "okay";
 
@@ -324,8 +327,11 @@
 };
 
 &i2c3 {
-	pinctrl-names = "default";
+	pinctrl-names = "default", "gpio";
 	pinctrl-0 = <&pinctrl_i2c3>;
+	pinctrl-1 = <&pinctrl_i2c3_gpio>;
+	scl-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+	sda-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
 	clock-frequency = <400000>;
 	status = "okay";
 
@@ -551,6 +557,13 @@
 		>;
 	};
 
+	pinctrl_i2c1_gpio: i2c1-gpiogrp {
+		fsl,pins = <
+			MX6QDL_PAD_EIM_D21__GPIO3_IO21		0x4001b8b1
+			MX6QDL_PAD_EIM_D28__GPIO3_IO28		0x4001b8b1
+		>;
+	};
+
 	pinctrl_i2c3: i2c3grp {
 		fsl,pins = <
 			MX6QDL_PAD_GPIO_3__I2C3_SCL		0x4001b8b1
@@ -558,6 +571,13 @@
 		>;
 	};
 
+	pinctrl_i2c3_gpio: i2c3-gpiogrp {
+		fsl,pins = <
+			MX6QDL_PAD_GPIO_3__GPIO1_IO03		0x4001b8b1
+			MX6QDL_PAD_GPIO_6__GPIO1_IO06		0x4001b8b1
+		>;
+	};
+
 	pinctrl_kpp: kppgrp {
 		fsl,pins = <
 			MX6QDL_PAD_GPIO_9__KEY_COL6		0x1b0b1
Signature · 1 line
2.1.4
#9 lore raw

PATCH 9/12 ARM: dts: imx6-tx6: move display configuration to .dtsi file

In reply to Lothar Waßmann

Currently the display (LCD or LVDS) configuration is duplicated with slight variations in each TX6 module specific file.

Move it to an include file for simplification and consistency.

---
 arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts    |  74 +------
 arch/arm/boot/dts/imx6dl-tx6s-8034.dts       | 171 +---------------
 arch/arm/boot/dts/imx6dl-tx6s-8035.dts       | 171 +---------------
 arch/arm/boot/dts/imx6dl-tx6u-801x.dts       | 161 +--------------
 arch/arm/boot/dts/imx6dl-tx6u-8033.dts       | 170 +---------------
 arch/arm/boot/dts/imx6dl-tx6u-811x.dts       | 109 +---------
 arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts   | 185 +----------------
 arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts |  74 +------
 arch/arm/boot/dts/imx6q-tx6q-1010.dts        | 159 +--------------
 arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts |  74 +------
 arch/arm/boot/dts/imx6q-tx6q-1020.dts        | 162 +--------------
 arch/arm/boot/dts/imx6q-tx6q-1036.dts        | 170 +---------------
 arch/arm/boot/dts/imx6q-tx6q-1110.dts        | 109 +---------
 arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts    | 187 ++----------------
 arch/arm/boot/dts/imx6qdl-tx6-lcd.dtsi       | 252 +++++++++++++++++++++++
 arch/arm/boot/dts/imx6qdl-tx6-lvds.dtsi      | 286 +++++++++++++++++++++++++++
 arch/arm/boot/dts/imx6qdl-tx6.dtsi           |   4 +-
 17 files changed, 616 insertions(+), 1902 deletions(-)
 create mode 100644 arch/arm/boot/dts/imx6qdl-tx6-lcd.dtsi
 create mode 100644 arch/arm/boot/dts/imx6qdl-tx6-lvds.dtsi
arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts +10 -64
index aac42ac..51a9bb9 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014-2016 Lothar Wa?mann <[email protected]>
+ * Copyright 2014-2017 Lothar Wa?mann <[email protected]>
  *
  * This file is dual-licensed: you can use it either under the terms
  * of the GPL or the X11 license, at your option. Note that this dual
@@ -42,70 +42,16 @@
 /dts-v1/;
 #include "imx6dl.dtsi"
 #include "imx6qdl-tx6.dtsi"
+#include "imx6qdl-tx6-lcd.dtsi"
 
 / {
 	model = "Ka-Ro electronics TX6DL Module on CoMpact TFT";
 	compatible = "karo,imx6dl-tx6dl", "fsl,imx6dl";
+};
 
-	aliases {
-		display = &display;
-	};
-
-	backlight: backlight {
-		compatible = "pwm-backlight";
-		pwms = <&pwm2 0 500000 0>;
-		power-supply = <&reg_3v3>;
-		/*
-		 * a poor man's way to create a 1:1 relationship between
-		 * the PWM value and the actual duty cycle
-		 */
-		brightness-levels = < 0  1  2  3  4  5  6  7  8  9
-				     10 11 12 13 14 15 16 17 18 19
-				     20 21 22 23 24 25 26 27 28 29
-				     30 31 32 33 34 35 36 37 38 39
-				     40 41 42 43 44 45 46 47 48 49
-				     50 51 52 53 54 55 56 57 58 59
-				     60 61 62 63 64 65 66 67 68 69
-				     70 71 72 73 74 75 76 77 78 79
-				     80 81 82 83 84 85 86 87 88 89
-				     90 91 92 93 94 95 96 97 98 99
-				    100>;
-		default-brightness-level = <50>;
-	};
-
-	display: display at di0 {
-		compatible = "fsl,imx-parallel-display";
-		interface-pix-fmt = "rgb24";
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_disp0_1>;
-		status = "okay";
-
-		port {
-			display0_in: endpoint {
-				remote-endpoint = <&ipu1_di0_disp0>;
-			};
-		};
-
-		display-timings {
-			native-mode = <&ET070001DM6>;
-
-			ET070001DM6: CoMTFT { /* same as ET0700 but with inverted pixel clock */
-				clock-frequency = <33264000>;
-				hactive = <800>;
-				vactive = <480>;
-				hback-porch = <88>;
-				hsync-len = <128>;
-				hfront-porch = <40>;
-				vback-porch = <33>;
-				vsync-len = <2>;
-				vfront-porch = <10>;
-				hsync-active = <0>;
-				vsync-active = <0>;
-				de-active = <1>;
-				pixelclk-active = <1>;
-			};
-		};
-	};
+&backlight {
+	pwms = <&pwm2 0 500000 0>;
+	/delete-property/ turn-on-delay-ms;
 };
 
 &can1 {
@@ -116,14 +62,14 @@
 	xceiver-supply = <&reg_3v3>;
 };
 
-&ipu1_di0_disp0 {
-	remote-endpoint = <&display0_in>;
-};
-
 &kpp {
 	status = "disabled";
 };
 
+&lcd_panel {
+	compatible = "edt,etm0700g0edh6";
+};
+
 &reg_can_xcvr {
 	status = "disabled";
 };
arch/arm/boot/dts/imx6dl-tx6s-8034.dts +2 -169

192 lines not on this page · raw message

arch/arm/boot/dts/imx6dl-tx6s-8035.dts +2 -169

195 lines not on this page · raw message

arch/arm/boot/dts/imx6dl-tx6u-801x.dts +2 -159

173 lines not on this page · raw message

arch/arm/boot/dts/imx6dl-tx6u-8033.dts +2 -168

190 lines not on this page · raw message

arch/arm/boot/dts/imx6dl-tx6u-811x.dts +1 -108

117 lines not on this page · raw message

arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts +9 -176

200 lines not on this page · raw message

arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts +10 -64

99 lines not on this page · raw message

arch/arm/boot/dts/imx6q-tx6q-1010.dts +3 -156

169 lines not on this page · raw message

arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts +10 -64

99 lines not on this page · raw message

arch/arm/boot/dts/imx6q-tx6q-1020.dts +5 -157

188 lines not on this page · raw message

arch/arm/boot/dts/imx6q-tx6q-1036.dts +2 -168

194 lines not on this page · raw message

arch/arm/boot/dts/imx6q-tx6q-1110.dts +3 -106

121 lines not on this page · raw message

arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts +15 -172

207 lines not on this page · raw message

arch/arm/boot/dts/imx6qdl-tx6-lcd.dtsi new file +252 -0

252 lines not on this page · raw message

arch/arm/boot/dts/imx6qdl-tx6-lvds.dtsi new file +286 -0

286 lines not on this page · raw message

arch/arm/boot/dts/imx6qdl-tx6.dtsi +2 -2
index 9b563d4..015757c 100644
@@ -146,7 +146,7 @@
 		pinctrl-0 = <&pinctrl_lcd0_pwr>;
 		gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
-		regulator-boot-on;
+		status = "disabled";
 	};
 
 	reg_lcd1_pwr: regulator-lcd1-pwr {
@@ -158,7 +158,7 @@
 		pinctrl-0 = <&pinctrl_lcd1_pwr>;
 		gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
-		regulator-boot-on;
+		status = "disabled";
 	};
 
 	reg_usbh1_vbus: regulator-usbh1-vbus {
Signature · 1 line
2.1.4
#11 lore raw

PATCH 10/12 ARM: dts: imx6-tx6: add a .dtsi file for the MB7 baseboard

In reply to Lothar Waßmann

Move the MB7 specific settings to a separate .dtsi file to facilitate supporting more module variants with this baseboard.

---
 arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts |  9 +--
 arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts  | 42 +------------
 arch/arm/boot/dts/imx6qdl-tx6-mb7.dtsi     | 99 ++++++++++++++++++++++++++++++
 3 files changed, 102 insertions(+), 48 deletions(-)
 create mode 100644 arch/arm/boot/dts/imx6qdl-tx6-mb7.dtsi
arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts +1 -8
index e43ff12..21eaec9 100644
@@ -43,6 +43,7 @@
 #include "imx6dl.dtsi"
 #include "imx6qdl-tx6.dtsi"
 #include "imx6qdl-tx6-lvds.dtsi"
+#include "imx6qdl-tx6-mb7.dtsi"
 
 / {
 	model = "Ka-Ro electronics TX6U-81xx Module on MB7 baseboard";
@@ -58,11 +59,3 @@
 	pwms = <&pwm1 0 500000 PWM_POLARITY_INVERTED>;
 	turn-on-delay-ms = <35>;
 };
-
-&can1 {
-	status = "disabled";
-};
-
-&can2 {
-	xceiver-supply = <&reg_3v3>;
-};
arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts +2 -40

49 lines not on this page · raw message

arch/arm/boot/dts/imx6qdl-tx6-mb7.dtsi new file +99 -0

99 lines not on this page · raw message

Signature · 1 line
2.1.4
#12 lore raw

PATCH 11/12 ARM: dts: imx: add support for TX6QP

In reply to Lothar Waßmann

The TX6QP-8037 is a Computer On Module manufactured by
Ka-Ro electronics GmbH with the following characteristics:

  Processor    Freescale i.MX 6QuadPlus MCIMX6QP7, 1 GHz
  RAM          1GiB 64-bit DDR3 SDRAM
  ROM          4GB HiRel eMMC

Power supply Single 3.3 to 5V
Size 26mm SO-DIMM
Temp. Range -40?C to 105?C

---
 arch/arm/boot/dts/Makefile              |  2 +
 arch/arm/boot/dts/imx6qp-tx6qp-8037.dts | 86 +++++++++++++++++++++++++++++++
 arch/arm/boot/dts/imx6qp-tx6qp-8137.dts | 90 +++++++++++++++++++++++++++++++++
 3 files changed, 178 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6qp-tx6qp-8037.dts
 create mode 100644 arch/arm/boot/dts/imx6qp-tx6qp-8137.dts
arch/arm/boot/dts/Makefile +2 -0
index 4b17f35..0672369 100644
@@ -451,6 +451,8 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6qp-nitrogen6_som2.dtb \
 	imx6qp-sabreauto.dtb \
 	imx6qp-sabresd.dtb \
+	imx6qp-tx6qp-8037.dtb \
+	imx6qp-tx6qp-8137.dtb \
 	imx6qp-zii-rdu2.dtb
 dtb-$(CONFIG_SOC_IMX6SL) += \
 	imx6sl-evk.dtb \
arch/arm/boot/dts/imx6qp-tx6qp-8037.dts new file +86 -0

86 lines not on this page · raw message

arch/arm/boot/dts/imx6qp-tx6qp-8137.dts new file +90 -0

90 lines not on this page · raw message

Signature · 1 line
2.1.4
#13 lore raw

PATCH 12/12 ARM: dts: imx: add support for TX6 modules on MB7 baseboard

In reply to Lothar Waßmann

Create .dts files for various Ka-Ro electronics TX modules on the MB7 basseboard.

---
 arch/arm/boot/dts/Makefile                  |  8 ++++
 arch/arm/boot/dts/imx6dl-tx6s-8034-mb7.dts  | 48 ++++++++++++++++++++++++
 arch/arm/boot/dts/imx6dl-tx6s-8035-mb7.dts  | 48 ++++++++++++++++++++++++
 arch/arm/boot/dts/imx6dl-tx6u-8033-mb7.dts  | 48 ++++++++++++++++++++++++
 arch/arm/boot/dts/imx6dl-tx6u-80xx-mb7.dts  | 48 ++++++++++++++++++++++++
 arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts  | 17 +--------
 arch/arm/boot/dts/imx6q-tx6q-1036-mb7.dts   | 48 ++++++++++++++++++++++++
 arch/arm/boot/dts/imx6q-tx6q-10x0-mb7.dts   | 48 ++++++++++++++++++++++++
 arch/arm/boot/dts/imx6qp-tx6qp-8037-mb7.dts | 48 ++++++++++++++++++++++++
 arch/arm/boot/dts/imx6qp-tx6qp-8137-mb7.dts | 57 +++++++++++++++++++++++++++++
 10 files changed, 403 insertions(+), 15 deletions(-)
 create mode 100644 arch/arm/boot/dts/imx6dl-tx6s-8034-mb7.dts
 create mode 100644 arch/arm/boot/dts/imx6dl-tx6s-8035-mb7.dts
 create mode 100644 arch/arm/boot/dts/imx6dl-tx6u-8033-mb7.dts
 create mode 100644 arch/arm/boot/dts/imx6dl-tx6u-80xx-mb7.dts
 create mode 100644 arch/arm/boot/dts/imx6q-tx6q-1036-mb7.dts
 create mode 100644 arch/arm/boot/dts/imx6q-tx6q-10x0-mb7.dts
 create mode 100644 arch/arm/boot/dts/imx6qp-tx6qp-8037-mb7.dts
 create mode 100644 arch/arm/boot/dts/imx6qp-tx6qp-8137-mb7.dts
arch/arm/boot/dts/Makefile +8 -0
index 0672369..f4e3507 100644
@@ -383,9 +383,13 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6dl-ts4900.dtb \
 	imx6dl-tx6dl-comtft.dtb \
 	imx6dl-tx6s-8034.dtb \
+	imx6dl-tx6s-8034-mb7.dtb \
 	imx6dl-tx6s-8035.dtb \
+	imx6dl-tx6s-8035-mb7.dtb \
 	imx6dl-tx6u-801x.dtb \
+	imx6dl-tx6u-80xx-mb7.dtb \
 	imx6dl-tx6u-8033.dtb \
+	imx6dl-tx6u-8033-mb7.dtb \
 	imx6dl-tx6u-811x.dtb \
 	imx6dl-tx6u-81xx-mb7.dtb \
 	imx6dl-udoo.dtb \
@@ -440,6 +444,8 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6q-tx6q-1020.dtb \
 	imx6q-tx6q-1020-comtft.dtb \
 	imx6q-tx6q-1036.dtb \
+	imx6q-tx6q-1036-mb7.dtb \
+	imx6q-tx6q-10x0-mb7.dtb \
 	imx6q-tx6q-1110.dtb \
 	imx6q-tx6q-11x0-mb7.dtb \
 	imx6q-udoo.dtb \
@@ -452,7 +458,9 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6qp-sabreauto.dtb \
 	imx6qp-sabresd.dtb \
 	imx6qp-tx6qp-8037.dtb \
+	imx6qp-tx6qp-8037-mb7.dtb \
 	imx6qp-tx6qp-8137.dtb \
+	imx6qp-tx6qp-8137-mb7.dtb \
 	imx6qp-zii-rdu2.dtb
 dtb-$(CONFIG_SOC_IMX6SL) += \
 	imx6sl-evk.dtb \
arch/arm/boot/dts/imx6dl-tx6s-8034-mb7.dts new file +48 -0

48 lines not on this page · raw message

arch/arm/boot/dts/imx6dl-tx6s-8035-mb7.dts new file +48 -0

48 lines not on this page · raw message

arch/arm/boot/dts/imx6dl-tx6u-8033-mb7.dts new file +48 -0

48 lines not on this page · raw message

arch/arm/boot/dts/imx6dl-tx6u-80xx-mb7.dts new file +48 -0

48 lines not on this page · raw message

arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts +2 -15
index 21eaec9..c4588fb 100644
@@ -40,22 +40,9 @@
  */
 
 /dts-v1/;
-#include "imx6dl.dtsi"
-#include "imx6qdl-tx6.dtsi"
-#include "imx6qdl-tx6-lvds.dtsi"
+#include "imx6dl-tx6u-811x.dts"
 #include "imx6qdl-tx6-mb7.dtsi"
 
 / {
-	model = "Ka-Ro electronics TX6U-81xx Module on MB7 baseboard";
-	compatible = "karo,imx6dl-tx6dl", "fsl,imx6dl";
-};
-
-&backlight0 {
-	pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>;
-	turn-on-delay-ms = <35>;
-};
-
-&backlight1 {
-	pwms = <&pwm1 0 500000 PWM_POLARITY_INVERTED>;
-	turn-on-delay-ms = <35>;
+	model = "Ka-Ro electronics TX6U-8130/-8110 Module on MB7 baseboard";
 };
arch/arm/boot/dts/imx6q-tx6q-1036-mb7.dts new file +48 -0

48 lines not on this page · raw message

arch/arm/boot/dts/imx6q-tx6q-10x0-mb7.dts new file +48 -0

48 lines not on this page · raw message

arch/arm/boot/dts/imx6qp-tx6qp-8037-mb7.dts new file +48 -0

48 lines not on this page · raw message

arch/arm/boot/dts/imx6qp-tx6qp-8137-mb7.dts new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.1.4
Acked-by on v1 9/12
#10 lore raw

Re: [PATCH 09/12] ARM: dts: imx6-tx6: move display configuration to .dtsi file

In reply to Lothar Waßmann

Hi Lothar,

Quoted 6 lines · Lothar Wa?mann

Currently the display (LCD or LVDS) configuration is duplicated with slight variations in each TX6 module specific file.

Move it to an include file for simplification and consistency.

This is much appreciated,

This patch does conflict with Marco's?"ARM: dts: imx: Fix incorrect display nodes notation" patch [1], which renames the display at di0 nodes to disp0. Assuming it gets merged as-is, maybe rebase on top of that?

[1] https://patchwork.kernel.org/patch/9987341/

regards
Philipp