dt-bindings: mmc: Add compatible for MediaTek MT8188
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
@@ -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
Quoted 13 lines · Johnson Wang
This commit adds dt-binding documentation of mmc for MediaTek MT8188 SoC platform.
Signed-off-by Johnson Wang <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++ 1 file changed, 3 insertions(+)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0
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
Quoted 24 lines · Krzysztof Kozlowski
Quoted 15 lines · Johnson Wang
This commit adds dt-binding documentation of mmc for MediaTek MT8188 SoC
platform.Signed-off-by Johnson Wang <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++ 1 file changed, 3 insertions(+)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0Documentation/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-mmcYou 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
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.Signed-off-by Johnson Wang <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++ 1 file changed, 3 insertions(+)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0Documentation/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-mmcYou duplicate quite a lot. Use enum.
Quoted 2 lines
Best regards,
KrzysztofHi 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
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.Signed-off-by Johnson Wang <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++ 1 file changed, 3 insertions(+)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0Documentation/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-mmcYou duplicate quite a lot. Use enum.
Quoted 2 lines
Best regards,
KrzysztofHi 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-mmcQuoted 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
AngeloGioacchino Del Regno
maintainerIl 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.
Signed-off-by Johnson Wang <[email protected]>--- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 3 +++ 1 file changed, 3 insertions(+)Documentation/devicetree/bindings/mmc/mtk-sd.yaml +0
-0
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