• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1* NXP Flex Serial Peripheral Interface (FSPI)
2
3Required properties:
4  - compatible : Should be "nxp,lx2160a-fspi"
5			    "nxp,imx8qxp-fspi"
6			    "nxp,imx8mm-fspi"
7
8  - reg :        First contains the register location and length,
9                 Second contains the memory mapping address and length
10  - reg-names :  Should contain the resource reg names:
11	         - fspi_base: configuration register address space
12                 - fspi_mmap: memory mapped address space
13  - interrupts : Should contain the interrupt for the device
14
15Required SPI slave node properties:
16  - reg :        There are two buses (A and B) with two chip selects each.
17                 This encodes to which bus and CS the flash is connected:
18                 - <0>: Bus A, CS 0
19                 - <1>: Bus A, CS 1
20                 - <2>: Bus B, CS 0
21                 - <3>: Bus B, CS 1
22
23Example showing the usage of two SPI NOR slave devices on bus A:
24
25fspi0: spi@20c0000 {
26	compatible = "nxp,lx2160a-fspi";
27	reg = <0x0 0x20c0000 0x0 0x10000>, <0x0 0x20000000 0x0 0x10000000>;
28	reg-names = "fspi_base", "fspi_mmap";
29	interrupts = <0 25 0x4>; /* Level high type */
30	clocks = <&clockgen 4 3>, <&clockgen 4 3>;
31	clock-names = "fspi_en", "fspi";
32
33	mt35xu512aba0: flash@0 {
34		reg = <0>;
35		....
36	};
37
38	mt35xu512aba1: flash@1 {
39		reg = <1>;
40		....
41	};
42};
43