Thread (10 messages) 10 messages, 3 authors, 2020-09-02

Re: [PATCH 2/3] dt-bindings: rtc: add chargeable flag for rx8130

From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Date: 2020-09-02 19:18:44
Also in: linux-rtc

On 26/08/2020 10:13:04+0200, Bastian Krause wrote:
quoted
quoted
Are you okay with that?
I agree boolean should be avoided in RTC drivers because we need a way
to express "don't change this value".
Alright.
quoted
quoted
Some more context:

I originally tried to add a chargeable flag for rx8130. Prior to this
patch, there was no need to set "trickle-diode-disable" for this,
because the driver did not pass the chargeable flag to the RTC. With the
patch the default would have been to charge as long as
"trickle-diode-disable" is not there. So there's a change in behavior.
Yes, IIRC, my point was simply to move the documentation for
aux-voltage-chargeable to the generice rtc binding documentation,
Documentation/devicetree/bindings/rtc/rtc.yaml

For now, you sould keep support for trickle-diode-disable but it has to be
superseded by aux-voltage-chargeable if present. Is that more clear?
Yes, thanks for the clarification.

Should I set the deprecated flag for trickle-diode-disable in the
dt-binding yaml?
That's a good idea, yes.


-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help