blob: ea3fc194f8f37ea4bea411922372eac32e82852e [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";
Florian Fainelli0a5aff62018-02-26 17:00:35 -080052 reg = <0x60000000 0x20000000>;
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>;
Jon Masonacfa28b2017-03-01 18:02:28 -050058 open-source;
Jon Masonb1aaf882016-08-03 14:39:00 -040059 priority = <200>;
60 };
Jon Masona7dd6232016-05-05 19:29:32 -040061};
62
Jon Mason1fd2bb62016-12-13 13:13:45 -050063&amac0 {
64 status = "okay";
65};
66
Jon Mason5aeda7b2016-12-13 13:13:49 -050067&amac1 {
68 status = "okay";
69};
70
71&amac2 {
72 status = "okay";
73};
74
Jon Mason1d8ece62017-03-07 18:34:04 -050075&ehci0 {
76 status = "okay";
77};
78
Jon Masona7dd6232016-05-05 19:29:32 -040079&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
Jon Mason1d8ece62017-03-07 18:34:04 -0500117&ohci0 {
118 status = "okay";
119};
120
Jon Masona7dd6232016-05-05 19:29:32 -0400121&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};
Florian Fainelli1bc1d822016-07-08 11:49:29 -0700137
Jon Mason89b0a4c2016-12-13 13:13:47 -0500138&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
Jon Mason1fd2bb62016-12-13 13:13:45 -0500172&sata_phy0 {
173 status = "okay";
174};
175
176&sata_phy1 {
177 status = "okay";
178};
179
Florian Fainelli1bc1d822016-07-08 11:49:29 -0700180&srab {
181 compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
182 status = "okay";
183
184 ports {
185 #address-cells = <1>;
186 #size-cells = <0>;
187
188 port@0 {
189 label = "port0";
190 reg = <0>;
191 };
192
193 port@1 {
194 label = "port1";
195 reg = <1>;
196 };
197
198 port@2 {
199 label = "port2";
200 reg = <2>;
201 };
202
203 port@3 {
204 label = "port3";
205 reg = <3>;
206 };
207
208 port@4 {
209 label = "port4";
210 reg = <4>;
211 };
212
Florian Fainelli3746fd72018-02-27 12:45:19 -0800213 port@8 {
214 ethernet = <&amac2>;
Florian Fainelli1bc1d822016-07-08 11:49:29 -0700215 label = "cpu";
Florian Fainelli3746fd72018-02-27 12:45:19 -0800216 reg = <8>;
Florian Fainelli1bc1d822016-07-08 11:49:29 -0700217 fixed-link {
218 speed = <1000>;
219 full-duplex;
220 };
221 };
222 };
223};
Jon Mason70725d62016-08-03 14:38:56 -0400224
Jon Mason1fd2bb62016-12-13 13:13:45 -0500225&uart0 {
Jon Mason70725d62016-08-03 14:38:56 -0400226 status = "okay";
227};
Jon Masonbbe526f2017-07-31 17:54:23 -0400228
229&usb3_phy {
230 status = "okay";
231};
232
233&xhci {
234 status = "okay";
235};