Skip to content

Commit 5e06d19

Browse files
Peter Ujfalusinsekhar
authored andcommitted
ARM: davinci: dm644x-evm: Add Fixed regulators needed for tlv320aic33
The codec driver needs correct regulators in order to probe. Both VCC_3.3V and VCC_1.8V is always on fixed regulators on the board. Signed-off-by: Peter Ujfalusi <[email protected]> Signed-off-by: Sekhar Nori <[email protected]>
1 parent 9c76e8f commit 5e06d19

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

arch/arm/mach-davinci/board-dm644x-evm.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#include <linux/v4l2-dv-timings.h>
3030
#include <linux/export.h>
3131
#include <linux/leds.h>
32+
#include <linux/regulator/fixed.h>
33+
#include <linux/regulator/machine.h>
3234

3335
#include <media/i2c/tvp514x.h>
3436

@@ -653,6 +655,19 @@ static struct i2c_board_info __initdata i2c_info[] = {
653655
},
654656
};
655657

658+
/* Fixed regulator support */
659+
static struct regulator_consumer_supply fixed_supplies_3_3v[] = {
660+
/* Baseboard 3.3V: 5V -> TPS54310PWP -> 3.3V */
661+
REGULATOR_SUPPLY("AVDD", "1-001b"),
662+
REGULATOR_SUPPLY("DRVDD", "1-001b"),
663+
};
664+
665+
static struct regulator_consumer_supply fixed_supplies_1_8v[] = {
666+
/* Baseboard 1.8V: 5V -> TPS54310PWP -> 1.8V */
667+
REGULATOR_SUPPLY("IOVDD", "1-001b"),
668+
REGULATOR_SUPPLY("DVDD", "1-001b"),
669+
};
670+
656671
#define DM644X_I2C_SDA_PIN GPIO_TO_PIN(2, 12)
657672
#define DM644X_I2C_SCL_PIN GPIO_TO_PIN(2, 11)
658673

@@ -831,6 +846,11 @@ static __init void davinci_evm_init(void)
831846

832847
dm644x_register_clocks();
833848

849+
regulator_register_always_on(0, "fixed-dummy", fixed_supplies_1_8v,
850+
ARRAY_SIZE(fixed_supplies_1_8v), 1800000);
851+
regulator_register_always_on(1, "fixed-dummy", fixed_supplies_3_3v,
852+
ARRAY_SIZE(fixed_supplies_3_3v), 3300000);
853+
834854
dm644x_init_devices();
835855

836856
ret = dm644x_gpio_register();

0 commit comments

Comments
 (0)