Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1728063 > unrolled thread

Cleanup devicetree for the i.MX53 based TQma53 + mba53 development kit

Started byJuergen Borleis <jbe@pengutronix.de>
First post2017-09-07 11:10 +0200
Last post2017-09-07 11:10 +0200
Articles 6 — 1 participant

Back to article view | Back to linux.kernel


Contents

  Cleanup devicetree for the i.MX53 based TQma53 + mba53 development kit Juergen Borleis <jbe@pengutronix.de> - 2017-09-07 11:10 +0200
    [PATCH 4/9] ARM: dts: TQma53: ESDHC2: use correct IO lines power supply Juergen Borleis <jbe@pengutronix.de> - 2017-09-07 11:10 +0200
    [PATCH 5/9] ARM: dts: TQma53: define eMMC's power supply Juergen Borleis <jbe@pengutronix.de> - 2017-09-07 11:10 +0200
    [PATCH 9/9] ARM: dts: TQma53: describe the full power supply tree Juergen Borleis <jbe@pengutronix.de> - 2017-09-07 11:10 +0200
    [PATCH 1/9] ARM: dts: TQma53: regulators are no bus Juergen Borleis <jbe@pengutronix.de> - 2017-09-07 11:10 +0200
    [PATCH 6/9] ARM: dts: TQma53: fix and move regulator to its correct location Juergen Borleis <jbe@pengutronix.de> - 2017-09-07 11:10 +0200

#1728063 — Cleanup devicetree for the i.MX53 based TQma53 + mba53 development kit

FromJuergen Borleis <jbe@pengutronix.de>
Date2017-09-07 11:10 +0200
SubjectCleanup devicetree for the i.MX53 based TQma53 + mba53 development kit
Message-ID<un0YV-6kj-3@gated-at.bofh.it>
This series is a cleanup of the devicetree for the TQ's 'TQma53' CPU card
in conjunction with its 'mba53' development baseboard. The cleanup should also
simplify the use of the 'TQma53' CPU card for a customized baseboard instead of
the development baseboard.

Comments are welcome.

Juergen

[toc] | [next] | [standalone]


#1728064 — [PATCH 4/9] ARM: dts: TQma53: ESDHC2: use correct IO lines power supply

FromJuergen Borleis <jbe@pengutronix.de>
Date2017-09-07 11:10 +0200
Subject[PATCH 4/9] ARM: dts: TQma53: ESDHC2: use correct IO lines power supply
Message-ID<un0YX-6kj-47@gated-at.bofh.it>
In reply to#1728063
According to the devicetree bindings the 'vmmc' power supply is the SD
card's power supply and 'vqmmc' is the IO line's power supply.

The i.MX53's ESDHC2 unit on the 'TQma53' CPU card is dedicated to be used
with an externally connected SD card. The on-board power supply is connected
to the SDHC2 IO lines only. The SD card socket is not part of the CPU card,
so the 'vmmc' info must be part of the baseboard devicetree.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/arm/boot/dts/imx53-mba53.dts   | 1 +
 arch/arm/boot/dts/imx53-tqma53.dtsi | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts/imx53-mba53.dts
index 5a21562a2dc1b..69733c8473d2b 100644
--- a/arch/arm/boot/dts/imx53-mba53.dts
+++ b/arch/arm/boot/dts/imx53-mba53.dts
@@ -193,6 +193,7 @@
 };
 
 &esdhc2 {
+	vmmc-supply = <&reg_3p3v>;
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi
index eedeced3c8810..ceba1004038b1 100644
--- a/arch/arm/boot/dts/imx53-tqma53.dtsi
+++ b/arch/arm/boot/dts/imx53-tqma53.dtsi
@@ -33,7 +33,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc2>,
 		    <&pinctrl_esdhc2_cdwp>;
-	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&reg_3p3v>;
 	wp-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
 	cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
 	status = "disabled";
-- 
2.11.0

[toc] | [prev] | [next] | [standalone]


#1728065 — [PATCH 5/9] ARM: dts: TQma53: define eMMC's power supply

FromJuergen Borleis <jbe@pengutronix.de>
Date2017-09-07 11:10 +0200
Subject[PATCH 5/9] ARM: dts: TQma53: define eMMC's power supply
Message-ID<un0YX-6kj-43@gated-at.bofh.it>
In reply to#1728063
The eMMC is part of the 'TQma53' CPU card and powered by its on-board power
supply.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/arm/boot/dts/imx53-tqma53.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi
index ceba1004038b1..fa5d712bd47b8 100644
--- a/arch/arm/boot/dts/imx53-tqma53.dtsi
+++ b/arch/arm/boot/dts/imx53-tqma53.dtsi
@@ -57,6 +57,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc3>;
 	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&reg_3p3v>;
 	non-removable;
 	bus-width = <8>;
 	status = "okay";
-- 
2.11.0

[toc] | [prev] | [next] | [standalone]


#1728066 — [PATCH 9/9] ARM: dts: TQma53: describe the full power supply tree

FromJuergen Borleis <jbe@pengutronix.de>
Date2017-09-07 11:10 +0200
Subject[PATCH 9/9] ARM: dts: TQma53: describe the full power supply tree
Message-ID<un0YX-6kj-45@gated-at.bofh.it>
In reply to#1728063
       |<--- mba53 devel baseboard --->|<----- TQma53 CPU card ----->|
       |                               |                             |
+12 V -|-o--> 3.3 V ----> internal use |                             |
       | |                             |                             |
       | \--> 5.0 V -o--> internal use | /--> 3.8 V --> PMIC         |
       |             |                 | |                           |
       |             \---------------->|-o--> 3.2 V --> internal use |
       |                               |

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/arm/boot/dts/imx53-mba53.dts   | 36 +++++++++++++++++++++++++++++++++++-
 arch/arm/boot/dts/imx53-tqma53.dtsi |  9 +++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts/imx53-mba53.dts
index fb50ed8cc8f47..b5e1b9b373bf5 100644
--- a/arch/arm/boot/dts/imx53-mba53.dts
+++ b/arch/arm/boot/dts/imx53-mba53.dts
@@ -44,6 +44,32 @@
 		};
 	};
 
+	main_power_in_12p0v: mainpowerin {
+		/* external power-in */
+		compatible = "regulator-fixed";
+		regulator-name = "12P0V";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+		regulator-always-on;
+	};
+
+	reg_5p0v: base5p0v {
+		compatible = "regulator-fixed";
+		regulator-name = "5P0V";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&main_power_in_12p0v>;
+		regulator-always-on;
+	};
+
+	reg_3p3v: base3p3v {
+		compatible = "regulator-fixed";
+		regulator-name = "3P3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&main_power_in_12p0v>;
+		regulator-always-on;
+	};
 
 	reg_backlight: backlight {
 		compatible = "regulator-fixed";
@@ -67,6 +93,14 @@
 	};
 };
 
+&reg_3p2v {
+	vin-supply = <&reg_5p0v>;
+};
+
+&reg_3p8v {
+	vin-supply = <&reg_5p0v>;
+};
+
 &ldb {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_lvds1_1>;
@@ -192,7 +226,7 @@
 };
 
 &esdhc2 {
-	vmmc-supply = <&reg_3p2v>;
+	vmmc-supply = <&reg_3p3v>;
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi
index 1ab5fbab1d728..ff4608b7318f4 100644
--- a/arch/arm/boot/dts/imx53-tqma53.dtsi
+++ b/arch/arm/boot/dts/imx53-tqma53.dtsi
@@ -27,6 +27,14 @@
 		regulator-max-microvolt = <3200000>;
 		regulator-always-on;
 	};
+
+	reg_3p8v: card3p8v {
+		compatible = "regulator-fixed";
+		regulator-name = "3P8V";
+		regulator-min-microvolt = <3800000>;
+		regulator-max-microvolt = <3800000>;
+		regulator-always-on;
+	};
 };
 
 &esdhc2 {
@@ -264,6 +272,7 @@
 		fsl,mc13xxx-uses-rtc;
 		interrupt-parent = <&gpio2>;
 		interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
+		/* power supply input is &reg_3p8v */
 	};
 
 	sensor1: lm75@48 {
-- 
2.11.0

[toc] | [prev] | [next] | [standalone]


#1728067 — [PATCH 1/9] ARM: dts: TQma53: regulators are no bus

FromJuergen Borleis <jbe@pengutronix.de>
Date2017-09-07 11:10 +0200
Subject[PATCH 1/9] ARM: dts: TQma53: regulators are no bus
Message-ID<un0YY-6kj-51@gated-at.bofh.it>
In reply to#1728063
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/arm/boot/dts/imx53-mba53.dts   | 33 +++++++++++++--------------------
 arch/arm/boot/dts/imx53-tqma53.dtsi | 19 ++++++-------------
 2 files changed, 19 insertions(+), 33 deletions(-)

diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts/imx53-mba53.dts
index df705ba48897f..11c61844d5d85 100644
--- a/arch/arm/boot/dts/imx53-mba53.dts
+++ b/arch/arm/boot/dts/imx53-mba53.dts
@@ -44,27 +44,20 @@
 		};
 	};
 
-	regulators {
-		compatible = "simple-bus";
-		#address-cells = <1>;
-		#size-cells = <0>;
-
-		reg_backlight: regulator@0 {
-			compatible = "regulator-fixed";
-			reg = <0>;
-			regulator-name = "lcd-supply";
-			gpio = <&gpio2 5 0>;
-			startup-delay-us = <5000>;
-		};
 
-		reg_3p2v: regulator@1 {
-			compatible = "regulator-fixed";
-			reg = <1>;
-			regulator-name = "3P2V";
-			regulator-min-microvolt = <3200000>;
-			regulator-max-microvolt = <3200000>;
-			regulator-always-on;
-		};
+	reg_backlight: backlight {
+		compatible = "regulator-fixed";
+		regulator-name = "lcd-supply";
+		gpio = <&gpio2 5 0>;
+		startup-delay-us = <5000>;
+	};
+
+	reg_3p2v: base3p2v {
+		compatible = "regulator-fixed";
+		regulator-name = "3P2V";
+		regulator-min-microvolt = <3200000>;
+		regulator-max-microvolt = <3200000>;
+		regulator-always-on;
 	};
 
 	sound {
diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi
index eecdc1c55eefc..4aff91e31f288 100644
--- a/arch/arm/boot/dts/imx53-tqma53.dtsi
+++ b/arch/arm/boot/dts/imx53-tqma53.dtsi
@@ -20,19 +20,12 @@
 		reg = <0x70000000 0x40000000>; /* Up to 1GiB */
 	};
 
-	regulators {
-		compatible = "simple-bus";
-		#address-cells = <1>;
-		#size-cells = <0>;
-
-		reg_3p3v: regulator@0 {
-			compatible = "regulator-fixed";
-			reg = <0>;
-			regulator-name = "3P3V";
-			regulator-min-microvolt = <3300000>;
-			regulator-max-microvolt = <3300000>;
-			regulator-always-on;
-		};
+	reg_3p3v: card3p3v {
+		compatible = "regulator-fixed";
+		regulator-name = "3P3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
 	};
 };
 
-- 
2.11.0

[toc] | [prev] | [next] | [standalone]


#1728070 — [PATCH 6/9] ARM: dts: TQma53: fix and move regulator to its correct location

FromJuergen Borleis <jbe@pengutronix.de>
Date2017-09-07 11:10 +0200
Subject[PATCH 6/9] ARM: dts: TQma53: fix and move regulator to its correct location
Message-ID<un0YY-6kj-59@gated-at.bofh.it>
In reply to#1728063
The referenced 3.3 V regulator is a 3.2 V regulator and part of the 'TQma53'
CPU card instead of the development 'mba53' baseboard. So fix the voltage
and move it to where it belongs to.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 arch/arm/boot/dts/imx53-mba53.dts   | 10 +---------
 arch/arm/boot/dts/imx53-tqma53.dtsi | 14 +++++++-------
 2 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts/imx53-mba53.dts
index 69733c8473d2b..5b9e9af14aa6c 100644
--- a/arch/arm/boot/dts/imx53-mba53.dts
+++ b/arch/arm/boot/dts/imx53-mba53.dts
@@ -52,14 +52,6 @@
 		startup-delay-us = <5000>;
 	};
 
-	reg_3p2v: base3p2v {
-		compatible = "regulator-fixed";
-		regulator-name = "3P2V";
-		regulator-min-microvolt = <3200000>;
-		regulator-max-microvolt = <3200000>;
-		regulator-always-on;
-	};
-
 	sound {
 		compatible = "tq,imx53-mba53-sgtl5000",
 			     "fsl,imx-audio-sgtl5000";
@@ -193,7 +185,7 @@
 };
 
 &esdhc2 {
-	vmmc-supply = <&reg_3p3v>;
+	vmmc-supply = <&reg_3p2v>;
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi
index fa5d712bd47b8..02eb3f4b605de 100644
--- a/arch/arm/boot/dts/imx53-tqma53.dtsi
+++ b/arch/arm/boot/dts/imx53-tqma53.dtsi
@@ -20,11 +20,11 @@
 		reg = <0x70000000 0x40000000>; /* Up to 1GiB */
 	};
 
-	reg_3p3v: card3p3v {
+	reg_3p2v: card3p2v {
 		compatible = "regulator-fixed";
-		regulator-name = "3P3V";
-		regulator-min-microvolt = <3300000>;
-		regulator-max-microvolt = <3300000>;
+		regulator-name = "3P2V";
+		regulator-min-microvolt = <3200000>;
+		regulator-max-microvolt = <3200000>;
 		regulator-always-on;
 	};
 };
@@ -33,7 +33,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc2>,
 		    <&pinctrl_esdhc2_cdwp>;
-	vqmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&reg_3p2v>;
 	wp-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
 	cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
 	status = "disabled";
@@ -56,8 +56,8 @@
 &esdhc3 { /* EMMC */
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc3>;
-	vmmc-supply = <&reg_3p3v>;
-	vqmmc-supply = <&reg_3p3v>;
+	vmmc-supply = <&reg_3p2v>;
+	vqmmc-supply = <&reg_3p2v>;
 	non-removable;
 	bus-width = <8>;
 	status = "okay";
-- 
2.11.0

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web