PPC: e500: dt: create / node dynamically
[qemu/agraf.git] / pc-bios / mpc8544ds.dts
blob1eac8ef053255d209d7fbd302d008932e6c36968
1 /*
2  * MPC8544 DS Device Tree Source
3  *
4  * Copyright 2007, 2008 Freescale Semiconductor Inc.
5  *
6  * This program is free software; you can redistribute  it and/or modify it
7  * under  the terms of  the GNU General  Public License as published by the
8  * Free Software Foundation;  either version 2 of the  License, or (at your
9  * option) any later version.
10  */
12 /dts-v1/;
13 / {
14         aliases {
15                 serial0 = &serial0;
16                 serial1 = &serial1;
17                 pci0 = &pci0;
18         };
20         soc8544@e0000000 {
21                 #address-cells = <1>;
22                 #size-cells = <1>;
23                 device_type = "soc";
24                 compatible = "simple-bus";
26                 ranges = <0x0 0xe0000000 0x100000>;
27                 reg = <0xe0000000 0x1000>;      // CCSRBAR 1M
28                 bus-frequency = <0>;            // Filled out by uboot.
30                 serial0: serial@4500 {
31                         cell-index = <0>;
32                         device_type = "serial";
33                         compatible = "ns16550";
34                         reg = <0x4500 0x100>;
35                         clock-frequency = <0>;
36                         interrupts = <42 2>;
37                         interrupt-parent = <&mpic>;
38                 };
40                 serial1: serial@4600 {
41                         cell-index = <1>;
42                         device_type = "serial";
43                         compatible = "ns16550";
44                         reg = <0x4600 0x100>;
45                         clock-frequency = <0>;
46                         interrupts = <42 2>;
47                         interrupt-parent = <&mpic>;
48                 };
50                 mpic: pic@40000 {
51                         interrupt-controller;
52                         #address-cells = <0>;
53                         #interrupt-cells = <2>;
54                         reg = <0x40000 0x40000>;
55                         compatible = "chrp,open-pic";
56                         device_type = "open-pic";
57                 };
59                 global-utilities@e0000 {        //global utilities block
60                         compatible = "fsl,mpc8544-guts";
61                         reg = <0xe0000 0x1000>;
62                         fsl,has-rstcr;
63                 };
64         };
66         pci0: pci@e0008000 {
67                 cell-index = <0>;
68                 compatible = "fsl,mpc8540-pci";
69                 device_type = "pci";
70                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
71                 interrupt-map = <
73                         /* IDSEL 0x11 J17 Slot 1 */
74                         0x8800 0x0 0x0 0x1 &mpic 0x2 0x1
75                         0x8800 0x0 0x0 0x2 &mpic 0x3 0x1
76                         0x8800 0x0 0x0 0x3 &mpic 0x4 0x1
77                         0x8800 0x0 0x0 0x4 &mpic 0x1 0x1
79                         /* IDSEL 0x12 J16 Slot 2 */
81                         0x9000 0x0 0x0 0x1 &mpic 0x3 0x1
82                         0x9000 0x0 0x0 0x2 &mpic 0x4 0x1
83                         0x9000 0x0 0x0 0x3 &mpic 0x2 0x1
84                         0x9000 0x0 0x0 0x4 &mpic 0x1 0x1>;
86                 interrupt-parent = <&mpic>;
87                 interrupts = <24 2>;
88                 bus-range = <0 255>;
89                 ranges = <0x2000000 0x0 0xc0000000 0xc0000000 0x0 0x20000000
90                           0x1000000 0x0 0x0 0xe1000000 0x0 0x10000>;
91                 clock-frequency = <66666666>;
92                 #interrupt-cells = <1>;
93                 #size-cells = <2>;
94                 #address-cells = <3>;
95                 reg = <0xe0008000 0x1000>;
96         };
98         chosen {
99                 linux,stdout-path = "/soc8544@e0000000/serial@4500";
100         };