blob: ed05e33d56de1ab1e8897821ae1b2f16b9131d5f [file] [log] [blame]
Jon Masonf27eacf2016-08-03 14:39:04 -04001/*
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>;
Jon Masonf4bff2c2017-03-01 18:02:28 -050058 open-source;
Jon Masonf27eacf2016-08-03 14:39:04 -040059 priority = <200>;
60 };
61};
62
63/* USB 2/3 support needed to be complete */
64
65&amac0 {
66 status = "okay";
67};
68
69&nand {
70 nandcs@0 {
71 compatible = "brcm,nandcs";
72 reg = <0>;
73 nand-on-flash-bbt;
74
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 nand-ecc-strength = <24>;
79 nand-ecc-step-size = <1024>;
80
81 brcm,nand-oob-sector-size = <27>;
82
83 partition@0 {
84 label = "nboot";
85 reg = <0x00000000 0x00200000>;
86 read-only;
87 };
88 partition@200000 {
89 label = "nenv";
90 reg = <0x00200000 0x00400000>;
91 };
92 partition@600000 {
93 label = "nsystem";
94 reg = <0x00600000 0x00a00000>;
95 };
96 partition@1000000 {
97 label = "nrootfs";
98 reg = <0x01000000 0x03000000>;
99 };
100 partition@4000000 {
101 label = "ncustfs";
102 reg = <0x04000000 0x3c000000>;
103 };
104 };
105};
106
107&pcie0 {
108 status = "okay";
109};
110
111&pcie1 {
112 status = "okay";
113};
114
115&pinctrl {
116 pinctrl-names = "default";
117 pinctrl-0 = <&nand_sel>;
118 nand_sel: nand_sel {
119 function = "nand";
120 groups = "nand_grp";
121 };
122};
123
124&sata_phy0 {
125 status = "okay";
126};
127
128&sata_phy1 {
129 status = "okay";
130};
131
132&sata {
133 status = "okay";
134};
135
136&srab {
137 compatible = "brcm,bcm88312-srab", "brcm,nsp-srab";
138 status = "okay";
139
140 ports {
141 #address-cells = <1>;
142 #size-cells = <0>;
143
144 port@0 {
145 label = "port0";
146 reg = <0>;
147 };
148
149 port@1 {
150 label = "port1";
151 reg = <1>;
152 };
153
154 port@2 {
155 label = "port2";
156 reg = <2>;
157 };
158
159 port@3 {
160 label = "port3";
161 reg = <3>;
162 };
163
164 port@4 {
165 label = "port4";
166 reg = <4>;
167 };
168
169 port@5 {
170 ethernet = <&amac0>;
171 label = "cpu";
172 reg = <5>;
173 fixed-link {
174 speed = <1000>;
175 full-duplex;
176 };
177 };
178 };
179};
180
181&uart0 {
182 status = "okay";
183};