Skip to content

Commit 0f7a4a1

Browse files
Andre-ARMstorulf
authored andcommitted
dt-bindings: mmc: sunxi: Simplify compatible string listing
New Allwinner SoCs only occasionally update their MMC IP, leading to many pairs of compatible strings, though there are sometimes a number of them being compatible with one particular SoC. Collate the compatible string listing in the binding, to group those being compatible together. This makes the list more readable, and allows for easier addition of new SoC's MMC devices. Signed-off-by: Andre Przywara <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 75aaf6c commit 0f7a4a1

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

Documentation/devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,38 +30,30 @@ properties:
3030
- const: allwinner,sun50i-a100-emmc
3131
- const: allwinner,sun50i-a100-mmc
3232
- items:
33-
- const: allwinner,sun8i-a83t-mmc
33+
- enum:
34+
- allwinner,sun8i-a83t-mmc
35+
- allwinner,suniv-f1c100s-mmc
3436
- const: allwinner,sun7i-a20-mmc
3537
- items:
36-
- const: allwinner,sun8i-r40-emmc
38+
- enum:
39+
- allwinner,sun8i-r40-emmc
40+
- allwinner,sun50i-h5-emmc
41+
- allwinner,sun50i-h6-emmc
3742
- const: allwinner,sun50i-a64-emmc
3843
- items:
39-
- const: allwinner,sun8i-r40-mmc
44+
- enum:
45+
- allwinner,sun8i-r40-mmc
46+
- allwinner,sun50i-h5-mmc
47+
- allwinner,sun50i-h6-mmc
4048
- const: allwinner,sun50i-a64-mmc
4149
- items:
42-
- const: allwinner,sun50i-h5-emmc
43-
- const: allwinner,sun50i-a64-emmc
44-
- items:
45-
- const: allwinner,sun50i-h5-mmc
46-
- const: allwinner,sun50i-a64-mmc
47-
- items:
48-
- const: allwinner,sun50i-h6-emmc
49-
- const: allwinner,sun50i-a64-emmc
50-
- items:
51-
- const: allwinner,sun50i-h6-mmc
52-
- const: allwinner,sun50i-a64-mmc
53-
- items:
54-
- const: allwinner,sun20i-d1-emmc
55-
- const: allwinner,sun50i-a100-emmc
56-
- items:
57-
- const: allwinner,sun50i-h616-emmc
50+
- enum:
51+
- allwinner,sun20i-d1-emmc
52+
- allwinner,sun50i-h616-emmc
5853
- const: allwinner,sun50i-a100-emmc
5954
- items:
6055
- const: allwinner,sun50i-h616-mmc
6156
- const: allwinner,sun50i-a100-mmc
62-
- items:
63-
- const: allwinner,suniv-f1c100s-mmc
64-
- const: allwinner,sun7i-a20-mmc
6557

6658
reg:
6759
maxItems: 1

0 commit comments

Comments
 (0)