diff mbox series

[RFC,v1,02/12] dt-bindings: PCI: mediatek-gen3: add support for mt7986

Message ID 20221017104141.7338-3-linux@fw-web.de
State Superseded
Headers show
Series [RFC,v1,01/12] dt-bindings: phy: mediatek,tphy: add support for mt7986 | expand

Commit Message

Frank Wunderlich Oct. 17, 2022, 10:41 a.m. UTC
From: Frank Wunderlich <frank-w@public-files.de>

Add compatible string for mt7986.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
mt7986a.dtsi misses clock-names which are now required since support of
MT8192/MT8188/MT8195. This change also introduces a 6th clock which is
now needed for all pcie-gen3 dts.

i do not know how to map the clocks to the names...

mediatek-pcie-gen3.yaml:

  clock-names:
    items:
      - const: pl_250m
      - const: tl_26m
      - const: tl_96m
      - const: tl_32k
      - const: peri_26m
      - enum:
          - top_133m        # for MT8192
          - peri_mem        # for MT8188/MT8195

mt7986a.dtsi:

	clocks = <&infracfg CLK_INFRA_PCIE_SEL>,
		 <&infracfg CLK_INFRA_IPCIE_CK>,
		 <&infracfg CLK_INFRA_IPCIE_PIPE_CK>,
		 <&infracfg CLK_INFRA_IPCIER_CK>,
		 <&infracfg CLK_INFRA_IPCIEB_CK>;
---
 Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
index c00be39af64e..b372c8351d9a 100644
--- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
+++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
@@ -51,6 +51,7 @@  properties:
     oneOf:
       - items:
           - enum:
+              - mediatek,mt7986-pcie
               - mediatek,mt8188-pcie
               - mediatek,mt8195-pcie
           - const: mediatek,mt8192-pcie