Skip to content

Commit 4de1cdb

Browse files
NaRaK-AK47broonie
authored andcommitted
spi: dt-bindings: brcm,bcm2835-aux-spi: Convert to dtschema
Convert bcm2835-aux-spi binding to Dt schema Signed-off-by: Karan Sanghavi <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/ZxEm-H-PjlQyXeOH@Emma Signed-off-by: Mark Brown <[email protected]>
1 parent 941584e commit 4de1cdb

File tree

2 files changed

+53
-38
lines changed

2 files changed

+53
-38
lines changed

Documentation/devicetree/bindings/spi/brcm,bcm2835-aux-spi.txt

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
};

0 commit comments

Comments
 (0)