xref: /freebsd/sys/contrib/device-tree/Bindings/spi/spi-fsl-lpspi.txt (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1* Freescale Low Power SPI (LPSPI) for i.MX
2
3Required properties:
4- compatible :
5  - "fsl,imx7ulp-spi" for LPSPI compatible with the one integrated on i.MX7ULP soc
6  - "fsl,imx8qxp-spi" for LPSPI compatible with the one integrated on i.MX8QXP soc
7- reg : address and length of the lpspi master registers
8- interrupt-parent : core interrupt controller
9- interrupts : lpspi interrupt
10- clocks : lpspi clock specifier. Its number and order need to correspond to the
11	   value in clock-names.
12- clock-names : Corresponding to per clock and ipg clock in "clocks"
13		respectively. In i.MX7ULP, it only has per clk, so use CLK_DUMMY
14		to fill the "ipg" blank.
15- spi-slave : spi slave mode support. In slave mode, add this attribute without
16	      value. In master mode, remove it.
17
18Examples:
19
20lpspi2: lpspi@40290000 {
21	compatible = "fsl,imx7ulp-spi";
22	reg = <0x40290000 0x10000>;
23	interrupt-parent = <&intc>;
24	interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
25	clocks = <&clks IMX7ULP_CLK_LPSPI2>,
26		 <&clks IMX7ULP_CLK_DUMMY>;
27	clock-names = "per", "ipg";
28	spi-slave;
29};
30