From: Sean Wang <sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
To: Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2 4/4] arm64: dts: mt7622: group clock DT nodes into separate DT file
Date: Tue, 30 May 2017 09:16:32 +0800 [thread overview]
Message-ID: <1496106992.3570.15.camel@mtkswgap22> (raw)
In-Reply-To: <4a57ab2f-03b0-3c68-23cd-ed8253978ed7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On Mon, 2017-05-29 at 17:09 +0200, Matthias Brugger wrote:
>
> On 29/05/17 14:56, sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org wrote:
> > From: Sean Wang <sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> >
> > For more readability and maintenance, all the clock related DT
> > nodes for mt7622 SoC are grouped into a separate DT file. And
> > currently mt7622-clock.dtsi only includes the fixed clock for
> > uart0 and the oscillator which would be extended after MT7622
> > clock driver is introduced.
> >
>
> We've not done this for any other Mediatek SoC at the moment.
> Do you expect the m7622 to have more clock nodes then for example mt7623?
clocks on mt7622 has fewer nodes than mt7623
> Apart from that this clock nodes are just dummy clocks which should
> disappear as soon as the clock driver got merged.
> Last point, you break bisectability if add a clock node in a patch
> *after* the consumer was added.
>
> So please add the clock nodes to the dtsi as we did up to now. If in the
> future we see that mt7622 has a whole bunch of clock nodes, we can still
> abstract them in an external dtsi file.
>
Okay, I will merge back them into the main dtsi files for those reasons
in the next version.
Appreciate all your reviewing and suggestions
Sean
> Thanks,
> Matthias
>
> > Signed-off-by: Sean Wang <sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> > ---
> > arch/arm64/boot/dts/mediatek/mt7622-clock.dtsi | 20 ++++++++++++++++++++
> > arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 +
> > 2 files changed, 21 insertions(+)
> > create mode 100644 arch/arm64/boot/dts/mediatek/mt7622-clock.dtsi
> >
> > diff --git a/arch/arm64/boot/dts/mediatek/mt7622-clock.dtsi b/arch/arm64/boot/dts/mediatek/mt7622-clock.dtsi
> > new file mode 100644
> > index 0000000..264421d
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/mediatek/mt7622-clock.dtsi
> > @@ -0,0 +1,20 @@
> > +/*
> > + * Copyright (c) 2017 MediaTek Inc.
> > + * Author: Sean Wang <sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> > + *
> > + * SPDX-License-Identifier: (GPL-2.0 OR MIT)
> > + */
> > +/ {
> > + clk25m: oscillator@0 {
> > + compatible = "fixed-clock";
> > + #clock-cells = <0>;
> > + clock-frequency = <25000000>;
> > + clock-output-names = "clkxtal";
> > + };
> > +
> > + uart_clk: dummy26m {
> > + compatible = "fixed-clock";
> > + #clock-cells = <0>;
> > + clock-frequency = <25000000>;
> > + };
> > +};
> > diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> > index 3a729d9..3768c28 100644
> > --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> > +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> > @@ -8,6 +8,7 @@
> >
> > #include <dt-bindings/interrupt-controller/irq.h>
> > #include <dt-bindings/interrupt-controller/arm-gic.h>
> > +#include "mt7622-clock.dtsi"
> >
> > / {
> > compatible = "mediatek,mt7622";
> >
--
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
prev parent reply other threads:[~2017-05-30 1:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-29 12:56 [PATCH v2 0/4] Add Basic SoC support for MT7622 sean.wang-NuS5LvNUpcJWk0Htik3J/w
2017-05-29 12:56 ` [PATCH v2 1/4] dt-bindings: mediatek: add bindings for MediaTek MT7622 SoC sean.wang
[not found] ` <9b4e201f8f9ad11be98f22ccc3022b4e5d76a681.1496061587.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-05-29 15:11 ` Matthias Brugger
[not found] ` <cf8fabea-8eb1-6a28-0e8e-cfc3087f5fb5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-29 15:11 ` Matthias Brugger
2017-05-29 12:56 ` [PATCH v2 2/4] arm64: dts: mt7622: add basic nodes to the mt7622.dtsi file sean.wang
2017-05-29 12:56 ` [PATCH v2 3/4] arm64: dts: mt7622: add dts file for MT7622 reference board variant 1 sean.wang
[not found] ` <83844be0407c4db170235c52f013b20a729e3382.1496061587.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-05-29 19:09 ` kbuild test robot
2017-05-29 12:56 ` [PATCH v2 4/4] arm64: dts: mt7622: group clock DT nodes into separate DT file sean.wang
[not found] ` <f5fa4a4dd78bf92500a517b0582c745569aa8ff2.1496061587.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-05-29 15:09 ` Matthias Brugger
[not found] ` <4a57ab2f-03b0-3c68-23cd-ed8253978ed7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-30 1:16 ` Sean Wang [this message]
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=1496106992.3570.15.camel@mtkswgap22 \
--to=sean.wang-nus5lvnupcjwk0htik3j/w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@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).