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

dt-bindings: rtc: sun6i: Clean up repetition

- Use "enum" for compatibles instead of several "const" alternatives.
- Merge the H6 clock-output-names minItems/maxItems constraint into the
identical block above.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220203021736.13434-2-samuel@sholland.org

authored by

Samuel Holland and committed by
Alexandre Belloni
f720002d c8fa17d9

+9 -19
+9 -19
Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml
··· 16 16 17 17 compatible: 18 18 oneOf: 19 - - const: allwinner,sun6i-a31-rtc 20 - - const: allwinner,sun8i-a23-rtc 21 - - const: allwinner,sun8i-h3-rtc 22 - - const: allwinner,sun8i-r40-rtc 23 - - const: allwinner,sun8i-v3-rtc 24 - - const: allwinner,sun50i-h5-rtc 19 + - enum: 20 + - allwinner,sun6i-a31-rtc 21 + - allwinner,sun8i-a23-rtc 22 + - allwinner,sun8i-h3-rtc 23 + - allwinner,sun8i-r40-rtc 24 + - allwinner,sun8i-v3-rtc 25 + - allwinner,sun50i-h5-rtc 26 + - allwinner,sun50i-h6-rtc 25 27 - items: 26 28 - const: allwinner,sun50i-a64-rtc 27 29 - const: allwinner,sun8i-h3-rtc 28 - - const: allwinner,sun50i-h6-rtc 29 30 30 31 reg: 31 32 maxItems: 1 ··· 86 85 enum: 87 86 - allwinner,sun8i-h3-rtc 88 87 - allwinner,sun50i-h5-rtc 89 - 90 - then: 91 - properties: 92 - clock-output-names: 93 - minItems: 3 94 - maxItems: 3 95 - 96 - - if: 97 - properties: 98 - compatible: 99 - contains: 100 - const: allwinner,sun50i-h6-rtc 88 + - allwinner,sun50i-h6-rtc 101 89 102 90 then: 103 91 properties: