* [PATCH 3/3] mach-ux500: configure board for the TPS61052 regulator v2
@ 2011-03-09 12:03 Linus Walleij
2011-03-17 23:42 ` Samuel Ortiz
0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2011-03-09 12:03 UTC (permalink / raw)
To: linux-arm-kernel
From: Linus Walleij <linus.walleij@linaro.org>
This registers the TPS61052 regulator to the ux500 MOP/HREF boards.
Cc: Samuel Ortiz <samuel.ortiz@intel.com>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Ola Lilja <ola.o.lilja@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
arch/arm/mach-ux500/Kconfig | 1 +
arch/arm/mach-ux500/board-mop500-regulators.c | 25 +++++++++++++++++++++++++
arch/arm/mach-ux500/board-mop500-regulators.h | 1 +
arch/arm/mach-ux500/board-mop500.c | 14 ++++++++++++++
4 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig
index 247caa3..7f8620f 100644
--- a/arch/arm/mach-ux500/Kconfig
+++ b/arch/arm/mach-ux500/Kconfig
@@ -22,6 +22,7 @@ menu "Ux500 target platform"
config MACH_U8500
bool "U8500 Development platform"
depends on UX500_SOC_DB8500
+ select TPS6105X
help
Include support for the mop500 development platform.
diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c
index 533967c..0825012 100644
--- a/arch/arm/mach-ux500/board-mop500-regulators.c
+++ b/arch/arm/mach-ux500/board-mop500-regulators.c
@@ -11,6 +11,31 @@
#include <linux/kernel.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/ab8500.h>
+#include "board-mop500-regulators.h"
+
+/*
+ * TPS61052 regulator
+ */
+static struct regulator_consumer_supply tps61052_vaudio_consumers[] = {
+ /*
+ * Boost converter supply to raise voltage on audio speaker, this
+ * is actually connected to three pins, VInVhfL (left amplifier)
+ * VInVhfR (right amplifier) and VIntDClassInt - all three must
+ * be connected to the same voltage.
+ */
+ REGULATOR_SUPPLY("vintdclassint", "ab8500-codec.0"),
+};
+
+struct regulator_init_data tps61052_regulator = {
+ .constraints = {
+ .name = "vaudio-hf",
+ .min_uV = 4500000,
+ .max_uV = 4500000,
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
+ },
+ .num_consumer_supplies = ARRAY_SIZE(tps61052_vaudio_consumers),
+ .consumer_supplies = tps61052_vaudio_consumers,
+};
/* AB8500 regulators */
struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = {
diff --git a/arch/arm/mach-ux500/board-mop500-regulators.h b/arch/arm/mach-ux500/board-mop500-regulators.h
index 2675fae..a795cec 100644
--- a/arch/arm/mach-ux500/board-mop500-regulators.h
+++ b/arch/arm/mach-ux500/board-mop500-regulators.h
@@ -15,5 +15,6 @@
#include <linux/regulator/ab8500.h>
extern struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS];
+extern struct regulator_init_data tps61052_regulator;
#endif
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index a393f57..1e75d7e 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -20,6 +20,7 @@
#include <linux/spi/spi.h>
#include <linux/mfd/ab8500.h>
#include <linux/mfd/tc3589x.h>
+#include <linux/mfd/tps6105x.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
@@ -114,6 +115,15 @@ static struct pl022_ssp_controller ssp0_platform_data = {
};
/*
+ * TPS61052
+ */
+
+static struct tps6105x_platform_data mop500_tps61052_data = {
+ .mode = TPS6105X_MODE_VOLTAGE,
+ .regulator_data = &tps61052_regulator,
+};
+
+/*
* TC35892
*/
@@ -135,6 +145,10 @@ static struct tc3589x_platform_data mop500_tc35892_data = {
static struct i2c_board_info mop500_i2c0_devices[] = {
{
+ I2C_BOARD_INFO("tps61052", 0x33),
+ .platform_data = &mop500_tps61052_data,
+ },
+ {
I2C_BOARD_INFO("tc3589x", 0x42),
.irq = NOMADIK_GPIO_TO_IRQ(217),
.platform_data = &mop500_tc35892_data,
--
1.7.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] mach-ux500: configure board for the TPS61052 regulator v2
2011-03-09 12:03 [PATCH 3/3] mach-ux500: configure board for the TPS61052 regulator v2 Linus Walleij
@ 2011-03-17 23:42 ` Samuel Ortiz
2011-03-18 8:26 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Samuel Ortiz @ 2011-03-17 23:42 UTC (permalink / raw)
To: linux-arm-kernel
Hi Linus,
On Wed, Mar 09, 2011 at 12:03:16PM +0000, Linus Walleij wrote:
> From: Linus Walleij <linus.walleij@linaro.org>
>
> This registers the TPS61052 regulator to the ux500 MOP/HREF boards.
Patch applied as well.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/3] mach-ux500: configure board for the TPS61052 regulator v2
2011-03-17 23:42 ` Samuel Ortiz
@ 2011-03-18 8:26 ` Linus Walleij
2011-03-22 11:03 ` Samuel Ortiz
0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2011-03-18 8:26 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Mar 18, 2011 at 12:42 AM, Samuel Ortiz <samuel.ortiz@intel.com> wrote:
> On Wed, Mar 09, 2011 at 12:03:16PM +0000, Linus Walleij wrote:
>> From: Linus Walleij <linus.walleij@linaro.org>
>>
>> This registers the TPS61052 regulator to the ux500 MOP/HREF boards.
>
> Patch applied as well.
Oh no please skip that patch for now.
It will just collide with Russell's tree in -next and wreak havoc.
I will take that platform data in the next merge window or through
Torvalds' tree after Russells and yours is merged, safest path.
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/3] mach-ux500: configure board for the TPS61052 regulator v2
2011-03-18 8:26 ` Linus Walleij
@ 2011-03-22 11:03 ` Samuel Ortiz
0 siblings, 0 replies; 4+ messages in thread
From: Samuel Ortiz @ 2011-03-22 11:03 UTC (permalink / raw)
To: linux-arm-kernel
Hi Linus,
On Fri, Mar 18, 2011 at 08:26:23AM +0000, Linus Walleij wrote:
> On Fri, Mar 18, 2011 at 12:42 AM, Samuel Ortiz <samuel.ortiz@intel.com> wrote:
> > On Wed, Mar 09, 2011 at 12:03:16PM +0000, Linus Walleij wrote:
> >> From: Linus Walleij <linus.walleij@linaro.org>
> >>
> >> This registers the TPS61052 regulator to the ux500 MOP/HREF boards.
> >
> > Patch applied as well.
>
> Oh no please skip that patch for now.
>
> It will just collide with Russell's tree in -next and wreak havoc.
>
> I will take that platform data in the next merge window or through
> Torvalds' tree after Russells and yours is merged, safest path.
Sounds good to me. I dropped the patch.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-22 11:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 12:03 [PATCH 3/3] mach-ux500: configure board for the TPS61052 regulator v2 Linus Walleij
2011-03-17 23:42 ` Samuel Ortiz
2011-03-18 8:26 ` Linus Walleij
2011-03-22 11:03 ` Samuel Ortiz
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).