Skip to contentSkip to conversation

dt-bindings: PCI: mediatek-gen3: Add support for MT8195

PATCH Superseded Jianjun Wang 2 participants 4 messages Aug 20, 2021 – Aug 25, 2021

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: PCI: mediatek-gen3: Add support for MT8195

MT8195 is an ARM platform SoC which has the same PCIe IP with MT8192.

---
 Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +3 -1
index 742206dbd965..dcebb1036207 100644
@@ -48,7 +48,9 @@ allOf:
 
 properties:
   compatible:
-    const: mediatek,mt8192-pcie
+    oneOf:
+      - const: mediatek,mt8192-pcie
+      - const: mediatek,mt8195-pcie
 
   reg:
     maxItems: 1
Signature · 1 line
2.18.0
maintainer
#1 lore raw
Quoted 12 lines · Jianjun Wang

MT8195 is an ARM platform SoC which has the same PCIe IP with MT8192.

---
 Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +0 -0
index 742206dbd965..dcebb1036207 100644

Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml allOf: · line 53

Quoted 7 lines
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +3 -1
@@ -48,7 +48,9 @@ allOf:
 
 properties:
   compatible:
-    const: mediatek,mt8192-pcie
+    oneOf:
+      - const: mediatek,mt8192-pcie
+      - const: mediatek,mt8195-pcie

Use 'enum' instead of oneOf+const.

Quoted 7 lines
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +0 -0
   reg:
     maxItems: 1
Signature · 1 line
2.18.0
maintainer
#2 lore raw
In reply to Jianjun Wang
Quoted 1 line · Jianjun Wang

MT8195 is an ARM platform SoC which has the same PCIe IP with MT8192.

If it is the same, then 8192 should be a fallback compatible. 'The same' means the current driver for 8192 will work unchanged.

Quoted 25 lines
---
 Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +3 -1
index 742206dbd965..dcebb1036207 100644
@@ -48,7 +48,9 @@ allOf:
 
 properties:
   compatible:
-    const: mediatek,mt8192-pcie
+    oneOf:
+      - const: mediatek,mt8192-pcie
+      - const: mediatek,mt8195-pcie
 
   reg:
     maxItems: 1
Signature · 1 line
2.18.0
#3 lore raw
Quoted 7 lines · Rob Herring
Quoted 2 lines · Jianjun Wang

MT8195 is an ARM platform SoC which has the same PCIe IP with MT8192.

If it is the same, then 8192 should be a fallback compatible. 'The same'
means the current driver for 8192 will work unchanged.

Hi Rob,

Thanks for your review.

Yes, the controller driver works fine in the MT8195 platform without any change, and we would like to use the compatible string in device tree as follows:

"mediatek,mt8195-pcie", "mediatek,mt8192-pcie"

Thanks.

Quoted 34 lines
Quoted 29 lines
---
 Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 4
+++-
 1 file changed, 3 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie- gen3.yaml
index 742206dbd965..dcebb1036207 100644

Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +3 -1
@@ -48,7 +48,9 @@ allOf:
 
 properties:
   compatible:
-    const: mediatek,mt8192-pcie
+    oneOf:
+      - const: mediatek,mt8192-pcie
+      - const: mediatek,mt8195-pcie
 
   reg:
     maxItems: 1
Signature · 1 line
2.18.0

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek