Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/20230414083311.12197-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Rob Herring
112d5560 a31a6c24

+41 -54
+3 -4
Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml
··· 21 21 properties: 22 22 compatible: 23 23 oneOf: 24 - - items: 25 - - const: mediatek,mt8183-disp-ccorr 26 - - items: 27 - - const: mediatek,mt8192-disp-ccorr 24 + - enum: 25 + - mediatek,mt8183-disp-ccorr 26 + - mediatek,mt8192-disp-ccorr 28 27 - items: 29 28 - enum: 30 29 - mediatek,mt8188-disp-ccorr
+4 -6
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml
··· 22 22 properties: 23 23 compatible: 24 24 oneOf: 25 - - items: 26 - - const: mediatek,mt2701-disp-color 27 - - items: 28 - - const: mediatek,mt8167-disp-color 29 - - items: 30 - - const: mediatek,mt8173-disp-color 25 + - enum: 26 + - mediatek,mt2701-disp-color 27 + - mediatek,mt8167-disp-color 28 + - mediatek,mt8173-disp-color 31 29 - items: 32 30 - enum: 33 31 - mediatek,mt7623-disp-color
+2 -2
Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml
··· 22 22 properties: 23 23 compatible: 24 24 oneOf: 25 - - items: 26 - - const: mediatek,mt8183-disp-dither 25 + - enum: 26 + - mediatek,mt8183-disp-dither 27 27 - items: 28 28 - enum: 29 29 - mediatek,mt8186-disp-dither
+2 -2
Documentation/devicetree/bindings/display/mediatek/mediatek,dsc.yaml
··· 20 20 properties: 21 21 compatible: 22 22 oneOf: 23 - - items: 24 - - const: mediatek,mt8195-disp-dsc 23 + - enum: 24 + - mediatek,mt8195-disp-dsc 25 25 26 26 reg: 27 27 maxItems: 1
+3 -4
Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml
··· 21 21 properties: 22 22 compatible: 23 23 oneOf: 24 - - items: 25 - - const: mediatek,mt8173-disp-gamma 26 - - items: 27 - - const: mediatek,mt8183-disp-gamma 24 + - enum: 25 + - mediatek,mt8173-disp-gamma 26 + - mediatek,mt8183-disp-gamma 28 27 - items: 29 28 - enum: 30 29 - mediatek,mt8186-disp-gamma
+3 -4
Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml
··· 21 21 properties: 22 22 compatible: 23 23 oneOf: 24 - - items: 25 - - const: mediatek,mt8173-disp-merge 26 - - items: 27 - - const: mediatek,mt8195-disp-merge 24 + - enum: 25 + - mediatek,mt8173-disp-merge 26 + - mediatek,mt8195-disp-merge 28 27 29 28 reg: 30 29 maxItems: 1
+3 -4
Documentation/devicetree/bindings/display/mediatek/mediatek,od.yaml
··· 21 21 properties: 22 22 compatible: 23 23 oneOf: 24 - - items: 25 - - const: mediatek,mt2712-disp-od 26 - - items: 27 - - const: mediatek,mt8173-disp-od 24 + - enum: 25 + - mediatek,mt2712-disp-od 26 + - mediatek,mt8173-disp-od 28 27 29 28 reg: 30 29 maxItems: 1
+3 -4
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl-2l.yaml
··· 21 21 properties: 22 22 compatible: 23 23 oneOf: 24 - - items: 25 - - const: mediatek,mt8183-disp-ovl-2l 26 - - items: 27 - - const: mediatek,mt8192-disp-ovl-2l 24 + - enum: 25 + - mediatek,mt8183-disp-ovl-2l 26 + - mediatek,mt8192-disp-ovl-2l 28 27 - items: 29 28 - enum: 30 29 - mediatek,mt8186-disp-ovl-2l
+5 -8
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml
··· 21 21 properties: 22 22 compatible: 23 23 oneOf: 24 - - items: 25 - - const: mediatek,mt2701-disp-ovl 26 - - items: 27 - - const: mediatek,mt8173-disp-ovl 28 - - items: 29 - - const: mediatek,mt8183-disp-ovl 30 - - items: 31 - - const: mediatek,mt8192-disp-ovl 24 + - enum: 25 + - mediatek,mt2701-disp-ovl 26 + - mediatek,mt8173-disp-ovl 27 + - mediatek,mt8183-disp-ovl 28 + - mediatek,mt8192-disp-ovl 32 29 - items: 33 30 - enum: 34 31 - mediatek,mt7623-disp-ovl
+2 -2
Documentation/devicetree/bindings/display/mediatek/mediatek,postmask.yaml
··· 21 21 properties: 22 22 compatible: 23 23 oneOf: 24 - - items: 25 - - const: mediatek,mt8192-disp-postmask 24 + - enum: 25 + - mediatek,mt8192-disp-postmask 26 26 - items: 27 27 - enum: 28 28 - mediatek,mt8186-disp-postmask
+5 -8
Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml
··· 23 23 properties: 24 24 compatible: 25 25 oneOf: 26 - - items: 27 - - const: mediatek,mt2701-disp-rdma 28 - - items: 29 - - const: mediatek,mt8173-disp-rdma 30 - - items: 31 - - const: mediatek,mt8183-disp-rdma 32 - - items: 33 - - const: mediatek,mt8195-disp-rdma 26 + - enum: 27 + - mediatek,mt2701-disp-rdma 28 + - mediatek,mt8173-disp-rdma 29 + - mediatek,mt8183-disp-rdma 30 + - mediatek,mt8195-disp-rdma 34 31 - items: 35 32 - enum: 36 33 - mediatek,mt8188-disp-rdma
+2 -2
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml
··· 21 21 properties: 22 22 compatible: 23 23 oneOf: 24 - - items: 25 - - const: mediatek,mt8173-disp-split 24 + - enum: 25 + - mediatek,mt8173-disp-split 26 26 27 27 reg: 28 28 maxItems: 1
+2 -2
Documentation/devicetree/bindings/display/mediatek/mediatek,ufoe.yaml
··· 22 22 properties: 23 23 compatible: 24 24 oneOf: 25 - - items: 26 - - const: mediatek,mt8173-disp-ufoe 25 + - enum: 26 + - mediatek,mt8173-disp-ufoe 27 27 28 28 reg: 29 29 maxItems: 1
+2 -2
Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml
··· 21 21 properties: 22 22 compatible: 23 23 oneOf: 24 - - items: 25 - - const: mediatek,mt8173-disp-wdma 24 + - enum: 25 + - mediatek,mt8173-disp-wdma 26 26 27 27 reg: 28 28 maxItems: 1