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
83 $ref: "/schemas/types.yaml#/definitions/uint32"
86 - 1 # Texas Instruments Synchronous Serial Frame Format
87 - 2 # Microwire (Half Duplex)
90 description: Specifies the transfer mode
91 $ref: "/schemas/types.yaml#/definitions/uint32"
99 description: Rx FIFO watermark level
100 $ref: "/schemas/types.yaml#/definitions/uint32"
105 description: Tx FIFO watermark level
106 $ref: "/schemas/types.yaml#/definitions/uint32"
111 description: Microwire interface - Control length
112 $ref: "/schemas/types.yaml#/definitions/uint32"
117 description: Microwire interface - Wait state
118 $ref: "/schemas/types.yaml#/definitions/uint32"
122 description: Microwire interface - Full/Half duplex
123 $ref: "/schemas/types.yaml#/definitions/uint32"
131 unevaluatedProperties: false
136 compatible = "arm,pl022", "arm,primecell";
137 reg = <0xe0100000 0x1000>;
138 #address-cells = <1>;
140 interrupts = <0 31 0x4>;
141 dmas = <&dma_controller 23 1>,
142 <&dma_controller 24 0>;
143 dma-names = "rx", "tx";
146 compatible = "st,m25p80";
148 spi-max-frequency = <12000000>;
151 pl022,interface = <0>;
152 pl022,com-mode = <0x2>;
153 pl022,rx-level-trig = <0>;
154 pl022,tx-level-trig = <0>;
155 pl022,ctrl-len = <0x11>;
156 pl022,wait-state = <0>;