7aa86c7131d9c8294646ddabb6d8df7c9bb55919
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm958625k.dts
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 &amac0 {
57         status = "okay";
58 };
59
60 &amac1 {
61         status = "okay";
62 };
63
64 &nand {
65         nandcs@0 {
66                 compatible = "brcm,nandcs";
67                 reg = <0>;
68                 nand-on-flash-bbt;
69
70                 #address-cells = <1>;
71                 #size-cells = <1>;
72
73                 nand-ecc-strength = <24>;
74                 nand-ecc-step-size = <1024>;
75
76                 brcm,nand-oob-sector-size = <27>;
77
78                 partition@0 {
79                         label = "nboot";
80                         reg = <0x00000000 0x00200000>;
81                         read-only;
82                 };
83                 partition@200000 {
84                         label = "nenv";
85                         reg = <0x00200000 0x00400000>;
86                 };
87                 partition@600000 {
88                         label = "nsystem";
89                         reg = <0x00600000 0x00a00000>;
90                 };
91                 partition@1000000 {
92                         label = "nrootfs";
93                         reg = <0x01000000 0x03000000>;
94                 };
95                 partition@4000000 {
96                         label = "ncustfs";
97                         reg = <0x04000000 0x3c000000>;
98                 };
99         };
100 };
101
102 &pcie0 {
103         status = "okay";
104 };
105
106 &pcie1 {
107         status = "okay";
108 };
109
110 &pcie2 {
111         status = "okay";
112 };
113
114 &pinctrl {
115         pinctrl-names = "default";
116         pinctrl-0 = <&nand_sel>;
117         nand_sel: nand_sel {
118                 function = "nand";
119                 groups = "nand_grp";
120         };
121 };
122
123 &srab {
124         compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
125         status = "okay";
126
127         ports {
128                 #address-cells = <1>;
129                 #size-cells = <0>;
130
131                 port@0 {
132                         label = "port0";
133                         reg = <0>;
134                 };
135
136                 port@1 {
137                         label = "port1";
138                         reg = <1>;
139                 };
140
141                 port@2 {
142                         label = "port2";
143                         reg = <2>;
144                 };
145
146                 port@3 {
147                         label = "port3";
148                         reg = <3>;
149                 };
150
151                 port@4 {
152                         label = "port4";
153                         reg = <4>;
154                 };
155
156                 port@5 {
157                         ethernet = <&amac0>;
158                         label = "cpu";
159                         reg = <5>;
160                         fixed-link {
161                                 speed = <1000>;
162                                 full-duplex;
163                         };
164                 };
165         };
166 };
167
168 &qspi {
169         bspi-sel = <0>;
170         flash: m25p80@0 {
171                 #address-cells = <1>;
172                 #size-cells = <1>;
173                 compatible = "m25p80";
174                 reg = <0x0>;
175                 spi-max-frequency = <12500000>;
176                 m25p,fast-read;
177                 spi-cpol;
178                 spi-cpha;
179
180                 partition@0 {
181                         label = "boot";
182                         reg = <0x00000000 0x000a0000>;
183                 };
184
185                 partition@a0000 {
186                         label = "env";
187                         reg = <0x000a0000 0x00060000>;
188                 };
189
190                 partition@100000 {
191                         label = "system";
192                         reg = <0x00100000 0x00600000>;
193                 };
194
195                 partition@700000 {
196                         label = "rootfs";
197                         reg = <0x00700000 0x01900000>;
198                 };
199         };
200 };
201
202 &sata_phy0 {
203         status = "okay";
204 };
205
206 &sata_phy1 {
207         status = "okay";
208 };
209
210 &sata {
211         status = "okay";
212 };
213
214 &uart0 {
215         status = "okay";
216 };
217
218 &uart1 {
219         status = "okay";
220 };