Commit 112d5560 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring

dt-bindings: display: mediatek: simplify compatibles syntax

Lists (items) with one item should be just enum because it is shorter,
simpler and does not confuse, if one wants to add new entry with a
fallback.  Convert all of them to enums.  OTOH, leave unused "oneOf"
entries in anticipation of further growth of the entire binding.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/20230414083311.12197-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent a31a6c24
...@@ -21,10 +21,9 @@ description: | ...@@ -21,10 +21,9 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8183-disp-ccorr - mediatek,mt8183-disp-ccorr
- items: - mediatek,mt8192-disp-ccorr
- const: mediatek,mt8192-disp-ccorr
- items: - items:
- enum: - enum:
- mediatek,mt8188-disp-ccorr - mediatek,mt8188-disp-ccorr
......
...@@ -22,12 +22,10 @@ description: | ...@@ -22,12 +22,10 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt2701-disp-color - mediatek,mt2701-disp-color
- items: - mediatek,mt8167-disp-color
- const: mediatek,mt8167-disp-color - mediatek,mt8173-disp-color
- items:
- const: mediatek,mt8173-disp-color
- items: - items:
- enum: - enum:
- mediatek,mt7623-disp-color - mediatek,mt7623-disp-color
......
...@@ -22,8 +22,8 @@ description: | ...@@ -22,8 +22,8 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8183-disp-dither - mediatek,mt8183-disp-dither
- items: - items:
- enum: - enum:
- mediatek,mt8186-disp-dither - mediatek,mt8186-disp-dither
......
...@@ -20,8 +20,8 @@ description: | ...@@ -20,8 +20,8 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8195-disp-dsc - mediatek,mt8195-disp-dsc
reg: reg:
maxItems: 1 maxItems: 1
......
...@@ -21,10 +21,9 @@ description: | ...@@ -21,10 +21,9 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8173-disp-gamma - mediatek,mt8173-disp-gamma
- items: - mediatek,mt8183-disp-gamma
- const: mediatek,mt8183-disp-gamma
- items: - items:
- enum: - enum:
- mediatek,mt8186-disp-gamma - mediatek,mt8186-disp-gamma
......
...@@ -21,10 +21,9 @@ description: | ...@@ -21,10 +21,9 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8173-disp-merge - mediatek,mt8173-disp-merge
- items: - mediatek,mt8195-disp-merge
- const: mediatek,mt8195-disp-merge
reg: reg:
maxItems: 1 maxItems: 1
......
...@@ -21,10 +21,9 @@ description: | ...@@ -21,10 +21,9 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt2712-disp-od - mediatek,mt2712-disp-od
- items: - mediatek,mt8173-disp-od
- const: mediatek,mt8173-disp-od
reg: reg:
maxItems: 1 maxItems: 1
......
...@@ -21,10 +21,9 @@ description: | ...@@ -21,10 +21,9 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8183-disp-ovl-2l - mediatek,mt8183-disp-ovl-2l
- items: - mediatek,mt8192-disp-ovl-2l
- const: mediatek,mt8192-disp-ovl-2l
- items: - items:
- enum: - enum:
- mediatek,mt8186-disp-ovl-2l - mediatek,mt8186-disp-ovl-2l
......
...@@ -21,14 +21,11 @@ description: | ...@@ -21,14 +21,11 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt2701-disp-ovl - mediatek,mt2701-disp-ovl
- items: - mediatek,mt8173-disp-ovl
- const: mediatek,mt8173-disp-ovl - mediatek,mt8183-disp-ovl
- items: - mediatek,mt8192-disp-ovl
- const: mediatek,mt8183-disp-ovl
- items:
- const: mediatek,mt8192-disp-ovl
- items: - items:
- enum: - enum:
- mediatek,mt7623-disp-ovl - mediatek,mt7623-disp-ovl
......
...@@ -21,8 +21,8 @@ description: | ...@@ -21,8 +21,8 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8192-disp-postmask - mediatek,mt8192-disp-postmask
- items: - items:
- enum: - enum:
- mediatek,mt8186-disp-postmask - mediatek,mt8186-disp-postmask
......
...@@ -23,14 +23,11 @@ description: | ...@@ -23,14 +23,11 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt2701-disp-rdma - mediatek,mt2701-disp-rdma
- items: - mediatek,mt8173-disp-rdma
- const: mediatek,mt8173-disp-rdma - mediatek,mt8183-disp-rdma
- items: - mediatek,mt8195-disp-rdma
- const: mediatek,mt8183-disp-rdma
- items:
- const: mediatek,mt8195-disp-rdma
- items: - items:
- enum: - enum:
- mediatek,mt8188-disp-rdma - mediatek,mt8188-disp-rdma
......
...@@ -21,8 +21,8 @@ description: | ...@@ -21,8 +21,8 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8173-disp-split - mediatek,mt8173-disp-split
reg: reg:
maxItems: 1 maxItems: 1
......
...@@ -22,8 +22,8 @@ description: | ...@@ -22,8 +22,8 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8173-disp-ufoe - mediatek,mt8173-disp-ufoe
reg: reg:
maxItems: 1 maxItems: 1
......
...@@ -21,8 +21,8 @@ description: | ...@@ -21,8 +21,8 @@ description: |
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - enum:
- const: mediatek,mt8173-disp-wdma - mediatek,mt8173-disp-wdma
reg: reg:
maxItems: 1 maxItems: 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment