-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <avolmat@me.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230213192349.17101-1-avolmat@me.com Signed-off-by: Mark Brown <broonie@kernel.org>
- Loading branch information
Alain Volmat
authored and
Mark Brown
committed
Feb 14, 2023
1 parent
9d77522
commit 7ec844a
Showing
3 changed files
with
62 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/spi/st,ssc-spi.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: STMicroelectronics SSC SPI Controller | ||
|
||
description: | | ||
The STMicroelectronics SSC SPI controller can be found on STi platforms | ||
and it used to communicate with external devices using the | ||
Serial Peripheral Interface. | ||
maintainers: | ||
- Patrice Chotard <patrice.chotard@foss.st.com> | ||
|
||
allOf: | ||
- $ref: spi-controller.yaml# | ||
|
||
properties: | ||
compatible: | ||
const: st,comms-ssc4-spi | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
clock-names: | ||
const: ssc | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- clock-names | ||
- interrupts | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
#include <dt-bindings/clock/stih407-clks.h> | ||
spi@9840000 { | ||
compatible = "st,comms-ssc4-spi"; | ||
reg = <0x9840000 0x110>; | ||
interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; | ||
clock-names = "ssc"; | ||
pinctrl-0 = <&pinctrl_spi0_default>; | ||
pinctrl-names = "default"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
}; | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters