Skip to contentSkip to conversation

ARM: dts: imx53: Update Update Ka-Ro TX53 dts files

PATCH Applied Lothar Waßmann 2 participants 9 messages Oct 11, 2017 – Oct 14, 2017

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

cover ARM: dts: imx53: Update Update Ka-Ro TX53 dts files

This patch set brings the Ka-Ro electronics GmbH TX53 module series dts files up to date.

#1 lore raw

PATCH 1/7 ARM: dts: imx53-tx53: Relicense the TX53 dts files under GPLv2/X11

The current GPL only licensing on the dts files makes it very impractical for other software components licensed under another license.

In order to make it easier for them to reuse our device trees, relicense our dts files first under a GPL/X11 dual-license.

---
 arch/arm/boot/dts/imx53-tx53-x03x.dts | 42 ++++++++++++++++++++++++++++++-----
 arch/arm/boot/dts/imx53-tx53-x13x.dts | 38 ++++++++++++++++++++++++++++++-
 arch/arm/boot/dts/imx53-tx53.dtsi     | 42 ++++++++++++++++++++++++++++++-----
 3 files changed, 109 insertions(+), 13 deletions(-)
arch/arm/boot/dts/imx53-tx53-x03x.dts +36 -6
index 0ecb43d..7f0a7dd 100644
@@ -1,12 +1,42 @@
 /*
- * Copyright 2013 Lothar Wa?mann <[email protected]>
+ * Copyright 2013-2017 Lothar Wa?mann <[email protected]>
  *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 at the following locations:
+ * 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
+ * licensing only applies to this file, and not this project as a
+ * whole.
  *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
+ *  a) This file is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU General Public License
+ *     version 2 as published by the Free Software Foundation.
+ *
+ *     This file is distributed in the hope that it will be useful,
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *     GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
  */
 
 /dts-v1/;
arch/arm/boot/dts/imx53-tx53-x13x.dts +37 -1
index 3cf682a..62670e9 100644
@@ -1,6 +1,42 @@
 /*
- * Copyright 2013 Lothar Wa?mann <[email protected]>
+ * Copyright 2013-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
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This file is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU General Public License
+ *     version 2 as published by the Free Software Foundation.
+ *
+ *     This file is distributed in the hope that it will be useful,
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *     GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
  * The code contained herein is licensed under the GNU General Public
  * License. You may obtain a copy of the GNU General Public License
  * Version 2 at the following locations:
arch/arm/boot/dts/imx53-tx53.dtsi +36 -6

51 lines not on this page · raw message

Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/7 ARM: dts: imx53-tx53: remove the regulators bus

In reply to Lothar Waßmann

It is not recommended to place the regulator nodes inside 'simple-bus', so adjust them accordingly.

The motivation for rearranging this is to make it easier to add new regulator nodes in the future.

---
 arch/arm/boot/dts/imx53-tx53-x03x.dts | 38 +++++++--------
 arch/arm/boot/dts/imx53-tx53-x13x.dts | 38 +++++++--------
 arch/arm/boot/dts/imx53-tx53.dtsi     | 91 +++++++++++++++--------------------
 3 files changed, 74 insertions(+), 93 deletions(-)
arch/arm/boot/dts/imx53-tx53-x03x.dts +17 -21
index 7f0a7dd..aa9ae84 100644
@@ -203,28 +203,24 @@
 		default-brightness-level = <50>;
 	};
 
-	regulators {
-		reg_lcd_pwr: regulator at 5 {
-			compatible = "regulator-fixed";
-			reg = <5>;
-			regulator-name = "LCD POWER";
-			regulator-min-microvolt = <3300000>;
-			regulator-max-microvolt = <3300000>;
-			gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
-			enable-active-high;
-			regulator-boot-on;
-		};
+	reg_lcd_pwr: regulator-lcd-pwr {
+		compatible = "regulator-fixed";
+		regulator-name = "LCD POWER";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-boot-on;
+	};
 
-		reg_lcd_reset: regulator at 6 {
-			compatible = "regulator-fixed";
-			reg = <6>;
-			regulator-name = "LCD RESET";
-			regulator-min-microvolt = <3300000>;
-			regulator-max-microvolt = <3300000>;
-			gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
-			enable-active-high;
-			regulator-boot-on;
-		};
+	reg_lcd_reset: regulator-lcd-reset {
+		compatible = "regulator-fixed";
+		regulator-name = "LCD RESET";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-boot-on;
 	};
 };
 
arch/arm/boot/dts/imx53-tx53-x13x.dts +17 -21
index 62670e9..0d17c80 100644
@@ -99,28 +99,24 @@
 		default-brightness-level = <50>;
 	};
 
-	regulators {
-		reg_lcd_pwr0: regulator at 5 {
-			compatible = "regulator-fixed";
-			reg = <5>;
-			regulator-name = "LVDS0 POWER";
-			regulator-min-microvolt = <3300000>;
-			regulator-max-microvolt = <3300000>;
-			gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
-			enable-active-high;
-			regulator-boot-on;
-		};
+	reg_lcd_pwr0: regulator-lvds0-pwr {
+		compatible = "regulator-fixed";
+		regulator-name = "LVDS0 POWER";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&gpio3 29 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-boot-on;
+	};
 
-		reg_lcd_pwr1: regulator at 6 {
-			compatible = "regulator-fixed";
-			reg = <6>;
-			regulator-name = "LVDS1 POWER";
-			regulator-min-microvolt = <3300000>;
-			regulator-max-microvolt = <3300000>;
-			gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
-			enable-active-high;
-			regulator-boot-on;
-		};
+	reg_lcd_pwr1: regulator-lvds1-pwr {
+		compatible = "regulator-fixed";
+		regulator-name = "LVDS1 POWER";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-boot-on;
 	};
 };
 
arch/arm/boot/dts/imx53-tx53.dtsi +40 -51

101 lines not on this page · raw message

Signature · 1 line
2.1.4
#3 lore raw

PATCH 3/7 ARM: dts: imx53-tx53: 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/imx53-tx53-x13x.dts | 35 -----------------------------------
 1 file changed, 35 deletions(-)
arch/arm/boot/dts/imx53-tx53-x13x.dts +0 -35
index 0d17c80..e21bc91 100644
@@ -120,23 +120,6 @@
 	};
 };
 
-&i2c2 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_i2c2>;
-	status = "okay";
-
-	touchscreen2: eeti at 04 {
-		compatible = "eeti,egalax_ts";
-		reg = <0x04>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_eeti2>;
-		interrupt-parent = <&gpio3>;
-		interrupts = <23 0>;
-		wakeup-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
-		wakeup-source;
-	};
-};
-
 &i2c3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c3>;
@@ -149,28 +132,10 @@
 		VDDIO-supply = <&reg_3v3>;
 		clocks = <&mclk>;
 	};
-
-	touchscreen1: eeti at 04 {
-		compatible = "eeti,egalax_ts";
-		reg = <0x04>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_eeti1>;
-		interrupt-parent = <&gpio3>;
-		interrupts = <22 0>;
-		wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
-		wakeup-source;
-	};
 };
 
 &iomuxc {
 	imx53-tx53-x13x {
-		pinctrl_i2c2: i2c2-grp1 {
-			fsl,pins = <
-				MX53_PAD_KEY_ROW3__I2C2_SDA		0xc0000000
-				MX53_PAD_KEY_COL3__I2C2_SCL		0xc0000000
-			>;
-		};
-
 		pinctrl_lvds0: lvds0grp {
 			fsl,pins = <
 				MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3 0x80000000
Signature · 1 line
2.1.4
#4 lore raw

PATCH 4/7 ARM: dts: imx53-tx53: 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/imx53-tx53.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx53-tx53.dtsi +2 -0
index a3e7cf9..72971da8 100644
@@ -245,6 +245,8 @@
 		pinctrl-0 = <&pinctrl_ds1339>;
 		interrupt-parent = <&gpio4>;
 		interrupts = <20 0>;
+		trickle-resistor-ohms = <250>;
+		trickle-diode-disable;
 	};
 };
 
Signature · 1 line
2.1.4
#5 lore raw

PATCH 5/7 ARM: dts: imx53-tx53: use explicit pad_ctl settings for I2C pins

In reply to Lothar Waßmann

Don't rely on the padctl settings established by the boot loader, but explicitly specify the padctl values in DTB. This is also necessary to be able to use the DTB files from the Linux kernel for future U-Boot versions that support HW configuration via DTB.

---
 arch/arm/boot/dts/imx53-tx53.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/imx53-tx53.dtsi +4 -4
index 72971da8..33934e5 100644
@@ -389,15 +389,15 @@
 
 		pinctrl_i2c1: i2c1grp {
 			fsl,pins = <
-				MX53_PAD_EIM_D21__I2C1_SCL		0xc0000000
-				MX53_PAD_EIM_D28__I2C1_SDA		0xc0000000
+				MX53_PAD_EIM_D21__I2C1_SCL		0x400001e4
+				MX53_PAD_EIM_D28__I2C1_SDA		0x400001e4
 			>;
 		};
 
 		pinctrl_i2c3: i2c3grp {
 			fsl,pins = <
-				MX53_PAD_GPIO_3__I2C3_SCL		0xc0000000
-				MX53_PAD_GPIO_6__I2C3_SDA		0xc0000000
+				MX53_PAD_GPIO_3__I2C3_SCL		0x400001e4
+				MX53_PAD_GPIO_6__I2C3_SDA		0x400001e4
 			>;
 		};
 
Signature · 1 line
2.1.4
#6 lore raw

PATCH 6/7 ARM: dts: imx53-tx53: add support for I2C bus recovery

In reply to Lothar Waßmann

The imx-i2c driver supports automatic bus recovery via the GPIO function of the I2C pins. Enable this functionality for the Ka-Ro electronics TX53 modules.

---
 arch/arm/boot/dts/imx53-tx53-x13x.dts |  5 ++++-
 arch/arm/boot/dts/imx53-tx53.dtsi     | 19 ++++++++++++++++++-
 2 files changed, 22 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx53-tx53-x13x.dts +4 -1
index e21bc91..a87a10b 100644
@@ -121,8 +121,11 @@
 };
 
 &i2c3 {
-	pinctrl-names = "default";
+	pinctrl-names = "default", "gpio";
 	pinctrl-0 = <&pinctrl_i2c3>;
+	pinctrl-1 = <&pinctrl_i2c3_gpio>;
+	scl-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+	sda-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 
 	sgtl5000: codec at 0a {
arch/arm/boot/dts/imx53-tx53.dtsi +18 -1
index 33934e5..8e10c47 100644
@@ -233,8 +233,11 @@
 };
 
 &i2c1 {
-	pinctrl-names = "default";
+	pinctrl-names = "default", "gpio";
 	pinctrl-0 = <&pinctrl_i2c1>;
+	pinctrl-0 = <&pinctrl_i2c1_gpio>;
+	scl-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+	sda-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
 	clock-frequency = <400000>;
 	status = "okay";
 
@@ -394,6 +397,13 @@
 			>;
 		};
 
+		pinctrl_i2c1_gpio: i2c1-gpiogrp {
+			fsl,pins = <
+				MX53_PAD_EIM_D21__GPIO3_21		0x400001e6
+				MX53_PAD_EIM_D28__GPIO3_28		0x400001e6
+			>;
+		};
+
 		pinctrl_i2c3: i2c3grp {
 			fsl,pins = <
 				MX53_PAD_GPIO_3__I2C3_SCL		0x400001e4
@@ -401,6 +411,13 @@
 			>;
 		};
 
+		pinctrl_i2c3_gpio: i2c3-gpiogrp {
+			fsl,pins = <
+				MX53_PAD_GPIO_3__GPIO1_3		0x400001e6
+				MX53_PAD_GPIO_6__GPIO1_6		0x400001e6
+			>;
+		};
+
 		pinctrl_nand: nandgrp {
 			fsl,pins = <
 				MX53_PAD_NANDF_WE_B__EMI_NANDF_WE_B	0x4
Signature · 1 line
2.1.4
#7 lore raw

PATCH 7/7 ARM: dts: imx53-tx53: fix interrupt flags and use interrupts-extended property

In reply to Lothar Waßmann

Use the correct interrupt flags and change the 'interrupt-parent', 'interrupts' property pairs to 'interrupts-extended'.

---
 arch/arm/boot/dts/imx53-tx53-x03x.dts | 6 ++----
 arch/arm/boot/dts/imx53-tx53.dtsi     | 6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)
arch/arm/boot/dts/imx53-tx53-x03x.dts +2 -4
index aa9ae84..632a097 100644
@@ -242,8 +242,7 @@
 		reg = <0x38>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_edt_ft5x06_1>;
-		interrupt-parent = <&gpio6>;
-		interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
+		interrupts-extended = <&gpio6 15 IRQ_TYPE_EDGE_FALLING>;
 		reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
 		wake-gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
 	};
@@ -253,8 +252,7 @@
 		reg = <0x48>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_tsc2007>;
-		interrupt-parent = <&gpio3>;
-		interrupts = <26 0>;
+		interrupts-extended = <&gpio3 26 IRQ_TYPE_EDGE_FALLING>;
 		gpios = <&gpio3 26 GPIO_ACTIVE_LOW>;
 		ti,x-plate-ohms = <660>;
 		wakeup-source;
arch/arm/boot/dts/imx53-tx53.dtsi +2 -4
index 8e10c47..76e7186 100644
@@ -226,8 +226,7 @@
 	status = "okay";
 
 	phy0: ethernet-phy at 0 {
-		interrupt-parent = <&gpio2>;
-		interrupts = <4>;
+		interrupts-extended = <&gpio2 4 IRQ_TYPE_EDGE_FALLING>;
 		device_type = "ethernet-phy";
 	};
 };
@@ -246,8 +245,7 @@
 		reg = <0x68>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_ds1339>;
-		interrupt-parent = <&gpio4>;
-		interrupts = <20 0>;
+		interrupts-extended = <&gpio4 20 IRQ_TYPE_EDGE_FALLING>;
 		trickle-resistor-ohms = <250>;
 		trickle-diode-disable;
 	};
Signature · 1 line
2.1.4