Skip to contentSkip to conversation

dt-bindings: mmc: Add compatible for MediaTek MT8188

PATCH Superseded Johnson Wang 3 participants 6 messages Jul 7, 2022 – Jul 11, 2022

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: mmc: Add compatible for MediaTek MT8188

This commit adds dt-binding documentation of mmc for MediaTek MT8188 SoC platform.

---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +3 -0
index 2a2e9fa8c188..3fbf33ad4f7c 100644
@@ -32,6 +32,9 @@ properties:
       - items:
           - const: mediatek,mt8186-mmc
           - const: mediatek,mt8183-mmc
+      - items:
+          - const: mediatek,mt8188-mmc
+          - const: mediatek,mt8183-mmc
       - items:
           - const: mediatek,mt8192-mmc
           - const: mediatek,mt8183-mmc
Signature · 1 line
2.18.0
#1 lore raw
Quoted 13 lines · Johnson Wang

This commit adds dt-binding documentation of mmc for MediaTek MT8188 SoC platform.

---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0 -0
index 2a2e9fa8c188..3fbf33ad4f7c 100644

Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 36

Quoted 5 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2 -0
@@ -32,6 +32,9 @@ properties:
       - items:
           - const: mediatek,mt8186-mmc
           - const: mediatek,mt8183-mmc
+      - items:
+          - const: mediatek,mt8188-mmc

You duplicate quite a lot. Use enum.

Best regards,
Krzysztof

#2 lore raw
Quoted 24 lines · Krzysztof Kozlowski
Quoted 15 lines · Johnson Wang

This commit adds dt-binding documentation of mmc for MediaTek MT8188 SoC
platform.

---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0 -0
index 2a2e9fa8c188..3fbf33ad4f7c 100644

Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 36

Quoted 5 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2 -0
@@ -32,6 +32,9 @@ properties:
       - items:
           - const: mediatek,mt8186-mmc
           - const: mediatek,mt8183-mmc
+      - items:
+          - const: mediatek,mt8188-mmc

You duplicate quite a lot. Use enum.

Quoted 2 lines

Best regards,
Krzysztof

Hi Krzysztof,

Thanks for you suggestion.

I will use 'enum' to place this compatible strings.

Just like this:
- items:
- enum:
- mediatek,mt8186-mmc
- mediatek,mt8188-mmc
- mediatek,mt8192-mmc
- mediatek,mt8195-mmc
- const: mediatek,mt8183-mmc

Moreover, it seems that missing an "items:" between oneOf and enum in the compatible property.
Is my understanding wrong?

BRs,
Johnson Wang

#5 lore raw
In reply to Johnson Wang

Il 07/07/22 07:47, Johnson Wang ha scritto:

Quoted 14 lines

This commit adds dt-binding documentation of mmc for MediaTek MT8188 SoC platform.

---
  Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++
  1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0 -0
index 2a2e9fa8c188..3fbf33ad4f7c 100644

Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 40

Quoted 9 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +3 -0
@@ -32,6 +32,9 @@ properties:
        - items:
            - const: mediatek,mt8186-mmc
            - const: mediatek,mt8183-mmc
+      - items:
+          - const: mediatek,mt8188-mmc
+          - const: mediatek,mt8183-mmc
        - items:
            - const: mediatek,mt8192-mmc
            - const: mediatek,mt8183-mmc

Hello Johnson,

if I'm not wrong, this should be...
(check with dt_binding_check!)

properties:
compatible:
oneOf:
- enum:
- mediatek,mt2701-mmc
- .... everything else ....
- items:
- enum:
- mediatek,mt8186-mmc
- ... the others ...
- const: mediatek.mt8183-mmc

Cheers,
Angelo

#3 lore raw
In reply to Johnson Wang
Quoted 43 lines · Johnson Wang
Quoted 24 lines · Krzysztof Kozlowski
Quoted 15 lines · Johnson Wang

This commit adds dt-binding documentation of mmc for MediaTek MT8188 SoC
platform.

---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0 -0
index 2a2e9fa8c188..3fbf33ad4f7c 100644

Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 36

Quoted 5 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2 -0
@@ -32,6 +32,9 @@ properties:
       - items:
           - const: mediatek,mt8186-mmc
           - const: mediatek,mt8183-mmc
+      - items:
+          - const: mediatek,mt8188-mmc

You duplicate quite a lot. Use enum.

Quoted 2 lines

Best regards,
Krzysztof

Hi Krzysztof,

Thanks for you suggestion.

I will use 'enum' to place this compatible strings.

Just like this:
- items:
- enum:
- mediatek,mt8186-mmc
- mediatek,mt8188-mmc
- mediatek,mt8192-mmc
- mediatek,mt8195-mmc
- const: mediatek,mt8183-mmc

Quoted 3 lines

Moreover, it seems that missing an "items:" between oneOf and enum in the compatible property.
Is my understanding wrong?

I did not propose to remove items, so where are they missing? Not sure what you are asking about...

Best regards,
Krzysztof

#4 lore raw
Quoted 49 lines · Krzysztof Kozlowski
Quoted 43 lines · Johnson Wang
Quoted 24 lines · Krzysztof Kozlowski
Quoted 15 lines · Johnson Wang

This commit adds dt-binding documentation of mmc for MediaTek MT8188 SoC
platform.

---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0 -0
index 2a2e9fa8c188..3fbf33ad4f7c 100644

Documentation/devicetree/bindings/mmc/mtk-sd.yaml properties: · line 36

Quoted 5 lines
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +2 -0
@@ -32,6 +32,9 @@ properties:
       - items:
           - const: mediatek,mt8186-mmc
           - const: mediatek,mt8183-mmc
+      - items:
+          - const: mediatek,mt8188-mmc

You duplicate quite a lot. Use enum.

Quoted 2 lines

Best regards,
Krzysztof

Hi Krzysztof,

Thanks for you suggestion.

I will use 'enum' to place this compatible strings.

Just like this:
- items:
- enum:
- mediatek,mt8186-mmc
- mediatek,mt8188-mmc
- mediatek,mt8192-mmc
- mediatek,mt8195-mmc
- const: mediatek,mt8183-mmc

Quoted 4 lines

Moreover, it seems that missing an "items:" between oneOf and enum in
the compatible property.
Is my understanding wrong?

Quoted 6 lines

I did not propose to remove items, so where are they missing? Not sure
what you are asking about...

Best regards,
Krzysztof

Hi Krzysztof,

Sorry for the confusion.
That was my misunderstanding. Please ignore it...

BRs,
Johnson Wang