# Imagination University Program MIPSfpga

_Peios Kernel / Hardware and drivers / Device tree / bindings/mips/img_

> Device-tree binding reference for Imagination University Program MIPSfpga.

Under the Imagination University Program, a microAptiv UP core has been
released for academic usage.

As we are dealing with a MIPS core instantiated on an FPGA, specifications
are fluid and can be varied in RTL.

This binding document is provided as baseline guidance for the example
project provided by IMG.

The example project runs on the Nexys4DDR board by Digilent powered by
the ARTIX-7 FPGA by Xilinx.

Relevant details about the example project and the Nexys4DDR board:

- microAptiv UP core m14Kc
- 50MHz clock speed
- 128Mbyte DDR RAM	at 0x0000\_0000
- 8Kbyte RAM		at 0x1000\_0000
- axi\_intc		at 0x1020\_0000
- axi\_uart16550		at 0x1040\_0000
- axi\_gpio		at 0x1060\_0000
- axi\_i2c		at 0x10A0\_0000
- custom\_gpio		at 0x10C0\_0000
- axi\_ethernetlite	at 0x10E0\_0000
- 8Kbyte BootRAM	at 0x1FC0\_0000

## Required properties:

- compatible: Must include "digilent,nexys4ddr","img,xilfpga".

## CPU nodes:

A "cpus" node is required.  Required properties:

- #address-cells: Must be 1.
- #size-cells: Must be 0.
  A CPU sub-node is also required for at least CPU 0. Required properties:
- device\_type: Must be "cpu".
- compatible: Must be "mips,m14Kc".
- reg: Must be &lt;0&gt;.
- clocks: phandle to ext clock for fixed-clock received by MIPS core.

## Example:

```dts
	compatible = "img,xilfpga","digilent,nexys4ddr";
	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		cpu0: cpu@0 {
			device_type = "cpu";
			compatible = "mips,m14Kc";
			reg = <0>;
			clocks	= <&ext>;
		};
	};
```

```dts
	ext: ext {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <50000000>;
	};
```

## Boot protocol:

The BootRAM is a writeable "RAM" in FPGA at 0x1FC0\_0000.
This is for easy reprogrammibility via JTAG.

The BootRAM initializes the cache and the axi\_uart peripheral.

DDR initialization is already handled by a HW IP block.

When the example project bitstream is loaded, the cpu\_reset button
needs to be pressed.

The bootram initializes the cache and axi\_uart.
Then outputs MIPSFPGA\\n\\r on the serial port on the Nexys4DDR board.

At this point, the board is ready to load the Linux kernel
vmlinux file via JTAG.
