[linux-sunxi] [RFC Patch 1/4] mfd: AXP20x: Add power supply bindings documentation

Koen Kooi
2014-11-05T14:55:25Z

> Op 5 nov. 2014, om 15:48 heeft Maxime Ripard <maxime.ripard@free-electrons.com> het volgende geschreven:
>
> On Tue, Nov 04, 2014 at 10:08:27PM +0100, Bruno Pr?mont wrote:
>> On Tue, 04 November 2014 Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
>>> On Mon, Nov 03, 2014 at 09:02:44PM +0100, Bruno Pr?mont wrote:
>>>> Doing something like this?:
>>>>
>>>> --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
>>>> +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
>>>> @@ -126,9 +126,11 @@
>>>> interrupt-controller;
>>>> #interrupt-cells = <1>;
>>>>
>>>> - backup = <3000000 200>;
>>>> - battery.resistance = <100>;
>>>> - battery.capacity = <2000>;
>>>> + x-powers,backup = <3000000 200>;
>>>
>>> I don't really remember what was that property used for. Would it make
>>> sense to put it into the battery node?
>>
>> The backup/rtc battery is completely distinct from main battery.
>>
>> It's presence is in no way related to that of the main battery,
>> thus I would not put it into the same node.
>> As all the information needed is included in the property I see
>> no reason to move it into a separate node.
>
> Oh. So it is to model some button battery that might be here to keep
> the RTC state while the board is unpowered?
>
> How is that related to the PMIC?

Some PMICs can recharge it and detect it it's empty or not.