From: Laxman Dewangan <ldewangan@nvidia.com>
To: Lee Jones <lee.jones@linaro.org>
Cc: linus.walleij@linaro.org, robh+dt@kernel.org,
mark.rutland@arm.com, gnurou@gmail.com,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, ijc+devicetree@hellion.org.uk,
swarren@nvidia.com, treding@nvidia.com,
Mallikarjun Kasoju <mkasoju@nvidia.com>
Subject: Re: [PATCH V10 2/6] mfd: max77620: add core driver for MAX77620/MAX20024
Date: Thu, 28 Apr 2016 00:13:10 +0530 [thread overview]
Message-ID: <5721083E.8080805@nvidia.com> (raw)
In-Reply-To: <20160427151947.GD4892@dell>
On Wednesday 27 April 2016 08:49 PM, Lee Jones wrote:
> On Wed, 30 Mar 2016, Laxman Dewangan wrote:
>
>
> What are 20 and 40? I think you're going to need a comment to
> describe what's going on in this function.
>
>> + int x, i;
>> +
>> + for (i = 0; i < 0x7; i++) {
> It's unsual to use hex values like this.
>
> I think it should be defined.
>
>> + x = base_fps_time * BIT(i);
> 20 * (1 << {0..7})
>
> So ...
>
> 20 * (1, 2, 4, 8, etc)
>
> What does that does that doe exactly?
>
>> + if (x >= tperiod)
>> + return i;
>> + }
>> +
>> + return i;
>> +}
>> +
>> +static int max77620_config_fps(struct max77620_chip *chip,
>> + struct device_node *fps_np)
> Lots of mention of 'FPS' here, but noting to so what that is?
>
> What does FPS stand for and what does the FPS do?
>
>
The chip support here the Flexible Power Sequence period (FPS period) as
40, 80, 160, 320, 640, 1280, 2560 and 5120 microseconds (for max77620)
20, 40, 80, 160, 320, 640, 1280, 2560 microseconds (for max77620)
There is 3 bits in registers which defined as
000: 40us for max77620, 20us for max20024
001: 80us for max77620, 40us for max20024
010: 160us for max77620, 80us for max20024.
::
From DT, I am getting the FPS period time as above and this loop is
finding equivalent bit value (0 to 7) from period.
The min fps time is 40us for MAX77620 and 20us for MAX20024.
next prev parent reply other threads:[~2016-04-27 18:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-30 14:29 [PATCH V10 0/6] Add support for MAXIM MAX77620/MAX20024 PMIC Laxman Dewangan
2016-03-30 14:29 ` [PATCH V10 1/6] mfd: add device-tree binding doc for PMIC max77620/max20024 Laxman Dewangan
2016-04-27 12:49 ` Lee Jones
2016-04-27 15:04 ` Thierry Reding
2016-04-27 15:30 ` Lee Jones
[not found] ` <1459348188-11726-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-03-30 14:29 ` [PATCH V10 2/6] mfd: max77620: add core driver for MAX77620/MAX20024 Laxman Dewangan
2016-04-27 15:06 ` Thierry Reding
2016-04-27 15:29 ` Lee Jones
2016-04-27 15:19 ` Lee Jones
2016-04-27 18:27 ` Laxman Dewangan
2016-04-28 7:25 ` Lee Jones
2016-04-28 7:18 ` Laxman Dewangan
2016-04-28 8:51 ` Lee Jones
2016-04-27 18:43 ` Laxman Dewangan [this message]
2016-04-28 7:23 ` Lee Jones
2016-03-30 14:29 ` [PATCH V10 3/6] pinctrl: add DT binding doc for pincontrol of PMIC max77620/max20024 Laxman Dewangan
2016-03-30 14:29 ` [PATCH V10 4/6] pinctrl: max77620: add pincontrol driver for MAX77620/MAX20024 Laxman Dewangan
2016-03-30 14:29 ` [PATCH V10 5/6] gpio: add DT binding doc for gpio of PMIC max77620/max20024 Laxman Dewangan
2016-03-30 14:29 ` [PATCH V10 6/6] gpio: max77620: add gpio driver for MAX77620/MAX20024 Laxman Dewangan
2016-04-15 16:57 ` [PATCH V10 0/6] Add support for MAXIM MAX77620/MAX20024 PMIC Laxman Dewangan
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=5721083E.8080805@nvidia.com \
--to=ldewangan@nvidia.com \
--cc=devicetree@vger.kernel.org \
--cc=gnurou@gmail.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mkasoju@nvidia.com \
--cc=robh+dt@kernel.org \
--cc=swarren@nvidia.com \
--cc=treding@nvidia.com \
/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).