linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: davinci: board-da850-evm: Mark dcdc2 of TPS65070 as always_on
@ 2014-07-28 11:24 Peter Ujfalusi
  2014-07-28 11:24 ` [PATCH 2/2] ARM: davinci: board-da850-evm: Add needed regulators for tlv320aic3106 codec Peter Ujfalusi
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Ujfalusi @ 2014-07-28 11:24 UTC (permalink / raw)
  To: nsekhar, khilman
  Cc: linux, davinci-linux-open-source, linux-arm-kernel, linux-kernel

DCDC2 should not be turned off since it is powering the CPU among other
things.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/mach-davinci/board-da850-evm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c
index 234c5bb091f5..77d8968336df 100644
--- a/arch/arm/mach-davinci/board-da850-evm.c
+++ b/arch/arm/mach-davinci/board-da850-evm.c
@@ -936,6 +936,7 @@ static struct regulator_init_data tps65070_regulator_data[] = {
 			.valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
 				REGULATOR_CHANGE_STATUS),
 			.boot_on = 1,
+			.always_on = 1,
 		},
 		.num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc2_consumers),
 		.consumer_supplies = tps65070_dcdc2_consumers,
-- 
2.0.2


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

* [PATCH 2/2] ARM: davinci: board-da850-evm: Add needed regulators for tlv320aic3106 codec
  2014-07-28 11:24 [PATCH 1/2] ARM: davinci: board-da850-evm: Mark dcdc2 of TPS65070 as always_on Peter Ujfalusi
@ 2014-07-28 11:24 ` Peter Ujfalusi
  2014-08-26 10:15   ` Sekhar Nori
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Ujfalusi @ 2014-07-28 11:24 UTC (permalink / raw)
  To: nsekhar, khilman
  Cc: linux, davinci-linux-open-source, linux-arm-kernel, linux-kernel

IOVDD: tps65070's dcdc2
AVDD and DRVDD: fixed regulator derived from 5V via TPS73701DCQ
DVDD: fixed regulator derived from 5V via TPS73701DCQ

This patch needed to be able to probe the audio codec.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/mach-davinci/board-da850-evm.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c
index 77d8968336df..41eb05907f31 100644
--- a/arch/arm/mach-davinci/board-da850-evm.c
+++ b/arch/arm/mach-davinci/board-da850-evm.c
@@ -35,6 +35,7 @@
 #include <linux/platform_data/uio_pruss.h>
 #include <linux/regulator/machine.h>
 #include <linux/regulator/tps6507x.h>
+#include <linux/regulator/fixed.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/flash.h>
 #include <linux/wl12xx.h>
@@ -841,6 +842,15 @@ static int da850_lcd_hw_init(void)
 
 	return 0;
 }
+/* Fixed regulator support */
+static struct regulator_consumer_supply fixed_supplies[] = {
+	/* Baseboard 3.3V: 5V -> TPS73701DCQ -> 3.3V */
+	REGULATOR_SUPPLY("AVDD", "1-0018"),
+	REGULATOR_SUPPLY("DRVDD", "1-0018"),
+
+	/* Baseboard 1.8V: 5V -> TPS73701DCQ -> 1.8V */
+	REGULATOR_SUPPLY("DVDD", "1-0018"),
+};
 
 /* TPS65070 voltage regulator support */
 
@@ -865,6 +875,7 @@ static struct regulator_consumer_supply tps65070_dcdc2_consumers[] = {
 	{
 		.supply = "dvdd3318_c",
 	},
+	REGULATOR_SUPPLY("IOVDD", "1-0018"),
 };
 
 /* 1.2V */
@@ -1447,6 +1458,8 @@ static __init void da850_evm_init(void)
 	if (ret)
 		pr_warn("%s: GPIO init failed: %d\n", __func__, ret);
 
+	regulator_register_fixed(0, fixed_supplies, ARRAY_SIZE(fixed_supplies));
+
 	ret = pmic_tps65070_init();
 	if (ret)
 		pr_warn("%s: TPS65070 PMIC init failed: %d\n", __func__, ret);
-- 
2.0.2


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

* Re: [PATCH 2/2] ARM: davinci: board-da850-evm: Add needed regulators for tlv320aic3106 codec
  2014-07-28 11:24 ` [PATCH 2/2] ARM: davinci: board-da850-evm: Add needed regulators for tlv320aic3106 codec Peter Ujfalusi
@ 2014-08-26 10:15   ` Sekhar Nori
  0 siblings, 0 replies; 3+ messages in thread
From: Sekhar Nori @ 2014-08-26 10:15 UTC (permalink / raw)
  To: Peter Ujfalusi, khilman
  Cc: linux, davinci-linux-open-source, linux-arm-kernel, linux-kernel

On Monday 28 July 2014 04:54 PM, Peter Ujfalusi wrote:
> IOVDD: tps65070's dcdc2
> AVDD and DRVDD: fixed regulator derived from 5V via TPS73701DCQ
> DVDD: fixed regulator derived from 5V via TPS73701DCQ
> 
> This patch needed to be able to probe the audio codec.
> 
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
>  arch/arm/mach-davinci/board-da850-evm.c | 13 +++++++++++++

Applied both for v3.18 while fixing the following:

CHECK: Please use a blank line after function/struct/union/enum declarations
#56: FILE: arch/arm/mach-davinci/board-da850-evm.c:845:
 }
+/* Fixed regulator support */

total: 0 errors, 0 warnings, 1 checks, 37 lines checked

Thanks,
Sekhar


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

end of thread, other threads:[~2014-08-26 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 11:24 [PATCH 1/2] ARM: davinci: board-da850-evm: Mark dcdc2 of TPS65070 as always_on Peter Ujfalusi
2014-07-28 11:24 ` [PATCH 2/2] ARM: davinci: board-da850-evm: Add needed regulators for tlv320aic3106 codec Peter Ujfalusi
2014-08-26 10:15   ` Sekhar Nori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).