devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Chris Morgan <macroalpha82@gmail.com>
Cc: linux-pm@vger.kernel.org, linux-rockchip@lists.infradead.org,
	devicetree@vger.kernel.org, zhangqing@rock-chips.com,
	zyw@rock-chips.com, jon.lin@rock-chips.com,
	maccraft123mc@gmail.com, sre@kernel.org, heiko@sntech.de,
	krzk+dt@kernel.org, robh+dt@kernel.org, lee.jones@linaro.org,
	Chris Morgan <macromorgan@hotmail.com>
Subject: Re: [PATCH 1/4 v5] dt-bindings: Add Rockchip rk817 battery charger support
Date: Wed, 6 Apr 2022 09:28:50 +0200	[thread overview]
Message-ID: <44ae23a3-c3a1-7d34-8af2-cbc8c1c9db2b@linaro.org> (raw)
In-Reply-To: <20220405140428.GA72@wintermute.localdomain>

On 05/04/2022 16:04, Chris Morgan wrote:
>>> The driver itself is named rk817_charger. If you think I should change
>>> this from battery to "fuel gauge" or "charger" let me know and I can
>>> resubmit. Whatever makes it clearer for everyone.
>>
>> Yeah, the property name and bindings should describe the hardware, so in
>> such case the hardware is rather a "charger" or "fuel-gauge". Your
>> "battery-cell" from DTS is probably just a "battery" (unless you expect
>> multiple cells?).
>>
>> Best regards,
>> Krzysztof
> 
> Okay, when v6 comes around I'll change it to be "charger" instead of
> "battery" to make it more clear. There should only be a single battery
> instead of multiple cells, and according to the documentation I should
> be okay with describing the battery in the devicetree since it's not
> something easy for the end-user to change.

Yes,the description of battery fits the purpose of DT.

> 
> I'd like to get someone to look at the meat and potatoes of the series
> before I submit a v6... I did a fairly substantial rewrite of the
> actual rk817_charger.c to solve for several problems and fix several
> bugs I found in extended testing. One of the major changes was to
> mirror the BSP in that I poll the PMIC every 8 seconds for updates
> and then store it in the driver struct rather than pull each value
> on demand as requested. I see other drivers doing this but I want
> to make sure that's acceptable upstream.


Best regards,
Krzysztof

  reply	other threads:[~2022-04-06 11:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-04 21:57 [PATCH 0/4 v5] power: supply: Add Support for RK817 Charger Chris Morgan
2022-04-04 21:57 ` [PATCH 1/4 v5] dt-bindings: Add Rockchip rk817 battery charger support Chris Morgan
2022-04-05 11:16   ` Krzysztof Kozlowski
2022-04-05 13:12     ` Chris Morgan
2022-04-05 13:35       ` Krzysztof Kozlowski
2022-04-05 13:54         ` Chris Morgan
2022-04-05 14:00           ` Krzysztof Kozlowski
2022-04-05 14:04             ` Chris Morgan
2022-04-06  7:28               ` Krzysztof Kozlowski [this message]
2022-04-05 14:02   ` Krzysztof Kozlowski
2022-04-05 18:23   ` Rob Herring
2022-04-05 18:37     ` Chris Morgan
2022-04-04 21:57 ` [PATCH 2/4 v5] mfd: " Chris Morgan
2022-04-04 21:57 ` [PATCH 3/4 v5] power: supply: Add charger driver for Rockchip RK817 Chris Morgan
2022-04-04 21:57 ` [PATCH 4/4 v5] arm64: dts: rockchip: add rk817 chg to Odroid Go Advance Chris Morgan

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=44ae23a3-c3a1-7d34-8af2-cbc8c1c9db2b@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=jon.lin@rock-chips.com \
    --cc=krzk+dt@kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=maccraft123mc@gmail.com \
    --cc=macroalpha82@gmail.com \
    --cc=macromorgan@hotmail.com \
    --cc=robh+dt@kernel.org \
    --cc=sre@kernel.org \
    --cc=zhangqing@rock-chips.com \
    --cc=zyw@rock-chips.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).