| 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 |
|
| 7 |
title: Broadcom BCM2835 Auxiliary SPI1/2 Controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Karan Sanghavi <[email protected]> |
| 11 |
|
| 12 |
description: |
| 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 |
|
| 18 |
allOf: |
| 19 |
- $ref: spi-controller.yaml# |
| 20 |
|
| 21 |
properties: |
| 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 |
|
| 35 |
required: |
| 36 |
- compatible |
| 37 |
- reg |
| 38 |
- interrupts |
| 39 |
- clocks |
| 40 |
|
| 41 |
unevaluatedProperties: false |
| 42 |
|
| 43 |
examples: |
| 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 |
}; |