1*724ba675SRob Herring/*
2*724ba675SRob Herring *  BSD LICENSE
3*724ba675SRob Herring *
4*724ba675SRob Herring *  Copyright(c) 2016 Broadcom.  All rights reserved.
5*724ba675SRob Herring *
6*724ba675SRob Herring *  Redistribution and use in source and binary forms, with or without
7*724ba675SRob Herring *  modification, are permitted provided that the following conditions
8*724ba675SRob Herring *  are met:
9*724ba675SRob Herring *
10*724ba675SRob Herring *    * Redistributions of source code must retain the above copyright
11*724ba675SRob Herring *      notice, this list of conditions and the following disclaimer.
12*724ba675SRob Herring *    * Redistributions in binary form must reproduce the above copyright
13*724ba675SRob Herring *      notice, this list of conditions and the following disclaimer in
14*724ba675SRob Herring *      the documentation and/or other materials provided with the
15*724ba675SRob Herring *      distribution.
16*724ba675SRob Herring *    * Neither the name of Broadcom Corporation nor the names of its
17*724ba675SRob Herring *      contributors may be used to endorse or promote products derived
18*724ba675SRob Herring *      from this software without specific prior written permission.
19*724ba675SRob Herring *
20*724ba675SRob Herring *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21*724ba675SRob Herring *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*724ba675SRob Herring *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23*724ba675SRob Herring *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24*724ba675SRob Herring *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25*724ba675SRob Herring *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26*724ba675SRob Herring *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27*724ba675SRob Herring *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28*724ba675SRob Herring *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29*724ba675SRob Herring *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30*724ba675SRob Herring *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*724ba675SRob Herring */
32*724ba675SRob Herring
33*724ba675SRob Herring/dts-v1/;
34*724ba675SRob Herring
35*724ba675SRob Herring#include "bcm-nsp.dtsi"
36*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
37*724ba675SRob Herring
38*724ba675SRob Herring/ {
39*724ba675SRob Herring	model = "NorthStar Plus SVK (BCM958525ER)";
40*724ba675SRob Herring	compatible = "brcm,bcm958525er", "brcm,bcm58525", "brcm,nsp";
41*724ba675SRob Herring
42*724ba675SRob Herring	chosen {
43*724ba675SRob Herring		stdout-path = "serial0:115200n8";
44*724ba675SRob Herring	};
45*724ba675SRob Herring
46*724ba675SRob Herring	memory@60000000 {
47*724ba675SRob Herring		device_type = "memory";
48*724ba675SRob Herring		reg = <0x60000000 0x80000000>;
49*724ba675SRob Herring	};
50*724ba675SRob Herring
51*724ba675SRob Herring	gpio-restart {
52*724ba675SRob Herring		compatible = "gpio-restart";
53*724ba675SRob Herring		gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
54*724ba675SRob Herring		open-source;
55*724ba675SRob Herring		priority = <200>;
56*724ba675SRob Herring	};
57*724ba675SRob Herring};
58*724ba675SRob Herring
59*724ba675SRob Herring/* USB 3 support needed to be complete */
60*724ba675SRob Herring
61*724ba675SRob Herring&dma {
62*724ba675SRob Herring	status = "okay";
63*724ba675SRob Herring};
64*724ba675SRob Herring
65*724ba675SRob Herring&amac0 {
66*724ba675SRob Herring	status = "okay";
67*724ba675SRob Herring};
68*724ba675SRob Herring
69*724ba675SRob Herring&amac1 {
70*724ba675SRob Herring	status = "okay";
71*724ba675SRob Herring};
72*724ba675SRob Herring
73*724ba675SRob Herring&ehci0 {
74*724ba675SRob Herring	status = "okay";
75*724ba675SRob Herring};
76*724ba675SRob Herring
77*724ba675SRob Herring&nand_controller {
78*724ba675SRob Herring	nand@0 {
79*724ba675SRob Herring		compatible = "brcm,nandcs";
80*724ba675SRob Herring		reg = <0>;
81*724ba675SRob Herring		nand-on-flash-bbt;
82*724ba675SRob Herring
83*724ba675SRob Herring		#address-cells = <1>;
84*724ba675SRob Herring		#size-cells = <1>;
85*724ba675SRob Herring
86*724ba675SRob Herring		nand-ecc-strength = <24>;
87*724ba675SRob Herring		nand-ecc-step-size = <1024>;
88*724ba675SRob Herring
89*724ba675SRob Herring		brcm,nand-oob-sector-size = <27>;
90*724ba675SRob Herring
91*724ba675SRob Herring		partition@0 {
92*724ba675SRob Herring			label = "nboot";
93*724ba675SRob Herring			reg = <0x00000000 0x00200000>;
94*724ba675SRob Herring			read-only;
95*724ba675SRob Herring		};
96*724ba675SRob Herring		partition@200000 {
97*724ba675SRob Herring			label = "nenv";
98*724ba675SRob Herring			reg = <0x00200000 0x00400000>;
99*724ba675SRob Herring		};
100*724ba675SRob Herring		partition@600000 {
101*724ba675SRob Herring			label = "nsystem";
102*724ba675SRob Herring			reg = <0x00600000 0x00a00000>;
103*724ba675SRob Herring		};
104*724ba675SRob Herring		partition@1000000 {
105*724ba675SRob Herring			label = "nrootfs";
106*724ba675SRob Herring			reg = <0x01000000 0x03000000>;
107*724ba675SRob Herring		};
108*724ba675SRob Herring		partition@4000000 {
109*724ba675SRob Herring			label = "ncustfs";
110*724ba675SRob Herring			reg = <0x04000000 0x3c000000>;
111*724ba675SRob Herring		};
112*724ba675SRob Herring	};
113*724ba675SRob Herring};
114*724ba675SRob Herring
115*724ba675SRob Herring&ohci0 {
116*724ba675SRob Herring	status = "okay";
117*724ba675SRob Herring};
118*724ba675SRob Herring
119*724ba675SRob Herring&pcie0 {
120*724ba675SRob Herring	status = "okay";
121*724ba675SRob Herring};
122*724ba675SRob Herring
123*724ba675SRob Herring&pcie1 {
124*724ba675SRob Herring	status = "okay";
125*724ba675SRob Herring};
126*724ba675SRob Herring
127*724ba675SRob Herring&pinctrl {
128*724ba675SRob Herring	pinctrl-names = "default";
129*724ba675SRob Herring	pinctrl-0 = <&nand_sel>;
130*724ba675SRob Herring	nand_sel: nand_sel {
131*724ba675SRob Herring		function = "nand";
132*724ba675SRob Herring		groups = "nand_grp";
133*724ba675SRob Herring	};
134*724ba675SRob Herring};
135*724ba675SRob Herring
136*724ba675SRob Herring&qspi {
137*724ba675SRob Herring	status = "okay";
138*724ba675SRob Herring	bspi-sel = <0>;
139*724ba675SRob Herring	flash: flash@0 {
140*724ba675SRob Herring		#address-cells = <1>;
141*724ba675SRob Herring		#size-cells = <1>;
142*724ba675SRob Herring		compatible = "m25p80";
143*724ba675SRob Herring		reg = <0x0>;
144*724ba675SRob Herring		spi-max-frequency = <12500000>;
145*724ba675SRob Herring		m25p,fast-read;
146*724ba675SRob Herring		spi-cpol;
147*724ba675SRob Herring		spi-cpha;
148*724ba675SRob Herring
149*724ba675SRob Herring		partition@0 {
150*724ba675SRob Herring			label = "boot";
151*724ba675SRob Herring			reg = <0x00000000 0x000a0000>;
152*724ba675SRob Herring		};
153*724ba675SRob Herring
154*724ba675SRob Herring		partition@a0000 {
155*724ba675SRob Herring			label = "env";
156*724ba675SRob Herring			reg = <0x000a0000 0x00060000>;
157*724ba675SRob Herring		};
158*724ba675SRob Herring
159*724ba675SRob Herring		partition@100000 {
160*724ba675SRob Herring			label = "system";
161*724ba675SRob Herring			reg = <0x00100000 0x00600000>;
162*724ba675SRob Herring		};
163*724ba675SRob Herring
164*724ba675SRob Herring		partition@700000 {
165*724ba675SRob Herring			label = "rootfs";
166*724ba675SRob Herring			reg = <0x00700000 0x01900000>;
167*724ba675SRob Herring		};
168*724ba675SRob Herring	};
169*724ba675SRob Herring};
170*724ba675SRob Herring
171*724ba675SRob Herring&sata_phy0 {
172*724ba675SRob Herring	status = "okay";
173*724ba675SRob Herring};
174*724ba675SRob Herring
175*724ba675SRob Herring&sata_phy1 {
176*724ba675SRob Herring	status = "okay";
177*724ba675SRob Herring};
178*724ba675SRob Herring
179*724ba675SRob Herring&sata {
180*724ba675SRob Herring	status = "okay";
181*724ba675SRob Herring};
182*724ba675SRob Herring
183*724ba675SRob Herring&uart0 {
184*724ba675SRob Herring	status = "okay";
185*724ba675SRob Herring};
186*724ba675SRob Herring
187*724ba675SRob Herring&usb3_phy {
188*724ba675SRob Herring	status = "okay";
189*724ba675SRob Herring};
190*724ba675SRob Herring
191*724ba675SRob Herring&xhci {
192*724ba675SRob Herring	status = "okay";
193*724ba675SRob Herring};
194*724ba675SRob Herring
195*724ba675SRob Herring&srab {
196*724ba675SRob Herring	compatible = "brcm,bcm58525-srab", "brcm,nsp-srab";
197*724ba675SRob Herring};
198