From: Frank Li <Frank.li@nxp.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Joy Zou <joy.zou@nxp.com>,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
shawnguo@kernel.org, s.hauer@pengutronix.de,
catalin.marinas@arm.com, will@kernel.org, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, mcoquelin.stm32@gmail.com,
alexandre.torgue@foss.st.com, ulf.hansson@linaro.org,
richardcochran@gmail.com, kernel@pengutronix.de,
festevam@gmail.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-pm@vger.kernel.or, ye.li@nxp.com, ping.bai@nxp.com,
aisheng.dong@nxp.com
Subject: Re: [PATCH v6 2/9] dt-bindings: soc: imx-blk-ctrl: add i.MX91 blk-ctrl compatible
Date: Tue, 24 Jun 2025 10:51:04 -0400 [thread overview]
Message-ID: <aFq7WJ3Fqe9p0EhA@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <urgfsmkl25woqy5emucfkqs52qu624po6rd532hpusg3fdnyg3@s5iwmhnfsi26>
On Tue, Jun 24, 2025 at 09:28:43AM +0200, Krzysztof Kozlowski wrote:
> On Mon, Jun 23, 2025 at 05:57:25PM +0800, Joy Zou wrote:
> > Add new compatible string "fsl,imx91-media-blk-ctrl" for i.MX91,
> > which has different input clocks compared to i.MX93. Update the
> > clock-names list and handle it in the if-else branch accordingly.
> >
> > Keep the same restriction for the existed compatible strings.
> >
> > Signed-off-by: Joy Zou <joy.zou@nxp.com>
> > ---
> > Changes for v5:
> > 1. modify the imx93-blk-ctrl binding for imx91 support.
>
> This is just vague. Anything can be "modify". Why are you doing this?
> What are you doing here?
>
> > ---
> > .../soc/imx/fsl,imx93-media-blk-ctrl.yaml | 55 +++++++++++++++----
> > 1 file changed, 43 insertions(+), 12 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml
> > index b3554e7f9e76..db5ee65f8eb8 100644
> > --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml
> > +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml
> > @@ -18,7 +18,9 @@ description:
> > properties:
> > compatible:
> > items:
> > - - const: fsl,imx93-media-blk-ctrl
> > + - enum:
> > + - fsl,imx91-media-blk-ctrl
> > + - fsl,imx93-media-blk-ctrl
> > - const: syscon
> >
> > reg:
> > @@ -31,21 +33,50 @@ properties:
> > maxItems: 1
> >
> > clocks:
> > + minItems: 8
> > maxItems: 10
> >
> > clock-names:
> > - items:
> > - - const: apb
> > - - const: axi
> > - - const: nic
> > - - const: disp
> > - - const: cam
> > - - const: pxp
> > - - const: lcdif
> > - - const: isi
> > - - const: csi
> > - - const: dsi
> > + minItems: 8
> > + maxItems: 10
> >
> > +allOf:
> > + - if:
> > + properties:
> > + compatible:
> > + contains:
> > + const: fsl,imx93-media-blk-ctrl
> > + then:
> > + properties:
>
> Missing constraints for clocks
>
> > + clock-names:
> > + items:
> > + - const: apb
> > + - const: axi
> > + - const: nic
> > + - const: disp
> > + - const: cam
> > + - const: pxp
> > + - const: lcdif
> > + - const: isi
> > + - const: csi
> > + - const: dsi
>
> Keep list in comon part.
>
> > + - if:
> > + properties:
> > + compatible:
> > + contains:
> > + const: fsl,imx91-media-blk-ctrl
>
> This should be before if: for imx93. 91 < 93
>
> > + then:
> > + properties:
>
> Why imx91 now has 10 clocks?
>
> v6 and this has basic issues. The quality of NXP patches decreases :/
>
> > + clock-names:
> > + items:
> > + - const: apb
> > + - const: axi
> > + - const: nic
> > + - const: disp
> > + - const: cam
> > + - const: lcdif
> > + - const: isi
> > + - const: csi
>
> No, look at other bindings how they share clock lists.
Sorry, this method is what I suggested. becuase there are pxp between cam
and lcdif, can't use simple minItems/maxItems to limit list.
If put two lists at top, clock-names list have to dupliate at both top and
if-else branch.
If there are better solution, please point me which file have good method
to share two totally difference list.
Frank
>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2025-06-24 17:13 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-23 9:57 [PATCH v6 0/9] Add i.MX91 platform support Joy Zou
2025-06-23 9:57 ` [PATCH v6 1/9] dt-bindings: arm: fsl: add i.MX91 11x11 evk board Joy Zou
2025-06-23 9:57 ` [PATCH v6 2/9] dt-bindings: soc: imx-blk-ctrl: add i.MX91 blk-ctrl compatible Joy Zou
2025-06-23 14:51 ` Frank Li
2025-06-24 7:28 ` Krzysztof Kozlowski
2025-06-24 14:51 ` Frank Li [this message]
2025-06-24 15:39 ` Krzysztof Kozlowski
2025-06-24 19:08 ` Frank Li
2025-06-25 6:10 ` Krzysztof Kozlowski
2025-06-23 9:57 ` [PATCH v6 3/9] arm64: dts: freescale: rename imx93.dtsi to imx91_93_common.dtsi and modify them Joy Zou
2025-06-23 9:57 ` [PATCH v6 4/9] arm64: dts: imx91: add i.MX91 dtsi support Joy Zou
2025-06-23 9:57 ` [PATCH v6 5/9] arm64: dts: freescale: add i.MX91 11x11 EVK basic support Joy Zou
2025-06-23 14:57 ` Frank Li
2025-06-23 18:17 ` Andrew Lunn
2025-06-23 9:57 ` [PATCH v6 6/9] arm64: dts: freescale: move aliases from imx91_93_common.dtsi to board dts Joy Zou
2025-06-23 15:10 ` Frank Li
2025-06-23 9:57 ` [PATCH v6 7/9] arm64: defconfig: enable i.MX91 pinctrl Joy Zou
2025-06-23 9:57 ` [PATCH v6 8/9] pmdomain: imx93-blk-ctrl: mask DSI and PXP PD domain register on i.MX91 Joy Zou
2025-06-23 12:56 ` Fabio Estevam
2025-06-23 9:57 ` [PATCH v6 9/9] net: stmmac: imx: add i.MX91 support Joy Zou
2025-06-24 7:29 ` [PATCH v6 0/9] Add i.MX91 platform support Krzysztof Kozlowski
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=aFq7WJ3Fqe9p0EhA@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=aisheng.dong@nxp.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=joy.zou@nxp.com \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.or \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=ping.bai@nxp.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=will@kernel.org \
--cc=ye.li@nxp.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