Loading...
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
41 chosen {
42 stdout-path = "serial0:115200n8";
43 };
44
45 memory@60000000 {
46 device_type = "memory";
47 reg = <0x60000000 0x80000000>;
48 };
49};
50
51&amac0 {
52 status = "okay";
53};
54
55&amac1 {
56 status = "okay";
57};
58
59&amac2 {
60 status = "okay";
61};
62
63&ehci0 {
64 status = "okay";
65};
66
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 };
86 partition@200000 {
87 label = "nenv";
88 reg = <0x00200000 0x00400000>;
89 };
90 partition@600000 {
91 label = "nsystem";
92 reg = <0x00600000 0x00a00000>;
93 };
94 partition@1000000 {
95 label = "nrootfs";
96 reg = <0x01000000 0x03000000>;
97 };
98 partition@4000000 {
99 label = "ncustfs";
100 reg = <0x04000000 0x3c000000>;
101 };
102 };
103};
104
105&ohci0 {
106 status = "okay";
107};
108
109&pcie0 {
110 status = "okay";
111};
112
113&pcie1 {
114 status = "okay";
115};
116
117&pcie2 {
118 status = "okay";
119};
120
121&pinctrl {
122 pinctrl-names = "default";
123 pinctrl-0 = <&nand_sel>, <&gpiobs>, <&pwmc>;
124
125 nand_sel: nand_sel {
126 function = "nand";
127 groups = "nand_grp";
128 };
129
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 };
135
136 pwmc: pwmc {
137 function = "pwm";
138 groups = "pwm0_grp", "pwm1_grp", "pwm2_grp", "pwm3_grp";
139 };
140
141 emmc_sel: emmc_sel {
142 function = "emmc";
143 groups = "emmc_grp";
144 };
145};
146
147&pwm {
148 status = "okay";
149};
150
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};
184
185&sata_phy0 {
186 status = "okay";
187};
188
189&sata_phy1 {
190 status = "okay";
191};
192
193&sata {
194 status = "okay";
195};
196
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
243 port@8 {
244 ethernet = <&amac2>;
245 label = "cpu";
246 reg = <8>;
247 fixed-link {
248 speed = <1000>;
249 full-duplex;
250 };
251 };
252 };
253};
254
255&uart0 {
256 status = "okay";
257};
258
259&uart1 {
260 status = "okay";
261};
262
263&usb3_phy {
264 status = "okay";
265};
266
267&xhci {
268 status = "okay";
269};
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
41 aliases {
42 serial0 = &uart0;
43 serial1 = &uart1;
44 };
45
46 chosen {
47 stdout-path = "serial0:115200n8";
48 };
49
50 memory {
51 device_type = "memory";
52 reg = <0x60000000 0x80000000>;
53 };
54};
55
56&uart0 {
57 status = "okay";
58};
59
60&uart1 {
61 status = "okay";
62};
63
64&amac0 {
65 status = "okay";
66};
67
68&amac1 {
69 status = "okay";
70};
71
72&pcie0 {
73 status = "okay";
74};
75
76&pcie1 {
77 status = "okay";
78};
79
80&pcie2 {
81 status = "okay";
82};
83
84&sata_phy0 {
85 status = "okay";
86};
87
88&sata_phy1 {
89 status = "okay";
90};
91
92&sata {
93 status = "okay";
94};
95
96&nand {
97 nandcs@0 {
98 compatible = "brcm,nandcs";
99 reg = <0>;
100 nand-on-flash-bbt;
101
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 nand-ecc-strength = <24>;
106 nand-ecc-step-size = <1024>;
107
108 brcm,nand-oob-sector-size = <27>;
109
110 partition@0 {
111 label = "nboot";
112 reg = <0x00000000 0x00200000>;
113 read-only;
114 };
115 partition@1 {
116 label = "nenv";
117 reg = <0x00200000 0x00400000>;
118 };
119 partition@2 {
120 label = "nsystem";
121 reg = <0x00600000 0x00a00000>;
122 };
123 partition@3 {
124 label = "nrootfs";
125 reg = <0x01000000 0x03000000>;
126 };
127 partition@4 {
128 label = "ncustfs";
129 reg = <0x04000000 0x3c000000>;
130 };
131 };
132};
133
134&pinctrl {
135 pinctrl-names = "default";
136 pinctrl-0 = <&nand_sel>;
137 nand_sel: nand_sel {
138 function = "nand";
139 groups = "nand_grp";
140 };
141};
142
143&qspi {
144 bspi-sel = <0>;
145 flash: m25p80@0 {
146 #address-cells = <1>;
147 #size-cells = <1>;
148 compatible = "m25p80";
149 reg = <0x0>;
150 spi-max-frequency = <12500000>;
151 m25p,fast-read;
152 spi-cpol;
153 spi-cpha;
154
155 partition@0 {
156 label = "boot";
157 reg = <0x00000000 0x000a0000>;
158 };
159
160 partition@a0000 {
161 label = "env";
162 reg = <0x000a0000 0x00060000>;
163 };
164
165 partition@100000 {
166 label = "system";
167 reg = <0x00100000 0x00600000>;
168 };
169
170 partition@700000 {
171 label = "rootfs";
172 reg = <0x00700000 0x01900000>;
173 };
174 };
175};