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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/spi/cdns,qspi-nor.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 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/spi/cdns,qspi-nor.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Cadence Quad SPI controller
  8 
  9 maintainers:
 10   - Vaishnav Achath <vaishnav.a@ti.com>
 11 
 12 allOf:
 13   - $ref: spi-controller.yaml#
 14   - if:
 15       properties:
 16         compatible:
 17           contains:
 18             const: xlnx,versal-ospi-1.0
 19     then:
 20       required:
 21         - power-domains
 22   - if:
 23       properties:
 24         compatible:
 25           contains:
 26             const: starfive,jh7110-qspi
 27     then:
 28       properties:
 29         resets:
 30           minItems: 2
 31           maxItems: 3
 32 
 33         reset-names:
 34           minItems: 2
 35           maxItems: 3
 36           items:
 37             enum: [ qspi, qspi-ocp, rstc_ref ]
 38 
 39     else:
 40       properties:
 41         resets:
 42           maxItems: 2
 43 
 44         reset-names:
 45           minItems: 1
 46           maxItems: 2
 47           items:
 48             enum: [ qspi, qspi-ocp ]
 49   - if:
 50       properties:
 51         compatible:
 52           contains:
 53             const: amd,pensando-elba-qspi
 54     then:
 55       properties:
 56         cdns,fifo-depth:
 57           enum: [ 128, 256, 1024 ]
 58           default: 1024
 59     else:
 60       properties:
 61         cdns,fifo-depth:
 62           enum: [ 128, 256 ]
 63           default: 128
 64 
 65 properties:
 66   compatible:
 67     oneOf:
 68       - items:
 69           - enum:
 70               - amd,pensando-elba-qspi
 71               - intel,lgm-qspi
 72               - intel,socfpga-qspi
 73               - mobileye,eyeq5-ospi
 74               - starfive,jh7110-qspi
 75               - ti,am654-ospi
 76               - ti,k2g-qspi
 77               - xlnx,versal-ospi-1.0
 78           - const: cdns,qspi-nor
 79       - const: cdns,qspi-nor
 80 
 81   reg:
 82     items:
 83       - description: the controller register set
 84       - description: the controller data area
 85 
 86   interrupts:
 87     maxItems: 1
 88 
 89   clocks:
 90     minItems: 1
 91     maxItems: 3
 92 
 93   clock-names:
 94     oneOf:
 95       - items:
 96           - const: ref
 97       - items:
 98           - const: ref
 99           - const: ahb
100           - const: apb
101 
102   cdns,fifo-depth:
103     description:
104       Size of the data FIFO in words.
105     $ref: /schemas/types.yaml#/definitions/uint32
106 
107   cdns,fifo-width:
108     $ref: /schemas/types.yaml#/definitions/uint32
109     description:
110       Bus width of the data FIFO in bytes.
111     default: 4
112 
113   cdns,trigger-address:
114     $ref: /schemas/types.yaml#/definitions/uint32
115     description:
116       32-bit indirect AHB trigger address.
117 
118   cdns,is-decoded-cs:
119     type: boolean
120     description:
121       Flag to indicate whether decoder is used to select different chip select
122       for different memory regions.
123 
124   cdns,rclk-en:
125     type: boolean
126     description:
127       Flag to indicate that QSPI return clock is used to latch the read
128       data rather than the QSPI clock. Make sure that QSPI return clock
129       is populated on the board before using this property.
130 
131   power-domains:
132     maxItems: 1
133 
134   resets:
135     minItems: 2
136     maxItems: 3
137 
138   reset-names:
139     minItems: 2
140     maxItems: 3
141     items:
142       enum: [ qspi, qspi-ocp, rstc_ref ]
143 
144 required:
145   - compatible
146   - reg
147   - interrupts
148   - clocks
149   - cdns,fifo-width
150   - cdns,trigger-address
151   - '#address-cells'
152   - '#size-cells'
153 
154 unevaluatedProperties: false
155 
156 examples:
157   - |
158     qspi: spi@ff705000 {
159         compatible = "cdns,qspi-nor";
160         #address-cells = <1>;
161         #size-cells = <0>;
162         reg = <0xff705000 0x1000>,
163               <0xffa00000 0x1000>;
164         interrupts = <0 151 4>;
165         clocks = <&qspi_clk>;
166         cdns,fifo-depth = <128>;
167         cdns,fifo-width = <4>;
168         cdns,trigger-address = <0x00000000>;
169         resets = <&rst 0x1>, <&rst 0x2>;
170         reset-names = "qspi", "qspi-ocp";
171 
172         flash@0 {
173             compatible = "jedec,spi-nor";
174             reg = <0x0>;
175         };
176     };

~ [ 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