dt-bindings: gpu: mali-midgard: Tidy up conversion to YAML

Instead of grouping alphabetically by third-party vendor, leading to
one-element enums, start sorting by Mali model number, as done for
Utgard.

This already allows us to de-duplicate two "arm,mali-t760" sections and
will make it easier to add new vendor compatibles.

Fixes: 553cedf600 ("dt-bindings: Convert Arm Mali Midgard GPU to DT schema")
Fixes: 1be5b54d26 ("dt-bindings: gpu: mali-midgard: Add samsung exynos5250 compatible")
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
[robh: don't resort everything to avoid conflicts]
Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
Andreas Färber 2019-11-04 02:39:26 +01:00 committed by Rob Herring
parent 2fa0a53059
commit 59b3d30f68
1 changed files with 5 additions and 8 deletions

View File

@ -14,6 +14,10 @@ properties:
pattern: '^gpu@[a-f0-9]+$' pattern: '^gpu@[a-f0-9]+$'
compatible: compatible:
oneOf: oneOf:
- items:
- enum:
- samsung,exynos5250-mali
- const: arm,mali-t604
- items: - items:
- enum: - enum:
- allwinner,sun50i-h6-mali - allwinner,sun50i-h6-mali
@ -25,19 +29,12 @@ properties:
- items: - items:
- enum: - enum:
- rockchip,rk3288-mali - rockchip,rk3288-mali
- samsung,exynos5433-mali
- const: arm,mali-t760 - const: arm,mali-t760
- items: - items:
- enum: - enum:
- rockchip,rk3399-mali - rockchip,rk3399-mali
- const: arm,mali-t860 - const: arm,mali-t860
- items:
- enum:
- samsung,exynos5250-mali
- const: arm,mali-t604
- items:
- enum:
- samsung,exynos5433-mali
- const: arm,mali-t760
# "arm,mali-t624" # "arm,mali-t624"
# "arm,mali-t628" # "arm,mali-t628"