Skip to content

Commit 380054c

Browse files
AaronDotarndb
authored andcommitted
dt-bindings: soc: loongson,ls2k-pmc: Use fallbacks for ls2k-pmc compatible
The Loongson-2K series chips (ls2k0500/ls2k1000/ls2k2000) share the same PM system controller, using ls2k0500 compatible as fallback for the others. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 8e4a28f commit 380054c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-pmc.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ maintainers:
1111

1212
properties:
1313
compatible:
14-
items:
15-
- enum:
16-
- loongson,ls2k0500-pmc
17-
- loongson,ls2k1000-pmc
18-
- const: syscon
14+
oneOf:
15+
- items:
16+
- const: loongson,ls2k0500-pmc
17+
- const: syscon
18+
- items:
19+
- enum:
20+
- loongson,ls2k1000-pmc
21+
- loongson,ls2k2000-pmc
22+
- const: loongson,ls2k0500-pmc
23+
- const: syscon
1924

2025
reg:
2126
maxItems: 1
@@ -44,7 +49,7 @@ examples:
4449
#include <dt-bindings/interrupt-controller/irq.h>
4550
4651
power-management@1fe27000 {
47-
compatible = "loongson,ls2k1000-pmc", "syscon";
52+
compatible = "loongson,ls2k1000-pmc", "loongson,ls2k0500-pmc", "syscon";
4853
reg = <0x1fe27000 0x58>;
4954
interrupt-parent = <&liointc1>;
5055
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;

0 commit comments

Comments
 (0)