~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/spi/cdns,xspi.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 # Copyright 2020-21 Cadence
  3 %YAML 1.2
  4 ---
  5 $id: http://devicetree.org/schemas/spi/cdns,xspi.yaml#
  6 $schema: http://devicetree.org/meta-schemas/core.yaml#
  7 
  8 title: Cadence XSPI Controller
  9 
 10 maintainers:
 11   - Parshuram Thombare <pthombar@cadence.com>
 12 
 13 description: |
 14   The XSPI controller allows SPI protocol communication in
 15   single, dual, quad or octal wire transmission modes for
 16   read/write access to slaves such as SPI-NOR flash.
 17 
 18 properties:
 19   compatible:
 20     enum:
 21       - cdns,xspi-nor
 22       - marvell,cn10-xspi-nor
 23 
 24   reg:
 25     items:
 26       - description: address and length of the controller register set
 27       - description: address and length of the Slave DMA data port
 28       - description: address and length of the auxiliary registers
 29       - description: address and length of the xfer registers
 30     minItems: 3
 31 
 32   reg-names:
 33     items:
 34       - const: io
 35       - const: sdma
 36       - const: aux
 37       - const: xfer
 38     minItems: 3
 39 
 40   interrupts:
 41     maxItems: 1
 42 
 43 required:
 44   - compatible
 45   - reg
 46   - interrupts
 47 
 48 allOf:
 49   - $ref: spi-controller.yaml#
 50   - if:
 51       properties:
 52         compatible:
 53           contains:
 54             enum:
 55               - marvell,cn10-xspi-nor
 56     then:
 57       properties:
 58         reg:
 59           minItems: 4
 60         reg-names:
 61           minItems: 4
 62     else:
 63       properties:
 64         reg:
 65           maxItems: 3
 66         reg-names:
 67           maxItems: 3
 68 
 69 unevaluatedProperties: false
 70 
 71 examples:
 72   - |
 73     #include <dt-bindings/interrupt-controller/irq.h>
 74     bus {
 75         #address-cells = <2>;
 76         #size-cells = <2>;
 77 
 78         xspi: spi@a0010000 {
 79             #address-cells = <1>;
 80             #size-cells = <0>;
 81             compatible = "cdns,xspi-nor";
 82             reg = <0x0 0xa0010000 0x0 0x1040>,
 83                   <0x0 0xb0000000 0x0 0x1000>,
 84                   <0x0 0xa0020000 0x0 0x100>;
 85             reg-names = "io", "sdma", "aux";
 86             interrupts = <0 90 IRQ_TYPE_LEVEL_HIGH>;
 87             interrupt-parent = <&gic>;
 88 
 89             flash@0 {
 90                 compatible = "jedec,spi-nor";
 91                 spi-max-frequency = <75000000>;
 92                 reg = <0>;
 93             };
 94 
 95             flash@1 {
 96                 compatible = "jedec,spi-nor";
 97                 spi-max-frequency = <75000000>;
 98                 reg = <1>;
 99             };
100         };
101     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php