blob: 5abb46c5cc9513e60a37a643b3519db5bc6ccfe4 [file] [log] [blame]
Grant Likelyc6d4d652006-11-27 14:16:29 -07001/*
2 * Lite5200B board Device Tree Source
3 *
Grant Likely05cbbc62007-02-12 13:36:54 -07004 * Copyright 2006-2007 Secret Lab Technologies Ltd.
Grant Likelyc6d4d652006-11-27 14:16:29 -07005 * Grant Likely <grant.likely@secretlab.ca>
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
John Bonesioc8bf6b52010-11-17 15:28:56 -080013/include/ "mpc5200b.dtsi"
Grant Likely121361f2007-01-19 00:00:14 -070014
Grant Likely4fd0a212013-02-08 08:02:50 +000015&gpt0 { fsl,has-wdt; };
16&gpt2 { gpio-controller; };
17&gpt3 { gpio-controller; };
18
Grant Likelyc6d4d652006-11-27 14:16:29 -070019/ {
Grant Likely05cbbc62007-02-12 13:36:54 -070020 model = "fsl,lite5200b";
Marian Balakowicz5b5820d2007-11-15 22:40:21 +110021 compatible = "fsl,lite5200b";
Grant Likelyc6d4d652006-11-27 14:16:29 -070022
Grant Likely4fd0a212013-02-08 08:02:50 +000023 leds {
24 compatible = "gpio-leds";
25 tmr2 {
26 gpios = <&gpt2 0 1>;
27 };
28 tmr3 {
29 gpios = <&gpt3 0 1>;
30 linux,default-trigger = "heartbeat";
31 };
32 led1 { gpios = <&gpio_wkup 2 1>; };
33 led2 { gpios = <&gpio_simple 3 1>; };
34 led3 { gpios = <&gpio_wkup 3 1>; };
35 led4 { gpios = <&gpio_simple 2 1>; };
36 };
37
Grant Likelyc6d4d652006-11-27 14:16:29 -070038 memory {
Grant Likelya2884f32008-04-29 07:19:07 -060039 reg = <0x00000000 0x10000000>; // 256MB
Grant Likelyc6d4d652006-11-27 14:16:29 -070040 };
41
42 soc5200@f0000000 {
John Bonesioabf1e272010-11-17 15:28:30 -080043 psc@2000 { // PSC1
Grant Likely24ce6bc2008-01-24 22:25:31 -070044 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
John Bonesioc8bf6b52010-11-17 15:28:56 -080045 cell-index = <0>;
46 };
47
48 psc@2200 { // PSC2
49 status = "disabled";
50 };
51
52 psc@2400 { // PSC3
53 status = "disabled";
54 };
55
56 psc@2600 { // PSC4
57 status = "disabled";
58 };
59
60 psc@2800 { // PSC5
61 status = "disabled";
62 };
63
64 psc@2c00 { // PSC6
65 status = "disabled";
Grant Likelyc6d4d652006-11-27 14:16:29 -070066 };
67
Grant Likely05cbbc62007-02-12 13:36:54 -070068 // PSC2 in ac97 mode example
69 //ac97@2200 { // PSC2
Grant Likely24ce6bc2008-01-24 22:25:31 -070070 // compatible = "fsl,mpc5200b-psc-ac97","fsl,mpc5200-psc-ac97";
Grant Likely05cbbc62007-02-12 13:36:54 -070071 // cell-index = <1>;
Grant Likely05cbbc62007-02-12 13:36:54 -070072 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -070073
74 // PSC3 in CODEC mode example
Grant Likely05cbbc62007-02-12 13:36:54 -070075 //i2s@2400 { // PSC3
Grant Likely24ce6bc2008-01-24 22:25:31 -070076 // compatible = "fsl,mpc5200b-psc-i2s"; //not 5200 compatible
Grant Likely05cbbc62007-02-12 13:36:54 -070077 // cell-index = <2>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070078 //};
79
Grant Likely05cbbc62007-02-12 13:36:54 -070080 // PSC6 in spi mode example
81 //spi@2c00 { // PSC6
Grant Likely24ce6bc2008-01-24 22:25:31 -070082 // compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
Grant Likely05cbbc62007-02-12 13:36:54 -070083 // cell-index = <5>;
Grant Likely05cbbc62007-02-12 13:36:54 -070084 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -070085
86 ethernet@3000 {
Domen Puncerb147d932007-10-14 17:57:11 +100087 phy-handle = <&phy0>;
88 };
89
90 mdio@3000 {
Grant Likelya2884f32008-04-29 07:19:07 -060091 phy0: ethernet-phy@0 {
Domen Puncerb147d932007-10-14 17:57:11 +100092 reg = <0>;
93 };
Grant Likelyc6d4d652006-11-27 14:16:29 -070094 };
95
Grant Likelyc6d4d652006-11-27 14:16:29 -070096 i2c@3d40 {
Dmitry Baryshkova2c9a602010-06-11 01:52:34 +000097 eeprom@50 {
98 compatible = "atmel,24c02";
99 reg = <0x50>;
100 };
Grant Likelyc6d4d652006-11-27 14:16:29 -0700101 };
Grant Likelyb8842452009-02-03 12:30:26 -0700102
Grant Likelyc6d4d652006-11-27 14:16:29 -0700103 sram@8000 {
Grant Likelyb8842452009-02-03 12:30:26 -0700104 compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
Grant Likelya2884f32008-04-29 07:19:07 -0600105 reg = <0x8000 0x4000>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700106 };
107 };
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500108
109 pci@f0000d00 {
Grant Likelya2884f32008-04-29 07:19:07 -0600110 interrupt-map-mask = <0xf800 0 0 7>;
111 interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
112 0xc000 0 0 2 &mpc5200_pic 1 1 3
113 0xc000 0 0 3 &mpc5200_pic 1 2 3
114 0xc000 0 0 4 &mpc5200_pic 1 3 3
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500115
Grant Likelya2884f32008-04-29 07:19:07 -0600116 0xc800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
117 0xc800 0 0 2 &mpc5200_pic 1 2 3
118 0xc800 0 0 3 &mpc5200_pic 1 3 3
119 0xc800 0 0 4 &mpc5200_pic 0 0 3>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500120 clock-frequency = <0>; // From boot loader
Grant Likelya2884f32008-04-29 07:19:07 -0600121 interrupts = <2 8 0 2 9 0 2 10 0>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500122 bus-range = <0 0>;
Grant Likelya2884f32008-04-29 07:19:07 -0600123 ranges = <0x42000000 0 0x80000000 0x80000000 0 0x20000000
124 0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
125 0x01000000 0 0x00000000 0xb0000000 0 0x01000000>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500126 };
Grant Likelybda9de22009-04-16 15:11:54 -0600127
128 localbus {
Grant Likelybda9de22009-04-16 15:11:54 -0600129 ranges = <0 0 0xfe000000 0x02000000>;
130
131 flash@0,0 {
132 compatible = "cfi-flash";
133 reg = <0 0 0x02000000>;
134 bank-width = <1>;
135 #size-cells = <1>;
136 #address-cells = <1>;
137
138 partition@0 {
139 label = "kernel";
140 reg = <0x00000000 0x00200000>;
141 };
142 partition@200000 {
143 label = "rootfs";
144 reg = <0x00200000 0x01d00000>;
145 };
146 partition@1f00000 {
147 label = "u-boot";
148 reg = <0x01f00000 0x00060000>;
149 };
150 partition@1f60000 {
151 label = "u-boot-env";
152 reg = <0x01f60000 0x00020000>;
153 };
154 partition@1f80000 {
155 label = "dtb";
156 reg = <0x01f80000 0x00080000>;
157 };
158 };
159 };
160
Grant Likelyc6d4d652006-11-27 14:16:29 -0700161};