Skip to content

Commit 5483ef0

Browse files
khayash1broonie
authored andcommitted
spi: Convert UniPhier SPI controller to json-schema
Convert UniPhier SPI controller binding to DT schema format. Signed-off-by: Kunihiko Hayashi <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 4dd227a commit 5483ef0

File tree

2 files changed

+57
-28
lines changed

2 files changed

+57
-28
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/socionext,uniphier-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Socionext UniPhier SPI controller
8+
9+
description: |
10+
UniPhier SoCs have SCSSI which supports SPI single channel.
11+
12+
maintainers:
13+
- Kunihiko Hayashi <[email protected]>
14+
- Keiji Hayashibara <[email protected]>
15+
16+
allOf:
17+
- $ref: spi-controller.yaml#
18+
19+
properties:
20+
"#address-cells": true
21+
"#size-cells": true
22+
23+
compatible:
24+
const: socionext,uniphier-scssi
25+
26+
reg:
27+
maxItems: 1
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
clocks:
33+
maxItems: 1
34+
35+
resets:
36+
maxItems: 1
37+
38+
required:
39+
- compatible
40+
- reg
41+
- interrupts
42+
- clocks
43+
- resets
44+
- "#address-cells"
45+
- "#size-cells"
46+
47+
examples:
48+
- |
49+
spi0: spi@54006000 {
50+
compatible = "socionext,uniphier-scssi";
51+
reg = <0x54006000 0x100>;
52+
#address-cells = <1>;
53+
#size-cells = <0>;
54+
interrupts = <0 39 4>;
55+
clocks = <&peri_clk 11>;
56+
resets = <&peri_rst 11>;
57+
};

Documentation/devicetree/bindings/spi/spi-uniphier.txt

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

0 commit comments

Comments
 (0)