| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | * CSR SiRFprimaII Serial Peripheral Interface |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible : Should be "sirf,prima2-spi", "sirf,prima2-usp" |
| 5 | or "sirf,atlas7-usp" |
| 6 | - reg : Offset and length of the register set for the device |
| 7 | - interrupts : Should contain SPI interrupt |
| 8 | - resets: phandle to the reset controller asserting this device in |
| 9 | reset |
| 10 | See ../reset/reset.txt for details. |
| 11 | - dmas : Must contain an entry for each entry in clock-names. |
| 12 | See ../dma/dma.txt for details. |
| 13 | - dma-names : Must include the following entries: |
| 14 | - rx |
| 15 | - tx |
| 16 | - clocks : Must contain an entry for each entry in clock-names. |
| 17 | See ../clocks/clock-bindings.txt for details. |
| 18 | |
| 19 | - #address-cells: Number of cells required to define a chip select |
| 20 | address on the SPI bus. Should be set to 1. |
| 21 | - #size-cells: Should be zero. |
| 22 | |
| 23 | Optional properties: |
| 24 | - spi-max-frequency: Specifies maximum SPI clock frequency, |
| 25 | Units - Hz. Definition as per |
| 26 | Documentation/devicetree/bindings/spi/spi-bus.txt |
| 27 | - cs-gpios: should specify GPIOs used for chipselects. |
| 28 | |
| 29 | Example: |
| 30 | |
| 31 | spi0: spi@b00d0000 { |
| 32 | compatible = "sirf,prima2-spi"; |
| 33 | reg = <0xb00d0000 0x10000>; |
| 34 | interrupts = <15>; |
| 35 | dmas = <&dmac1 9>, |
| 36 | <&dmac1 4>; |
| 37 | dma-names = "rx", "tx"; |
| 38 | #address-cells = <1>; |
| 39 | #size-cells = <0>; |
| 40 | clocks = <&clks 19>; |
| 41 | resets = <&rstc 26>; |
| 42 | }; |