Commit 9e9bc235 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Sekhar Nori

ARM: davinci: board-da850-evm: Add needed regulators for tlv320aic3106 codec

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: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
parent 79436f87
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <linux/platform_data/uio_pruss.h> #include <linux/platform_data/uio_pruss.h>
#include <linux/regulator/machine.h> #include <linux/regulator/machine.h>
#include <linux/regulator/tps6507x.h> #include <linux/regulator/tps6507x.h>
#include <linux/regulator/fixed.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/spi/flash.h> #include <linux/spi/flash.h>
#include <linux/wl12xx.h> #include <linux/wl12xx.h>
...@@ -842,6 +843,16 @@ static int da850_lcd_hw_init(void) ...@@ -842,6 +843,16 @@ static int da850_lcd_hw_init(void)
return 0; 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 */ /* TPS65070 voltage regulator support */
/* 3.3V */ /* 3.3V */
...@@ -865,6 +876,7 @@ static struct regulator_consumer_supply tps65070_dcdc2_consumers[] = { ...@@ -865,6 +876,7 @@ static struct regulator_consumer_supply tps65070_dcdc2_consumers[] = {
{ {
.supply = "dvdd3318_c", .supply = "dvdd3318_c",
}, },
REGULATOR_SUPPLY("IOVDD", "1-0018"),
}; };
/* 1.2V */ /* 1.2V */
...@@ -1447,6 +1459,8 @@ static __init void da850_evm_init(void) ...@@ -1447,6 +1459,8 @@ static __init void da850_evm_init(void)
if (ret) if (ret)
pr_warn("%s: GPIO init failed: %d\n", __func__, 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(); ret = pmic_tps65070_init();
if (ret) if (ret)
pr_warn("%s: TPS65070 PMIC init failed: %d\n", __func__, ret); pr_warn("%s: TPS65070 PMIC init failed: %d\n", __func__, ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment