From: Chanwoo Choi <cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
To: Grant Likely <grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: anton-9xeibp6oKSgdnm+yROfE0A@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org,
rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org,
myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org
Subject: Re: [PATCH 3/4] charger-manager: Add device tree binding for charger-manager
Date: Sat, 26 Oct 2013 12:00:51 +0900 [thread overview]
Message-ID: <526B3063.30600@samsung.com> (raw)
In-Reply-To: <20131025200344.85AA5C40566-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
Hi Grant,
On 10/26/2013 05:03 AM, Grant Likely wrote:
> On Tue, 22 Oct 2013 21:51:56 +0900, Chanwoo Choi <cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> wrote:
>> This patch add binding file for charger-manager that this framework enables to
>> control and multiple chargers and to monitor charging event.
>>
>> Signed-off-by: Chanwoo Choi <cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
>> Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
>> Signed-off-by: Myungjoo Ham <myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
>> ---
>> .../devicetree/bindings/power/charger-manager.txt | 106 +++++++++++++++++++++
>> 1 file changed, 106 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/power/charger-manager.txt
>>
>> diff --git a/Documentation/devicetree/bindings/power/charger-manager.txt b/Documentation/devicetree/bindings/power/charger-manager.txt
>> new file mode 100644
>> index 0000000..b22c5526
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/power/charger-manager.txt
>> @@ -0,0 +1,106 @@
>> +Charger-manager framework
>> +
>> +THe devicetree bindings are for the charger-manager to control charging feature.
>> +
>> +This framework enables to control and multiple chargers and to monitor charging
>> +event in the context of suspend-to-RAM with an interface combining the chargers.
>> +
>> +Required Properties:
>> +- compatible: Must be "charger-manager".
>> +- psy-name: The name of power-supply class for charger-manager.
>> +- polling-mode: Determine which polling mode will be used.
>> +- polling-invertal-ms: Interval in millisecond at which charger-manager will
>> + monitor battery health.
>> +- fullbatt-vchkdrop-ms
>> +- fullbatt-vchkdrop-uV: Check voltage drop afer the battery is fully charged.
>> + If it has dropped more than fullbatt_vchkdrop_uV after
>> + fullbatt_vchkdrop_ms, charger-manager will restart
>> + charging.
>> +- fullbatt-uV: The standard voltage in microvolt for checking
>> + fully charged. If VBATT >= fullbatt_uV, it is assumed to
>> + be full.
>> +- fullbatt-soc: The standard SOC(State Of Charger) for checking
>> + fully charged. If state of Charge >= fullbatt_soc, it is
>> + assumed to be full.
>> +- fullbatt-full-capacity: The standard capacity for checking fully charged.
>> + If full capacity of battery >= fullbatt_full_capacity,
>> + it is assumed to be full.
>> +- battery-present: Specify where information for existance of battery
>> + can be obtained.
>> +- measure-battery-temp: Whether to measure battery or not
>> +
>> +- charging-max-duration-minute: Maximum possible duration for charging.
>> + If whole charging duration exceed 'charging-max-duration
>> + -ms', charger-manager stop charging.
>> +- discharging-max-duration-minute: Maximum possible duration for
>> + discharging with charger cable after full-batt. If
>> + discharging duration exceed 'discharging-max-duration-
>> + ms', charger-manager start charging.
>> +- psy-fuelgauge-name: The name of power-supply for fuel gauge
>> +- io-channels: The iio channel data for ADC
>> +- iio-adc-overheat: The value of the highest ADC for temperature
>> +- iio-adc-cold: The value of the lowest ADC for temperature
>> +- psy-chargers: Arrary of power-supply name for chargers.
>> +- charger-regulators: Array of charger regulators. It include charger cable
>> + data which need cable-name/extcon-name/min-current-uA
>> + max-current-uA. When cable is attached/detached,
>> + charger-manager change current limit of regulator
>> + according to min-current-uA/max-current-uA.
>
> The documentation for the above properties needs to specify what the
> values actually mean. For example, "polling-mode" is documented as
> "Determine which polling mode will be used". Huh? What is the difference
> between a value of 0 or 1? What values are valid? What do they mean?
>
> As it stands I suspect that the binding is a direct translation from the
> existing pdata structure. That probably isn't really what you want. Some
> of the properties above do make sense and are documented correctly (ie.
> fullbatt-*), but others don't make sense and probably shouldn't be part
> of the generic binding (ie. io-channels sounds like something device
> specific).
>
> I'll defer to the regulators people on what does and does not make
> sense.
>
OK, I add detailed and easy description for improving the understanding
in accordance with your comment and will resend this patchset.
Thanks.
Best Regards,
Chanwoo Choi
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Chanwoo Choi <cw00.choi@samsung.com>
To: Grant Likely <grant.likely@linaro.org>
Cc: anton@enomsg.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, dwmw2@infradead.org,
rob.herring@calxeda.com, myungjoo.ham@samsung.com,
kyungmin.park@samsung.com
Subject: Re: [PATCH 3/4] charger-manager: Add device tree binding for charger-manager
Date: Sat, 26 Oct 2013 12:00:51 +0900 [thread overview]
Message-ID: <526B3063.30600@samsung.com> (raw)
In-Reply-To: <20131025200344.85AA5C40566@trevor.secretlab.ca>
Hi Grant,
On 10/26/2013 05:03 AM, Grant Likely wrote:
> On Tue, 22 Oct 2013 21:51:56 +0900, Chanwoo Choi <cw00.choi@samsung.com> wrote:
>> This patch add binding file for charger-manager that this framework enables to
>> control and multiple chargers and to monitor charging event.
>>
>> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
>> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
>> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
>> ---
>> .../devicetree/bindings/power/charger-manager.txt | 106 +++++++++++++++++++++
>> 1 file changed, 106 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/power/charger-manager.txt
>>
>> diff --git a/Documentation/devicetree/bindings/power/charger-manager.txt b/Documentation/devicetree/bindings/power/charger-manager.txt
>> new file mode 100644
>> index 0000000..b22c5526
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/power/charger-manager.txt
>> @@ -0,0 +1,106 @@
>> +Charger-manager framework
>> +
>> +THe devicetree bindings are for the charger-manager to control charging feature.
>> +
>> +This framework enables to control and multiple chargers and to monitor charging
>> +event in the context of suspend-to-RAM with an interface combining the chargers.
>> +
>> +Required Properties:
>> +- compatible: Must be "charger-manager".
>> +- psy-name: The name of power-supply class for charger-manager.
>> +- polling-mode: Determine which polling mode will be used.
>> +- polling-invertal-ms: Interval in millisecond at which charger-manager will
>> + monitor battery health.
>> +- fullbatt-vchkdrop-ms
>> +- fullbatt-vchkdrop-uV: Check voltage drop afer the battery is fully charged.
>> + If it has dropped more than fullbatt_vchkdrop_uV after
>> + fullbatt_vchkdrop_ms, charger-manager will restart
>> + charging.
>> +- fullbatt-uV: The standard voltage in microvolt for checking
>> + fully charged. If VBATT >= fullbatt_uV, it is assumed to
>> + be full.
>> +- fullbatt-soc: The standard SOC(State Of Charger) for checking
>> + fully charged. If state of Charge >= fullbatt_soc, it is
>> + assumed to be full.
>> +- fullbatt-full-capacity: The standard capacity for checking fully charged.
>> + If full capacity of battery >= fullbatt_full_capacity,
>> + it is assumed to be full.
>> +- battery-present: Specify where information for existance of battery
>> + can be obtained.
>> +- measure-battery-temp: Whether to measure battery or not
>> +
>> +- charging-max-duration-minute: Maximum possible duration for charging.
>> + If whole charging duration exceed 'charging-max-duration
>> + -ms', charger-manager stop charging.
>> +- discharging-max-duration-minute: Maximum possible duration for
>> + discharging with charger cable after full-batt. If
>> + discharging duration exceed 'discharging-max-duration-
>> + ms', charger-manager start charging.
>> +- psy-fuelgauge-name: The name of power-supply for fuel gauge
>> +- io-channels: The iio channel data for ADC
>> +- iio-adc-overheat: The value of the highest ADC for temperature
>> +- iio-adc-cold: The value of the lowest ADC for temperature
>> +- psy-chargers: Arrary of power-supply name for chargers.
>> +- charger-regulators: Array of charger regulators. It include charger cable
>> + data which need cable-name/extcon-name/min-current-uA
>> + max-current-uA. When cable is attached/detached,
>> + charger-manager change current limit of regulator
>> + according to min-current-uA/max-current-uA.
>
> The documentation for the above properties needs to specify what the
> values actually mean. For example, "polling-mode" is documented as
> "Determine which polling mode will be used". Huh? What is the difference
> between a value of 0 or 1? What values are valid? What do they mean?
>
> As it stands I suspect that the binding is a direct translation from the
> existing pdata structure. That probably isn't really what you want. Some
> of the properties above do make sense and are documented correctly (ie.
> fullbatt-*), but others don't make sense and probably shouldn't be part
> of the generic binding (ie. io-channels sounds like something device
> specific).
>
> I'll defer to the regulators people on what does and does not make
> sense.
>
OK, I add detailed and easy description for improving the understanding
in accordance with your comment and will resend this patchset.
Thanks.
Best Regards,
Chanwoo Choi
next prev parent reply other threads:[~2013-10-26 3:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-22 12:51 [PATCH 0/4] charger-manager: Support Devicetree and use IIO susbystem Chanwoo Choi
2013-10-22 12:51 ` Chanwoo Choi
2013-10-22 12:51 ` [PATCH 1/4] charger-manager: Support DT to get platform data for charger_desc Chanwoo Choi
2013-10-22 12:51 ` [PATCH 2/4] charger-manager: Use IIO subsystem to read battery temperature instead of legacy method Chanwoo Choi
2013-10-26 11:20 ` Lars-Peter Clausen
2013-10-27 23:41 ` Chanwoo Choi
2013-10-27 23:41 ` Chanwoo Choi
2013-10-27 11:17 ` Pavel Machek
[not found] ` <20131027111739.GC2437-5NIqAleC692hcjWhqY66xCZi+YwRKgec@public.gmane.org>
2013-10-27 23:51 ` Chanwoo Choi
2013-10-27 23:51 ` Chanwoo Choi
2013-10-22 12:51 ` [PATCH 3/4] charger-manager: Add device tree binding for charger-manager Chanwoo Choi
[not found] ` <1382446317-32613-4-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-10-25 20:03 ` Grant Likely
2013-10-25 20:03 ` Grant Likely
[not found] ` <20131025200344.85AA5C40566-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2013-10-26 3:00 ` Chanwoo Choi [this message]
2013-10-26 3:00 ` Chanwoo Choi
2013-10-22 12:51 ` [PATCH 4/4] charger-manager: Remove build warning fo unused variable Chanwoo Choi
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=526B3063.30600@samsung.com \
--to=cw00.choi-sze3o3uu22jbdgjk7y7tuq@public.gmane.org \
--cc=anton-9xeibp6oKSgdnm+yROfE0A@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.