From: Christian Marangi <ansuelsmth@gmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Felix Fietkau <nbd@nbd.name>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5] dt-bindings: clock: airoha: Document support for AN7583 clock
Date: Wed, 28 May 2025 10:54:56 +0200 [thread overview]
Message-ID: <6836cf62.5d0a0220.35d0aa.2025@mx.google.com> (raw)
In-Reply-To: <f9aebfb8-6312-45db-be12-94580ad412cb@kernel.org>
On Wed, May 28, 2025 at 09:30:37AM +0200, Krzysztof Kozlowski wrote:
> On 28/05/2025 02:49, Christian Marangi wrote:
> > - if:
> > properties:
> > compatible:
> > @@ -75,6 +78,17 @@ allOf:
> > reg:
> > maxItems: 1
> >
> > + required:
> > + - reg
> > +
> > + - if:
> > + properties:
> > + compatible:
> > + const: airoha,an7583-clock
> > + then:
> > + properties:
> > + reg: false
>
>
> No resources here, so this should be part of parent node.
>
Ok hope you can help here. This is another case of "MFD" thing.
I was with the idea that it was O.K. to use this with very different
devices. (current scenario Clock controller and MDIO controller)
The node structure I had in mind was
system-controller@1fa20000 {
compatible = "airoha,an7583-scu", "syscon", "simple-mfd";
reg = <0x0 0x1fb00000 0x0 0x970>;
scuclk: scuclk {
compatible = "airoha,an7583-clock";
#clock-cells = <1>;
#reset-cells = <1>;
};
mdio {
compatible = "airoha,an7583-mdio";
#address-cells = <1>;
#size-cells = <0>;
mdio_0: bus@0 {
reg = <0>;
resets = <&scuclk AN7583_MDIO0>;
};
mdio_1: bus@1 {
reg = <1>;
resets = <&scuclk AN7583_MDIO1>;
};
};
};
But you want
system-controller@1fa20000 {
compatible = "airoha,an7583-scu", "syscon";
reg = <0x0 0x1fb00000 0x0 0x970>;
#clock-cells = <1>;
#reset-cells = <1>;
mdio_0: bus@0 {
reg = <0>;
resets = <&scuclk AN7583_MDIO0>;
};
mdio_1: bus@1 {
reg = <1>;
resets = <&scuclk AN7583_MDIO1>;
};
};
Again sorry if this question keeps coming around and I can totally
understand if you are getting annoyed by this. The reason I always ask
this is because it's a total PAIN to implement this with the driver
structure due to the old "simple-mfd" model.
(as again putting everything in a single node conflicts with the OF
principle of autoprobing stuff with compatible property)
--
Ansuel
next prev parent reply other threads:[~2025-05-28 8:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-28 0:49 [PATCH 0/5] clk: add support for Airoha AN7583 clock Christian Marangi
2025-05-28 0:49 ` [PATCH 1/5] clk: en7523: convert driver to regmap API Christian Marangi
2025-05-28 0:49 ` [PATCH 2/5] clk: en7523: generalize register clocks function Christian Marangi
2025-05-28 0:49 ` [PATCH 3/5] dt-bindings: reset: add binding for Airoha AN7583 SoC reset Christian Marangi
2025-05-28 7:31 ` Krzysztof Kozlowski
2025-05-28 0:49 ` [PATCH 4/5] dt-bindings: clock: airoha: Document support for AN7583 clock Christian Marangi
2025-05-28 7:30 ` Krzysztof Kozlowski
2025-05-28 8:54 ` Christian Marangi [this message]
2025-05-28 11:56 ` Krzysztof Kozlowski
2025-05-28 12:57 ` Christian Marangi
2025-05-29 9:00 ` Krzysztof Kozlowski
2025-05-30 15:26 ` Christian Marangi
2025-06-02 8:13 ` Krzysztof Kozlowski
2025-05-28 0:49 ` [PATCH 5/5] clk: en7523: add support for Airoha " Christian Marangi
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=6836cf62.5d0a0220.35d0aa.2025@mx.google.com \
--to=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=nbd@nbd.name \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--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