xref: /freebsd/sys/contrib/device-tree/Bindings/spi/spi-xlp.txt (revision 2e3f49888ec8851bafb22011533217487764fdb0)
1SPI Master controller for Netlogic XLP MIPS64 SOCs
2==================================================
3
4Currently this SPI controller driver is supported for the following
5Netlogic XLP SoCs:
6	XLP832, XLP316, XLP208, XLP980, XLP532
7
8Required properties:
9- compatible		: Should be "netlogic,xlp832-spi".
10- #address-cells	: Number of cells required to define a chip select address
11			  on the SPI bus.
12- #size-cells		: Should be zero.
13- reg			: Should contain register location and length.
14- clocks		: Phandle of the spi clock
15- interrupts		: Interrupt number used by this controller.
16
17SPI slave nodes must be children of the SPI master node and can contain
18properties described in Documentation/devicetree/bindings/spi/spi-bus.txt.
19
20Example:
21
22	spi: xlp_spi@3a100 {
23		compatible = "netlogic,xlp832-spi";
24		#address-cells = <1>;
25		#size-cells = <0>;
26		reg = <0 0x3a100 0x100>;
27		clocks = <&spi_clk>;
28		interrupts = <34>;
29		interrupt-parent = <&pic>;
30
31		spi_nor@1 {
32			compatible = "spansion,s25sl12801";
33			#address-cells = <1>;
34			#size-cells = <1>;
35			reg = <1>;	/* Chip Select */
36			spi-max-frequency = <40000000>;
37		};
38};
39