1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/spi/spi-pl022.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ARM PL022 SPI controller
10 - Linus Walleij <linus.walleij@linaro.org>
13 - $ref: "spi-controller.yaml#"
15 # We need a select here so we don't match all nodes with 'arm,primecell'
28 - const: arm,primecell
46 pl022,autosuspend-delay:
47 description: delay in ms following transfer completion before the
48 runtime power management system suspends the device. A setting of 0
49 indicates no delay and the device will be suspended immediately.
50 $ref: "/schemas/types.yaml#/definitions/uint32"
53 description: indicates the controller should run the message pump with realtime
54 priority to minimise the transfer latency on the bus (boolean)
59 Two or more DMA channel specifiers following the convention outlined
60 in bindings/dma/dma.txt
66 There must be at least one channel named "tx" for transmit and named "rx"
76 "^[a-zA-Z][a-zA-Z0-9,+\\-._]{0,63}@[0-9a-f]+$":
78 # SPI slave nodes must be children of the SPI master node and can
79 # contain the following properties.
82 description: SPI interface type
84 - $ref: "/schemas/types.yaml#/definitions/uint32"
87 - 1 # Texas Instruments Synchronous Serial Frame Format
88 - 2 # Microwire (Half Duplex)
91 description: Specifies the transfer mode
93 - $ref: "/schemas/types.yaml#/definitions/uint32"
101 description: Rx FIFO watermark level
103 - $ref: "/schemas/types.yaml#/definitions/uint32"
108 description: Tx FIFO watermark level
110 - $ref: "/schemas/types.yaml#/definitions/uint32"
115 description: Microwire interface - Control length
117 - $ref: "/schemas/types.yaml#/definitions/uint32"
122 description: Microwire interface - Wait state
124 - $ref: "/schemas/types.yaml#/definitions/uint32"
128 description: Microwire interface - Full/Half duplex
130 - $ref: "/schemas/types.yaml#/definitions/uint32"
141 compatible = "arm,pl022", "arm,primecell";
142 reg = <0xe0100000 0x1000>;
143 #address-cells = <1>;
145 interrupts = <0 31 0x4>;
146 dmas = <&dma_controller 23 1>,
147 <&dma_controller 24 0>;
148 dma-names = "rx", "tx";
151 compatible = "st,m25p80";
153 spi-max-frequency = <12000000>;
156 pl022,interface = <0>;
157 pl022,com-mode = <0x2>;
158 pl022,rx-level-trig = <0>;
159 pl022,tx-level-trig = <0>;
160 pl022,ctrl-len = <0x11>;
161 pl022,wait-state = <0>;