Skip to content

Commit

Permalink
spi: convert Xilinx Zynq UltraScale+ MPSoC GQSPI bindings to YAML
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
iwamatsu authored and broonie committed Jun 25, 2021
1 parent b01d550 commit c58db2a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 25 deletions.
25 changes: 0 additions & 25 deletions Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.txt

This file was deleted.

51 changes: 51 additions & 0 deletions Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/spi/spi-zynqmp-qspi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Xilinx Zynq UltraScale+ MPSoC GQSPI controller Device Tree Bindings

maintainers:
- Michal Simek <[email protected]>

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

properties:
compatible:
const: xlnx,zynqmp-qspi-1.0

reg:
maxItems: 2

interrupts:
maxItems: 1

clock-names:
items:
- const: ref_clk
- const: pclk

clocks:
maxItems: 2

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/clock/xlnx-zynqmp-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
qspi: spi@ff0f0000 {
compatible = "xlnx,zynqmp-qspi-1.0";
clocks = <&zynqmp_clk QSPI_REF>, <&zynqmp_clk LPD_LSBUS>;
clock-names = "ref_clk", "pclk";
interrupts = <0 15 4>;
interrupt-parent = <&gic>;
reg = <0x0 0xff0f0000 0x0 0x1000>,
<0x0 0xc0000000 0x0 0x8000000>;
};
};

0 comments on commit c58db2a

Please sign in to comment.