1*40b383faSMichal SimekCadence SPI controller Device Tree Bindings 2*40b383faSMichal Simek------------------------------------------- 3a8a8fc9cSJagan Teki 4a8a8fc9cSJagan TekiRequired properties: 5*40b383faSMichal Simek- compatible : Should be "cdns,spi-r1p6" or "xlnx,zynq-spi-r1p6". 6a8a8fc9cSJagan Teki- reg : Physical base address and size of SPI registers map. 7a8a8fc9cSJagan Teki- interrupts : Property with a value describing the interrupt 8a8a8fc9cSJagan Teki number. 9*40b383faSMichal Simek- interrupt-parent : Must be core interrupt controller 10a8a8fc9cSJagan Teki- clock-names : List of input clock names - "ref_clk", "pclk" 11a8a8fc9cSJagan Teki (See clock bindings for details). 12*40b383faSMichal Simek- clocks : Clock phandles (see clock bindings for details). 13cdc9dd07SJagan Teki- spi-max-frequency : Maximum SPI clocking speed of device in Hz 14a8a8fc9cSJagan Teki 15*40b383faSMichal SimekOptional properties: 16*40b383faSMichal Simek- num-cs : Number of chip selects used. 17*40b383faSMichal Simek If a decoder is used, this will be the number of 18*40b383faSMichal Simek chip selects after the decoder. 19*40b383faSMichal Simek- is-decoded-cs : Flag to indicate whether decoder is used or not. 20*40b383faSMichal Simek 21a8a8fc9cSJagan TekiExample: 22a8a8fc9cSJagan Teki 23*40b383faSMichal Simek spi@e0007000 { 24*40b383faSMichal Simek compatible = "xlnx,zynq-spi-r1p6"; 25a8a8fc9cSJagan Teki clock-names = "ref_clk", "pclk"; 26*40b383faSMichal Simek clocks = <&clkc 26>, <&clkc 35>; 27*40b383faSMichal Simek interrupt-parent = <&intc>; 28*40b383faSMichal Simek interrupts = <0 49 4>; 29*40b383faSMichal Simek num-cs = <4>; 30*40b383faSMichal Simek is-decoded-cs = <0>; 31*40b383faSMichal Simek reg = <0xe0007000 0x1000>; 32a8a8fc9cSJagan Teki } ; 33