ARM: dts: NSP: Fix amount of RAM on BCM958625HR
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm958625hr.dts
1 /*
2  *  BSD LICENSE
3  *
4  *  Copyright(c) 2016 Broadcom.  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 #include <dt-bindings/gpio/gpio.h>
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         };
49
50         memory {
51                 device_type = "memory";
52                 reg = <0x60000000 0x20000000>;
53         };
54
55         gpio-restart {
56                 compatible = "gpio-restart";
57                 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
58                 open-source;
59                 priority = <200>;
60         };
61 };
62
63 &amac0 {
64         status = "okay";
65 };
66
67 &amac1 {
68         status = "okay";
69 };
70
71 &amac2 {
72         status = "okay";
73 };
74
75 &ehci0 {
76         status = "okay";
77 };
78
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
117 &ohci0 {
118         status = "okay";
119 };
120
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 };
137
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
172 &sata_phy0 {
173         status = "okay";
174 };
175
176 &sata_phy1 {
177         status = "okay";
178 };
179
180 &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
213                 port@5 {
214                         ethernet = <&amac0>;
215                         label = "cpu";
216                         reg = <5>;
217                         fixed-link {
218                                 speed = <1000>;
219                                 full-duplex;
220                         };
221                 };
222         };
223 };
224
225 &uart0 {
226         status = "okay";
227 };
228
229 &usb3_phy {
230         status = "okay";
231 };
232
233 &xhci {
234         status = "okay";
235 };