linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: agraf@suse.de (Alexander Graf)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] [PATCH 2/5] arm: allwinner: a64: drop the dummy vcc3v3 regulator in Pine64 DT
Date: Fri, 21 Jul 2017 16:03:36 +0200	[thread overview]
Message-ID: <ad39c6be-4dc0-27f9-3f19-2a5afbb1f9b5@suse.de> (raw)
In-Reply-To: <a03e16d6ce509ce9fe2723682bae4768@aosc.io>

On 07/21/2017 03:51 PM, icenowy at aosc.io wrote:
> ? 2017-07-21 21:02?Andre Przywara ???
>> Hi,
>>
>> On 21/07/17 13:49, Icenowy Zheng wrote:
>>>
>>>
>>> ? 2017?7?21? GMT+08:00 ??8:45:39, Andre Przywara 
>>> <andre.przywara@arm.com> ??:
>>>> 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.
>
> Old firmware suit both old and new kernels, and for newer firmwares,
> use newer kernels.

Congratulations, you basically just broke any Linux distribution out 
there :).

> This is an intended behavior, and will exist not only on ARM if the
> firmware gains something new.

For new features it's some times required to update to new kernels. Once 
a platform is out in the market, that should really get limited to 
drivers though.


Alex

  reply	other threads:[~2017-07-21 14:03 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
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
2017-07-21 12:45   ` [linux-sunxi] " Andre Przywara
2017-07-21 12:49     ` Icenowy Zheng
2017-07-21 13:02       ` Andre Przywara
2017-07-21 13:51         ` icenowy at aosc.io
2017-07-21 14:03           ` Alexander Graf [this message]
2017-07-21 14:38         ` Maxime Ripard
2017-07-21 15:08           ` Andre Przywara
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 ` [linux-sunxi] [PATCH 0/5] AXP803 regulator support for Pine64 and SoPine Chen-Yu Tsai
2017-07-20 13:12   ` icenowy at aosc.io

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=ad39c6be-4dc0-27f9-3f19-2a5afbb1f9b5@suse.de \
    --to=agraf@suse.de \
    --cc=linux-arm-kernel@lists.infradead.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).