Skip to content

Commit

Permalink
spi: dt-bindings: Convert Synquacer SPI to DT schema
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring authored and Mark Brown committed Dec 9, 2022
1 parent 3a6f994 commit 3cf241c
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 28 deletions.
73 changes: 73 additions & 0 deletions Documentation/devicetree/bindings/spi/socionext,synquacer-spi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/spi/socionext,synquacer-spi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Socionext SynQuacer HS-SPI Controller

maintainers:
- Masahisa Kojima <masahisa.kojima@linaro.org>
- Jassi Brar <jaswinder.singh@linaro.org>

allOf:
- $ref: spi-controller.yaml#

properties:
compatible:
const: socionext,synquacer-spi

reg:
maxItems: 1

clocks:
minItems: 1
items:
- description: core clock
- description: rate clock

clock-names:
minItems: 1
items:
- const: iHCLK
- const: iPCLK

interrupts:
items:
- description: Receive Interrupt
- description: Transmit Interrupt
- description: Fault Interrupt

socionext,use-rtm:
type: boolean
description: Enable using "retimed clock" for RX

socionext,set-aces:
type: boolean
description: Enable same active clock edges field to be set

required:
- compatible
- reg
- interrupts
- clocks
- clock-names

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@ff110000 {
compatible = "socionext,synquacer-spi";
reg = <0xff110000 0x1000>;
interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk_hsspi>;
clock-names = "iHCLK";
socionext,use-rtm;
socionext,set-aces;
};
...
27 changes: 0 additions & 27 deletions Documentation/devicetree/bindings/spi/spi-synquacer.txt

This file was deleted.

2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -19041,7 +19041,7 @@ M: Masahisa Kojima <masahisa.kojima@linaro.org>
M: Jassi Brar <jaswinder.singh@linaro.org>
L: linux-spi@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/spi/spi-synquacer.txt
F: Documentation/devicetree/bindings/spi/socionext,synquacer-spi.yaml
F: drivers/spi/spi-synquacer.c

SOCIONEXT SYNQUACER I2C DRIVER
Expand Down

0 comments on commit 3cf241c

Please sign in to comment.