devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joel Stanley <joel@jms.id.au>
To: Arnd Bergmann <arnd@arndb.de>, Andrew Jeffery <andrew@aj.id.au>
Cc: "Rob Herring" <robh+dt@kernel.org>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Patrick Venture" <venture@google.com>,
	"Xo Wang" <xow@google.com>, "Lei YU" <mine260309@gmail.com>,
	"Cédric Le Goater" <clg@kaod.org>,
	"Benjamin Herrenschmidt" <benh@kernel.crashing.org>,
	"Jeremy Kerr" <jk@ozlabs.org>, DTML <devicetree@vger.kernel.org>,
	"Linux ARM" <linux-arm-kernel@lists.infradead.org>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	linux-aspeed@lists.ozlabs.org
Subject: Re: [PATCH 05/20] ARM: dts: aspeed: Add proper clock references
Date: Mon, 11 Dec 2017 21:14:23 +1030	[thread overview]
Message-ID: <CACPK8XeTtiejw1SyDHNn5w6be-FqCQFuT5PT-yeRho2Hhs2K8g@mail.gmail.com> (raw)
In-Reply-To: <CAK8P3a10wjXvFpE5zbwCfQNC-UiRCzKE+9-ENg-Sr577ZCF+Xw@mail.gmail.com>

On Mon, Dec 11, 2017 at 6:39 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Mon, Dec 11, 2017 at 6:06 AM, Joel Stanley <joel@jms.id.au> wrote:
>> The existing device trees use fixed-clocks in order to boot without a
>> clk driver. The newly added clk driver provides proper clock support,
>> including gating, so we move the device trees over to properly request
>> clocks.
>>
>> Signed-off-by: Joel Stanley <joel@jms.id.au>
>
> Can you clarify here whether this will break running old kernels with
> new DT files or vice versa, and why this is ok here?

This device tree will break kernels that do not have the clk patches
applied (no clocksource, as we don't know the speed of the APB clock.
You can boot if you pass a lpj value on the command line, but won't
have a uart).

Older device trees running with the newer kernel will function as well
as pre-4.16 kernels. That is, that some IP blocks (i2c, pwm/tach, adc)
will not work as the kernel lacks reset controller and clock enabling.

> I assume you have thought about it carefully, but I'd still like to document
> every time we intentionally break compatibility like this. It looks like
> you too care to merge the driver changes and the DT binding change first,
> so we don't get any bisection problems.

Thanks for calling it out. I will modify the commit message to say
that this device tree change depends on the newer driver, and it will
not boot with kernels that lack the driver.

>
> What I'm not completely clear about is the difference between the
> "aspeed,g4-scu" binding and the "aspeed,ast2400-scu" binding.
> They are listed as equal in
> Documentation/devicetree/bindings/mfd/aspeed-scu.txt, so why do you
> change it here?

The g4-scu string made it into the tree before we had decided that we
would settle on aspeed,astX000-<ip> as the format for the strings. We
list both in the docs, but I would like to deprecate the old one.

If I was doing this again, I would make sure we had the clock driver
upstream before completing the other driver. It's caused a lot of
pain. Thanks for your help getting us there.

Cheers,

Joel

  reply	other threads:[~2017-12-11 10:44 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-11  5:06 [PATCH 00/20] ARM: dts: aspeed: updates and new machines Joel Stanley
     [not found] ` <20171211050704.20621-1-joel-U3u1mxZcP9KHXe+LvDLADg@public.gmane.org>
2017-12-11  5:06   ` [PATCH 01/20] dt-bindings: clock: Add ASPEED constants Joel Stanley
     [not found]     ` <20171211050704.20621-2-joel-U3u1mxZcP9KHXe+LvDLADg@public.gmane.org>
2017-12-11  7:53       ` Arnd Bergmann
2017-12-11  5:06   ` [PATCH 06/20] ARM: dts: aspeed: Add MAC clocks Joel Stanley
2017-12-11  5:06   ` [PATCH 12/20] ARM: dts: aspeed: Remove skeleton.dtsi Joel Stanley
2017-12-11  5:06   ` [PATCH 13/20] ARM: dts: aspeed: Update license headers Joel Stanley
2017-12-11  5:06 ` [PATCH 02/20] dt-bindings: gpio: Add ASPEED constants Joel Stanley
     [not found]   ` <20171211050704.20621-3-joel-U3u1mxZcP9KHXe+LvDLADg@public.gmane.org>
2017-12-11  7:56     ` Arnd Bergmann
     [not found]       ` <CAK8P3a17iWxJVv=f+=w+4sS7zWimxMSD5+Gz9qC5ms-RrcQneg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-11 10:43         ` Joel Stanley
2017-12-11  5:06 ` [PATCH 03/20] ARM: dts: aspeed-g4: Correct VUART IRQ number Joel Stanley
     [not found]   ` <20171211050704.20621-4-joel-U3u1mxZcP9KHXe+LvDLADg@public.gmane.org>
2017-12-11  7:58     ` Arnd Bergmann
2017-12-11 10:44       ` Joel Stanley
2017-12-11 11:38         ` Arnd Bergmann
2017-12-11  5:06 ` [PATCH 04/20] ARM: dts: aspeed: Add LPC and child devices Joel Stanley
2017-12-11  5:06 ` [PATCH 05/20] ARM: dts: aspeed: Add proper clock references Joel Stanley
     [not found]   ` <20171211050704.20621-6-joel-U3u1mxZcP9KHXe+LvDLADg@public.gmane.org>
2017-12-11  8:09     ` Arnd Bergmann
2017-12-11 10:44       ` Joel Stanley [this message]
2017-12-11  5:06 ` [PATCH 07/20] ARM: dts: aspeed: Add watchdog clocks Joel Stanley
2017-12-11  5:06 ` [PATCH 08/20] ARM: dts: aspeed: Add flash controller clocks Joel Stanley
2017-12-11  5:06 ` [PATCH 09/20] ARM: dts: aspeed: Add clock phandle to GPIO Joel Stanley
2017-12-11  5:06 ` [PATCH 10/20] ARM: dts: aspeed: Add PWM and tachometer node Joel Stanley
2017-12-11  5:06 ` [PATCH 11/20] ARM: dts: aspeed: Add LPC Snoop device Joel Stanley
2017-12-11  5:06 ` [PATCH 14/20] ARM: dts: Add OpenBMC flash layout Joel Stanley
2017-12-11  5:06 ` [PATCH 15/20] ARM: dts: aspeed: Sort ASPEED entries in makefile Joel Stanley
2017-12-11  5:07 ` [PATCH 16/20] ARM: dts: aspeed: Add Witherspoon BMC machine Joel Stanley
     [not found]   ` <20171211050704.20621-17-joel-U3u1mxZcP9KHXe+LvDLADg@public.gmane.org>
2017-12-11 19:27     ` Brandon Wyman
2017-12-11  5:07 ` [PATCH 17/20] ARM: dts: aspeed: Add Ingrasys Zaius " Joel Stanley
2017-12-11  5:07 ` [PATCH 18/20] ARM: dts: aspeed: Add Qanta Q71L " Joel Stanley
2017-12-11  5:07 ` [PATCH 19/20] ARM: dts: aspeed-romulus: Update Romulus system Joel Stanley
2017-12-11  5:07 ` [PATCH 20/20] ARM: dts: aspeed-plametto: Add flash layout Joel Stanley

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=CACPK8XeTtiejw1SyDHNn5w6be-FqCQFuT5PT-yeRho2Hhs2K8g@mail.gmail.com \
    --to=joel@jms.id.au \
    --cc=andrew@aj.id.au \
    --cc=arnd@arndb.de \
    --cc=benh@kernel.crashing.org \
    --cc=clg@kaod.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jk@ozlabs.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mine260309@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=venture@google.com \
    --cc=xow@google.com \
    /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).