]>
Commit | Line | Data |
---|---|---|
7b2e987d JM |
1 | /* |
2 | * BSD LICENSE | |
3 | * | |
4 | * Copyright(c) 2015 Broadcom Corporation. All rights reserved. | |
5 | * | |
6 | * Redistribution and use in source and binary forms, with or without | |
7 | * modification, are permitted provided that the following conditions | |
8 | * are met: | |
9 | * | |
10 | * * Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | |
12 | * * Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in | |
14 | * the documentation and/or other materials provided with the | |
15 | * distribution. | |
16 | * * Neither the name of Broadcom Corporation nor the names of its | |
17 | * contributors may be used to endorse or promote products derived | |
18 | * from this software without specific prior written permission. | |
19 | * | |
20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
21 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
24 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
25 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
26 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
31 | */ | |
32 | ||
33 | /dts-v1/; | |
34 | ||
35 | #include "bcm-nsp.dtsi" | |
36 | ||
37 | / { | |
38 | model = "NorthStar Plus SVK (BCM958625K)"; | |
39 | compatible = "brcm,bcm58625", "brcm,nsp"; | |
40 | ||
7b2e987d JM |
41 | chosen { |
42 | stdout-path = "serial0:115200n8"; | |
43 | }; | |
21af8f45 JM |
44 | |
45 | memory { | |
46 | device_type = "memory"; | |
47 | reg = <0x60000000 0x80000000>; | |
48 | }; | |
7b2e987d JM |
49 | }; |
50 | ||
13d04f20 JM |
51 | &amac0 { |
52 | status = "okay"; | |
53 | }; | |
54 | ||
55 | &amac1 { | |
56 | status = "okay"; | |
57 | }; | |
58 | ||
5aeda7bf JM |
59 | &amac2 { |
60 | status = "okay"; | |
61 | }; | |
62 | ||
1d8ece66 JM |
63 | &ehci0 { |
64 | status = "okay"; | |
65 | }; | |
66 | ||
41254754 JM |
67 | &nand { |
68 | nandcs@0 { | |
69 | compatible = "brcm,nandcs"; | |
70 | reg = <0>; | |
71 | nand-on-flash-bbt; | |
72 | ||
73 | #address-cells = <1>; | |
74 | #size-cells = <1>; | |
75 | ||
76 | nand-ecc-strength = <24>; | |
77 | nand-ecc-step-size = <1024>; | |
78 | ||
79 | brcm,nand-oob-sector-size = <27>; | |
80 | ||
81 | partition@0 { | |
82 | label = "nboot"; | |
83 | reg = <0x00000000 0x00200000>; | |
84 | read-only; | |
85 | }; | |
fe6bf999 | 86 | partition@200000 { |
41254754 JM |
87 | label = "nenv"; |
88 | reg = <0x00200000 0x00400000>; | |
89 | }; | |
fe6bf999 | 90 | partition@600000 { |
41254754 JM |
91 | label = "nsystem"; |
92 | reg = <0x00600000 0x00a00000>; | |
93 | }; | |
fe6bf999 | 94 | partition@1000000 { |
41254754 JM |
95 | label = "nrootfs"; |
96 | reg = <0x01000000 0x03000000>; | |
97 | }; | |
fe6bf999 | 98 | partition@4000000 { |
41254754 JM |
99 | label = "ncustfs"; |
100 | reg = <0x04000000 0x3c000000>; | |
101 | }; | |
102 | }; | |
103 | }; | |
ea2d8975 | 104 | |
1d8ece66 JM |
105 | &ohci0 { |
106 | status = "okay"; | |
107 | }; | |
108 | ||
1fd2bb6c JM |
109 | &pcie0 { |
110 | status = "okay"; | |
111 | }; | |
112 | ||
113 | &pcie1 { | |
114 | status = "okay"; | |
115 | }; | |
116 | ||
117 | &pcie2 { | |
118 | status = "okay"; | |
119 | }; | |
120 | ||
ea2d8975 YRDR |
121 | &pinctrl { |
122 | pinctrl-names = "default"; | |
3107fa5b JM |
123 | pinctrl-0 = <&nand_sel>, <&gpiobs>, <&pwmc>; |
124 | ||
ea2d8975 YRDR |
125 | nand_sel: nand_sel { |
126 | function = "nand"; | |
127 | groups = "nand_grp"; | |
128 | }; | |
d9ff8878 | 129 | |
3107fa5b JM |
130 | gpiobs: gpiobs { |
131 | function = "gpio_b"; | |
132 | groups = "gpio_b_0_grp", "gpio_b_1_grp", "gpio_b_2_grp", | |
133 | "gpio_b_3_grp"; | |
134 | }; | |
d9ff8878 | 135 | |
3107fa5b JM |
136 | pwmc: pwmc { |
137 | function = "pwm"; | |
138 | groups = "pwm0_grp", "pwm1_grp", "pwm2_grp", "pwm3_grp"; | |
139 | }; | |
d9ff8878 | 140 | |
3107fa5b JM |
141 | emmc_sel: emmc_sel { |
142 | function = "emmc"; | |
143 | groups = "emmc_grp"; | |
d9ff8878 JM |
144 | }; |
145 | }; | |
146 | ||
3107fa5b JM |
147 | &pwm { |
148 | status = "okay"; | |
149 | }; | |
150 | ||
329f98c1 KD |
151 | &qspi { |
152 | bspi-sel = <0>; | |
153 | flash: m25p80@0 { | |
154 | #address-cells = <1>; | |
155 | #size-cells = <1>; | |
156 | compatible = "m25p80"; | |
157 | reg = <0x0>; | |
158 | spi-max-frequency = <12500000>; | |
159 | m25p,fast-read; | |
160 | spi-cpol; | |
161 | spi-cpha; | |
162 | ||
163 | partition@0 { | |
164 | label = "boot"; | |
165 | reg = <0x00000000 0x000a0000>; | |
166 | }; | |
167 | ||
168 | partition@a0000 { | |
169 | label = "env"; | |
170 | reg = <0x000a0000 0x00060000>; | |
171 | }; | |
172 | ||
173 | partition@100000 { | |
174 | label = "system"; | |
175 | reg = <0x00100000 0x00600000>; | |
176 | }; | |
177 | ||
178 | partition@700000 { | |
179 | label = "rootfs"; | |
180 | reg = <0x00700000 0x01900000>; | |
181 | }; | |
182 | }; | |
183 | }; | |
1fd2bb6c JM |
184 | |
185 | &sata_phy0 { | |
186 | status = "okay"; | |
187 | }; | |
188 | ||
189 | &sata_phy1 { | |
190 | status = "okay"; | |
191 | }; | |
192 | ||
193 | &sata { | |
194 | status = "okay"; | |
195 | }; | |
196 | ||
3107fa5b JM |
197 | /* |
198 | * By default the sd slot is functional. For emmc to work add "<&emmc_sel>" | |
199 | * and delete "<&nand_sel>" in "pinctrl-0" property of pinctrl node. Remove the | |
200 | * bus-width property here and disable the nand node with status = "disabled";. | |
201 | * | |
202 | * Ex: pinctrl-0 = <&emmc_sel>, <&gpiobs>, <&pwmc>; | |
203 | */ | |
204 | &sdio { | |
205 | bus-width = <4>; | |
206 | no-1-8-v; | |
207 | status = "ok"; | |
208 | }; | |
209 | ||
210 | &srab { | |
211 | compatible = "brcm,bcm58625-srab", "brcm,nsp-srab"; | |
212 | status = "okay"; | |
213 | ||
214 | ports { | |
215 | #address-cells = <1>; | |
216 | #size-cells = <0>; | |
217 | ||
218 | port@0 { | |
219 | label = "port0"; | |
220 | reg = <0>; | |
221 | }; | |
222 | ||
223 | port@1 { | |
224 | label = "port1"; | |
225 | reg = <1>; | |
226 | }; | |
227 | ||
228 | port@2 { | |
229 | label = "port2"; | |
230 | reg = <2>; | |
231 | }; | |
232 | ||
233 | port@3 { | |
234 | label = "port3"; | |
235 | reg = <3>; | |
236 | }; | |
237 | ||
238 | port@4 { | |
239 | label = "port4"; | |
240 | reg = <4>; | |
241 | }; | |
242 | ||
3746fd75 FF |
243 | port@8 { |
244 | ethernet = <&amac2>; | |
3107fa5b | 245 | label = "cpu"; |
3746fd75 | 246 | reg = <8>; |
3107fa5b JM |
247 | fixed-link { |
248 | speed = <1000>; | |
249 | full-duplex; | |
250 | }; | |
251 | }; | |
252 | }; | |
253 | }; | |
254 | ||
1fd2bb6c JM |
255 | &uart0 { |
256 | status = "okay"; | |
257 | }; | |
258 | ||
259 | &uart1 { | |
260 | status = "okay"; | |
261 | }; | |
bbe526f5 JM |
262 | |
263 | &usb3_phy { | |
264 | status = "okay"; | |
265 | }; | |
266 | ||
267 | &xhci { | |
268 | status = "okay"; | |
269 | }; |