xref: /openbmc/linux/Documentation/devicetree/bindings/spi/spi-lantiq-ssc.txt (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
117f84b79SHauke MehrtensLantiq Synchronous Serial Controller (SSC) SPI master driver
217f84b79SHauke Mehrtens
317f84b79SHauke MehrtensRequired properties:
4*956284a3SDilip Kota- compatible: "lantiq,ase-spi", "lantiq,falcon-spi", "lantiq,xrx100-spi",
5*956284a3SDilip Kota  "intel,lgm-spi"
617f84b79SHauke Mehrtens- #address-cells: see spi-bus.txt
717f84b79SHauke Mehrtens- #size-cells: see spi-bus.txt
817f84b79SHauke Mehrtens- reg: address and length of the spi master registers
9*956284a3SDilip Kota- interrupts:
10*956284a3SDilip Kota  For compatible "intel,lgm-ssc" - the common interrupt number for
11*956284a3SDilip Kota  all of tx rx & err interrupts.
12*956284a3SDilip Kota       or
13*956284a3SDilip Kota  For rest of the compatibles, should contain the "spi_rx", "spi_tx" and
14*956284a3SDilip Kota  "spi_err" interrupt.
1517f84b79SHauke Mehrtens
1617f84b79SHauke Mehrtens
1717f84b79SHauke MehrtensOptional properties:
1817f84b79SHauke Mehrtens- clocks: spi clock phandle
1917f84b79SHauke Mehrtens- num-cs: see spi-bus.txt, set to 8 if unset
2017f84b79SHauke Mehrtens- base-cs: the number of the first chip select, set to 1 if unset.
2117f84b79SHauke Mehrtens
2217f84b79SHauke MehrtensExample:
2317f84b79SHauke Mehrtens
2417f84b79SHauke Mehrtens
25afc3bca4SRob Herringspi: spi@e100800 {
2617f84b79SHauke Mehrtens	compatible = "lantiq,xrx200-spi", "lantiq,xrx100-spi";
2717f84b79SHauke Mehrtens	reg = <0xE100800 0x100>;
2817f84b79SHauke Mehrtens	interrupt-parent = <&icu0>;
2917f84b79SHauke Mehrtens	interrupts = <22 23 24>;
3017f84b79SHauke Mehrtens	interrupt-names = "spi_rx", "spi_tx", "spi_err";
3117f84b79SHauke Mehrtens	#address-cells = <1>;
3217f84b79SHauke Mehrtens	#size-cells = <1>;
3317f84b79SHauke Mehrtens	num-cs = <6>;
3417f84b79SHauke Mehrtens	base-cs = <1>;
3517f84b79SHauke Mehrtens};
36*956284a3SDilip Kota
37*956284a3SDilip Kotassc0: spi@e0800000 {
38*956284a3SDilip Kota	compatible = "intel,lgm-spi";
39*956284a3SDilip Kota	reg = <0xe0800000 0x400>;
40*956284a3SDilip Kota	interrupt-parent = <&ioapic1>;
41*956284a3SDilip Kota	interrupts = <35 1>;
42*956284a3SDilip Kota	#address-cells = <1>;
43*956284a3SDilip Kota	#size-cells = <0>;
44*956284a3SDilip Kota	clocks = <&cgu0 LGM_CLK_NGI>, <&cgu0 LGM_GCLK_SSC0>;
45*956284a3SDilip Kota	clock-names = "freq", "gate";
46*956284a3SDilip Kota};
47