Commit | Line | Data |
---|---|---|
12fb0eb4 AG |
1 | /* |
2 | * Device Tree Source for IFM PDM360NG. | |
3 | * | |
4 | * Copyright 2009 - 2010 DENX Software Engineering. | |
5 | * Anatolij Gustschin <agust@denx.de> | |
6 | * | |
7 | * Based on MPC5121E ADS dts. | |
8 | * Copyright 2008 Freescale Semiconductor Inc. | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or modify it | |
11 | * under the terms of the GNU General Public License as published by the | |
12 | * Free Software Foundation; either version 2 of the License, or (at your | |
13 | * option) any later version. | |
14 | */ | |
15 | ||
f2110cb9 | 16 | #include <mpc5121.dtsi> |
12fb0eb4 AG |
17 | |
18 | / { | |
19 | model = "pdm360ng"; | |
a9b6aae4 | 20 | compatible = "ifm,pdm360ng", "fsl,mpc5121"; |
12fb0eb4 AG |
21 | #address-cells = <1>; |
22 | #size-cells = <1>; | |
23 | interrupt-parent = <&ipic>; | |
24 | ||
12fb0eb4 AG |
25 | memory { |
26 | device_type = "memory"; | |
27 | reg = <0x00000000 0x20000000>; // 512MB at 0 | |
28 | }; | |
29 | ||
30 | nfc@40000000 { | |
12fb0eb4 AG |
31 | bank-width = <0x1>; |
32 | chips = <0x1>; | |
33 | ||
34 | partition@0 { | |
35 | label = "nand0"; | |
36 | reg = <0x0 0x40000000>; | |
37 | }; | |
38 | }; | |
39 | ||
12fb0eb4 | 40 | localbus@80000020 { |
12fb0eb4 AG |
41 | ranges = <0x0 0x0 0xf0000000 0x10000000 /* Flash */ |
42 | 0x2 0x0 0x50040000 0x00020000>; /* CS2: MRAM */ | |
43 | ||
44 | flash@0,0 { | |
45 | compatible = "amd,s29gl01gp", "cfi-flash"; | |
46 | reg = <0 0x00000000 0x08000000 | |
47 | 0 0x08000000 0x08000000>; | |
48 | #address-cells = <1>; | |
49 | #size-cells = <1>; | |
50 | bank-width = <4>; | |
51 | device-width = <2>; | |
52 | ||
53 | partition@0 { | |
54 | label = "u-boot"; | |
55 | reg = <0x00000000 0x00080000>; | |
56 | read-only; | |
57 | }; | |
58 | partition@80000 { | |
59 | label = "environment"; | |
60 | reg = <0x00080000 0x00080000>; | |
61 | read-only; | |
62 | }; | |
63 | partition@100000 { | |
64 | label = "splash-image"; | |
65 | reg = <0x00100000 0x00080000>; | |
66 | read-only; | |
67 | }; | |
68 | partition@180000 { | |
69 | label = "device-tree"; | |
70 | reg = <0x00180000 0x00040000>; | |
71 | }; | |
72 | partition@1c0000 { | |
73 | label = "kernel"; | |
74 | reg = <0x001c0000 0x00500000>; | |
75 | }; | |
76 | partition@6c0000 { | |
77 | label = "filesystem"; | |
78 | reg = <0x006c0000 0x07940000>; | |
79 | }; | |
80 | }; | |
81 | ||
82 | mram0@2,0 { | |
83 | compatible = "mtd-ram"; | |
84 | reg = <2 0x00000 0x10000>; | |
85 | bank-width = <2>; | |
86 | }; | |
87 | ||
88 | mram1@2,10000 { | |
89 | compatible = "mtd-ram"; | |
90 | reg = <2 0x010000 0x10000>; | |
91 | bank-width = <2>; | |
92 | }; | |
93 | }; | |
94 | ||
95 | soc@80000000 { | |
12fb0eb4 AG |
96 | |
97 | i2c@1700 { | |
12fb0eb4 AG |
98 | fsl,preserve-clocking; |
99 | ||
100 | eeprom@50 { | |
101 | compatible = "at,24c01"; | |
102 | reg = <0x50>; | |
103 | }; | |
104 | ||
105 | rtc@68 { | |
106 | compatible = "stm,m41t00"; | |
107 | reg = <0x68>; | |
108 | }; | |
109 | }; | |
110 | ||
73e31235 AG |
111 | i2c@1720 { |
112 | status = "disabled"; | |
12fb0eb4 AG |
113 | }; |
114 | ||
73e31235 AG |
115 | i2c@1740 { |
116 | fsl,preserve-clocking; | |
12fb0eb4 AG |
117 | }; |
118 | ||
73e31235 AG |
119 | ethernet@2800 { |
120 | phy-handle = <&phy0>; | |
12fb0eb4 AG |
121 | }; |
122 | ||
123 | mdio@2800 { | |
73e31235 | 124 | phy0: ethernet-phy@1f { |
12fb0eb4 AG |
125 | compatible = "smsc,lan8700"; |
126 | reg = <0x1f>; | |
127 | }; | |
128 | }; | |
129 | ||
73e31235 | 130 | /* USB1 using external ULPI PHY */ |
12fb0eb4 | 131 | usb@3000 { |
12fb0eb4 | 132 | dr_mode = "host"; |
12fb0eb4 AG |
133 | }; |
134 | ||
73e31235 | 135 | /* USB0 using internal UTMI PHY */ |
12fb0eb4 | 136 | usb@4000 { |
12fb0eb4 AG |
137 | fsl,invert-pwr-fault; |
138 | }; | |
139 | ||
73e31235 | 140 | psc@11000 { |
12fb0eb4 | 141 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; |
12fb0eb4 AG |
142 | }; |
143 | ||
73e31235 | 144 | psc@11100 { |
12fb0eb4 | 145 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; |
12fb0eb4 AG |
146 | }; |
147 | ||
73e31235 | 148 | psc@11200 { |
12fb0eb4 | 149 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; |
12fb0eb4 AG |
150 | }; |
151 | ||
73e31235 | 152 | psc@11300 { |
12fb0eb4 | 153 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; |
12fb0eb4 AG |
154 | }; |
155 | ||
73e31235 | 156 | psc@11400 { |
12fb0eb4 | 157 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; |
12fb0eb4 AG |
158 | }; |
159 | ||
73e31235 AG |
160 | psc@11500 { |
161 | status = "disabled"; | |
12fb0eb4 AG |
162 | }; |
163 | ||
73e31235 | 164 | psc@11600 { |
12fb0eb4 | 165 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; |
12fb0eb4 AG |
166 | }; |
167 | ||
73e31235 AG |
168 | psc@11700 { |
169 | status = "disabled"; | |
12fb0eb4 AG |
170 | }; |
171 | ||
73e31235 AG |
172 | psc@11800 { |
173 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; | |
12fb0eb4 AG |
174 | }; |
175 | ||
73e31235 | 176 | psc@11900 { |
12fb0eb4 | 177 | compatible = "fsl,mpc5121-psc-spi", "fsl,mpc5121-psc"; |
12fb0eb4 AG |
178 | #address-cells = <1>; |
179 | #size-cells = <0>; | |
12fb0eb4 | 180 | |
73e31235 | 181 | /* ADS7845 touch screen controller */ |
12fb0eb4 AG |
182 | ts@0 { |
183 | compatible = "ti,ads7846"; | |
184 | reg = <0x0>; | |
185 | spi-max-frequency = <3000000>; | |
73e31235 | 186 | /* pen irq is GPIO25 */ |
12fb0eb4 AG |
187 | interrupts = <78 0x8>; |
188 | }; | |
189 | }; | |
190 | ||
73e31235 AG |
191 | psc@11a00 { |
192 | status = "disabled"; | |
193 | }; | |
194 | ||
195 | psc@11b00 { | |
196 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; | |
12fb0eb4 AG |
197 | }; |
198 | }; | |
199 | }; |