dt-bindings: PCI: mediatek-gen3: Add support for MT8195
Subsystems (5)
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
@@ -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
Rob Herring
maintainerQuoted 12 lines · Jianjun Wang
MT8195 is an ARM platform SoC which has the same PCIe IP with MT8192.
Signed-off-by Jianjun Wang <[email protected]>--- 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
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
-0reg: maxItems: 1Signature · 1 line
2.18.0
Rob Herring
maintainerQuoted 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
Signed-off-by Jianjun Wang <[email protected]>--- 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@@ -48,7 +48,9 @@ allOf: properties: compatible: - const: mediatek,mt8192-pcie + oneOf: + - const: mediatek,mt8192-pcie + - const: mediatek,mt8195-pcie reg: maxItems: 1Signature · 1 line
2.18.0
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
Signed-off-by Jianjun Wang <[email protected]>--- Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0
gen3.yamlb/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
index742206dbd965..dcebb1036207100644Documentation/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: 1Signature · 1 line
2.18.0_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek