All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: imx53-qsb: Provide the TVE DAC regulators
@ 2017-01-03 19:12 Fabio Estevam
  2017-01-10  3:06 ` Shawn Guo
  2017-02-08 10:12 ` Philipp Zabel
  0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2017-01-03 19:12 UTC (permalink / raw)
  To: linux-arm-kernel

From: Fabio Estevam <fabio.estevam@nxp.com>

On imx53-qsb the TVE DAC regulator comes from:

- LDO7 on the board with the Dialog DA9052 PMIC
- VDAC on the board with the MC34708 PMIC

Pass them in the 'dac-supply' node.

While at it, remove the 'regulator-always-on/regulator-boot-on'
properties as the TVE driver will properly handle it.

Tested on a imx53-qsb board with a Dialog DA9052 PMIC.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm/boot/dts/imx53-qsb.dts  | 5 ++++-
 arch/arm/boot/dts/imx53-qsrb.dts | 6 ++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/imx53-qsb.dts b/arch/arm/boot/dts/imx53-qsb.dts
index 3799396..f4c158c 100644
--- a/arch/arm/boot/dts/imx53-qsb.dts
+++ b/arch/arm/boot/dts/imx53-qsb.dts
@@ -90,7 +90,6 @@
 			ldo7_reg: ldo7 {
 				regulator-min-microvolt = <1200000>;
 				regulator-max-microvolt = <3600000>;
-				regulator-always-on;
 			};
 
 			ldo8_reg: ldo8 {
@@ -113,3 +112,7 @@
 		};
 	};
 };
+
+&tve {
+	dac-supply = <&ldo7_reg>;
+};
diff --git a/arch/arm/boot/dts/imx53-qsrb.dts b/arch/arm/boot/dts/imx53-qsrb.dts
index 96d7eed..479ca4c 100644
--- a/arch/arm/boot/dts/imx53-qsrb.dts
+++ b/arch/arm/boot/dts/imx53-qsrb.dts
@@ -130,8 +130,6 @@
 				regulator-name = "VDAC";
 				regulator-min-microvolt = <2500000>;
 				regulator-max-microvolt = <2775000>;
-				regulator-boot-on;
-				regulator-always-on;
 			};
 
 			vgen1_reg: vgen1 {
@@ -152,3 +150,7 @@
 		};
 	};
 };
+
+&tve {
+	dac-supply = <&vdac_reg>;
+};
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] ARM: dts: imx53-qsb: Provide the TVE DAC regulators
  2017-01-03 19:12 [PATCH] ARM: dts: imx53-qsb: Provide the TVE DAC regulators Fabio Estevam
@ 2017-01-10  3:06 ` Shawn Guo
  2017-02-08 10:12 ` Philipp Zabel
  1 sibling, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2017-01-10  3:06 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jan 03, 2017 at 05:12:31PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> On imx53-qsb the TVE DAC regulator comes from:
> 
> - LDO7 on the board with the Dialog DA9052 PMIC
> - VDAC on the board with the MC34708 PMIC
> 
> Pass them in the 'dac-supply' node.
> 
> While at it, remove the 'regulator-always-on/regulator-boot-on'
> properties as the TVE driver will properly handle it.
> 
> Tested on a imx53-qsb board with a Dialog DA9052 PMIC.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] ARM: dts: imx53-qsb: Provide the TVE DAC regulators
  2017-01-03 19:12 [PATCH] ARM: dts: imx53-qsb: Provide the TVE DAC regulators Fabio Estevam
  2017-01-10  3:06 ` Shawn Guo
@ 2017-02-08 10:12 ` Philipp Zabel
  2017-02-08 11:41   ` Fabio Estevam
  1 sibling, 1 reply; 4+ messages in thread
From: Philipp Zabel @ 2017-02-08 10:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, 2017-01-03 at 17:12 -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> On imx53-qsb the TVE DAC regulator comes from:
> 
> - LDO7 on the board with the Dialog DA9052 PMIC
> - VDAC on the board with the MC34708 PMIC
> 
> Pass them in the 'dac-supply' node.
> 
> While at it, remove the 'regulator-always-on/regulator-boot-on'
> properties as the TVE driver will properly handle it.
> 
> Tested on a imx53-qsb board with a Dialog DA9052 PMIC.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  arch/arm/boot/dts/imx53-qsb.dts  | 5 ++++-
>  arch/arm/boot/dts/imx53-qsrb.dts | 6 ++++--
>  2 files changed, 8 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/imx53-qsb.dts b/arch/arm/boot/dts/imx53-qsb.dts
> index 3799396..f4c158c 100644
> --- a/arch/arm/boot/dts/imx53-qsb.dts
> +++ b/arch/arm/boot/dts/imx53-qsb.dts
> @@ -90,7 +90,6 @@
>  			ldo7_reg: ldo7 {
>  				regulator-min-microvolt = <1200000>;
>  				regulator-max-microvolt = <3600000>;

As Lucas pointed out, we could limit the board constraints to the
necessary voltage here.
Since this regulator is used as the TVDAC analog power supply, this
range should at least be limited to the analog power supply range of the
TVDAC, listed in Table 74-9. of the i.MX53 reference manual (2.5-2.75V).

But since the nominal voltage is 2.75V, which was used to determine the
analog gain that is supposed to result in the necessary 0.7V
peak-to-peak amplitude on the VGA output, I'd say we should just fix the
voltage to 2750000 here.

> -				regulator-always-on;
>  			};
>  
>  			ldo8_reg: ldo8 {
> @@ -113,3 +112,7 @@
>  		};
>  	};
>  };
> +
> +&tve {
> +	dac-supply = <&ldo7_reg>;
> +};
> diff --git a/arch/arm/boot/dts/imx53-qsrb.dts b/arch/arm/boot/dts/imx53-qsrb.dts
> index 96d7eed..479ca4c 100644
> --- a/arch/arm/boot/dts/imx53-qsrb.dts
> +++ b/arch/arm/boot/dts/imx53-qsrb.dts
> @@ -130,8 +130,6 @@
>  				regulator-name = "VDAC";
>  				regulator-min-microvolt = <2500000>;
>  				regulator-max-microvolt = <2775000>;

Same as above.

> -				regulator-boot-on;
> -				regulator-always-on;
>  			};
>  
>  			vgen1_reg: vgen1 {
> @@ -152,3 +150,7 @@
>  		};
>  	};
>  };
> +
> +&tve {
> +	dac-supply = <&vdac_reg>;
> +};

regards
Philipp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] ARM: dts: imx53-qsb: Provide the TVE DAC regulators
  2017-02-08 10:12 ` Philipp Zabel
@ 2017-02-08 11:41   ` Fabio Estevam
  0 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2017-02-08 11:41 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Feb 8, 2017 at 8:12 AM, Philipp Zabel <p.zabel@pengutronix.de> wrote:

> As Lucas pointed out, we could limit the board constraints to the
> necessary voltage here.
> Since this regulator is used as the TVDAC analog power supply, this
> range should at least be limited to the analog power supply range of the
> TVDAC, listed in Table 74-9. of the i.MX53 reference manual (2.5-2.75V).
>
> But since the nominal voltage is 2.75V, which was used to determine the
> analog gain that is supposed to result in the necessary 0.7V
> peak-to-peak amplitude on the VGA output, I'd say we should just fix the
> voltage to 2750000 here.

Yes, I will do as suggested. Thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-08 11:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-03 19:12 [PATCH] ARM: dts: imx53-qsb: Provide the TVE DAC regulators Fabio Estevam
2017-01-10  3:06 ` Shawn Guo
2017-02-08 10:12 ` Philipp Zabel
2017-02-08 11:41   ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.