From: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Andre Przywara <andre.przywara-5wv7dgnIgG8@public.gmane.org>
Cc: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org>,
Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
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: [PATCH 2/5] arm: allwinner: a64: drop the dummy vcc3v3 regulator in Pine64 DT
Date: Fri, 21 Jul 2017 16:38:58 +0200 [thread overview]
Message-ID: <20170721143858.3hufnu7v3ki6xmgf@flea> (raw)
In-Reply-To: <493424f1-6df3-ec19-a7cf-f76706cb2c51-5wv7dgnIgG8@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 3480 bytes --]
On Fri, Jul 21, 2017 at 02:02:18PM +0100, Andre Przywara wrote:
> 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.
We've been discussing this over and over and over again. You're using
the pinebook as an example, fine. Please give me the full documented,
reviewed and acked-by binding for all the features the pinebook has.
If you can't, this discussion is pointless, since you will expect
changes in the DT.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2017-07-21 14:38 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 ` [linux-sunxi] " Andre Przywara
[not found] ` <493424f1-6df3-ec19-a7cf-f76706cb2c51-5wv7dgnIgG8@public.gmane.org>
2017-07-21 13:51 ` icenowy-h8G6r0blFSE
[not found] ` <a03e16d6ce509ce9fe2723682bae4768-h8G6r0blFSE@public.gmane.org>
2017-07-21 14:03 ` Alexander Graf
2017-07-21 14:38 ` Maxime Ripard [this message]
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=20170721143858.3hufnu7v3ki6xmgf@flea \
--to=maxime.ripard-wi1+55scjutkeb57/3fjtnbpr1lh4cv8@public.gmane.org \
--cc=agraf-l3A5Bk7waGM@public.gmane.org \
--cc=andre.przywara-5wv7dgnIgG8@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=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