blob: 959cde911c3c5102c5b5db0f72cf6a6b86476934 [file] [log] [blame]
Jon Mason707bbc452016-06-07 18:28:06 -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"
Jon Mason10baed12016-08-03 14:39:01 -040036#include <dt-bindings/gpio/gpio.h>
Jon Mason707bbc452016-06-07 18:28:06 -040037
38/ {
39 model = "NorthStar Plus XMC (BCM958525xmc)";
40 compatible = "brcm,bcm58525", "brcm,nsp";
41
42 aliases {
43 serial0 = &uart0;
44 };
45
46 chosen {
47 stdout-path = "serial0:115200n8";
48 };
Jon Mason70c341c2016-08-03 14:38:59 -040049
50 memory {
51 device_type = "memory";
52 reg = <0x60000000 0x40000000>;
53 };
Jon Mason10baed12016-08-03 14:39:01 -040054
55 gpio-restart {
56 compatible = "gpio-restart";
57 gpios = <&gpioa 31 GPIO_ACTIVE_LOW>;
58 priority = <200>;
59 };
Jon Mason707bbc452016-06-07 18:28:06 -040060};
61
Jon Masonbb239552016-08-03 14:38:57 -040062&i2c0 {
63 temperature-sensor@4c {
64 compatible = "adi,adt7461a";
65 reg = <0x4c>;
66 };
67
68 eeprom@52 {
69 compatible = "atmel,24c02";
70 reg = <0x52>;
71 pagesize = <16>;
72 };
73
74 rtc@68 {
75 compatible = "st,m41t81";
76 reg = <0x68>;
77 };
78};
79
Jon Mason707bbc452016-06-07 18:28:06 -040080&nand {
81 nandcs@0 {
82 compatible = "brcm,nandcs";
83 reg = <0>;
84 nand-on-flash-bbt;
85
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 nand-ecc-strength = <24>;
90 nand-ecc-step-size = <1024>;
91
92 brcm,nand-oob-sector-size = <27>;
93
94 partition@0 {
95 label = "nboot";
96 reg = <0x00000000 0x00200000>;
97 read-only;
98 };
99 partition@200000 {
100 label = "nenv";
101 reg = <0x00200000 0x00400000>;
102 };
103 partition@600000 {
104 label = "nsystem";
105 reg = <0x00600000 0x00a00000>;
106 };
107 partition@1000000 {
108 label = "nrootfs";
109 reg = <0x01000000 0x03000000>;
110 };
111 partition@4000000 {
112 label = "ncustfs";
113 reg = <0x04000000 0x3c000000>;
114 };
115 };
116};
117
Jon Masonbb239552016-08-03 14:38:57 -0400118/* XHCI, MMC, and Ethernet support needed to be complete */
Jon Mason707bbc452016-06-07 18:28:06 -0400119
120&uart0 {
121 status = "okay";
122};
123
124&pcie0 {
125 status = "okay";
126};
127
128&pcie1 {
129 status = "okay";
130};
131
Jon Masonbb239552016-08-03 14:38:57 -0400132&sata_phy0 {
133 status = "okay";
134};
135
136&sata_phy1 {
137 status = "okay";
138};
139
140&sata {
141 status = "okay";
142};
143
Jon Mason707bbc452016-06-07 18:28:06 -0400144&pinctrl {
145 pinctrl-names = "default";
146 pinctrl-0 = <&nand_sel>;
147 nand_sel: nand_sel {
148 function = "nand";
149 groups = "nand_grp";
150 };
151};