summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml
blob: 94da68792194abe164c4389cdd12a2dc2868e3a4 (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
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/spi/brcm,bcm2835-spi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Broadcom BCM2835 SPI0 controller

maintainers:
  - Florian Fainelli <florian.fainelli@broadcom.com>
  - Kanak Shilledar <kanakshilledar111@protonmail.com>
  - Stefan Wahren <wahrenst@gmx.net>

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

properties:
  compatible:
    enum:
      - brcm,bcm2835-spi
      - brcm,bcm2711-spi
      - brcm,bcm7211-spi

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks

unevaluatedProperties: false

examples:
  - |
    spi@20204000 {
        compatible = "brcm,bcm2835-spi";
        reg = <0x7e204000 0x1000>;
        interrupts = <2 22>;
        clocks = <&clk_spi>;
        #address-cells = <1>;
        #size-cells = <0>;
    };