dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only
authorFei Shao <fshao@chromium.org>
Wed, 25 Sep 2024 10:57:46 +0000 (18:57 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 2 Oct 2024 20:29:34 +0000 (15:29 -0500)
commit5efa23224bf573d4bceb51bc646dd67b6ccb83b5
tree3b692ac93010d3793baba0adbc518094864a2a40
parent9852d85ec9d492ebef56dc5f229416c925758edc
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: c6abd0eadec6 ("dt-bindings: PCI: mediatek-gen3: Add support for Airoha EN7581")
Link: https://lore.kernel.org/r/20240925110044.3678055-3-fshao@chromium.org
Signed-off-by: Fei Shao <fshao@chromium.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml