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