xref: /linux/Documentation/devicetree/bindings/spi/brcm,bcm2835-aux-spi.yaml (revision e7f0a3a6f7339af55f1ca2c27131739d75569c08)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spi/brcm,bcm2835-aux-spi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom BCM2835 Auxiliary SPI1/2 Controller
8
9maintainers:
10  - Karan Sanghavi <karansanghvi98@gmail.com>
11
12description:
13  The BCM2835 contains two forms of SPI master controller. One is known simply
14  as SPI0, and the other as the "Universal SPI Master," which is part of the
15  auxiliary block. This binding applies to the SPI1 and SPI2 auxiliary
16  controllers.
17
18allOf:
19  - $ref: spi-controller.yaml#
20
21properties:
22  compatible:
23    enum:
24      - brcm,bcm2835-aux-spi
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  clocks:
33    maxItems: 1
34
35required:
36  - compatible
37  - reg
38  - interrupts
39  - clocks
40
41unevaluatedProperties: false
42
43examples:
44  - |
45    #include <dt-bindings/clock/bcm2835-aux.h>
46    spi@7e215080 {
47        compatible = "brcm,bcm2835-aux-spi";
48        reg = <0x7e215080 0x40>;
49        interrupts = <1 29>;
50        clocks = <&aux_clocks BCM2835_AUX_CLOCK_SPI1>;
51        #address-cells = <1>;
52        #size-cells = <0>;
53    };
54