Merge tag 'iio-fixes-for-5.6a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23...
[linux-2.6-microblaze.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         chosen {
43                 stdout-path = "serial0:115200n8";
44         };
45
46         memory@60000000 {
47                 device_type = "memory";
48                 reg = <0x60000000 0x20000000>;
49         };
50
51         gpio-restart {
52                 compatible = "gpio-restart";
53                 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
54                 open-source;
55                 priority = <200>;
56         };
57
58         sfp: sfp {
59                 compatible = "sff,sfp";
60                 i2c-bus = <&i2c0>;
61                 mod-def0-gpios = <&gpioa 28 GPIO_ACTIVE_LOW>;
62                 los-gpios = <&gpioa 24 GPIO_ACTIVE_HIGH>;
63                 tx-fault-gpios = <&gpioa 30 GPIO_ACTIVE_HIGH>;
64                 tx-disable-gpios = <&gpioa 26 GPIO_ACTIVE_HIGH>;
65         };
66 };
67
68 &i2c0 {
69         status = "okay";
70 };
71
72 &amac0 {
73         status = "okay";
74 };
75
76 &amac1 {
77         status = "okay";
78 };
79
80 &amac2 {
81         status = "okay";
82 };
83
84 &ehci0 {
85         status = "okay";
86 };
87
88 &nand {
89         nandcs@0 {
90                 compatible = "brcm,nandcs";
91                 reg = <0>;
92                 nand-on-flash-bbt;
93
94                 #address-cells = <1>;
95                 #size-cells = <1>;
96
97                 nand-ecc-strength = <24>;
98                 nand-ecc-step-size = <1024>;
99
100                 brcm,nand-oob-sector-size = <27>;
101
102                 partition@0 {
103                         label = "nboot";
104                         reg = <0x00000000 0x00200000>;
105                         read-only;
106                 };
107                 partition@200000 {
108                         label = "nenv";
109                         reg = <0x00200000 0x00400000>;
110                 };
111                 partition@600000 {
112                         label = "nsystem";
113                         reg = <0x00600000 0x00a00000>;
114                 };
115                 partition@1000000 {
116                         label = "nrootfs";
117                         reg = <0x01000000 0x03000000>;
118                 };
119                 partition@4000000 {
120                         label = "ncustfs";
121                         reg = <0x04000000 0x3c000000>;
122                 };
123         };
124 };
125
126 &ohci0 {
127         status = "okay";
128 };
129
130 &pcie0 {
131         status = "okay";
132 };
133
134 &pcie1 {
135         status = "okay";
136 };
137
138 &pinctrl {
139         pinctrl-names = "default";
140         pinctrl-0 = <&nand_sel>;
141         nand_sel: nand_sel {
142                 function = "nand";
143                 groups = "nand_grp";
144         };
145 };
146
147 &qspi {
148         bspi-sel = <0>;
149         flash: m25p80@0 {
150                 #address-cells = <1>;
151                 #size-cells = <1>;
152                 compatible = "m25p80";
153                 reg = <0x0>;
154                 spi-max-frequency = <12500000>;
155                 m25p,fast-read;
156                 spi-cpol;
157                 spi-cpha;
158
159                 partition@0 {
160                         label = "boot";
161                         reg = <0x00000000 0x000a0000>;
162                 };
163
164                 partition@a0000 {
165                         label = "env";
166                         reg = <0x000a0000 0x00060000>;
167                 };
168
169                 partition@100000 {
170                         label = "system";
171                         reg = <0x00100000 0x00600000>;
172                 };
173
174                 partition@700000 {
175                         label = "rootfs";
176                         reg = <0x00700000 0x01900000>;
177                 };
178         };
179 };
180
181 &sata_phy0 {
182         status = "okay";
183 };
184
185 &sata_phy1 {
186         status = "okay";
187 };
188
189 &srab {
190         compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
191         status = "okay";
192
193         ports {
194                 #address-cells = <1>;
195                 #size-cells = <0>;
196
197                 port@0 {
198                         label = "port0";
199                         reg = <0>;
200                 };
201
202                 port@1 {
203                         label = "port1";
204                         reg = <1>;
205                 };
206
207                 port@2 {
208                         label = "port2";
209                         reg = <2>;
210                 };
211
212                 port@3 {
213                         label = "port3";
214                         reg = <3>;
215                 };
216
217                 port@4 {
218                         label = "port4";
219                         reg = <4>;
220                 };
221
222                 port@5 {
223                         label = "sfp";
224                         phy-mode = "sgmii";
225                         reg = <5>;
226                         sfp = <&sfp>;
227                         managed = "in-band-status";
228                 };
229
230                 port@8 {
231                         ethernet = <&amac2>;
232                         label = "cpu";
233                         reg = <8>;
234                         fixed-link {
235                                 speed = <1000>;
236                                 full-duplex;
237                         };
238                 };
239         };
240 };
241
242 &uart0 {
243         status = "okay";
244 };
245
246 &usb3_phy {
247         status = "okay";
248 };
249
250 &xhci {
251         status = "okay";
252 };