1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spi/loongson,ls2k-spi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Loongson SPI controller
8
9maintainers:
10  - Yinbo Zhu <zhuyinbo@loongson.cn>
11
12allOf:
13  - $ref: /schemas/spi/spi-controller.yaml#
14
15properties:
16  compatible:
17    oneOf:
18      - enum:
19          - loongson,ls2k1000-spi
20      - items:
21          - enum:
22              - loongson,ls2k0500-spi
23          - const: loongson,ls2k1000-spi
24
25  reg:
26    maxItems: 1
27
28  clocks:
29    maxItems: 1
30
31required:
32  - compatible
33  - reg
34  - clocks
35
36unevaluatedProperties: false
37
38examples:
39  - |
40    spi0: spi@1fff0220{
41        compatible = "loongson,ls2k1000-spi";
42        reg = <0x1fff0220 0x10>;
43        clocks = <&clk 17>;
44        #address-cells = <1>;
45        #size-cells = <0>;
46    };
47