blob: 8443c85b7b3096ba00a2ea439a0685e3ffb4e35f [file] [log] [blame]
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +01001/*
2 * Device Tree Souce for Buffalo KuroboxHG
3 *
4 * Choose CONFIG_LINKSTATION to build a kernel for KuroboxHG, 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
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010018 */
19
20/ {
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010021 model = "KuroboxHG";
22 compatible = "linkstation";
23 #address-cells = <1>;
24 #size-cells = <1>;
25
Kumar Galaea082fa2007-12-12 01:46:12 -060026 aliases {
27 serial0 = &serial0;
28 serial1 = &serial1;
29 pci0 = &pci0;
30 };
31
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010032 cpus {
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010033 #address-cells = <1>;
34 #size-cells = <0>;
35
36 PowerPC,603e { /* Really 8241 */
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010037 device_type = "cpu";
38 reg = <0>;
Guennadi Liakhovetskif2d32db2007-07-22 08:43:11 +100039 clock-frequency = <fdad680>; /* Fixed by bootloader */
40 timebase-frequency = <1F04000>; /* Fixed by bootloader */
41 bus-frequency = <0>; /* Fixed by bootloader */
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010042 /* Following required by dtc but not used */
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010043 i-cache-size = <4000>;
44 d-cache-size = <4000>;
45 };
46 };
47
48 memory {
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010049 device_type = "memory";
50 reg = <00000000 08000000>;
51 };
52
53 soc10x { /* AFAICT need to make soc for 8245's uarts to be defined */
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010054 #address-cells = <1>;
55 #size-cells = <1>;
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010056 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 Liakhovetskif2d32db2007-07-22 08:43:11 +100067 #address-cells = <1>;
68 #size-cells = <0>;
Kumar Galaec9686c2007-12-11 23:17:24 -060069 cell-index = <0>;
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010070 compatible = "fsl-i2c";
71 reg = <80003000 1000>;
72 interrupts = <5 2>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050073 interrupt-parent = <&mpic>;
Guennadi Liakhovetskif2d32db2007-07-22 08:43:11 +100074
75 rtc@32 {
76 device_type = "rtc";
Guennadi Liakhovetski7f2862c2007-08-26 00:08:11 +020077 compatible = "ricoh,rs5c372a";
Guennadi Liakhovetskif2d32db2007-07-22 08:43:11 +100078 reg = <32>;
79 };
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010080 };
81
Kumar Galaea082fa2007-12-12 01:46:12 -060082 serial0: serial@80004500 {
83 cell-index = <0>;
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010084 device_type = "serial";
85 compatible = "ns16550";
86 reg = <80004500 8>;
87 clock-frequency = <7c044a8>;
88 current-speed = <2580>;
Guennadi Liakhovetski7f2862c2007-08-26 00:08:11 +020089 interrupts = <9 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050090 interrupt-parent = <&mpic>;
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010091 };
92
Kumar Galaea082fa2007-12-12 01:46:12 -060093 serial1: serial@80004600 {
94 cell-index = <1>;
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +010095 device_type = "serial";
96 compatible = "ns16550";
97 reg = <80004600 8>;
98 clock-frequency = <7c044a8>;
99 current-speed = <e100>;
100 interrupts = <a 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500101 interrupt-parent = <&mpic>;
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +0100102 };
103
Guennadi Liakhovetskif2d32db2007-07-22 08:43:11 +1000104 mpic: interrupt-controller@80040000 {
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +0100105 #interrupt-cells = <2>;
106 #address-cells = <0>;
107 device_type = "open-pic";
108 compatible = "chrp,open-pic";
109 interrupt-controller;
110 reg = <80040000 40000>;
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +0100111 };
112
Kumar Galaea082fa2007-12-12 01:46:12 -0600113 pci0: pci@fec00000 {
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +0100114 #address-cells = <3>;
115 #size-cells = <2>;
116 #interrupt-cells = <1>;
117 device_type = "pci";
118 compatible = "mpc10x-pci";
119 reg = <fec00000 400000>;
120 ranges = <01000000 0 0 fe000000 0 00c00000
121 02000000 0 80000000 80000000 0 70000000>;
122 bus-range = <0 ff>;
123 clock-frequency = <7f28155>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500124 interrupt-parent = <&mpic>;
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +0100125 interrupt-map-mask = <f800 0 0 7>;
126 interrupt-map = <
Grant Likelye3f64782007-04-22 07:24:04 +1000127 /* IDSEL 11 - IRQ0 ETH */
Kumar Gala5c1992f2007-05-15 16:12:27 -0500128 5800 0 0 1 &mpic 0 1
129 5800 0 0 2 &mpic 1 1
130 5800 0 0 3 &mpic 2 1
131 5800 0 0 4 &mpic 3 1
Grant Likelye3f64782007-04-22 07:24:04 +1000132 /* IDSEL 12 - IRQ1 IDE0 */
Kumar Gala5c1992f2007-05-15 16:12:27 -0500133 6000 0 0 1 &mpic 1 1
134 6000 0 0 2 &mpic 2 1
135 6000 0 0 3 &mpic 3 1
136 6000 0 0 4 &mpic 0 1
Grant Likelye3f64782007-04-22 07:24:04 +1000137 /* IDSEL 14 - IRQ3 USB2.0 */
Kumar Gala5c1992f2007-05-15 16:12:27 -0500138 7000 0 0 1 &mpic 3 1
139 7000 0 0 2 &mpic 3 1
140 7000 0 0 3 &mpic 3 1
141 7000 0 0 4 &mpic 3 1
Guennadi Liakhovetski04d76b92006-12-01 22:53:48 +0100142 >;
143 };
144 };
145};