Merge branch 'spectre' of git://git.armlinux.org.uk/~rmk/linux-arm
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / board / fsl-board.txt
1 Freescale Reference Board Bindings
2
3 This document describes device tree bindings for various devices that
4 exist on some Freescale reference boards.
5
6 * Board Control and Status (BCSR)
7
8 Required properties:
9
10  - compatible : Should be "fsl,<board>-bcsr"
11  - reg : Offset and length of the register set for the device
12
13 Example:
14
15         bcsr@f8000000 {
16                 compatible = "fsl,mpc8360mds-bcsr";
17                 reg = <f8000000 8000>;
18         };
19
20 * Freescale on-board FPGA
21
22 This is the memory-mapped registers for on board FPGA.
23
24 Required properties:
25 - compatible: should be a board-specific string followed by a string
26   indicating the type of FPGA.  Example:
27         "fsl,<board>-fpga", "fsl,fpga-pixis", or
28         "fsl,<board>-fpga", "fsl,fpga-qixis"
29 - reg: should contain the address and the length of the FPGA register set.
30
31 Optional properties:
32 - interrupts: should specify event (wakeup) IRQ.
33
34 Example (P1022DS):
35
36          board-control@3,0 {
37                  compatible = "fsl,p1022ds-fpga", "fsl,fpga-ngpixis";
38                  reg = <3 0 0x30>;
39                  interrupt-parent = <&mpic>;
40                  interrupts = <8 8 0 0>;
41          };
42
43 Example (LS2080A-RDB):
44
45         cpld@3,0 {
46                 compatible = "fsl,ls2080ardb-fpga", "fsl,fpga-qixis";
47                 reg = <0x3 0 0x10000>;
48         };
49
50 * Freescale BCSR GPIO banks
51
52 Some BCSR registers act as simple GPIO controllers, each such
53 register can be represented by the gpio-controller node.
54
55 Required properities:
56 - compatible : Should be "fsl,<board>-bcsr-gpio".
57 - reg : Should contain the address and the length of the GPIO bank
58   register.
59 - #gpio-cells : Should be two. The first cell is the pin number and the
60   second cell is used to specify optional parameters (currently unused).
61 - gpio-controller : Marks the port as GPIO controller.
62
63 Example:
64
65         bcsr@1,0 {
66                 #address-cells = <1>;
67                 #size-cells = <1>;
68                 compatible = "fsl,mpc8360mds-bcsr";
69                 reg = <1 0 0x8000>;
70                 ranges = <0 1 0 0x8000>;
71
72                 bcsr13: gpio-controller@d {
73                         #gpio-cells = <2>;
74                         compatible = "fsl,mpc8360mds-bcsr-gpio";
75                         reg = <0xd 1>;
76                         gpio-controller;
77                 };
78         };
79
80 * Freescale on-board FPGA connected on I2C bus
81
82 Some Freescale boards like BSC9132QDS have on board FPGA connected on
83 the i2c bus.
84
85 Required properties:
86 - compatible: Should be a board-specific string followed by a string
87   indicating the type of FPGA.  Example:
88         "fsl,<board>-fpga", "fsl,fpga-qixis-i2c"
89 - reg: Should contain the address of the FPGA
90
91 Example:
92         fpga: fpga@66 {
93                 compatible = "fsl,bsc9132qds-fpga", "fsl,fpga-qixis-i2c";
94                 reg = <0x66>;
95         };
96
97 * Freescale on-board CPLD
98
99 Some Freescale boards like T1040RDB have an on board CPLD connected.
100
101 Required properties:
102 - compatible: Should be a board-specific string like "fsl,<board>-cpld"
103   Example:
104         "fsl,t1040rdb-cpld", "fsl,t1042rdb-cpld", "fsl,t1042rdb_pi-cpld"
105 - reg: should describe CPLD registers
106
107 Example:
108         cpld@3,0 {
109                 compatible = "fsl,t1040rdb-cpld";
110                 reg = <3 0 0x300>;
111         };