^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) IMG Synchronous Peripheral Flash Interface (SPFI) controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible: Must be "img,spfi".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - reg: Must contain the base address and length of the SPFI registers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - interrupts: Must contain the SPFI interrupt.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) - clocks: Must contain an entry for each entry in clock-names.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) See ../clock/clock-bindings.txt for details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - clock-names: Must include the following entries:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - spfi: SPI operating clock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - sys: SPI system interface clock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - dmas: Must contain an entry for each entry in dma-names.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) See ../dma/dma.txt for details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - dma-names: Must include the following entries:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - rx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - tx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - cs-gpios: Must specify the GPIOs used for chipselect lines.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - #address-cells: Must be 1.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - #size-cells: Must be 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - img,supports-quad-mode: Should be set if the interface supports quad mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) SPI transfers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) - spfi-max-frequency: Maximum speed supported by the spfi block.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) spi@18100f00 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) compatible = "img,spfi";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) reg = <0x18100f00 0x100>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) clocks = <&spi_clk>, <&system_clk>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) clock-names = "spfi", "sys";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) dma-names = "rx", "tx";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) };