Commit | Line | Data |
---|---|---|
a7dd623f JM |
1 | /* |
2 | * BSD LICENSE | |
3 | * | |
1fd2bb6c | 4 | * Copyright(c) 2016 Broadcom. All rights reserved. |
a7dd623f JM |
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" | |
b1aaf88b | 36 | #include <dt-bindings/gpio/gpio.h> |
a7dd623f JM |
37 | |
38 | / { | |
39 | model = "NorthStar Plus SVK (BCM958625HR)"; | |
40 | compatible = "brcm,bcm58625", "brcm,nsp"; | |
41 | ||
42 | aliases { | |
43 | serial0 = &uart0; | |
44 | }; | |
45 | ||
46 | chosen { | |
47 | stdout-path = "serial0:115200n8"; | |
48 | }; | |
9a4865d4 FF |
49 | |
50 | memory { | |
c53beb47 JM |
51 | device_type = "memory"; |
52 | reg = <0x60000000 0x80000000>; | |
9a4865d4 | 53 | }; |
b1aaf88b JM |
54 | |
55 | gpio-restart { | |
56 | compatible = "gpio-restart"; | |
57 | gpios = <&gpioa 15 GPIO_ACTIVE_LOW>; | |
acfa28b3 | 58 | open-source; |
b1aaf88b JM |
59 | priority = <200>; |
60 | }; | |
a7dd623f JM |
61 | }; |
62 | ||
1fd2bb6c JM |
63 | &amac0 { |
64 | status = "okay"; | |
5aeda7bf JM |
65 | }; |
66 | ||
67 | &amac1 { | |
68 | status = "okay"; | |
69 | }; | |
70 | ||
71 | &amac2 { | |
72 | status = "okay"; | |
1fd2bb6c JM |
73 | }; |
74 | ||
1d8ece66 JM |
75 | &ehci0 { |
76 | status = "okay"; | |
77 | }; | |
78 | ||
a7dd623f JM |
79 | &nand { |
80 | nandcs@0 { | |
81 | compatible = "brcm,nandcs"; | |
82 | reg = <0>; | |
83 | nand-on-flash-bbt; | |
84 | ||
85 | #address-cells = <1>; | |
86 | #size-cells = <1>; | |
87 | ||
88 | nand-ecc-strength = <24>; | |
89 | nand-ecc-step-size = <1024>; | |
90 | ||
91 | brcm,nand-oob-sector-size = <27>; | |
92 | ||
93 | partition@0 { | |
94 | label = "nboot"; | |
95 | reg = <0x00000000 0x00200000>; | |
96 | read-only; | |
97 | }; | |
98 | partition@200000 { | |
99 | label = "nenv"; | |
100 | reg = <0x00200000 0x00400000>; | |
101 | }; | |
102 | partition@600000 { | |
103 | label = "nsystem"; | |
104 | reg = <0x00600000 0x00a00000>; | |
105 | }; | |
106 | partition@1000000 { | |
107 | label = "nrootfs"; | |
108 | reg = <0x01000000 0x03000000>; | |
109 | }; | |
110 | partition@4000000 { | |
111 | label = "ncustfs"; | |
112 | reg = <0x04000000 0x3c000000>; | |
113 | }; | |
114 | }; | |
115 | }; | |
116 | ||
1d8ece66 JM |
117 | &ohci0 { |
118 | status = "okay"; | |
119 | }; | |
120 | ||
a7dd623f JM |
121 | &pcie0 { |
122 | status = "okay"; | |
123 | }; | |
124 | ||
125 | &pcie1 { | |
126 | status = "okay"; | |
127 | }; | |
128 | ||
129 | &pinctrl { | |
130 | pinctrl-names = "default"; | |
131 | pinctrl-0 = <&nand_sel>; | |
132 | nand_sel: nand_sel { | |
133 | function = "nand"; | |
134 | groups = "nand_grp"; | |
135 | }; | |
136 | }; | |
1bc1d822 | 137 | |
89b0a4c7 JM |
138 | &qspi { |
139 | bspi-sel = <0>; | |
140 | flash: m25p80@0 { | |
141 | #address-cells = <1>; | |
142 | #size-cells = <1>; | |
143 | compatible = "m25p80"; | |
144 | reg = <0x0>; | |
145 | spi-max-frequency = <12500000>; | |
146 | m25p,fast-read; | |
147 | spi-cpol; | |
148 | spi-cpha; | |
149 | ||
150 | partition@0 { | |
151 | label = "boot"; | |
152 | reg = <0x00000000 0x000a0000>; | |
153 | }; | |
154 | ||
155 | partition@a0000 { | |
156 | label = "env"; | |
157 | reg = <0x000a0000 0x00060000>; | |
158 | }; | |
159 | ||
160 | partition@100000 { | |
161 | label = "system"; | |
162 | reg = <0x00100000 0x00600000>; | |
163 | }; | |
164 | ||
165 | partition@700000 { | |
166 | label = "rootfs"; | |
167 | reg = <0x00700000 0x01900000>; | |
168 | }; | |
169 | }; | |
170 | }; | |
171 | ||
1fd2bb6c JM |
172 | &sata_phy0 { |
173 | status = "okay"; | |
174 | }; | |
175 | ||
176 | &sata_phy1 { | |
177 | status = "okay"; | |
178 | }; | |
179 | ||
180 | &sata { | |
1bc1d822 FF |
181 | status = "okay"; |
182 | }; | |
183 | ||
184 | &srab { | |
185 | compatible = "brcm,bcm58625-srab", "brcm,nsp-srab"; | |
186 | status = "okay"; | |
187 | ||
188 | ports { | |
189 | #address-cells = <1>; | |
190 | #size-cells = <0>; | |
191 | ||
192 | port@0 { | |
193 | label = "port0"; | |
194 | reg = <0>; | |
195 | }; | |
196 | ||
197 | port@1 { | |
198 | label = "port1"; | |
199 | reg = <1>; | |
200 | }; | |
201 | ||
202 | port@2 { | |
203 | label = "port2"; | |
204 | reg = <2>; | |
205 | }; | |
206 | ||
207 | port@3 { | |
208 | label = "port3"; | |
209 | reg = <3>; | |
210 | }; | |
211 | ||
212 | port@4 { | |
213 | label = "port4"; | |
214 | reg = <4>; | |
215 | }; | |
216 | ||
217 | port@5 { | |
218 | ethernet = <&amac0>; | |
219 | label = "cpu"; | |
220 | reg = <5>; | |
221 | fixed-link { | |
222 | speed = <1000>; | |
223 | full-duplex; | |
224 | }; | |
225 | }; | |
226 | }; | |
227 | }; | |
70725d6e | 228 | |
1fd2bb6c | 229 | &uart0 { |
70725d6e JM |
230 | status = "okay"; |
231 | }; | |
bbe526f5 JM |
232 | |
233 | &usb3_phy { | |
234 | status = "okay"; | |
235 | }; | |
236 | ||
237 | &xhci { | |
238 | status = "okay"; | |
239 | }; |