Skip to content

Commit 9c76e8f

Browse files
Peter Ujfalusinsekhar
authored andcommitted
ARM: davinci: dm365-evm: Add Fixed regulators needed for tlv320aic3101
The codec driver needs correct regulators in order to probe. Both VCC_3V3 and VCC_1V8 is always on fixed regulators on the board. Signed-off-by: Peter Ujfalusi <[email protected]> Signed-off-by: Sekhar Nori <[email protected]>
1 parent 6b49d4f commit 9c76e8f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include <linux/spi/eeprom.h>
3131
#include <linux/v4l2-dv-timings.h>
3232
#include <linux/platform_data/ti-aemif.h>
33+
#include <linux/regulator/fixed.h>
34+
#include <linux/regulator/machine.h>
3335

3436
#include <asm/mach-types.h>
3537
#include <asm/mach/arch.h>
@@ -245,6 +247,19 @@ static struct davinci_i2c_platform_data i2c_pdata = {
245247
.bus_delay = 0 /* usec */,
246248
};
247249

250+
/* Fixed regulator support */
251+
static struct regulator_consumer_supply fixed_supplies_3_3v[] = {
252+
/* Baseboard 3.3V: 5V -> TPS767D301 -> 3.3V */
253+
REGULATOR_SUPPLY("AVDD", "1-0018"),
254+
REGULATOR_SUPPLY("DRVDD", "1-0018"),
255+
REGULATOR_SUPPLY("IOVDD", "1-0018"),
256+
};
257+
258+
static struct regulator_consumer_supply fixed_supplies_1_8v[] = {
259+
/* Baseboard 1.8V: 5V -> TPS767D301 -> 1.8V */
260+
REGULATOR_SUPPLY("DVDD", "1-0018"),
261+
};
262+
248263
static int dm365evm_keyscan_enable(struct device *dev)
249264
{
250265
return davinci_cfg_reg(DM365_KEYSCAN);
@@ -800,6 +815,11 @@ static __init void dm365_evm_init(void)
800815
if (ret)
801816
pr_warn("%s: GPIO init failed: %d\n", __func__, ret);
802817

818+
regulator_register_always_on(0, "fixed-dummy", fixed_supplies_1_8v,
819+
ARRAY_SIZE(fixed_supplies_1_8v), 1800000);
820+
regulator_register_always_on(1, "fixed-dummy", fixed_supplies_3_3v,
821+
ARRAY_SIZE(fixed_supplies_3_3v), 3300000);
822+
803823
nvmem_add_cell_table(&davinci_nvmem_cell_table);
804824
nvmem_add_cell_lookups(&davinci_nvmem_cell_lookup, 1);
805825

0 commit comments

Comments
 (0)