From: Artur Rojek <contact@artur-rojek.eu>
To: Rob Herring <robh@kernel.org>
Cc: Sebastian Reichel <sre@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Paul Cercueil <paul@crapouillou.net>
Subject: Re: [PATCH 1/2] dt-bindings: power: supply: gpio-charger: Add status-gpios property
Date: Tue, 26 Feb 2019 15:40:38 +0100 [thread overview]
Message-ID: <780b0ff3bb738ab36a5e729f74e6cfb2@artur-rojek.eu> (raw)
In-Reply-To: <20190225215316.GA10117@bogus>
Hi Rob.
Thanks for the review.
On 2019-02-25 22:53, Rob Herring wrote:
> On Tue, Feb 05, 2019 at 08:03:15PM +0100, Artur Rojek wrote:
>> Add documentation for the "status-gpios" property.
>>
>> Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
>> ---
>> .../devicetree/bindings/power/supply/gpio-charger.txt | 4
>> ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git
>> a/Documentation/devicetree/bindings/power/supply/gpio-charger.txt
>> b/Documentation/devicetree/bindings/power/supply/gpio-charger.txt
>> index adbb5dc5b6e9..b98a05a4973c 100644
>> --- a/Documentation/devicetree/bindings/power/supply/gpio-charger.txt
>> +++ b/Documentation/devicetree/bindings/power/supply/gpio-charger.txt
>> @@ -14,12 +14,16 @@ Required properties :
>> usb-cdp (USB charging downstream port)
>> usb-aca (USB accessory charger adapter)
>>
>> +Optional properties:
>> + - status-gpios: GPIO indicating the charger status
>
> So when it is asserted it has 'status'? What does status mean?
It is a GPIO indicating whether a battery is charging.
I shall make the description more clear.
>
>> +
>> Example:
>>
>> usb_charger: charger {
>> compatible = "gpio-charger";
>> charger-type = "usb-sdp";
>> gpios = <&gpf0 2 0 0 0>;
>> + status-gpios = <&gpf0 3 0 0 0>;
>
> Humm, not sure what the thinking for 'gpios' was, but it's wrong and
> you
> just copied it. If we follow the normal cell encoding with 2 cells,
> this
> means the property takes 3 gpios (though the last 2 are marked not
> present with 0).
I will replace both of those properties with a valid example.
Artur
>
> Rob
prev parent reply other threads:[~2019-02-26 14:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-05 19:03 Artur Rojek
2019-02-05 19:03 ` [PATCH 2/2] power: supply: gpio-charger: Add support for charger status Artur Rojek
2019-02-25 21:53 ` [PATCH 1/2] dt-bindings: power: supply: gpio-charger: Add status-gpios property Rob Herring
2019-02-26 14:40 ` Artur Rojek [this message]
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=780b0ff3bb738ab36a5e729f74e6cfb2@artur-rojek.eu \
--to=contact@artur-rojek.eu \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=paul@crapouillou.net \
--cc=robh@kernel.org \
--cc=sre@kernel.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
all inboxes | Powered by JetHome®