Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: soc: imx-blk-ctrl: add i.MX91 blk-ctrl compatible

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.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Joy Zou <joy.zou@nxp.com>
Link: https://lore.kernel.org/r/20250806114119.1948624-3-joy.zou@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Joy Zou and committed by
Ulf Hansson
91d7789f 94838f38

+47 -12
+47 -12
Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml
··· 18 18 properties: 19 19 compatible: 20 20 items: 21 - - const: fsl,imx93-media-blk-ctrl 21 + - enum: 22 + - fsl,imx91-media-blk-ctrl 23 + - fsl,imx93-media-blk-ctrl 22 24 - const: syscon 23 25 24 26 reg: ··· 33 31 maxItems: 1 34 32 35 33 clocks: 34 + minItems: 8 36 35 maxItems: 10 37 36 38 37 clock-names: 39 - items: 40 - - const: apb 41 - - const: axi 42 - - const: nic 43 - - const: disp 44 - - const: cam 45 - - const: pxp 46 - - const: lcdif 47 - - const: isi 48 - - const: csi 49 - - const: dsi 38 + minItems: 8 39 + maxItems: 10 50 40 41 + allOf: 42 + - if: 43 + properties: 44 + compatible: 45 + contains: 46 + const: fsl,imx91-media-blk-ctrl 47 + then: 48 + properties: 49 + clocks: 50 + maxItems: 8 51 + clock-names: 52 + items: 53 + - const: apb 54 + - const: axi 55 + - const: nic 56 + - const: disp 57 + - const: cam 58 + - const: lcdif 59 + - const: isi 60 + - const: csi 61 + - if: 62 + properties: 63 + compatible: 64 + contains: 65 + const: fsl,imx93-media-blk-ctrl 66 + then: 67 + properties: 68 + clocks: 69 + minItems: 10 70 + clock-names: 71 + items: 72 + - const: apb 73 + - const: axi 74 + - const: nic 75 + - const: disp 76 + - const: cam 77 + - const: pxp 78 + - const: lcdif 79 + - const: isi 80 + - const: csi 81 + - const: dsi 51 82 required: 52 83 - compatible 53 84 - reg