From: myungjoo.ham@samsung.com (MyungJoo Ham)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] Exynos4 NURI: configure regulators and PMIC
Date: Mon, 20 Jun 2011 15:26:08 +0900 [thread overview]
Message-ID: <BANLkTiniwMCW-ED4CX=qybMvk243Zdki4Q@mail.gmail.com> (raw)
In-Reply-To: <20110618151227.GB25163@sirena.org.uk>
On Sun, Jun 19, 2011 at 12:12 AM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Thu, Jun 16, 2011 at 06:09:31PM +0900, MyungJoo Ham wrote:
>
>> ?static struct regulator_init_data emmc_fixed_voltage_init_data = {
>> ? ? ? .constraints ? ? ? ? ? ?= {
>> + ? ? ? ? ? ? .min_uV ? ? ? ? = 2800000,
>> + ? ? ? ? ? ? .max_uV ? ? ? ? = 2800000,
>> ? ? ? ? ? ? ? .name ? ? ? ? ? = "VMEM_VDD_2.8V",
>> ? ? ? ? ? ? ? .valid_ops_mask = REGULATOR_CHANGE_STATUS,
>
> Since the regualtor can't change voltage specifying the voltage here
> isn't going to achieve anything - to get the voltage reported through
> get_voltage() you need to put the voltage in the platform data for the
> fixed regulator.
Ah.. they are useless. I'll remove them.
>
>> +static struct regulator_consumer_supply nuri_max8997_ldo1_consumer[] = {
>> + ? ? REGULATOR_SUPPLY("vadc", NULL), /* Used by CPU's ADC drv */
>> +};
>
> In the ADC regulator patch you called the supply vdd (though the chip
> normally calls it vadc so that's the better name)...
Um.. this happened as I have seperated NURI-board platform patch for
ADC and PMIC.
After ADC patch, that name became ("vdd", "s5p-adc").
I'll let them either be merged or be disjoint completely.
Anyway, do you think "vadc" is better than "vdd" for ADC drivers? The
circuit schematics says the pin on the consumer side is "VDD33_ADC"
(VDD 3.3V for ADC).
>
> Extra ' too.
>
>> +static struct regulator_consumer_supply nuri_max8997_ldo8_consumer[] = {
>> + ? ? REGULATOR_SUPPLY("vusb_d", NULL), /* Used by CPU */
>> + ? ? REGULATOR_SUPPLY("vdac", NULL), /* Used by CPU */
>> +};
>
> Another VADC? ?For a different supply?
That's DAC (opposite to ADC).
>
>> + ? ? ? ? ? ? .state_mem ? ? ?= {
>> + ? ? ? ? ? ? ? ? ? ? .enabled ? ? ? ?= 0,
>
> No need to initialize to zero.
Ok, I'll remove every zero-initialization from the patch.
>
>> +static struct regulator_init_data nuri_max8997_ldo10_data = {
>> + ? ? .constraints ? ?= {
>
> You should be able to use __initdata for a lot of this by the way.
Ah.. way to reduce some weight. Fine.
>
>> +#define NURI_PMIC_GPIO ? ? ? ? ? ? ? EXYNOS4_GPX0(7)
>> +static void __init nuri_pmic_init(void)
>> +{
>> + ? ? int gpio;
>> +
>> + ? ? nuri_max8997_pdata.irq_base = irq_get_next_irq(IRQ_GPIO_END);
>> + ? ? gpio = NURI_PMIC_GPIO;
>> + ? ? gpio_request(gpio, "AP_PMIC_IRQ");
>> + ? ? s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(0xf));
>> + ? ? s3c_gpio_setpull(gpio, S3C_GPIO_PULL_NONE);
>> +}
>
> I'm not sure both the #define and the variable make sense here...
>
I've defined them because two statements are using the gpio address of
NURI_PMIC.
Thanks you very much!
- MyungJoo
--
MyungJoo Ham (???), Ph.D.
Mobile Software Platform Lab,
Digital Media and Communications (DMC) Business
Samsung Electronics
cell: 82-10-6714-2858
next prev parent reply other threads:[~2011-06-20 6:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-16 9:09 [PATCH 1/2] Exynos4 NURI: configure regulators and PMIC MyungJoo Ham
2011-06-16 9:09 ` [PATCH 2/2] Exynos4 NURI: add MAX17042 fuel gauge MyungJoo Ham
2011-06-18 15:12 ` [PATCH 1/2] Exynos4 NURI: configure regulators and PMIC Mark Brown
2011-06-20 6:26 ` MyungJoo Ham [this message]
2011-06-20 10:27 ` Mark Brown
2011-06-20 7:58 ` MyungJoo Ham
2011-06-20 10:31 ` Mark Brown
2011-06-21 2:07 ` [PATCH v2 0/4] ARM: Exynos4: NURI Board Configuration Udpate MyungJoo Ham
2011-06-21 2:07 ` [PATCH v2 1/4] Exynos4 NURI: configure regulators and PMIC MyungJoo Ham
2011-06-21 5:33 ` Tushar Behera
2011-06-21 11:10 ` Mark Brown
2011-06-21 11:49 ` Tushar Behera
2011-06-21 11:56 ` Mark Brown
2011-06-22 2:37 ` MyungJoo Ham
2011-06-22 2:31 ` MyungJoo Ham
2011-06-22 3:43 ` Tushar Behera
2011-06-22 9:17 ` Kukjin Kim
2011-06-21 11:07 ` Mark Brown
2011-06-21 2:07 ` [PATCH v2 2/4] Exynos4 NURI: configure MAX17042 fuel gauge MyungJoo Ham
2011-06-21 2:07 ` [PATCH v2 3/4] Exynos4 NURI: configure ADC MyungJoo Ham
2011-06-21 2:07 ` [PATCH v2 4/4] Exynos4 NURI: support for NTC thermistor MyungJoo Ham
2011-06-21 10:50 ` Mark Brown
2011-06-22 5:00 ` MyungJoo Ham
2011-06-22 11:08 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTiniwMCW-ED4CX=qybMvk243Zdki4Q@mail.gmail.com' \
--to=myungjoo.ham@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).