From: Andrew Jeffery <andrew@codeconstruct.com.au>
To: Ryan Chen <ryan_chen@aspeedtech.com>, Rob Herring <robh@kernel.org>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"linux-aspeed@lists.ozlabs.org" <linux-aspeed@lists.ozlabs.org>,
Stephen Boyd <sboyd@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Lee Jones <lee@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Date: Tue, 20 Aug 2024 14:31:07 +0930 [thread overview]
Message-ID: <94efc2d4ff280a112b869124fc9d7e35ac031596.camel@codeconstruct.com.au> (raw)
In-Reply-To: <OS8PR06MB754148E915F6E6014F490583F28D2@OS8PR06MB7541.apcprd06.prod.outlook.com>
On Tue, 2024-08-20 at 01:52 +0000, Ryan Chen wrote:
> > Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for
> > AST2700
> >
> > On Mon, 2024-08-19 at 03:05 +0000, Ryan Chen wrote:
> > > > > Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support
> > > > > for
> > > > > AST2700
> > > > >
> > > > > On Wed, 2024-08-14 at 06:35 +0000, Ryan Chen wrote:
> > > > > > >
> > > > > > > Didn't I see in another patch one die is cpu and one is
> > > > > > > io?
> > > > > > > Use
> > > > > > > those in the compatible rather than 0 and 1 if so.
> > > > > > >
> > > > > > Sorry, I want to align with our datasheet description.
> > > > > > It will but scu0 and scu1 register setting.
> > > > >
> > > > > Can we document that relationship in the binding? Rob's
> > > > > suggestion
> > > > > seems more descriptive.
> > > > Hello,
> > > > Do you want me document it in yaml file or just in
> > > > commit
> > > > message?
> > >
> > > Hello Rob, Andrew,
> > > I will add in yaml file in description. Like following.
> > >
> > > description:
> > > The Aspeed System Control Unit manages the global behaviour of
> > > the
> > > SoC,
> > > configuring elements such as clocks, pinmux, and reset.
> > > + In AST2700, it has two soc combination. Each soc include its
> > > own
> > > scu register control.
> > > + ast2700-scu0 for soc0, ast2700-scu1 for soc1.
> > >
> > > Is that will be better way ?
> >
> > What Rob is suggesting is to add the compatibles "aspeed,ast2700-
> > scu-
> > cpu" and "aspeed,ast2700-scu-io", and then in the description say
> > something like:
> >
> > The AST2700 integrates both a CPU and an IO die, each with their
> > own
> > SCU. The "aspeed,ast2700-scu-cpu" and "aspeed,ast2700-scu-io"
> > compatibles correspond to SCU0 and SCU1 respectively.
> >
> Hello Andrew,
> Sorry, for correspond for ast2700 datasheet, the description
> is scu0/scu1.
> System Control Unit #0 (SCU0)/ System Control Unit #1 (SCU1)
> why not we
> Keep align with datasheet statement?
Well, IMO we have an opportunity do better in the compatibles. I expect
we should take advantage of it. As some support for Rob's suggestion,
the datasheet chapter for SCU1 calls it "SCUIO" in the first sentence
of the description. Further, there are only two SCUs, and I don't think
the mapping of "cpu" to 0 and "io" to 1 is too difficult to keep track
of, certainly not if it's written in the binding documentation (as long
as these names are accurate!). The argument works both ways but I don't
think it's contentious that using the indexes is _less_ descriptive.
That said, this is just my semi-informed opinion. It's up to you to
decide what names you're going to push for. Rob's suggestion seems
reasonable to me though.
Andrew
next prev parent reply other threads:[~2024-08-20 5:01 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-08 7:59 [PATCH 0/4] Add support for AST2700 clk driver Ryan Chen
2024-08-08 7:59 ` [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700 Ryan Chen
2024-08-08 10:14 ` Krzysztof Kozlowski
2024-08-09 5:55 ` Ryan Chen
2024-08-09 6:02 ` Krzysztof Kozlowski
2024-08-09 6:10 ` Ryan Chen
2024-08-12 6:26 ` Ryan Chen
2024-08-12 6:34 ` Krzysztof Kozlowski
2024-08-13 19:14 ` Rob Herring
2024-08-14 6:35 ` Ryan Chen
2024-08-15 0:26 ` Andrew Jeffery
2024-08-15 1:43 ` Ryan Chen
2024-08-15 1:56 ` Andrew Jeffery
2024-08-19 3:05 ` Ryan Chen
2024-08-20 0:46 ` Andrew Jeffery
2024-08-20 1:52 ` Ryan Chen
2024-08-20 5:01 ` Andrew Jeffery [this message]
2024-08-20 6:51 ` Ryan Chen
2024-08-08 7:59 ` [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings Ryan Chen
2024-08-08 8:35 ` Christophe JAILLET
2024-08-09 5:42 ` Ryan Chen
2024-08-09 6:07 ` Krzysztof Kozlowski
2024-08-09 6:12 ` Ryan Chen
2024-08-08 10:16 ` Krzysztof Kozlowski
2024-08-09 6:06 ` Ryan Chen
2024-08-09 6:08 ` Krzysztof Kozlowski
2024-08-08 7:59 ` [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings Ryan Chen
2024-08-08 8:39 ` Christophe JAILLET
2024-08-09 5:47 ` Ryan Chen
2024-08-09 6:06 ` Krzysztof Kozlowski
2024-08-09 6:25 ` Ryan Chen
2024-08-09 7:31 ` Krzysztof Kozlowski
2024-08-12 7:26 ` Ryan Chen
2024-08-12 8:16 ` Krzysztof Kozlowski
2024-08-12 8:22 ` Ryan Chen
2024-08-12 8:30 ` Krzysztof Kozlowski
2024-08-12 8:54 ` Ryan Chen
2024-08-12 9:39 ` Ryan Chen
2024-08-12 9:54 ` Krzysztof Kozlowski
2024-08-13 1:53 ` Ryan Chen
2024-08-13 5:55 ` Krzysztof Kozlowski
2024-08-19 5:55 ` Ryan Chen
2024-08-19 6:01 ` Krzysztof Kozlowski
2024-08-19 6:42 ` Ryan Chen
2024-08-19 8:45 ` Krzysztof Kozlowski
2024-08-19 9:31 ` Ryan Chen
2024-08-08 10:17 ` Krzysztof Kozlowski
2024-08-08 7:59 ` [PATCH 4/4] " Ryan Chen
2024-08-08 10:18 ` Krzysztof Kozlowski
2024-08-19 5:57 ` Ryan Chen
2024-08-19 6:01 ` Krzysztof Kozlowski
2024-08-19 7:12 ` Ryan Chen
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=94efc2d4ff280a112b869124fc9d7e35ac031596.camel@codeconstruct.com.au \
--to=andrew@codeconstruct.com.au \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=ryan_chen@aspeedtech.com \
--cc=sboyd@kernel.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).