summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorBinbin Zhou <zhoubinbin@loongson.cn>2024-01-17 07:43:00 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2024-01-17 07:43:00 +0300
commitec6b36edf0cea06d651ef14092921a339b4eea2f (patch)
tree096930d924ffd1de23d5eb6aa15c586c4fc0f49f /Documentation
parent8e07e0e3964ca4e23ce7b68e2096fe660a888942 (diff)
downloadlinux-ec6b36edf0cea06d651ef14092921a339b4eea2f.tar.xz
dt-bindings: loongarch: Add Loongson SoC boards compatibles
Add Loongson SoC boards binding with DT schema format using json-schema. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/loongarch/loongson.yaml34
1 files changed, 34 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/loongarch/loongson.yaml b/Documentation/devicetree/bindings/loongarch/loongson.yaml
new file mode 100644
index 000000000000..e1a4a97b7576
--- /dev/null
+++ b/Documentation/devicetree/bindings/loongarch/loongson.yaml
@@ -0,0 +1,34 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/loongarch/loongson.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson SoC-based boards
+
+maintainers:
+ - Binbin Zhou <zhoubinbin@loongson.cn>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: Loongson-2K0500 processor based boards
+ items:
+ - const: loongson,ls2k0500-ref
+ - const: loongson,ls2k0500
+
+ - description: Loongson-2K1000 processor based boards
+ items:
+ - const: loongson,ls2k1000-ref
+ - const: loongson,ls2k1000
+
+ - description: Loongson-2K2000 processor based boards
+ items:
+ - const: loongson,ls2k2000-ref
+ - const: loongson,ls2k2000
+
+additionalProperties: true
+
+...