blob: b5413cb85f13458f31a46019a5b868c12082f192 [file] [log] [blame]
Grant Likelybfee95b2009-02-04 13:39:17 -07001/*
2 * Freescale Media5200 board Device Tree Source
3 *
4 * Copyright 2009 Secret Lab Technologies Ltd.
5 * Grant Likely <grant.likely@secretlab.ca>
6 * Steven Cavanagh <scavanagh@secretlab.ca>
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
12 */
13
John Bonesioc8bf6b52010-11-17 15:28:56 -080014/include/ "mpc5200b.dtsi"
Grant Likelybfee95b2009-02-04 13:39:17 -070015
Grant Likelyfa59f172013-02-08 08:02:51 +000016&gpt0 { fsl,has-wdt; };
17
Grant Likelybfee95b2009-02-04 13:39:17 -070018/ {
19 model = "fsl,media5200";
20 compatible = "fsl,media5200";
Grant Likelybfee95b2009-02-04 13:39:17 -070021
22 aliases {
23 console = &console;
24 ethernet0 = &eth0;
25 };
26
27 chosen {
28 linux,stdout-path = &console;
29 };
30
31 cpus {
Grant Likelybfee95b2009-02-04 13:39:17 -070032 PowerPC,5200@0 {
Grant Likelybfee95b2009-02-04 13:39:17 -070033 timebase-frequency = <33000000>; // 33 MHz, these were configured by U-Boot
34 bus-frequency = <132000000>; // 132 MHz
35 clock-frequency = <396000000>; // 396 MHz
36 };
37 };
38
39 memory {
Grant Likelybfee95b2009-02-04 13:39:17 -070040 reg = <0x00000000 0x08000000>; // 128MB RAM
41 };
42
John Bonesioc8bf6b52010-11-17 15:28:56 -080043 soc5200@f0000000 {
Grant Likelybfee95b2009-02-04 13:39:17 -070044 bus-frequency = <132000000>;// 132 MHz
Grant Likelybfee95b2009-02-04 13:39:17 -070045
John Bonesioc8bf6b52010-11-17 15:28:56 -080046 psc@2000 { // PSC1
47 status = "disabled";
Grant Likelybfee95b2009-02-04 13:39:17 -070048 };
49
John Bonesioc8bf6b52010-11-17 15:28:56 -080050 psc@2200 { // PSC2
51 status = "disabled";
Grant Likelybfee95b2009-02-04 13:39:17 -070052 };
53
John Bonesioc8bf6b52010-11-17 15:28:56 -080054 psc@2400 { // PSC3
55 status = "disabled";
Grant Likelybfee95b2009-02-04 13:39:17 -070056 };
57
John Bonesioc8bf6b52010-11-17 15:28:56 -080058 psc@2600 { // PSC4
59 status = "disabled";
Grant Likelybfee95b2009-02-04 13:39:17 -070060 };
61
John Bonesioc8bf6b52010-11-17 15:28:56 -080062 psc@2800 { // PSC5
63 status = "disabled";
Grant Likelybfee95b2009-02-04 13:39:17 -070064 };
65
66 // PSC6 in uart mode
John Bonesioabf1e272010-11-17 15:28:30 -080067 console: psc@2c00 { // PSC6
Grant Likelybfee95b2009-02-04 13:39:17 -070068 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
Grant Likelybfee95b2009-02-04 13:39:17 -070069 };
70
John Bonesioc8bf6b52010-11-17 15:28:56 -080071 ethernet@3000 {
Grant Likelybfee95b2009-02-04 13:39:17 -070072 phy-handle = <&phy0>;
73 };
74
75 mdio@3000 {
Grant Likelybfee95b2009-02-04 13:39:17 -070076 phy0: ethernet-phy@0 {
77 reg = <0>;
78 };
79 };
80
John Bonesioc8bf6b52010-11-17 15:28:56 -080081 usb@1000 {
82 reg = <0x1000 0x100>;
Grant Likelybfee95b2009-02-04 13:39:17 -070083 };
84 };
85
86 pci@f0000d00 {
Grant Likelybfee95b2009-02-04 13:39:17 -070087 interrupt-map-mask = <0xf800 0 0 7>;
88 interrupt-map = <0xc000 0 0 1 &media5200_fpga 0 2 // 1st slot
89 0xc000 0 0 2 &media5200_fpga 0 3
90 0xc000 0 0 3 &media5200_fpga 0 4
91 0xc000 0 0 4 &media5200_fpga 0 5
92
93 0xc800 0 0 1 &media5200_fpga 0 3 // 2nd slot
94 0xc800 0 0 2 &media5200_fpga 0 4
95 0xc800 0 0 3 &media5200_fpga 0 5
96 0xc800 0 0 4 &media5200_fpga 0 2
97
98 0xd000 0 0 1 &media5200_fpga 0 4 // miniPCI
99 0xd000 0 0 2 &media5200_fpga 0 5
100
101 0xe000 0 0 1 &media5200_fpga 0 5 // CoralIP
102 >;
Grant Likelybfee95b2009-02-04 13:39:17 -0700103 ranges = <0x42000000 0 0x80000000 0x80000000 0 0x20000000
104 0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
105 0x01000000 0 0x00000000 0xb0000000 0 0x01000000>;
John Bonesioc8bf6b52010-11-17 15:28:56 -0800106 interrupt-parent = <&mpc5200_pic>;
Grant Likelybfee95b2009-02-04 13:39:17 -0700107 };
108
109 localbus {
Grant Likelybfee95b2009-02-04 13:39:17 -0700110 ranges = < 0 0 0xfc000000 0x02000000
111 1 0 0xfe000000 0x02000000
112 2 0 0xf0010000 0x00010000
113 3 0 0xf0020000 0x00010000 >;
Grant Likelybfee95b2009-02-04 13:39:17 -0700114 flash@0,0 {
115 compatible = "amd,am29lv28ml", "cfi-flash";
John Bonesioc8bf6b52010-11-17 15:28:56 -0800116 reg = <0 0x0 0x2000000>; // 32 MB
117 bank-width = <4>; // Width in bytes of the flash bank
118 device-width = <2>; // Two devices on each bank
Grant Likelybfee95b2009-02-04 13:39:17 -0700119 };
120
121 flash@1,0 {
122 compatible = "amd,am29lv28ml", "cfi-flash";
John Bonesioc8bf6b52010-11-17 15:28:56 -0800123 reg = <1 0 0x2000000>; // 32 MB
124 bank-width = <4>; // Width in bytes of the flash bank
125 device-width = <2>; // Two devices on each bank
Grant Likelybfee95b2009-02-04 13:39:17 -0700126 };
127
128 media5200_fpga: fpga@2,0 {
129 compatible = "fsl,media5200-fpga";
130 interrupt-controller;
131 #interrupt-cells = <2>; // 0:bank 1:id; no type field
132 reg = <2 0 0x10000>;
133
134 interrupt-parent = <&mpc5200_pic>;
135 interrupts = <0 0 3 // IRQ bank 0
136 1 1 3>; // IRQ bank 1
137 };
138
139 uart@3,0 {
140 compatible = "ti,tl16c752bpt";
141 reg = <3 0 0x10000>;
142 interrupt-parent = <&media5200_fpga>;
143 interrupts = <0 0 0 1>; // 2 irqs
144 };
145 };
146};