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