OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | // SPDX-License-Identifier: GPL-2.0-or-later or MIT |
2 | |||
3 | /include/ "fsl/p1020si-pre.dtsi" |
||
4 | / { |
||
5 | model = "OCEDO Panda"; |
||
6 | compatible = "ocedo,panda"; |
||
7 | |||
8 | aliases { |
||
9 | led-boot = &system_blue; |
||
10 | led-failsafe = &system_blue; |
||
11 | led-running = &system_blue; |
||
12 | led-upgrade = &system_blue; |
||
13 | }; |
||
14 | |||
15 | chosen { |
||
16 | /* Needed for initramfs */ |
||
17 | bootargs-override = "console=ttyS0,115200 ubi.mtd=3,2048"; |
||
18 | }; |
||
19 | |||
20 | memory { |
||
21 | device_type = "memory"; |
||
22 | }; |
||
23 | |||
24 | lbc: localbus@ffe05000 { |
||
25 | reg = <0 0xffe05000 0 0x1000>; |
||
26 | ranges = <0x0 0x0 0x0 0xec000000 0x04000000 |
||
27 | 0x1 0x0 0x0 0xff800000 0x00040000 |
||
28 | 0x2 0x0 0x0 0xffa00000 0x00020000 |
||
29 | 0x3 0x0 0x0 0xffb00000 0x00020000>; |
||
30 | |||
31 | nand@1,0 { |
||
32 | compatible = "fsl,p1020-fcm-nand", "fsl,elbc-fcm-nand"; |
||
33 | reg = <0x1 0x0 0x40000>; |
||
34 | |||
35 | partitions { |
||
36 | compatible = "fixed-partitions"; |
||
37 | #address-cells = <1>; |
||
38 | #size-cells = <1>; |
||
39 | |||
40 | partition@0 { |
||
41 | reg = <0x0 0xa0000>; |
||
42 | label = "uboot"; |
||
43 | read-only; |
||
44 | }; |
||
45 | |||
46 | partition@a0000 { |
||
47 | reg = <0xa0000 0x20000>; |
||
48 | label = "uboot-env0"; |
||
49 | }; |
||
50 | |||
51 | partition@c0000 { |
||
52 | reg = <0xc0000 0x40000>; |
||
53 | label = "uboot-env1"; |
||
54 | }; |
||
55 | |||
56 | partition@100000 { |
||
57 | reg = <0x100000 0xff00000>; |
||
58 | label = "ubi"; |
||
59 | }; |
||
60 | }; |
||
61 | }; |
||
62 | }; |
||
63 | |||
64 | soc: soc@ffe00000 { |
||
65 | ranges = <0x0 0x0 0xffe00000 0x100000>; |
||
66 | |||
67 | i2c@3000 { |
||
68 | rtc@68 { |
||
69 | compatible = "dallas,ds1339"; |
||
70 | reg = <0x68>; |
||
71 | }; |
||
72 | }; |
||
73 | |||
74 | gpio0: gpio-controller@fc00 { |
||
75 | }; |
||
76 | |||
77 | mdio@24000 { |
||
78 | phy0: ethernet-phy@8 { |
||
79 | reg = <0x8>; |
||
80 | }; |
||
81 | |||
82 | phy1: ethernet-phy@9 { |
||
83 | reg = <0x9>; |
||
84 | }; |
||
85 | |||
86 | switch0: ethernet-phy@0 { |
||
87 | reg = <0x0>; |
||
88 | |||
89 | ports { |
||
90 | #address-cells = <1>; |
||
91 | #size-cells = <0>; |
||
92 | |||
93 | port@0 { |
||
94 | reg = <0>; |
||
95 | label = "lan1"; |
||
96 | }; |
||
97 | |||
98 | port@1 { |
||
99 | reg = <1>; |
||
100 | label = "lan2"; |
||
101 | }; |
||
102 | |||
103 | port@2 { |
||
104 | reg = <2>; |
||
105 | label = "lan3"; |
||
106 | }; |
||
107 | |||
108 | port@3 { |
||
109 | reg = <3>; |
||
110 | label = "lan4"; |
||
111 | }; |
||
112 | |||
113 | port@4 { |
||
114 | reg = <4>; |
||
115 | label = "lan5"; |
||
116 | }; |
||
117 | |||
118 | port@5 { |
||
119 | reg = <5>; |
||
120 | label = "lan6"; |
||
121 | }; |
||
122 | |||
123 | port@6 { |
||
124 | reg = <6>; |
||
125 | label = "lan7"; |
||
126 | }; |
||
127 | |||
128 | port@7 { |
||
129 | reg = <7>; |
||
130 | label = "lan8"; |
||
131 | }; |
||
132 | |||
133 | port@8 { |
||
134 | reg = <8>; |
||
135 | label = "cpu"; |
||
136 | |||
137 | fixed-link { |
||
138 | speed = <1000>; |
||
139 | full-duplex; |
||
140 | }; |
||
141 | }; |
||
142 | }; |
||
143 | }; |
||
144 | }; |
||
145 | |||
146 | mdio@25000 { |
||
147 | tbi_phy0: tbi-phy@11 { |
||
148 | reg = <0x11>; |
||
149 | }; |
||
150 | }; |
||
151 | |||
152 | mdio@26000 { |
||
153 | tbi_phy1: tbi-phy@11 { |
||
154 | reg = <0x11>; |
||
155 | }; |
||
156 | }; |
||
157 | |||
158 | enet0: ethernet@b0000 { |
||
159 | phy-connection-type = "rgmii-id"; |
||
160 | phy-handle = <&switch0>; |
||
161 | |||
162 | fixed-link { |
||
163 | speed = <1000>; |
||
164 | full-duplex; |
||
165 | }; |
||
166 | }; |
||
167 | |||
168 | enet1: ethernet@b1000 { |
||
169 | phy-connection-type = "sgmii"; |
||
170 | phy-handle = <&phy0>; |
||
171 | |||
172 | tbi-handle = <&tbi_phy0>; |
||
173 | }; |
||
174 | |||
175 | enet2: ethernet@b2000 { |
||
176 | phy-connection-type = "sgmii"; |
||
177 | phy-handle = <&phy1>; |
||
178 | |||
179 | tbi-handle = <&tbi_phy1>; |
||
180 | }; |
||
181 | |||
182 | usb@22000 { |
||
183 | phy_type = "ulpi"; |
||
184 | dr_mode = "host"; |
||
185 | }; |
||
186 | |||
187 | usb@23000 { |
||
188 | status = "disabled"; |
||
189 | }; |
||
190 | }; |
||
191 | |||
192 | pci0: pcie@ffe09000 { |
||
193 | ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 |
||
194 | 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; |
||
195 | reg = <0 0xffe09000 0 0x1000>; |
||
196 | pcie@0 { |
||
197 | ranges = <0x2000000 0x0 0xa0000000 |
||
198 | 0x2000000 0x0 0xa0000000 |
||
199 | 0x0 0x20000000 |
||
200 | |||
201 | 0x1000000 0x0 0x0 |
||
202 | 0x1000000 0x0 0x0 |
||
203 | 0x0 0x100000>; |
||
204 | }; |
||
205 | }; |
||
206 | |||
207 | pci1: pcie@ffe0a000 { |
||
208 | reg = <0 0xffe0a000 0 0x1000>; |
||
209 | ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 |
||
210 | 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; |
||
211 | pcie@0 { |
||
212 | ranges = <0x2000000 0x0 0x80000000 |
||
213 | 0x2000000 0x0 0x80000000 |
||
214 | 0x0 0x20000000 |
||
215 | |||
216 | 0x1000000 0x0 0x0 |
||
217 | 0x1000000 0x0 0x0 |
||
218 | 0x0 0x100000>; |
||
219 | }; |
||
220 | }; |
||
221 | |||
222 | leds { |
||
223 | compatible = "gpio-leds"; |
||
224 | |||
225 | power { |
||
226 | gpios = <&gpio0 0 0>; |
||
227 | label = "panda:green:power"; |
||
228 | default-state = "on"; |
||
229 | }; |
||
230 | |||
231 | wlan0 { |
||
232 | gpios = <&gpio0 1 0>; |
||
233 | label = "panda:yellow:wlan0"; |
||
234 | linux,default-trigger = "phy0tpt"; |
||
235 | }; |
||
236 | |||
237 | wlan1 { |
||
238 | gpios = <&gpio0 2 0>; |
||
239 | label = "panda:red:wlan1"; |
||
240 | linux,default-trigger = "phy1tpt"; |
||
241 | }; |
||
242 | |||
243 | tbd_orange { |
||
244 | gpios = <&gpio0 3 0>; |
||
245 | label = "panda:orange:tbd"; |
||
246 | }; |
||
247 | |||
248 | system_blue: system { |
||
249 | gpios = <&gpio0 4 0>; |
||
250 | label = "panda:blue:system"; |
||
251 | }; |
||
252 | }; |
||
253 | |||
254 | buttons { |
||
255 | compatible = "gpio-keys"; |
||
256 | |||
257 | reset { |
||
258 | label = "Reset button"; |
||
259 | gpios = <&gpio0 6 1>; |
||
260 | linux,code = <0x198>; |
||
261 | }; |
||
262 | }; |
||
263 | }; |
||
264 | /include/ "fsl/p1020si-post.dtsi" |