Skip to content

Commit 94f572f

Browse files
author
Myron Stowe
committed
dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only
JIRA: https://issues.redhat.com/browse/RHEL-67693 Upstream Status: 5efa232 commit 5efa232 Author: Fei Shao <[email protected]> Date: Wed Sep 25 18:57:46 2024 +0800 dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only In MediaTek PCIe gen3 bindings, "clocks" accepts a range of 1-6 clocks across all SoCs. But in practice, each SoC requires a particular number of clocks as defined in "clock-names", and the length of "clocks" and "clock-names" can be inconsistent with current bindings. For example: - MT8188, MT8192 and MT8195 all require 6 clocks, while the bindings accept 4-6 clocks. - MT7986 requires 4 clocks, while the bindings accept 4-6 clocks. Update minItems and maxItems properties for individual SoCs as needed to only accept the correct number of clocks. Fixes: c6abd0e ("dt-bindings: PCI: mediatek-gen3: Add support for Airoha EN7581") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Fei Shao <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Myron Stowe <[email protected]>
1 parent e5d5034 commit 94f572f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ allOf:
149149
then:
150150
properties:
151151
clocks:
152-
minItems: 4
152+
minItems: 6
153153

154154
clock-names:
155155
items:
@@ -178,7 +178,7 @@ allOf:
178178
then:
179179
properties:
180180
clocks:
181-
minItems: 4
181+
minItems: 6
182182

183183
clock-names:
184184
items:
@@ -207,6 +207,7 @@ allOf:
207207
properties:
208208
clocks:
209209
minItems: 4
210+
maxItems: 4
210211

211212
clock-names:
212213
items:

0 commit comments

Comments
 (0)