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