^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) Cadence SPI controller Device Tree Bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) -------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - compatible : Should be "cdns,spi-r1p6" or "xlnx,zynq-spi-r1p6".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - reg : Physical base address and size of SPI registers map.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) - interrupts : Property with a value describing the interrupt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) number.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - clock-names : List of input clock names - "ref_clk", "pclk"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) (See clock bindings for details).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - clocks : Clock phandles (see clock bindings for details).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - num-cs : Number of chip selects used.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) If a decoder is used, this will be the number of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) chip selects after the decoder.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - is-decoded-cs : Flag to indicate whether decoder is used or not.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) spi@e0007000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) compatible = "xlnx,zynq-spi-r1p6";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) clock-names = "ref_clk", "pclk";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) clocks = <&clkc 26>, <&clkc 35>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) interrupt-parent = <&intc>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) interrupts = <0 49 4>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) num-cs = <4>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) is-decoded-cs = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) reg = <0xe0007000 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) } ;