]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/bcm958623hr.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 / bcm958623hr.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 (BCM958623HR)";
40         compatible = "brcm,bcm58623", "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 and SLIC 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 &sata_phy0 {
140         status = "okay";
141 };
142
143 &sata {
144         status = "okay";
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 &srab {
182         compatible = "brcm,bcm58623-srab", "brcm,nsp-srab";
183         status = "okay";
184
185         ports {
186                 #address-cells = <1>;
187                 #size-cells = <0>;
188
189                 port@0 {
190                         label = "port0";
191                         reg = <0>;
192                 };
193
194                 port@1 {
195                         label = "port1";
196                         reg = <1>;
197                 };
198
199                 port@2 {
200                         label = "port2";
201                         reg = <2>;
202                 };
203
204                 port@3 {
205                         label = "port3";
206                         reg = <3>;
207                 };
208
209                 port@4 {
210                         label = "port4";
211                         reg = <4>;
212                 };
213
214                 port@5 {
215                         ethernet = <&amac0>;
216                         label = "cpu";
217                         reg = <5>;
218                         fixed-link {
219                                 speed = <1000>;
220                                 full-duplex;
221                         };
222                 };
223         };
224 };
225
226 &uart0 {
227         status = "okay";
228 };