Skip to content

Commit c58db2a

Browse files
iwamatsubroonie
authored andcommitted
spi: convert Xilinx Zynq UltraScale+ MPSoC GQSPI bindings to YAML
Convert spi for Xilinx Zynq UltraScale+ MPSoC GQSPI bindings documentation to YAML. Signed-off-by: Nobuhiro Iwamatsu <[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 b01d550 commit c58db2a

File tree

2 files changed

+51
-25
lines changed

2 files changed

+51
-25
lines changed

Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/spi-zynqmp-qspi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Xilinx Zynq UltraScale+ MPSoC GQSPI controller Device Tree Bindings
8+
9+
maintainers:
10+
- Michal Simek <[email protected]>
11+
12+
allOf:
13+
- $ref: "spi-controller.yaml#"
14+
15+
properties:
16+
compatible:
17+
const: xlnx,zynqmp-qspi-1.0
18+
19+
reg:
20+
maxItems: 2
21+
22+
interrupts:
23+
maxItems: 1
24+
25+
clock-names:
26+
items:
27+
- const: ref_clk
28+
- const: pclk
29+
30+
clocks:
31+
maxItems: 2
32+
33+
unevaluatedProperties: false
34+
35+
examples:
36+
- |
37+
#include <dt-bindings/clock/xlnx-zynqmp-clk.h>
38+
soc {
39+
#address-cells = <2>;
40+
#size-cells = <2>;
41+
42+
qspi: spi@ff0f0000 {
43+
compatible = "xlnx,zynqmp-qspi-1.0";
44+
clocks = <&zynqmp_clk QSPI_REF>, <&zynqmp_clk LPD_LSBUS>;
45+
clock-names = "ref_clk", "pclk";
46+
interrupts = <0 15 4>;
47+
interrupt-parent = <&gic>;
48+
reg = <0x0 0xff0f0000 0x0 0x1000>,
49+
<0x0 0xc0000000 0x0 0x8000000>;
50+
};
51+
};

0 commit comments

Comments
 (0)