Skip to content

Commit 91d7789

Browse files
1991JoyzouUlf Hansson
authored andcommitted
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>
1 parent 94838f3 commit 91d7789

1 file changed

Lines changed: 47 additions & 12 deletions

File tree

Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ description:
1818
properties:
1919
compatible:
2020
items:
21-
- const: fsl,imx93-media-blk-ctrl
21+
- enum:
22+
- fsl,imx91-media-blk-ctrl
23+
- fsl,imx93-media-blk-ctrl
2224
- const: syscon
2325

2426
reg:
@@ -31,21 +33,54 @@ properties:
3133
maxItems: 1
3234

3335
clocks:
36+
minItems: 8
3437
maxItems: 10
3538

3639
clock-names:
37-
items:
38-
- const: apb
39-
- const: axi
40-
- const: nic
41-
- const: disp
42-
- const: cam
43-
- const: pxp
44-
- const: lcdif
45-
- const: isi
46-
- const: csi
47-
- const: dsi
40+
minItems: 8
41+
maxItems: 10
4842

43+
allOf:
44+
- if:
45+
properties:
46+
compatible:
47+
contains:
48+
const: fsl,imx91-media-blk-ctrl
49+
then:
50+
properties:
51+
clocks:
52+
maxItems: 8
53+
clock-names:
54+
items:
55+
- const: apb
56+
- const: axi
57+
- const: nic
58+
- const: disp
59+
- const: cam
60+
- const: lcdif
61+
- const: isi
62+
- const: csi
63+
- if:
64+
properties:
65+
compatible:
66+
contains:
67+
const: fsl,imx93-media-blk-ctrl
68+
then:
69+
properties:
70+
clocks:
71+
minItems: 10
72+
clock-names:
73+
items:
74+
- const: apb
75+
- const: axi
76+
- const: nic
77+
- const: disp
78+
- const: cam
79+
- const: pxp
80+
- const: lcdif
81+
- const: isi
82+
- const: csi
83+
- const: dsi
4984
required:
5085
- compatible
5186
- reg

0 commit comments

Comments
 (0)