ARM: dts: NSP: Add EHCI/OHCI USB nodes to device tree
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm958522er.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 (BCM958522ER)";
40         compatible = "brcm,bcm58522", "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 &ehci0 {
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 &ohci0 {
115         status = "okay";
116 };
117
118 &pcie0 {
119         status = "okay";
120 };
121
122 &pcie1 {
123         status = "okay";
124 };
125
126 &pinctrl {
127         pinctrl-names = "default";
128         pinctrl-0 = <&nand_sel>;
129         nand_sel: nand_sel {
130                 function = "nand";
131                 groups = "nand_grp";
132         };
133 };
134
135 &qspi {
136         bspi-sel = <0>;
137         flash: m25p80@0 {
138                 #address-cells = <1>;
139                 #size-cells = <1>;
140                 compatible = "m25p80";
141                 reg = <0x0>;
142                 spi-max-frequency = <12500000>;
143                 m25p,fast-read;
144                 spi-cpol;
145                 spi-cpha;
146
147                 partition@0 {
148                         label = "boot";
149                         reg = <0x00000000 0x000a0000>;
150                 };
151
152                 partition@a0000 {
153                         label = "env";
154                         reg = <0x000a0000 0x00060000>;
155                 };
156
157                 partition@100000 {
158                         label = "system";
159                         reg = <0x00100000 0x00600000>;
160                 };
161
162                 partition@700000 {
163                         label = "rootfs";
164                         reg = <0x00700000 0x01900000>;
165                 };
166         };
167 };
168
169 &uart0 {
170         status = "okay";
171 };