1 Marvell Discovery mv64[345]6x System Controller chips
2 ===========================================================
4 The Marvell mv64[345]60 series of system controller chips contain
5 many of the peripherals needed to implement a complete computer
6 system. In this section, we define device tree nodes to describe
7 the system controller chip itself and each of the peripherals
8 which it contains. Compatible string values for each node are
9 prefixed with the string "marvell,", for Marvell Technology Group Ltd.
11 1) The /system-controller node
13 This node is used to represent the system-controller and must be
14 present when the system uses a system controller chip. The top-level
15 system-controller node contains information that is global to all
16 devices within the system controller chip. The node name begins
17 with "system-controller" followed by the unit address, which is
18 the base address of the memory-mapped register set for the system
23 - ranges : Describes the translation of system controller addresses
24 for memory mapped registers.
25 - clock-frequency: Contains the main clock frequency for the system
27 - reg : This property defines the address and size of the
28 memory-mapped registers contained within the system controller
29 chip. The address specified in the "reg" property should match
30 the unit address of the system-controller node.
31 - #address-cells : Address representation for system controller
32 devices. This field represents the number of cells needed to
33 represent the address of the memory-mapped registers of devices
34 within the system controller chip.
35 - #size-cells : Size representation for the memory-mapped
36 registers within the system controller chip.
37 - #interrupt-cells : Defines the width of cells used to represent
42 - model : The specific model of the system controller chip. Such
43 as, "mv64360", "mv64460", or "mv64560".
44 - compatible : A string identifying the compatibility identifiers
45 of the system controller chip.
47 The system-controller node contains child nodes for each system
48 controller device that the platform uses. Nodes should not be created
49 for devices which exist on the system controller chip but are not used
51 Example Marvell Discovery mv64360 system-controller node:
53 system-controller@f1000000 { /* Marvell Discovery mv64360 */
56 model = "mv64360"; /* Default */
57 compatible = "marvell,mv64360";
58 clock-frequency = <133333333>;
59 reg = <0xf1000000 0x10000>;
60 virtual-reg = <0xf1000000>;
61 ranges = <0x88000000 0x88000000 0x1000000 /* PCI 0 I/O Space */
62 0x80000000 0x80000000 0x8000000 /* PCI 0 MEM Space */
63 0xa0000000 0xa0000000 0x4000000 /* User FLASH */
64 0x00000000 0xf1000000 0x0010000 /* Bridge's regs */
65 0xf2000000 0xf2000000 0x0040000>;/* Integrated SRAM */
67 [ child node definitions... ]
70 2) Child nodes of /system-controller
72 a) Marvell Discovery MDIO bus
74 The MDIO is a bus to which the PHY devices are connected. For each
75 device that exists on this bus, a child node should be created. See
76 the definition of the PHY node below for an example of how to define
80 - #address-cells : Should be <1>
81 - #size-cells : Should be <0>
82 - compatible : Should be "marvell,mv64360-mdio"
89 compatible = "marvell,mv64360-mdio";
97 b) Marvell Discovery ethernet controller
99 The Discover ethernet controller is described with two levels
100 of nodes. The first level describes an ethernet silicon block
101 and the second level describes up to 3 ethernet nodes within
102 that block. The reason for the multiple levels is that the
103 registers for the node are interleaved within a single set
104 of registers. The "ethernet-block" level describes the
105 shared register set, and the "ethernet" nodes describe ethernet
106 port-specific properties.
111 - #address-cells : <1>
113 - compatible : "marvell,mv64360-eth-block"
114 - reg : Offset and length of the register set for this block
117 - clocks : Phandle to the clock control device and gate bit
119 Example Discovery Ethernet block node:
120 ethernet-block@2000 {
121 #address-cells = <1>;
123 compatible = "marvell,mv64360-eth-block";
124 reg = <0x2000 0x2000>;
133 - compatible : Should be "marvell,mv64360-eth".
134 - reg : Should be <0>, <1>, or <2>, according to which registers
135 within the silicon block the device uses.
136 - interrupts : <a> where a is the interrupt number for the port.
137 - interrupt-parent : the phandle for the interrupt controller
138 that services interrupts for this device.
139 - phy : the phandle for the PHY connected to this ethernet
141 - local-mac-address : 6 bytes, MAC address
143 Example Discovery Ethernet port node:
145 compatible = "marvell,mv64360-eth";
148 interrupt-parent = <&PIC>;
150 local-mac-address = [ 00 00 00 00 00 00 ];
155 c) Marvell Discovery PHY nodes
158 - interrupts : <a> where a is the interrupt number for this phy.
159 - interrupt-parent : the phandle for the interrupt controller that
160 services interrupts for this device.
161 - reg : The ID number for the phy, usually a small integer
163 Example Discovery PHY node:
165 compatible = "broadcom,bcm5421";
166 interrupts = <76>; /* GPP 12 */
167 interrupt-parent = <&PIC>;
172 d) Marvell Discovery SDMA nodes
174 Represent DMA hardware associated with the MPSC (multiprotocol
178 - compatible : "marvell,mv64360-sdma"
179 - reg : Offset and length of the register set for this device
180 - interrupts : <a> where a is the interrupt number for the DMA
182 - interrupt-parent : the phandle for the interrupt controller
183 that services interrupts for this device.
185 Example Discovery SDMA node:
187 compatible = "marvell,mv64360-sdma";
188 reg = <0x4000 0xc18>;
189 virtual-reg = <0xf1004000>;
191 interrupt-parent = <&PIC>;
195 e) Marvell Discovery BRG nodes
197 Represent baud rate generator hardware associated with the MPSC
198 (multiprotocol serial controllers).
201 - compatible : "marvell,mv64360-brg"
202 - reg : Offset and length of the register set for this device
203 - clock-src : A value from 0 to 15 which selects the clock
204 source for the baud rate generator. This value corresponds
205 to the CLKS value in the BRGx configuration register. See
206 the mv64x60 User's Manual.
207 - clock-frequence : The frequency (in Hz) of the baud rate
208 generator's input clock.
209 - current-speed : The current speed setting (presumably by
210 firmware) of the baud rate generator.
212 Example Discovery BRG node:
214 compatible = "marvell,mv64360-brg";
217 clock-frequency = <133333333>;
218 current-speed = <9600>;
222 f) Marvell Discovery CUNIT nodes
224 Represent the Serial Communications Unit device hardware.
227 - reg : Offset and length of the register set for this device
229 Example Discovery CUNIT node:
231 reg = <0xf200 0x200>;
235 g) Marvell Discovery MPSCROUTING nodes
237 Represent the Discovery's MPSC routing hardware
240 - reg : Offset and length of the register set for this device
242 Example Discovery CUNIT node:
248 h) Marvell Discovery MPSCINTR nodes
250 Represent the Discovery's MPSC DMA interrupt hardware registers
251 (SDMA cause and mask registers).
254 - reg : Offset and length of the register set for this device
256 Example Discovery MPSCINTR node:
258 reg = <0xb800 0x100>;
262 i) Marvell Discovery MPSC nodes
264 Represent the Discovery's MPSC (Multiprotocol Serial Controller)
268 - compatible : "marvell,mv64360-mpsc"
269 - reg : Offset and length of the register set for this device
270 - sdma : the phandle for the SDMA node used by this port
271 - brg : the phandle for the BRG node used by this port
272 - cunit : the phandle for the CUNIT node used by this port
273 - mpscrouting : the phandle for the MPSCROUTING node used by this port
274 - mpscintr : the phandle for the MPSCINTR node used by this port
275 - cell-index : the hardware index of this cell in the MPSC core
276 - max_idle : value needed for MPSC CHR3 (Maximum Frame Length)
278 - interrupts : <a> where a is the interrupt number for the MPSC.
279 - interrupt-parent : the phandle for the interrupt controller
280 that services interrupts for this device.
282 Example Discovery MPSCINTR node:
284 compatible = "marvell,mv64360-mpsc";
286 virtual-reg = <0xf1008000>;
290 mpscrouting = <&MPSCROUTING>;
291 mpscintr = <&MPSCINTR>;
295 interrupt-parent = <&PIC>;
299 j) Marvell Discovery Watch Dog Timer nodes
301 Represent the Discovery's watchdog timer hardware
304 - compatible : "marvell,mv64360-wdt"
305 - reg : Offset and length of the register set for this device
307 Example Discovery Watch Dog Timer node:
309 compatible = "marvell,mv64360-wdt";
314 k) Marvell Discovery I2C nodes
316 Represent the Discovery's I2C hardware
319 - device_type : "i2c"
320 - compatible : "marvell,mv64360-i2c"
321 - reg : Offset and length of the register set for this device
322 - interrupts : <a> where a is the interrupt number for the I2C.
323 - interrupt-parent : the phandle for the interrupt controller
324 that services interrupts for this device.
326 Example Discovery I2C node:
327 compatible = "marvell,mv64360-i2c";
329 virtual-reg = <0xf100c000>;
331 interrupt-parent = <&PIC>;
335 l) Marvell Discovery PIC (Programmable Interrupt Controller) nodes
337 Represent the Discovery's PIC hardware
340 - #interrupt-cells : <1>
341 - #address-cells : <0>
342 - compatible : "marvell,mv64360-pic"
343 - reg : Offset and length of the register set for this device
344 - interrupt-controller
346 Example Discovery PIC node:
348 #interrupt-cells = <1>;
349 #address-cells = <0>;
350 compatible = "marvell,mv64360-pic";
352 interrupt-controller;
356 m) Marvell Discovery MPP (Multipurpose Pins) multiplexing nodes
358 Represent the Discovery's MPP hardware
361 - compatible : "marvell,mv64360-mpp"
362 - reg : Offset and length of the register set for this device
364 Example Discovery MPP node:
366 compatible = "marvell,mv64360-mpp";
371 n) Marvell Discovery GPP (General Purpose Pins) nodes
373 Represent the Discovery's GPP hardware
376 - compatible : "marvell,mv64360-gpp"
377 - reg : Offset and length of the register set for this device
379 Example Discovery GPP node:
381 compatible = "marvell,mv64360-gpp";
386 o) Marvell Discovery PCI host bridge node
388 Represents the Discovery's PCI host bridge device. The properties
389 for this node conform to Rev 2.1 of the PCI Bus Binding to IEEE
390 1275-1994. A typical value for the compatible property is
391 "marvell,mv64360-pci".
393 Example Discovery PCI host bridge node
395 #address-cells = <3>;
397 #interrupt-cells = <1>;
399 compatible = "marvell,mv64360-pci";
401 ranges = <0x01000000 0x0 0x0
402 0x88000000 0x0 0x01000000
403 0x02000000 0x0 0x80000000
404 0x80000000 0x0 0x08000000>;
406 clock-frequency = <66000000>;
407 interrupt-parent = <&PIC>;
408 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
437 p) Marvell Discovery CPU Error nodes
439 Represent the Discovery's CPU error handler device.
442 - compatible : "marvell,mv64360-cpu-error"
443 - reg : Offset and length of the register set for this device
444 - interrupts : the interrupt number for this device
445 - interrupt-parent : the phandle for the interrupt controller
446 that services interrupts for this device.
448 Example Discovery CPU Error node:
450 compatible = "marvell,mv64360-cpu-error";
451 reg = <0x70 0x10 0x128 0x28>;
453 interrupt-parent = <&PIC>;
457 q) Marvell Discovery SRAM Controller nodes
459 Represent the Discovery's SRAM controller device.
462 - compatible : "marvell,mv64360-sram-ctrl"
463 - reg : Offset and length of the register set for this device
464 - interrupts : the interrupt number for this device
465 - interrupt-parent : the phandle for the interrupt controller
466 that services interrupts for this device.
468 Example Discovery SRAM Controller node:
470 compatible = "marvell,mv64360-sram-ctrl";
473 interrupt-parent = <&PIC>;
477 r) Marvell Discovery PCI Error Handler nodes
479 Represent the Discovery's PCI error handler device.
482 - compatible : "marvell,mv64360-pci-error"
483 - reg : Offset and length of the register set for this device
484 - interrupts : the interrupt number for this device
485 - interrupt-parent : the phandle for the interrupt controller
486 that services interrupts for this device.
488 Example Discovery PCI Error Handler node:
490 compatible = "marvell,mv64360-pci-error";
491 reg = <0x1d40 0x40 0xc28 0x4>;
493 interrupt-parent = <&PIC>;
497 s) Marvell Discovery Memory Controller nodes
499 Represent the Discovery's memory controller device.
502 - compatible : "marvell,mv64360-mem-ctrl"
503 - reg : Offset and length of the register set for this device
504 - interrupts : the interrupt number for this device
505 - interrupt-parent : the phandle for the interrupt controller
506 that services interrupts for this device.
508 Example Discovery Memory Controller node:
510 compatible = "marvell,mv64360-mem-ctrl";
513 interrupt-parent = <&PIC>;