Commit | Line | Data |
---|---|---|
bd05f91f | 1 | /* |
4df64c3e | 2 | * MPC5121E ADS Device Tree Source |
bd05f91f | 3 | * |
81c6fdb6 | 4 | * Copyright 2007-2008 Freescale Semiconductor Inc. |
bd05f91f JR |
5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License as published by the | |
8 | * Free Software Foundation; either version 2 of the License, or (at your | |
9 | * option) any later version. | |
10 | */ | |
11 | ||
f2110cb9 | 12 | #include <mpc5121.dtsi> |
bd05f91f JR |
13 | |
14 | / { | |
15 | model = "mpc5121ads"; | |
a9b6aae4 | 16 | compatible = "fsl,mpc5121ads", "fsl,mpc5121"; |
4df64c3e JR |
17 | |
18 | nfc@40000000 { | |
81c6fdb6 AG |
19 | /* |
20 | * ADS has two Hynix 512MB Nand flash chips in a single | |
21 | * stacked package. | |
22 | */ | |
4df64c3e | 23 | chips = <2>; |
81c6fdb6 | 24 | |
dcc79d78 AG |
25 | nand@0 { |
26 | label = "nand"; | |
81c6fdb6 | 27 | reg = <0x00000000 0x40000000>; /* 512MB + 512MB */ |
4df64c3e JR |
28 | }; |
29 | }; | |
30 | ||
bd05f91f | 31 | localbus@80000020 { |
bd05f91f JR |
32 | ranges = <0x0 0x0 0xfc000000 0x04000000 |
33 | 0x2 0x0 0x82000000 0x00008000>; | |
34 | ||
35 | flash@0,0 { | |
36 | compatible = "cfi-flash"; | |
37 | reg = <0 0x0 0x4000000>; | |
4df64c3e JR |
38 | #address-cells = <1>; |
39 | #size-cells = <1>; | |
bd05f91f | 40 | bank-width = <4>; |
4df64c3e | 41 | device-width = <2>; |
81c6fdb6 | 42 | |
4df64c3e JR |
43 | protected@0 { |
44 | label = "protected"; | |
45 | reg = <0x00000000 0x00040000>; // first sector is protected | |
46 | read-only; | |
47 | }; | |
48 | filesystem@40000 { | |
49 | label = "filesystem"; | |
50 | reg = <0x00040000 0x03c00000>; // 60M for filesystem | |
51 | }; | |
52 | kernel@3c40000 { | |
53 | label = "kernel"; | |
54 | reg = <0x03c40000 0x00280000>; // 2.5M for kernel | |
55 | }; | |
56 | device-tree@3ec0000 { | |
57 | label = "device-tree"; | |
58 | reg = <0x03ec0000 0x00040000>; // one sector for device tree | |
59 | }; | |
60 | u-boot@3f00000 { | |
61 | label = "u-boot"; | |
62 | reg = <0x03f00000 0x00100000>; // 1M for u-boot | |
63 | read-only; | |
64 | }; | |
bd05f91f JR |
65 | }; |
66 | ||
67 | board-control@2,0 { | |
68 | compatible = "fsl,mpc5121ads-cpld"; | |
69 | reg = <0x2 0x0 0x8000>; | |
70 | }; | |
4df64c3e JR |
71 | |
72 | cpld_pic: pic@2,a { | |
73 | compatible = "fsl,mpc5121ads-cpld-pic"; | |
74 | interrupt-controller; | |
75 | #interrupt-cells = <2>; | |
76 | reg = <0x2 0xa 0x5>; | |
81c6fdb6 AG |
77 | /* irq routing: |
78 | * all irqs but touch screen are routed to irq0 (ipic 48) | |
79 | * touch screen is statically routed to irq1 (ipic 17) | |
80 | * so don't use it here | |
81 | */ | |
4df64c3e JR |
82 | interrupts = <48 0x8>; |
83 | }; | |
bd05f91f JR |
84 | }; |
85 | ||
86 | soc@80000000 { | |
4df64c3e JR |
87 | |
88 | i2c@1700 { | |
dcc79d78 AG |
89 | fsl,preserve-clocking; |
90 | ||
91 | hwmon@4a { | |
92 | compatible = "adi,ad7414"; | |
93 | reg = <0x4a>; | |
94 | }; | |
95 | ||
96 | eeprom@50 { | |
97 | compatible = "at,24c32"; | |
98 | reg = <0x50>; | |
99 | }; | |
100 | ||
101 | rtc@68 { | |
5edc2aae | 102 | compatible = "st,m41t62"; |
dcc79d78 AG |
103 | reg = <0x68>; |
104 | }; | |
4df64c3e JR |
105 | }; |
106 | ||
81c6fdb6 AG |
107 | eth0: ethernet@2800 { |
108 | phy-handle = <&phy0>; | |
4df64c3e JR |
109 | }; |
110 | ||
81c6fdb6 AG |
111 | can@2300 { |
112 | status = "disabled"; | |
4df64c3e JR |
113 | }; |
114 | ||
81c6fdb6 AG |
115 | can@2380 { |
116 | status = "disabled"; | |
4df64c3e JR |
117 | }; |
118 | ||
81c6fdb6 AG |
119 | viu@2400 { |
120 | status = "disabled"; | |
4df64c3e JR |
121 | }; |
122 | ||
123 | mdio@2800 { | |
81c6fdb6 | 124 | phy0: ethernet-phy@0 { |
4df64c3e | 125 | reg = <1>; |
4df64c3e JR |
126 | }; |
127 | }; | |
128 | ||
81c6fdb6 AG |
129 | /* mpc5121ads only uses USB0 */ |
130 | usb@3000 { | |
131 | status = "disabled"; | |
4df64c3e JR |
132 | }; |
133 | ||
81c6fdb6 | 134 | /* USB0 using internal UTMI PHY */ |
4df64c3e | 135 | usb@4000 { |
81c6fdb6 | 136 | dr_mode = "host"; |
dcc79d78 AG |
137 | fsl,invert-drvvbus; |
138 | fsl,invert-pwr-fault; | |
4df64c3e JR |
139 | }; |
140 | ||
81c6fdb6 AG |
141 | /* PSC3 serial port A aka ttyPSC0 */ |
142 | psc@11300 { | |
4df64c3e | 143 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; |
bd05f91f JR |
144 | }; |
145 | ||
81c6fdb6 AG |
146 | /* PSC4 serial port B aka ttyPSC1 */ |
147 | psc@11400 { | |
4df64c3e | 148 | compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; |
bd05f91f JR |
149 | }; |
150 | ||
81c6fdb6 AG |
151 | /* PSC5 in ac97 mode */ |
152 | ac97: psc@11500 { | |
4df64c3e | 153 | compatible = "fsl,mpc5121-psc-ac97", "fsl,mpc5121-psc"; |
4df64c3e | 154 | fsl,mode = "ac97-slave"; |
81c6fdb6 AG |
155 | fsl,rx-fifo-size = <384>; |
156 | fsl,tx-fifo-size = <384>; | |
bd05f91f | 157 | }; |
4df64c3e JR |
158 | }; |
159 | ||
160 | pci: pci@80008500 { | |
161 | interrupt-map-mask = <0xf800 0x0 0x0 0x7>; | |
162 | interrupt-map = < | |
81c6fdb6 | 163 | /* IDSEL 0x15 - Slot 1 PCI */ |
4df64c3e JR |
164 | 0xa800 0x0 0x0 0x1 &cpld_pic 0x0 0x8 |
165 | 0xa800 0x0 0x0 0x2 &cpld_pic 0x1 0x8 | |
166 | 0xa800 0x0 0x0 0x3 &cpld_pic 0x2 0x8 | |
167 | 0xa800 0x0 0x0 0x4 &cpld_pic 0x3 0x8 | |
168 | ||
81c6fdb6 | 169 | /* IDSEL 0x16 - Slot 2 MiniPCI */ |
4df64c3e JR |
170 | 0xb000 0x0 0x0 0x1 &cpld_pic 0x4 0x8 |
171 | 0xb000 0x0 0x0 0x2 &cpld_pic 0x5 0x8 | |
172 | ||
81c6fdb6 | 173 | /* IDSEL 0x17 - Slot 3 MiniPCI */ |
4df64c3e JR |
174 | 0xb800 0x0 0x0 0x1 &cpld_pic 0x6 0x8 |
175 | 0xb800 0x0 0x0 0x2 &cpld_pic 0x7 0x8 | |
176 | >; | |
bd05f91f JR |
177 | }; |
178 | }; |