blob: 9673710861fffeef18a65859120c372dac9a6494 [file] [log] [blame]
Jon Masona7dd6232016-05-05 19:29:32 -04001/*
2 * BSD LICENSE
3 *
Jon Mason1fd2bb62016-12-13 13:13:45 -05004 * Copyright(c) 2016 Broadcom. All rights reserved.
Jon Masona7dd6232016-05-05 19:29:32 -04005 *
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"
Jon Masonb1aaf882016-08-03 14:39:00 -040036#include <dt-bindings/gpio/gpio.h>
Jon Masona7dd6232016-05-05 19:29:32 -040037
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 };
Florian Fainelli9a4865d2016-06-28 18:04:21 -070049
50 memory {
Jon Masonc53beb42016-07-14 16:14:17 -040051 device_type = "memory";
52 reg = <0x60000000 0x80000000>;
Florian Fainelli9a4865d2016-06-28 18:04:21 -070053 };
Jon Masonb1aaf882016-08-03 14:39:00 -040054
55 gpio-restart {
56 compatible = "gpio-restart";
57 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
58 priority = <200>;
59 };
Jon Masona7dd6232016-05-05 19:29:32 -040060};
61
Jon Mason1fd2bb62016-12-13 13:13:45 -050062&amac0 {
63 status = "okay";
64};
65
Jon Mason5aeda7b2016-12-13 13:13:49 -050066&amac1 {
67 status = "okay";
68};
69
70&amac2 {
71 status = "okay";
72};
73
Jon Mason1d8ece62017-03-07 18:34:04 -050074&ehci0 {
75 status = "okay";
76};
77
Jon Masona7dd6232016-05-05 19:29:32 -040078&nand {
79 nandcs@0 {
80 compatible = "brcm,nandcs";
81 reg = <0>;
82 nand-on-flash-bbt;
83
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 nand-ecc-strength = <24>;
88 nand-ecc-step-size = <1024>;
89
90 brcm,nand-oob-sector-size = <27>;
91
92 partition@0 {
93 label = "nboot";
94 reg = <0x00000000 0x00200000>;
95 read-only;
96 };
97 partition@200000 {
98 label = "nenv";
99 reg = <0x00200000 0x00400000>;
100 };
101 partition@600000 {
102 label = "nsystem";
103 reg = <0x00600000 0x00a00000>;
104 };
105 partition@1000000 {
106 label = "nrootfs";
107 reg = <0x01000000 0x03000000>;
108 };
109 partition@4000000 {
110 label = "ncustfs";
111 reg = <0x04000000 0x3c000000>;
112 };
113 };
114};
115
Jon Mason1d8ece62017-03-07 18:34:04 -0500116&ohci0 {
117 status = "okay";
118};
119
Jon Masona7dd6232016-05-05 19:29:32 -0400120&pcie0 {
121 status = "okay";
122};
123
124&pcie1 {
125 status = "okay";
126};
127
128&pinctrl {
129 pinctrl-names = "default";
130 pinctrl-0 = <&nand_sel>;
131 nand_sel: nand_sel {
132 function = "nand";
133 groups = "nand_grp";
134 };
135};
Florian Fainelli1bc1d822016-07-08 11:49:29 -0700136
Jon Mason89b0a4c2016-12-13 13:13:47 -0500137&qspi {
138 bspi-sel = <0>;
139 flash: m25p80@0 {
140 #address-cells = <1>;
141 #size-cells = <1>;
142 compatible = "m25p80";
143 reg = <0x0>;
144 spi-max-frequency = <12500000>;
145 m25p,fast-read;
146 spi-cpol;
147 spi-cpha;
148
149 partition@0 {
150 label = "boot";
151 reg = <0x00000000 0x000a0000>;
152 };
153
154 partition@a0000 {
155 label = "env";
156 reg = <0x000a0000 0x00060000>;
157 };
158
159 partition@100000 {
160 label = "system";
161 reg = <0x00100000 0x00600000>;
162 };
163
164 partition@700000 {
165 label = "rootfs";
166 reg = <0x00700000 0x01900000>;
167 };
168 };
169};
170
Jon Mason1fd2bb62016-12-13 13:13:45 -0500171&sata_phy0 {
172 status = "okay";
173};
174
175&sata_phy1 {
176 status = "okay";
177};
178
179&sata {
Florian Fainelli1bc1d822016-07-08 11:49:29 -0700180 status = "okay";
181};
182
183&srab {
184 compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
185 status = "okay";
186
187 ports {
188 #address-cells = <1>;
189 #size-cells = <0>;
190
191 port@0 {
192 label = "port0";
193 reg = <0>;
194 };
195
196 port@1 {
197 label = "port1";
198 reg = <1>;
199 };
200
201 port@2 {
202 label = "port2";
203 reg = <2>;
204 };
205
206 port@3 {
207 label = "port3";
208 reg = <3>;
209 };
210
211 port@4 {
212 label = "port4";
213 reg = <4>;
214 };
215
216 port@5 {
217 ethernet = <&amac0>;
218 label = "cpu";
219 reg = <5>;
220 fixed-link {
221 speed = <1000>;
222 full-duplex;
223 };
224 };
225 };
226};
Jon Mason70725d62016-08-03 14:38:56 -0400227
Jon Mason1fd2bb62016-12-13 13:13:45 -0500228&uart0 {
Jon Mason70725d62016-08-03 14:38:56 -0400229 status = "okay";
230};