summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/spi/ralink,mt7621-spi.yaml
blob: 22879f7dcb775e5bcaa46b7d30540ca3f7f3532c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/spi/ralink,mt7621-spi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

maintainers:
  - Sergio Paracuellos <sergio.paracuellos@gmail.com>

title: Mediatek MT7621/MT7628 SPI controller

allOf:
  - $ref: /schemas/spi/spi-controller.yaml#

properties:
  compatible:
    const: ralink,mt7621-spi

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    const: spi

  resets:
    maxItems: 1

  reset-names:
    const: spi

required:
  - compatible
  - reg
  - resets
  - "#address-cells"
  - "#size-cells"

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/mt7621-clk.h>
    #include <dt-bindings/reset/mt7621-reset.h>

    spi@b00 {
      compatible = "ralink,mt7621-spi";
      reg = <0xb00 0x100>;
      clocks = <&sysc MT7621_CLK_SPI>;
      clock-names = "spi";
      resets = <&sysc MT7621_RST_SPI>;
      reset-names = "spi";

      #address-cells = <1>;
      #size-cells = <0>;

      pinctrl-names = "default";
      pinctrl-0 = <&spi_pins>;
    };