blob: a983680c326384d3125ba1d39a65163b7455bada [file] [log] [blame]
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +01001/*
2 * Device Tree Souce for Buffalo KuroboxHD
3 *
4 * Choose CONFIG_LINKSTATION to build a kernel for KuroboxHD, or use
5 * the default configuration linkstation_defconfig.
6 *
7 * Based on sandpoint.dts
8 *
9 * 2006 (c) G. Liakhovetski <g.liakhovetski@gmx.de>
10 *
11 * This file is licensed under
12 * the terms of the GNU General Public License version 2. This program
13 * is licensed "as is" without any warranty of any kind, whether express
14 * or implied.
15
16XXXX add flash parts, rtc, ??
17
18build with: "dtc -f -I dts -O dtb -o kuroboxHD.dtb -V 16 kuroboxHD.dts"
19
20
21 */
22
23/ {
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010024 model = "KuroboxHD";
25 compatible = "linkstation";
26 #address-cells = <1>;
27 #size-cells = <1>;
28
29 cpus {
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010030 #address-cells = <1>;
31 #size-cells = <0>;
32
33 PowerPC,603e { /* Really 8241 */
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010034 device_type = "cpu";
35 reg = <0>;
36 clock-frequency = <bebc200>; /* Fixed by bootwrapper */
37 timebase-frequency = <1743000>; /* Fixed by bootwrapper */
38 bus-frequency = <0>; /* From bootloader */
39 /* Following required by dtc but not used */
40 i-cache-line-size = <0>;
41 d-cache-line-size = <0>;
42 i-cache-size = <4000>;
43 d-cache-size = <4000>;
44 };
45 };
46
47 memory {
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010048 device_type = "memory";
49 reg = <00000000 04000000>;
50 };
51
52 soc10x { /* AFAICT need to make soc for 8245's uarts to be defined */
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010053 #address-cells = <1>;
54 #size-cells = <1>;
55 #interrupt-cells = <2>;
56 device_type = "soc";
57 compatible = "mpc10x";
58 store-gathering = <0>; /* 0 == off, !0 == on */
59 reg = <80000000 00100000>;
60 ranges = <80000000 80000000 70000000 /* pci mem space */
61 fc000000 fc000000 00100000 /* EUMB */
62 fe000000 fe000000 00c00000 /* pci i/o space */
63 fec00000 fec00000 00300000 /* pci cfg regs */
64 fef00000 fef00000 00100000>; /* pci iack */
65
66 i2c@80003000 {
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010067 device_type = "i2c";
68 compatible = "fsl-i2c";
69 reg = <80003000 1000>;
70 interrupts = <5 2>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050071 interrupt-parent = <&mpic>;
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010072 };
73
74 serial@80004500 {
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010075 device_type = "serial";
76 compatible = "ns16550";
77 reg = <80004500 8>;
78 clock-frequency = <5d08d88>;
79 current-speed = <2580>;
80 interrupts = <9 2>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050081 interrupt-parent = <&mpic>;
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010082 };
83
84 serial@80004600 {
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010085 device_type = "serial";
86 compatible = "ns16550";
87 reg = <80004600 8>;
88 clock-frequency = <5d08d88>;
89 current-speed = <e100>;
90 interrupts = <a 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050091 interrupt-parent = <&mpic>;
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010092 };
93
Kumar Gala5c1992f2007-05-15 16:12:27 -050094 mpic: pic@80040000 {
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +010095 #interrupt-cells = <2>;
96 #address-cells = <0>;
97 device_type = "open-pic";
98 compatible = "chrp,open-pic";
99 interrupt-controller;
100 reg = <80040000 40000>;
101 built-in;
102 };
103
104 pci@fec00000 {
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +0100105 #address-cells = <3>;
106 #size-cells = <2>;
107 #interrupt-cells = <1>;
108 device_type = "pci";
109 compatible = "mpc10x-pci";
110 reg = <fec00000 400000>;
111 ranges = <01000000 0 0 fe000000 0 00c00000
112 02000000 0 80000000 80000000 0 70000000>;
113 bus-range = <0 ff>;
114 clock-frequency = <7f28155>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500115 interrupt-parent = <&mpic>;
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +0100116 interrupt-map-mask = <f800 0 0 7>;
117 interrupt-map = <
Grant Likelye3f64782007-04-22 07:24:04 +1000118 /* IDSEL 11 - IRQ0 ETH */
Kumar Gala5c1992f2007-05-15 16:12:27 -0500119 5800 0 0 1 &mpic 0 1
120 5800 0 0 2 &mpic 1 1
121 5800 0 0 3 &mpic 2 1
122 5800 0 0 4 &mpic 3 1
Grant Likelye3f64782007-04-22 07:24:04 +1000123 /* IDSEL 12 - IRQ1 IDE0 */
Kumar Gala5c1992f2007-05-15 16:12:27 -0500124 6000 0 0 1 &mpic 1 1
125 6000 0 0 2 &mpic 2 1
126 6000 0 0 3 &mpic 3 1
127 6000 0 0 4 &mpic 0 1
Grant Likelye3f64782007-04-22 07:24:04 +1000128 /* IDSEL 14 - IRQ3 USB2.0 */
Kumar Gala5c1992f2007-05-15 16:12:27 -0500129 7000 0 0 1 &mpic 3 1
130 7000 0 0 2 &mpic 3 1
131 7000 0 0 3 &mpic 3 1
132 7000 0 0 4 &mpic 3 1
Guennadi Liakhovetski8500adc2007-01-28 23:31:08 +0100133 >;
134 };
135 };
136};