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