Skip to content

Commit f631757

Browse files
five-shbroonie
authored andcommitted
spi: dt-bindings: armada-3700: convert to dtschema
Convert txt binding of marvell armada 3700 SoC spi controller to dtschema to allow for validation. Signed-off-by: Kousik Sanagavarapu <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 4fbf4e3 commit f631757

File tree

2 files changed

+55
-25
lines changed

2 files changed

+55
-25
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/marvell,armada-3700-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell Armada 3700 SPI Controller
8+
9+
description:
10+
The SPI controller on Marvell Armada 3700 SoC.
11+
12+
maintainers:
13+
- Kousik Sanagavarapu <[email protected]>
14+
15+
allOf:
16+
- $ref: spi-controller.yaml#
17+
18+
properties:
19+
compatible:
20+
const: marvell,armada-3700-spi
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
clocks:
29+
maxItems: 1
30+
31+
num-cs:
32+
maxItems: 1
33+
34+
required:
35+
- compatible
36+
- reg
37+
- interrupts
38+
- clocks
39+
40+
unevaluatedProperties: false
41+
42+
examples:
43+
- |
44+
#include <dt-bindings/interrupt-controller/arm-gic.h>
45+
46+
spi0: spi@10600 {
47+
compatible = "marvell,armada-3700-spi";
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
reg = <0x10600 0x5d>;
51+
clocks = <&nb_perih_clk 7>;
52+
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
53+
num-cs = <4>;
54+
};
55+
...

Documentation/devicetree/bindings/spi/spi-armada-3700.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)