* AXP803 I2C support / AXP devicetree-bindings
@ 2017-11-06 22:39 Martin Blumenstingl
[not found] ` <CAFBinCAm8pA-dh3+T4Ui+DvLv5C17Zup-FN8pvi0cUa5PgwJJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Martin Blumenstingl @ 2017-11-06 22:39 UTC (permalink / raw)
To: wens-jdAy2FN1RRM, devicetree-u79uwXL29TY76Z2rM5mHXA
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
icenowy-h8G6r0blFSE,
maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
Hello,
recently I discovered that there are some X-Powers AXP chips that
support both, Allwinner's own "RSB" as well as the I2C ("TWSI" in the
datasheet) busses.
one chip that supports both interfaces is the AXP803
the datasheet is linked in the public PINE64 wiki: [1] (direct link: [0])
currently the "x-powers,axp803" binding is "RSB" bus specific as it's
currently only listed in drivers/mfd/axp20x-rsb.c
was there a discussion about supporting both, the "RSB" and I2C bus
for one chip (for example the AXP803) in the past (I couldn't find
anything online)?
what about the device-tree bindings in this case?
Regards
Martin
[0] http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf
[1] http://wiki.pine64.org/index.php/PINE_A64_Main_Page#Datasheets_for_Components_and_Peripherals
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: AXP803 I2C support / AXP devicetree-bindings
[not found] ` <CAFBinCAm8pA-dh3+T4Ui+DvLv5C17Zup-FN8pvi0cUa5PgwJJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-11-07 3:13 ` Chen-Yu Tsai
2017-11-07 8:20 ` Icenowy Zheng
[not found] ` <CAGb2v642n4puXqKOjG0QxhFgFFW2nJKrpU4KV2ZRPNb6_zF4pw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 2 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2017-11-07 3:13 UTC (permalink / raw)
To: Martin Blumenstingl
Cc: Chen-Yu Tsai, devicetree, linux-kernel, linux-arm-kernel,
Icenowy Zheng, Maxime Ripard, Quentin Schulz
On Tue, Nov 7, 2017 at 6:39 AM, Martin Blumenstingl
<martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
> Hello,
>
> recently I discovered that there are some X-Powers AXP chips that
> support both, Allwinner's own "RSB" as well as the I2C ("TWSI" in the
> datasheet) busses.
>
> one chip that supports both interfaces is the AXP803
> the datasheet is linked in the public PINE64 wiki: [1] (direct link: [0])
All the RSB based PMICs support both modes. They start in I2C mode
when cold booted.
>
> currently the "x-powers,axp803" binding is "RSB" bus specific as it's
> currently only listed in drivers/mfd/axp20x-rsb.c
>
> was there a discussion about supporting both, the "RSB" and I2C bus
> for one chip (for example the AXP803) in the past (I couldn't find
> anything online)?
No. None of the boards actually use I2C instead of RSB. RSB mode is
initialized by the boot loader. There is no easy way for the kernel to
switch it back.
> what about the device-tree bindings in this case?
We can deal with it if someone actually comes up with a practical
case needing it. Otherwise things go untested, which is not what
we want.
ChenYu
>
>
> Regards
> Martin
>
>
> [0] http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf
> [1] http://wiki.pine64.org/index.php/PINE_A64_Main_Page#Datasheets_for_Components_and_Peripherals
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: AXP803 I2C support / AXP devicetree-bindings
2017-11-07 3:13 ` Chen-Yu Tsai
@ 2017-11-07 8:20 ` Icenowy Zheng
[not found] ` <CAGb2v642n4puXqKOjG0QxhFgFFW2nJKrpU4KV2ZRPNb6_zF4pw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
1 sibling, 0 replies; 4+ messages in thread
From: Icenowy Zheng @ 2017-11-07 8:20 UTC (permalink / raw)
To: Chen-Yu Tsai, Martin Blumenstingl
Cc: devicetree, linux-kernel, linux-arm-kernel, Maxime Ripard,
Quentin Schulz
于 2017年11月7日 GMT+08:00 上午11:13:23, Chen-Yu Tsai <wens@csie.org> 写到:
> On Tue, Nov 7, 2017 at 6:39 AM, Martin Blumenstingl
> <martin.blumenstingl@googlemail.com> wrote:
>> Hello,
>>
>> recently I discovered that there are some X-Powers AXP chips that
>> support both, Allwinner's own "RSB" as well as the I2C ("TWSI" in the
>> datasheet) busses.
>>
>> one chip that supports both interfaces is the AXP803
>> the datasheet is linked in the public PINE64 wiki: [1] (direct link:
> [0])
>
> All the RSB based PMICs support both modes. They start in I2C mode
> when cold booted.
I think it starts at a vendor-customized mode. In all PMICs sold
with Allwinner SoCs the mode is predefined to RSB.
In fact many registers in AXPs are vendor-customizable, see
the datasheets.
>
>>
>> currently the "x-powers,axp803" binding is "RSB" bus specific as it's
>> currently only listed in drivers/mfd/axp20x-rsb.c
>>
>> was there a discussion about supporting both, the "RSB" and I2C bus
>> for one chip (for example the AXP803) in the past (I couldn't find
>> anything online)?
>
> No. None of the boards actually use I2C instead of RSB. RSB mode is
> initialized by the boot loader. There is no easy way for the kernel to
> switch it back.
>
>> what about the device-tree bindings in this case?
>
> We can deal with it if someone actually comes up with a practical
> case needing it. Otherwise things go untested, which is not what
> we want.
>
> ChenYu
>
>>
>>
>> Regards
>> Martin
>>
>>
>> [0]
> http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf
>> [1]
> http://wiki.pine64.org/index.php/PINE_A64_Main_Page#Datasheets_for_Components_and_Peripherals
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: AXP803 I2C support / AXP devicetree-bindings
[not found] ` <CAGb2v642n4puXqKOjG0QxhFgFFW2nJKrpU4KV2ZRPNb6_zF4pw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-11-07 22:32 ` Martin Blumenstingl
0 siblings, 0 replies; 4+ messages in thread
From: Martin Blumenstingl @ 2017-11-07 22:32 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: devicetree, linux-kernel, linux-arm-kernel, Icenowy Zheng,
Maxime Ripard, Quentin Schulz
Hi ChenYu,
On Tue, Nov 7, 2017 at 4:13 AM, Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> wrote:
> On Tue, Nov 7, 2017 at 6:39 AM, Martin Blumenstingl
> <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
>> Hello,
>>
>> recently I discovered that there are some X-Powers AXP chips that
>> support both, Allwinner's own "RSB" as well as the I2C ("TWSI" in the
>> datasheet) busses.
>>
>> one chip that supports both interfaces is the AXP803
>> the datasheet is linked in the public PINE64 wiki: [1] (direct link: [0])
>
> All the RSB based PMICs support both modes. They start in I2C mode
> when cold booted.
I did not know that - thank you for that info!
>>
>> currently the "x-powers,axp803" binding is "RSB" bus specific as it's
>> currently only listed in drivers/mfd/axp20x-rsb.c
>>
>> was there a discussion about supporting both, the "RSB" and I2C bus
>> for one chip (for example the AXP803) in the past (I couldn't find
>> anything online)?
>
> No. None of the boards actually use I2C instead of RSB. RSB mode is
> initialized by the boot loader. There is no easy way for the kernel to
> switch it back.
I'm not trying to change this on an existing board
>> what about the device-tree bindings in this case?
>
> We can deal with it if someone actually comes up with a practical
> case needing it. Otherwise things go untested, which is not what
> we want.
OK, thank you for this information
if there is a valid use-case for this: would you like to see a RfC
patch-series (along with a description why it's needed) or discuss
this further before sending any patches?
Regards
Martin
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-07 22:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-06 22:39 AXP803 I2C support / AXP devicetree-bindings Martin Blumenstingl
[not found] ` <CAFBinCAm8pA-dh3+T4Ui+DvLv5C17Zup-FN8pvi0cUa5PgwJJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-07 3:13 ` Chen-Yu Tsai
2017-11-07 8:20 ` Icenowy Zheng
[not found] ` <CAGb2v642n4puXqKOjG0QxhFgFFW2nJKrpU4KV2ZRPNb6_zF4pw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-07 22:32 ` Martin Blumenstingl
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).