From: Andre Przywara <andre.przywara-5wv7dgnIgG8@public.gmane.org>
To: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org>,
Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
"agraf-l3A5Bk7waGM@public.gmane.org"
<agraf-l3A5Bk7waGM@public.gmane.org>
Subject: Re: [linux-sunxi] [PATCH 2/5] arm: allwinner: a64: drop the dummy vcc3v3 regulator in Pine64 DT
Date: Fri, 21 Jul 2017 14:02:18 +0100 [thread overview]
Message-ID: <493424f1-6df3-ec19-a7cf-f76706cb2c51@arm.com> (raw)
In-Reply-To: <7FACC99F-F900-437B-9642-741D7D980D25-h8G6r0blFSE@public.gmane.org>
Hi,
On 21/07/17 13:49, Icenowy Zheng wrote:
>
>
> 于 2017年7月21日 GMT+08:00 下午8:45:39, Andre Przywara <andre.przywara-5wv7dgnIgG8@public.gmane.org> 写到:
>> Hi,
>>
>> On 19/07/17 17:10, Icenowy Zheng wrote:
>>> The Pine64 DT used to contain a dummy vcc3v3 regulator, in order to
>>> satisfy some device nodes when proper AXP803 regulator support is
>>> available. It's in fact the DCDC1 regulator of AXP803.
>>>
>>> Drop the dummy regulator, and fix the reference of this regulator to
>>> DCDC1.
>>
>> Do we really need to have this?
>> While I see that this is technically correct, it breaks older kernels,
>> which miss the AXP driver. So we can't use this DT for syncing it into
>> U-Boot anymore, while still expecting various kernels (for instance
>> from
>> distribution installers) to work via UEFI (for which U-Boot provides
>> the
>> DT). That would be a shame, because we start to see generic arm64
>> distribution installers to work out of the box.
>>
>> I see these solutions:
>> 1) We drop this patch, instead add a comment that technically it's
>> DCDC1. I believe we can't really turn off DCDC1 anyway.
>> 2) We keep theses patches, but don't sync them to U-Boot to have a
>> universal DT in there which works with every kernel.
>> 3) We keep these patches *and* sync them to U-Boot, but add the fixed
>> regulator back in via a U-Boot specific .dtsi "overlay" snippet. This
>> would take care of the parts that break compatibility. The end result
>> would be similar to 2), then.
>>
>> The easiest and most maintainable would be 1), but I am OK with 3) as
>> well, though I am not sure this won't get messy in the future and will
>> work for every change that we make.
>>
>> What do you think?
>
> 4) Do nothing.
>
> We only promise old DTs will run with newer kernel, but
> we don't promise newer DTs to run with old kernel.And
> U-Boot is intended to update less frequently than Linux.
>
> When updateing U-Boot, please update kernel as well.
Which means you tie your firmware to a kernel. I know this is the old
embedded approach, but we should really get rid of this, as I don't see
how this will work nicely with the Pinebook, for instance (which is not
really "embedded" anymore).
U-Boot sits on the SPI flash there, and you are expected to just run any
(not only Linux) distribution from a USB pen drive, for instance, with
that one firmware version, using UEFI. This already works today, but is
only sustainable if we have forward DT compatibility as well.
Cheers,
Andre.
>>
>>> Signed-off-by: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org>
>>> ---
>>> arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 9 +--------
>>> 1 file changed, 1 insertion(+), 8 deletions(-)
>>>
>>> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
>> b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
>>> index ac31c9477b25..68a47d9b07d9 100644
>>> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
>>> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
>>> @@ -61,13 +61,6 @@
>>> chosen {
>>> stdout-path = "serial0:115200n8";
>>> };
>>> -
>>> - reg_vcc3v3: vcc3v3 {
>>> - compatible = "regulator-fixed";
>>> - regulator-name = "vcc3v3";
>>> - regulator-min-microvolt = <3300000>;
>>> - regulator-max-microvolt = <3300000>;
>>> - };
>>> };
>>>
>>> &ehci0 {
>>> @@ -108,7 +101,7 @@
>>> &mmc0 {
>>> pinctrl-names = "default";
>>> pinctrl-0 = <&mmc0_pins>;
>>> - vmmc-supply = <®_vcc3v3>;
>>> + vmmc-supply = <®_dcdc1>;
>>> cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
>>> cd-inverted;
>>> disable-wp;
>>>
--
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
next prev parent reply other threads:[~2017-07-21 13:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-19 16:10 [PATCH 0/5] AXP803 regulator support for Pine64 and SoPine Icenowy Zheng
[not found] ` <20170719161019.62133-1-icenowy-h8G6r0blFSE@public.gmane.org>
2017-07-19 16:10 ` [PATCH 1/5] arm64: allwinner: a64: enable AXP803 regulators for Pine64 Icenowy Zheng
2017-07-19 16:10 ` [PATCH 2/5] arm: allwinner: a64: drop the dummy vcc3v3 regulator in Pine64 DT Icenowy Zheng
[not found] ` <20170719161019.62133-3-icenowy-h8G6r0blFSE@public.gmane.org>
2017-07-21 12:45 ` [linux-sunxi] " Andre Przywara
[not found] ` <4e2c9486-9c0d-14e9-62e7-8642758c5472-5wv7dgnIgG8@public.gmane.org>
2017-07-21 12:49 ` Icenowy Zheng
[not found] ` <7FACC99F-F900-437B-9642-741D7D980D25-h8G6r0blFSE@public.gmane.org>
2017-07-21 13:02 ` Andre Przywara [this message]
[not found] ` <493424f1-6df3-ec19-a7cf-f76706cb2c51-5wv7dgnIgG8@public.gmane.org>
2017-07-21 13:51 ` [linux-sunxi] " icenowy-h8G6r0blFSE
[not found] ` <a03e16d6ce509ce9fe2723682bae4768-h8G6r0blFSE@public.gmane.org>
2017-07-21 14:03 ` Alexander Graf
2017-07-21 14:38 ` Maxime Ripard
2017-07-21 15:08 ` Andre Przywara
[not found] ` <0d30c993-a3a4-3923-b112-e65d1ea97cce-5wv7dgnIgG8@public.gmane.org>
2017-07-21 15:10 ` Icenowy Zheng
2017-07-21 20:39 ` Maxime Ripard
2017-07-23 23:24 ` André Przywara
2017-07-19 16:10 ` [PATCH 3/5] arm64: allwinner: a64: add AXP803 PMIC to SoPine DTSI Icenowy Zheng
2017-07-19 16:10 ` [PATCH 4/5] arm64: allwinner: a64: add AXP803 regulators support for SoPine Icenowy Zheng
2017-07-19 16:10 ` [PATCH 5/5] arm: allwinner: a64: drop vcc3v3 and vcc1v8 dummy regulators " Icenowy Zheng
2017-07-20 4:11 ` [PATCH 0/5] AXP803 regulator support for Pine64 and SoPine Chen-Yu Tsai
[not found] ` <CAGb2v67hcD=uihh8CCwiNEm-29vc=d4nrqJTm+CAtmg_sWu8Qw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-20 13:12 ` icenowy-h8G6r0blFSE
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=493424f1-6df3-ec19-a7cf-f76706cb2c51@arm.com \
--to=andre.przywara-5wv7dgnigg8@public.gmane.org \
--cc=agraf-l3A5Bk7waGM@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=icenowy-h8G6r0blFSE@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=wens-jdAy2FN1RRM@public.gmane.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;
as well as URLs for NNTP newsgroup(s).