blob: 1db07f6cf133cd1779c4d85903a1d43379632f82 [file] [log] [blame]
Marian Balakowicz30d992e2007-11-10 04:12:20 +11001/*
2 * TQM5200 board Device Tree Source
3 *
4 * Copyright (C) 2007 Semihalf
5 * Marian Balakowicz <m8@semihalf.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 */
12
Grant Likelya2884f32008-04-29 07:19:07 -060013/dts-v1/;
14
Marian Balakowicz30d992e2007-11-10 04:12:20 +110015/ {
16 model = "tqc,tqm5200";
17 compatible = "tqc,tqm5200";
18 #address-cells = <1>;
19 #size-cells = <1>;
Grant Likelyb8842452009-02-03 12:30:26 -070020 interrupt-parent = <&mpc5200_pic>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110021
22 cpus {
23 #address-cells = <1>;
24 #size-cells = <0>;
25
26 PowerPC,5200@0 {
27 device_type = "cpu";
28 reg = <0>;
Grant Likelya2884f32008-04-29 07:19:07 -060029 d-cache-line-size = <32>;
30 i-cache-line-size = <32>;
31 d-cache-size = <0x4000>; // L1, 16K
32 i-cache-size = <0x4000>; // L1, 16K
Marian Balakowicz30d992e2007-11-10 04:12:20 +110033 timebase-frequency = <0>; // from bootloader
34 bus-frequency = <0>; // from bootloader
35 clock-frequency = <0>; // from bootloader
36 };
37 };
38
39 memory {
40 device_type = "memory";
Grant Likelya2884f32008-04-29 07:19:07 -060041 reg = <0x00000000 0x04000000>; // 64MB
Marian Balakowicz30d992e2007-11-10 04:12:20 +110042 };
43
44 soc5200@f0000000 {
Paul Gortmaker58a5be32008-01-26 07:33:20 +110045 #address-cells = <1>;
46 #size-cells = <1>;
Grant Likely24ce6bc2008-01-24 22:25:31 -070047 compatible = "fsl,mpc5200-immr";
Grant Likelya2884f32008-04-29 07:19:07 -060048 ranges = <0 0xf0000000 0x0000c000>;
49 reg = <0xf0000000 0x00000100>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110050 bus-frequency = <0>; // from bootloader
51 system-frequency = <0>; // from bootloader
52
53 cdm@200 {
Grant Likely24ce6bc2008-01-24 22:25:31 -070054 compatible = "fsl,mpc5200-cdm";
Grant Likelya2884f32008-04-29 07:19:07 -060055 reg = <0x200 0x38>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110056 };
57
Grant Likely24ce6bc2008-01-24 22:25:31 -070058 mpc5200_pic: interrupt-controller@500 {
Marian Balakowicz30d992e2007-11-10 04:12:20 +110059 // 5200 interrupts are encoded into two levels;
60 interrupt-controller;
61 #interrupt-cells = <3>;
Grant Likely24ce6bc2008-01-24 22:25:31 -070062 compatible = "fsl,mpc5200-pic";
Grant Likelya2884f32008-04-29 07:19:07 -060063 reg = <0x500 0x80>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110064 };
65
Grant Likely24ce6bc2008-01-24 22:25:31 -070066 timer@600 { // General Purpose Timer
Marian Balakowicz30d992e2007-11-10 04:12:20 +110067 compatible = "fsl,mpc5200-gpt";
Grant Likelya2884f32008-04-29 07:19:07 -060068 reg = <0x600 0x10>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110069 interrupts = <1 9 0>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110070 fsl,has-wdt;
71 };
72
Wolfgang Grandeggerb0852cb2008-07-02 11:56:40 +020073 can@900 {
74 compatible = "fsl,mpc5200-mscan";
75 interrupts = <2 17 0>;
Wolfgang Grandeggerb0852cb2008-07-02 11:56:40 +020076 reg = <0x900 0x80>;
77 };
78
79 can@980 {
80 compatible = "fsl,mpc5200-mscan";
81 interrupts = <2 18 0>;
Wolfgang Grandeggerb0852cb2008-07-02 11:56:40 +020082 reg = <0x980 0x80>;
83 };
84
Grant Likelyb8842452009-02-03 12:30:26 -070085 gpio_simple: gpio@b00 {
Grant Likely24ce6bc2008-01-24 22:25:31 -070086 compatible = "fsl,mpc5200-gpio";
Grant Likelya2884f32008-04-29 07:19:07 -060087 reg = <0xb00 0x40>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110088 interrupts = <1 7 0>;
Grant Likelyb8842452009-02-03 12:30:26 -070089 gpio-controller;
90 #gpio-cells = <2>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110091 };
92
93 usb@1000 {
Grant Likely24ce6bc2008-01-24 22:25:31 -070094 compatible = "fsl,mpc5200-ohci","ohci-be";
Grant Likelya2884f32008-04-29 07:19:07 -060095 reg = <0x1000 0xff>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110096 interrupts = <2 6 0>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +110097 };
98
99 dma-controller@1200 {
Grant Likely24ce6bc2008-01-24 22:25:31 -0700100 compatible = "fsl,mpc5200-bestcomm";
Grant Likelya2884f32008-04-29 07:19:07 -0600101 reg = <0x1200 0x80>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100102 interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
103 3 4 0 3 5 0 3 6 0 3 7 0
Grant Likelya2884f32008-04-29 07:19:07 -0600104 3 8 0 3 9 0 3 10 0 3 11 0
105 3 12 0 3 13 0 3 14 0 3 15 0>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100106 };
107
108 xlb@1f00 {
Grant Likely24ce6bc2008-01-24 22:25:31 -0700109 compatible = "fsl,mpc5200-xlb";
Grant Likelya2884f32008-04-29 07:19:07 -0600110 reg = <0x1f00 0x100>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100111 };
112
113 serial@2000 { // PSC1
Grant Likely24ce6bc2008-01-24 22:25:31 -0700114 compatible = "fsl,mpc5200-psc-uart";
Grant Likelya2884f32008-04-29 07:19:07 -0600115 reg = <0x2000 0x100>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100116 interrupts = <2 1 0>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100117 };
118
119 serial@2200 { // PSC2
Grant Likely24ce6bc2008-01-24 22:25:31 -0700120 compatible = "fsl,mpc5200-psc-uart";
Grant Likelya2884f32008-04-29 07:19:07 -0600121 reg = <0x2200 0x100>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100122 interrupts = <2 2 0>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100123 };
124
125 serial@2400 { // PSC3
Grant Likely24ce6bc2008-01-24 22:25:31 -0700126 compatible = "fsl,mpc5200-psc-uart";
Grant Likelya2884f32008-04-29 07:19:07 -0600127 reg = <0x2400 0x100>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100128 interrupts = <2 3 0>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100129 };
130
131 ethernet@3000 {
Grant Likely24ce6bc2008-01-24 22:25:31 -0700132 compatible = "fsl,mpc5200-fec";
Grant Likelya2884f32008-04-29 07:19:07 -0600133 reg = <0x3000 0x400>;
Grant Likely24ce6bc2008-01-24 22:25:31 -0700134 local-mac-address = [ 00 00 00 00 00 00 ];
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100135 interrupts = <2 5 0>;
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100136 phy-handle = <&phy0>;
137 };
138
139 mdio@3000 {
140 #address-cells = <1>;
141 #size-cells = <0>;
Grant Likelya2884f32008-04-29 07:19:07 -0600142 compatible = "fsl,mpc5200-mdio";
143 reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100144 interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100145
146 phy0: ethernet-phy@0 {
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100147 reg = <0>;
148 };
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100149 };
150
151 ata@3a00 {
Grant Likely24ce6bc2008-01-24 22:25:31 -0700152 compatible = "fsl,mpc5200-ata";
Grant Likelya2884f32008-04-29 07:19:07 -0600153 reg = <0x3a00 0x100>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100154 interrupts = <2 7 0>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100155 };
156
157 i2c@3d40 {
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100158 #address-cells = <1>;
159 #size-cells = <0>;
Grant Likely24ce6bc2008-01-24 22:25:31 -0700160 compatible = "fsl,mpc5200-i2c","fsl-i2c";
Grant Likelya2884f32008-04-29 07:19:07 -0600161 reg = <0x3d40 0x40>;
162 interrupts = <2 16 0>;
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100163
164 rtc@68 {
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100165 compatible = "dallas,ds1307";
Grant Likelya2884f32008-04-29 07:19:07 -0600166 reg = <0x68>;
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100167 };
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100168 };
169
170 sram@8000 {
Grant Likely24ce6bc2008-01-24 22:25:31 -0700171 compatible = "fsl,mpc5200-sram";
Grant Likelya2884f32008-04-29 07:19:07 -0600172 reg = <0x8000 0x4000>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100173 };
174 };
175
Grant Likelyb8842452009-02-03 12:30:26 -0700176 localbus {
177 compatible = "fsl,mpc5200-lpb","simple-bus";
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100178 #address-cells = <2>;
179 #size-cells = <1>;
Grant Likelya2884f32008-04-29 07:19:07 -0600180 ranges = <0 0 0xfc000000 0x02000000>;
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100181
182 flash@0,0 {
183 compatible = "cfi-flash";
Grant Likelya2884f32008-04-29 07:19:07 -0600184 reg = <0 0 0x02000000>;
Bartlomiej Sieka115e1ad2008-04-03 01:26:02 +1100185 bank-width = <4>;
186 device-width = <2>;
187 #size-cells = <1>;
188 #address-cells = <1>;
189 };
190 };
191
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100192 pci@f0000d00 {
193 #interrupt-cells = <1>;
194 #size-cells = <2>;
195 #address-cells = <3>;
196 device_type = "pci";
197 compatible = "fsl,mpc5200-pci";
Grant Likelya2884f32008-04-29 07:19:07 -0600198 reg = <0xf0000d00 0x100>;
199 interrupt-map-mask = <0xf800 0 0 7>;
200 interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3
201 0xc000 0 0 2 &mpc5200_pic 0 0 3
202 0xc000 0 0 3 &mpc5200_pic 0 0 3
203 0xc000 0 0 4 &mpc5200_pic 0 0 3>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100204 clock-frequency = <0>; // From boot loader
Grant Likelya2884f32008-04-29 07:19:07 -0600205 interrupts = <2 8 0 2 9 0 2 10 0>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100206 bus-range = <0 0>;
Grant Likelya2884f32008-04-29 07:19:07 -0600207 ranges = <0x42000000 0 0x80000000 0x80000000 0 0x10000000
208 0x02000000 0 0x90000000 0x90000000 0 0x10000000
209 0x01000000 0 0x00000000 0xa0000000 0 0x01000000>;
Marian Balakowicz30d992e2007-11-10 04:12:20 +1100210 };
211};