board.txt 2.2 KB
Newer Older
1 2 3 4 5
Freescale Reference Board Bindings

This document describes device tree bindings for various devices that
exist on some Freescale reference boards.

6 7 8 9
* Board Control and Status (BCSR)

Required properties:

10
 - compatible : Should be "fsl,<board>-bcsr"
11 12 13 14 15
 - reg : Offset and length of the register set for the device

Example:

	bcsr@f8000000 {
16
		compatible = "fsl,mpc8360mds-bcsr";
17 18 19
		reg = <f8000000 8000>;
	};

20
* Freescale on-board FPGA
21 22 23 24

This is the memory-mapped registers for on board FPGA.

Required properities:
25 26 27 28
- compatible: should be a board-specific string followed by a string
  indicating the type of FPGA.  Example:
	"fsl,<board>-fpga", "fsl,fpga-pixis"
- reg: should contain the address and the length of the FPGA register set.
29
- interrupt-parent: should specify phandle for the interrupt controller.
30
- interrupts: should specify event (wakeup) IRQ.
31

32
Example (P1022DS):
33

34 35 36 37 38 39
	 board-control@3,0 {
		 compatible = "fsl,p1022ds-fpga", "fsl,fpga-ngpixis";
		 reg = <3 0 0x30>;
		 interrupt-parent = <&mpic>;
		 interrupts = <8 8 0 0>;
	 };
40 41 42 43 44 45 46 47 48 49 50

* Freescale BCSR GPIO banks

Some BCSR registers act as simple GPIO controllers, each such
register can be represented by the gpio-controller node.

Required properities:
- compatible : Should be "fsl,<board>-bcsr-gpio".
- reg : Should contain the address and the length of the GPIO bank
  register.
- #gpio-cells : Should be two. The first cell is the pin number and the
51
  second cell is used to specify optional parameters (currently unused).
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
- gpio-controller : Marks the port as GPIO controller.

Example:

	bcsr@1,0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "fsl,mpc8360mds-bcsr";
		reg = <1 0 0x8000>;
		ranges = <0 1 0 0x8000>;

		bcsr13: gpio-controller@d {
			#gpio-cells = <2>;
			compatible = "fsl,mpc8360mds-bcsr-gpio";
			reg = <0xd 1>;
			gpio-controller;
		};
	};
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86

* Freescale on-board FPGA connected on I2C bus

Some Freescale boards like BSC9132QDS have on board FPGA connected on
the i2c bus.

Required properties:
- compatible: Should be a board-specific string followed by a string
  indicating the type of FPGA.  Example:
	"fsl,<board>-fpga", "fsl,fpga-qixis-i2c"
- reg: Should contain the address of the FPGA

Example:
	fpga: fpga@66 {
		compatible = "fsl,bsc9132qds-fpga", "fsl,fpga-qixis-i2c";
		reg = <0x66>;
	};