xref: /linux/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml (revision 3b8ab4da3405d07ddfe434f17f9014740b30a19c)
1a708078eSLi-hao Kuo# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2a708078eSLi-hao Kuo# Copyright (C) Sunplus Co., Ltd. 2021
3a708078eSLi-hao Kuo%YAML 1.2
4a708078eSLi-hao Kuo---
5a708078eSLi-hao Kuo$id: http://devicetree.org/schemas/spi/spi-sunplus-sp7021.yaml#
6a708078eSLi-hao Kuo$schema: http://devicetree.org/meta-schemas/core.yaml#
7a708078eSLi-hao Kuo
8a708078eSLi-hao Kuotitle: Sunplus sp7021 SPI controller
9a708078eSLi-hao Kuo
10a708078eSLi-hao KuoallOf:
11a708078eSLi-hao Kuo  - $ref: "spi-controller.yaml"
12a708078eSLi-hao Kuo
13a708078eSLi-hao Kuomaintainers:
14a708078eSLi-hao Kuo  - Li-hao Kuo <lhjeff911@gmail.com>
15a708078eSLi-hao Kuo
16a708078eSLi-hao Kuoproperties:
17a708078eSLi-hao Kuo  compatible:
18a708078eSLi-hao Kuo    enum:
19a708078eSLi-hao Kuo      - sunplus,sp7021-spi
20a708078eSLi-hao Kuo
21a708078eSLi-hao Kuo  reg:
22a708078eSLi-hao Kuo    items:
234e28b222SDavid Heidelberg      - description: the SPI master registers
244e28b222SDavid Heidelberg      - description: the SPI slave registers
25a708078eSLi-hao Kuo
26a708078eSLi-hao Kuo  reg-names:
27a708078eSLi-hao Kuo    items:
28a708078eSLi-hao Kuo      - const: master
29a708078eSLi-hao Kuo      - const: slave
30a708078eSLi-hao Kuo
31a708078eSLi-hao Kuo  interrupt-names:
32a708078eSLi-hao Kuo    items:
33a708078eSLi-hao Kuo      - const: dma_w
34a708078eSLi-hao Kuo      - const: master_risc
35a708078eSLi-hao Kuo      - const: slave_risc
36a708078eSLi-hao Kuo
37a708078eSLi-hao Kuo  interrupts:
38a708078eSLi-hao Kuo    minItems: 3
39a708078eSLi-hao Kuo
40a708078eSLi-hao Kuo  clocks:
41a708078eSLi-hao Kuo    maxItems: 1
42a708078eSLi-hao Kuo
43a708078eSLi-hao Kuo  resets:
44a708078eSLi-hao Kuo    maxItems: 1
45a708078eSLi-hao Kuo
46a708078eSLi-hao Kuorequired:
47a708078eSLi-hao Kuo  - compatible
48a708078eSLi-hao Kuo  - reg
49a708078eSLi-hao Kuo  - reg-names
50a708078eSLi-hao Kuo  - interrupts
51a708078eSLi-hao Kuo  - interrupt-names
52a708078eSLi-hao Kuo  - clocks
53a708078eSLi-hao Kuo  - clocks-names
54a708078eSLi-hao Kuo  - resets
55a708078eSLi-hao Kuo  - pinctrl-names
56a708078eSLi-hao Kuo  - pinctrl-0
57a708078eSLi-hao Kuo
58a708078eSLi-hao KuounevaluatedProperties: false
59a708078eSLi-hao Kuo
60a708078eSLi-hao Kuoexamples:
61a708078eSLi-hao Kuo  - |
62a708078eSLi-hao Kuo    #include <dt-bindings/interrupt-controller/irq.h>
63a708078eSLi-hao Kuo    spi@9C002D80 {
64a708078eSLi-hao Kuo        compatible = "sunplus,sp7021-spi";
65a708078eSLi-hao Kuo        reg = <0x9C002D80 0x80>, <0x9C002E00 0x80>;
66a708078eSLi-hao Kuo        reg-names = "master", "slave";
67a708078eSLi-hao Kuo        interrupt-parent = <&intc>;
68a708078eSLi-hao Kuo        interrupt-names = "dma_w",
69a708078eSLi-hao Kuo                          "master_risc",
70a708078eSLi-hao Kuo                          "slave_risc";
71a708078eSLi-hao Kuo        interrupts = <144 IRQ_TYPE_LEVEL_HIGH>,
72a708078eSLi-hao Kuo                     <146 IRQ_TYPE_LEVEL_HIGH>,
73a708078eSLi-hao Kuo                     <145 IRQ_TYPE_LEVEL_HIGH>;
74*3b8ab4daSLi-hao Kuo        clocks = <&clkc 0x32>;
75*3b8ab4daSLi-hao Kuo        resets = <&rstc 0x22>;
76a708078eSLi-hao Kuo        pinctrl-names = "default";
77a708078eSLi-hao Kuo        pinctrl-0 = <&pins_spi0>;
78a708078eSLi-hao Kuo    };
79a708078eSLi-hao Kuo...
80