Skip to content

Commit 7ec844a

Browse files
Alain Volmatbroonie
authored andcommitted
spi: spi-st-ssc: convert to DT schema
Convert spi-st-ssc.txt into st,ssc-spi.yaml for the ST Microelectronics SSC SPI driver. Signed-off-by: Alain Volmat <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9d77522 commit 7ec844a

File tree

3 files changed

+62
-40
lines changed

3 files changed

+62
-40
lines changed

Documentation/devicetree/bindings/spi/spi-st-ssc.txt

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/st,ssc-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: STMicroelectronics SSC SPI Controller
8+
9+
description: |
10+
The STMicroelectronics SSC SPI controller can be found on STi platforms
11+
and it used to communicate with external devices using the
12+
Serial Peripheral Interface.
13+
14+
maintainers:
15+
- Patrice Chotard <[email protected]>
16+
17+
allOf:
18+
- $ref: spi-controller.yaml#
19+
20+
properties:
21+
compatible:
22+
const: st,comms-ssc4-spi
23+
24+
reg:
25+
maxItems: 1
26+
27+
clocks:
28+
maxItems: 1
29+
30+
clock-names:
31+
const: ssc
32+
33+
interrupts:
34+
maxItems: 1
35+
36+
required:
37+
- compatible
38+
- reg
39+
- clocks
40+
- clock-names
41+
- interrupts
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
#include <dt-bindings/interrupt-controller/arm-gic.h>
48+
#include <dt-bindings/clock/stih407-clks.h>
49+
spi@9840000 {
50+
compatible = "st,comms-ssc4-spi";
51+
reg = <0x9840000 0x110>;
52+
interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
53+
clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>;
54+
clock-names = "ssc";
55+
pinctrl-0 = <&pinctrl_spi0_default>;
56+
pinctrl-names = "default";
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
};
60+
61+
...

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,6 +2925,7 @@ M: Patrice Chotard <[email protected]>
29252925
L: [email protected] (moderated for non-subscribers)
29262926
S: Maintained
29272927
W: http://www.stlinux.com
2928+
F: Documentation/devicetree/bindings/spi/st,ssc-spi.yaml
29282929
F: Documentation/devicetree/bindings/i2c/i2c-st.txt
29292930
F: arch/arm/boot/dts/sti*
29302931
F: arch/arm/mach-sti/

0 commit comments

Comments
 (0)