[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aFlp/Pyp0DOgZPS1@lizhi-Precision-Tower-5810>
Date: Mon, 23 Jun 2025 10:51:40 -0400
From: Frank Li <Frank.li@....com>
To: Joy Zou <joy.zou@....com>
Cc: robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org,
shawnguo@...nel.org, s.hauer@...gutronix.de,
catalin.marinas@....com, will@...nel.org, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, mcoquelin.stm32@...il.com,
alexandre.torgue@...s.st.com, ulf.hansson@...aro.org,
richardcochran@...il.com, kernel@...gutronix.de, festevam@...il.com,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
imx@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
netdev@...r.kernel.org, linux-stm32@...md-mailman.stormreply.com,
linux-pm@...r.kernel.or, ye.li@....com, ping.bai@....com,
aisheng.dong@....com
Subject: Re: [PATCH v6 2/9] dt-bindings: soc: imx-blk-ctrl: add i.MX91
blk-ctrl compatible
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@....com>
Reviewed-by: Frank Li <Frank.Li@....com>
> ---
> Changes for v5:
> 1. modify the imx93-blk-ctrl binding for imx91 support.
> ---
> .../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:
> + clock-names:
> + items:
> + - const: apb
> + - const: axi
> + - const: nic
> + - const: disp
> + - const: cam
> + - const: pxp
> + - const: lcdif
> + - const: isi
> + - const: csi
> + - const: dsi
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: fsl,imx91-media-blk-ctrl
> + then:
> + properties:
> + clock-names:
> + items:
> + - const: apb
> + - const: axi
> + - const: nic
> + - const: disp
> + - const: cam
> + - const: lcdif
> + - const: isi
> + - const: csi
> required:
> - compatible
> - reg
> --
> 2.37.1
>
Powered by blists - more mailing lists