xref: /freebsd-src/sys/contrib/device-tree/Bindings/fpga/lattice-machxo2-spi.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotLattice MachXO2 Slave SPI FPGA Manager
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotLattice MachXO2 FPGAs support a method of loading the bitstream over
4*c66ec88fSEmmanuel Vadot'slave SPI' interface.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotSee 'MachXO2ProgrammingandConfigurationUsageGuide.pdf' on www.latticesemi.com
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotRequired properties:
9*c66ec88fSEmmanuel Vadot- compatible: should contain "lattice,machxo2-slave-spi"
10*c66ec88fSEmmanuel Vadot- reg: spi chip select of the FPGA
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel VadotExample for full FPGA configuration:
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot	fpga-region0 {
15*c66ec88fSEmmanuel Vadot		compatible = "fpga-region";
16*c66ec88fSEmmanuel Vadot		fpga-mgr = <&fpga_mgr_spi>;
17*c66ec88fSEmmanuel Vadot		#address-cells = <0x1>;
18*c66ec88fSEmmanuel Vadot		#size-cells = <0x1>;
19*c66ec88fSEmmanuel Vadot	};
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot	spi1: spi@2000 {
22*c66ec88fSEmmanuel Vadot        ...
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadot		fpga_mgr_spi: fpga-mgr@0 {
25*c66ec88fSEmmanuel Vadot			compatible = "lattice,machxo2-slave-spi";
26*c66ec88fSEmmanuel Vadot			spi-max-frequency = <8000000>;
27*c66ec88fSEmmanuel Vadot			reg = <0>;
28*c66ec88fSEmmanuel Vadot		};
29*c66ec88fSEmmanuel Vadot	};
30