Skip to contentSkip to conversation

Change compatiable string for MT8195 mmc host IP

PATCH New Wenbin Mei 3 participants 4 messages Jun 15, 2021 – Jun 29, 2021

Subsystems (4)
lore
Share & tools
lore

Wenbin Mei

author
#0 lore raw

PATCH 1/1 Change compatiable string for MT8195 mmc host IP

Wenbin Mei (1):
dt-bindings: mmc: change compatiable string for MT8195 mmc host IP

 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 2 ++
 1 file changed, 2 insertions(+)

--
1.9.1

author
#1 lore raw

PATCH 1/1 dt-bindings: mmc: change compatiable string for MT8195 mmc host IP

MT8195 mmc host IP is compatible with MT8183, and currently it shows:
properties:
compatible:
oneOf:
...
- items:
- const: mediatek,mt8192-mmc
- const: mediatek,mt8195-mmc
- const: mediatek,mt8183-mmc
which means the compatible string in the device tree would be:

	compatible = "mediatek,mt8192-mmc", "mediatek,mt8195-mmc",
		     "mediatek,mt8183-mmc";

The bindings is wrong and that isn't the result we want. instead we want:
properties:
compatible:
oneOf:
...
- items:
- const: mediatek,mt8192-mmc
- const: mediatek,mt8183-mmc
- items:
- const: mediatek,mt8195-mmc
- const: mediatek,mt8183-mmc
which would give us:

	compatible = "mediatek,mt8192-mmc", "mediatek,mt8183-mmc";
and
	compatible = "mediatek,mt8195-mmc", "mediatek,mt8183-mmc";
Fixes eb9cb7227e5c (dt-bindings: mmc: Add compatible for Mediatek MT8195)
---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2 -0
index 8648d48..adaba90 100644
@@ -31,6 +31,8 @@ properties:
           - const: mediatek,mt2701-mmc
       - items:
           - const: mediatek,mt8192-mmc
+          - const: mediatek,mt8183-mmc
+      - items:
           - const: mediatek,mt8195-mmc
           - const: mediatek,mt8183-mmc
 
Signature · 1 line
1.9.1
maintainer Acked-by on v1 1/1
#2 lore raw

Re: [PATCH v1] dt-bindings: mmc: change compatiable string for MT8195 mmc host IP

Quoted 29 lines · Wenbin Mei

MT8195 mmc host IP is compatible with MT8183, and currently it shows:
properties:
compatible:
oneOf:
...
- items:
- const: mediatek,mt8192-mmc
- const: mediatek,mt8195-mmc
- const: mediatek,mt8183-mmc
which means the compatible string in the device tree would be:

	compatible = "mediatek,mt8192-mmc", "mediatek,mt8195-mmc",
		     "mediatek,mt8183-mmc";

The bindings is wrong and that isn't the result we want. instead we want:
properties:
compatible:
oneOf:
...
- items:
- const: mediatek,mt8192-mmc
- const: mediatek,mt8183-mmc
- items:
- const: mediatek,mt8195-mmc
- const: mediatek,mt8183-mmc
which would give us:

	compatible = "mediatek,mt8192-mmc", "mediatek,mt8183-mmc";
and
	compatible = "mediatek,mt8195-mmc", "mediatek,mt8183-mmc";
Quoted 6 lines
Fixes eb9cb7227e5c (dt-bindings: mmc: Add compatible for Mediatek MT8195)
---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 2 ++
 1 file changed, 2 insertions(+)
#3 lore raw

Re: [PATCH v1] dt-bindings: mmc: change compatiable string for MT8195 mmc host IP

In reply to Wenbin Mei
Quoted 26 lines · Wenbin Mei

MT8195 mmc host IP is compatible with MT8183, and currently it shows:
properties:
compatible:
oneOf:
...
- items:
- const: mediatek,mt8192-mmc
- const: mediatek,mt8195-mmc
- const: mediatek,mt8183-mmc
which means the compatible string in the device tree would be:

        compatible = "mediatek,mt8192-mmc", "mediatek,mt8195-mmc",
                     "mediatek,mt8183-mmc";

The bindings is wrong and that isn't the result we want. instead we want:
properties:
compatible:
oneOf:
...
- items:
- const: mediatek,mt8192-mmc
- const: mediatek,mt8183-mmc
- items:
- const: mediatek,mt8195-mmc
- const: mediatek,mt8183-mmc
which would give us:

Quoted 6 lines
        compatible = "mediatek,mt8192-mmc", "mediatek,mt8183-mmc";
and
        compatible = "mediatek,mt8195-mmc", "mediatek,mt8183-mmc";
Fixes eb9cb7227e5c (dt-bindings: mmc: Add compatible for Mediatek MT8195)

Applied for fixes, thanks!

Kind regards
Uffe

Quoted 20 lines
---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2 -1
index 8648d48..adaba90 100644
@@ -31,6 +31,8 @@ properties:
           - const: mediatek,mt2701-mmc
       - items:
           - const: mediatek,mt8192-mmc
+          - const: mediatek,mt8183-mmc
+      - items:
           - const: mediatek,mt8195-mmc
           - const: mediatek,mt8183-mmc
 
--

1.9.1