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