11f01818bSParshuram Thombare# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
21f01818bSParshuram Thombare# Copyright 2020-21 Cadence
31f01818bSParshuram Thombare%YAML 1.2
41f01818bSParshuram Thombare---
5*99a7fa0eSKrzysztof Kozlowski$id: http://devicetree.org/schemas/spi/cdns,xspi.yaml#
6*99a7fa0eSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
71f01818bSParshuram Thombare
81f01818bSParshuram Thombaretitle: Cadence XSPI Controller
91f01818bSParshuram Thombare
101f01818bSParshuram Thombaremaintainers:
111f01818bSParshuram Thombare  - Parshuram Thombare <pthombar@cadence.com>
121f01818bSParshuram Thombare
131f01818bSParshuram Thombaredescription: |
141f01818bSParshuram Thombare  The XSPI controller allows SPI protocol communication in
151f01818bSParshuram Thombare  single, dual, quad or octal wire transmission modes for
161f01818bSParshuram Thombare  read/write access to slaves such as SPI-NOR flash.
171f01818bSParshuram Thombare
181f01818bSParshuram ThombareallOf:
19*99a7fa0eSKrzysztof Kozlowski  - $ref: spi-controller.yaml#
201f01818bSParshuram Thombare
211f01818bSParshuram Thombareproperties:
221f01818bSParshuram Thombare  compatible:
231f01818bSParshuram Thombare    const: cdns,xspi-nor
241f01818bSParshuram Thombare
251f01818bSParshuram Thombare  reg:
261f01818bSParshuram Thombare    items:
271f01818bSParshuram Thombare      - description: address and length of the controller register set
281f01818bSParshuram Thombare      - description: address and length of the Slave DMA data port
291f01818bSParshuram Thombare      - description: address and length of the auxiliary registers
301f01818bSParshuram Thombare
311f01818bSParshuram Thombare  reg-names:
321f01818bSParshuram Thombare    items:
331f01818bSParshuram Thombare      - const: io
341f01818bSParshuram Thombare      - const: sdma
351f01818bSParshuram Thombare      - const: aux
361f01818bSParshuram Thombare
371f01818bSParshuram Thombare  interrupts:
381f01818bSParshuram Thombare    maxItems: 1
391f01818bSParshuram Thombare
401f01818bSParshuram Thombarerequired:
411f01818bSParshuram Thombare  - compatible
421f01818bSParshuram Thombare  - reg
431f01818bSParshuram Thombare  - interrupts
441f01818bSParshuram Thombare
451f01818bSParshuram ThombareunevaluatedProperties: false
461f01818bSParshuram Thombare
471f01818bSParshuram Thombareexamples:
481f01818bSParshuram Thombare  - |
491f01818bSParshuram Thombare    #include <dt-bindings/interrupt-controller/irq.h>
501f01818bSParshuram Thombare    bus {
511f01818bSParshuram Thombare        #address-cells = <2>;
521f01818bSParshuram Thombare        #size-cells = <2>;
531f01818bSParshuram Thombare
541f01818bSParshuram Thombare        xspi: spi@a0010000 {
551f01818bSParshuram Thombare            #address-cells = <1>;
561f01818bSParshuram Thombare            #size-cells = <0>;
571f01818bSParshuram Thombare            compatible = "cdns,xspi-nor";
581f01818bSParshuram Thombare            reg = <0x0 0xa0010000 0x0 0x1040>,
591f01818bSParshuram Thombare                  <0x0 0xb0000000 0x0 0x1000>,
601f01818bSParshuram Thombare                  <0x0 0xa0020000 0x0 0x100>;
611f01818bSParshuram Thombare            reg-names = "io", "sdma", "aux";
621f01818bSParshuram Thombare            interrupts = <0 90 IRQ_TYPE_LEVEL_HIGH>;
631f01818bSParshuram Thombare            interrupt-parent = <&gic>;
641f01818bSParshuram Thombare
651f01818bSParshuram Thombare            flash@0 {
661f01818bSParshuram Thombare                compatible = "jedec,spi-nor";
671f01818bSParshuram Thombare                spi-max-frequency = <75000000>;
681f01818bSParshuram Thombare                reg = <0>;
691f01818bSParshuram Thombare            };
701f01818bSParshuram Thombare
711f01818bSParshuram Thombare            flash@1 {
721f01818bSParshuram Thombare                compatible = "jedec,spi-nor";
731f01818bSParshuram Thombare                spi-max-frequency = <75000000>;
741f01818bSParshuram Thombare                reg = <1>;
751f01818bSParshuram Thombare            };
761f01818bSParshuram Thombare        };
771f01818bSParshuram Thombare    };
78