Skip to content

Commit 3cf241c

Browse files
robherringbroonie
authored andcommitted
spi: dt-bindings: Convert Synquacer SPI to DT schema
Convert the Socionext Synquacer SPI binding to DT format. Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20221209171644.3351787-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3a6f994 commit 3cf241c

File tree

3 files changed

+74
-28
lines changed

3 files changed

+74
-28
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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,synquacer-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Socionext SynQuacer HS-SPI Controller
8+
9+
maintainers:
10+
- Masahisa Kojima <masahisa.kojima@linaro.org>
11+
- Jassi Brar <jaswinder.singh@linaro.org>
12+
13+
allOf:
14+
- $ref: spi-controller.yaml#
15+
16+
properties:
17+
compatible:
18+
const: socionext,synquacer-spi
19+
20+
reg:
21+
maxItems: 1
22+
23+
clocks:
24+
minItems: 1
25+
items:
26+
- description: core clock
27+
- description: rate clock
28+
29+
clock-names:
30+
minItems: 1
31+
items:
32+
- const: iHCLK
33+
- const: iPCLK
34+
35+
interrupts:
36+
items:
37+
- description: Receive Interrupt
38+
- description: Transmit Interrupt
39+
- description: Fault Interrupt
40+
41+
socionext,use-rtm:
42+
type: boolean
43+
description: Enable using "retimed clock" for RX
44+
45+
socionext,set-aces:
46+
type: boolean
47+
description: Enable same active clock edges field to be set
48+
49+
required:
50+
- compatible
51+
- reg
52+
- interrupts
53+
- clocks
54+
- clock-names
55+
56+
unevaluatedProperties: false
57+
58+
examples:
59+
- |
60+
#include <dt-bindings/interrupt-controller/arm-gic.h>
61+
62+
spi@ff110000 {
63+
compatible = "socionext,synquacer-spi";
64+
reg = <0xff110000 0x1000>;
65+
interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
66+
<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
67+
<GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
68+
clocks = <&clk_hsspi>;
69+
clock-names = "iHCLK";
70+
socionext,use-rtm;
71+
socionext,set-aces;
72+
};
73+
...

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

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

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19041,7 +19041,7 @@ M: Masahisa Kojima <masahisa.kojima@linaro.org>
1904119041
M: Jassi Brar <jaswinder.singh@linaro.org>
1904219042
L: linux-spi@vger.kernel.org
1904319043
S: Maintained
19044-
F: Documentation/devicetree/bindings/spi/spi-synquacer.txt
19044+
F: Documentation/devicetree/bindings/spi/socionext,synquacer-spi.yaml
1904519045
F: drivers/spi/spi-synquacer.c
1904619046

1904719047
SOCIONEXT SYNQUACER I2C DRIVER

0 commit comments

Comments
 (0)