]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/arm/boot/dts/bcm958525xmc.dts
Merge branch 'x86/boot' into x86/mm, to avoid conflict
[mirror_ubuntu-focal-kernel.git] / arch / arm / boot / dts / bcm958525xmc.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 XMC (BCM958525xmc)";
40 compatible = "brcm,bcm58525", "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 0x40000000>;
53 };
54
55 gpio-restart {
56 compatible = "gpio-restart";
57 gpios = <&gpioa 31 GPIO_ACTIVE_LOW>;
58 open-source;
59 priority = <200>;
60 };
61 };
62
63 /* XHCI support needed to be complete */
64
65 &amac0 {
66 status = "okay";
67 };
68
69 &i2c0 {
70 temperature-sensor@4c {
71 compatible = "adi,adt7461a";
72 reg = <0x4c>;
73 };
74
75 eeprom@52 {
76 compatible = "atmel,24c02";
77 reg = <0x52>;
78 pagesize = <16>;
79 };
80
81 rtc@68 {
82 compatible = "st,m41t81";
83 reg = <0x68>;
84 };
85 };
86
87 &nand {
88 nandcs@0 {
89 compatible = "brcm,nandcs";
90 reg = <0>;
91 nand-on-flash-bbt;
92
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 nand-ecc-strength = <24>;
97 nand-ecc-step-size = <1024>;
98
99 brcm,nand-oob-sector-size = <27>;
100
101 partition@0 {
102 label = "nboot";
103 reg = <0x00000000 0x00200000>;
104 read-only;
105 };
106 partition@200000 {
107 label = "nenv";
108 reg = <0x00200000 0x00400000>;
109 };
110 partition@600000 {
111 label = "nsystem";
112 reg = <0x00600000 0x00a00000>;
113 };
114 partition@1000000 {
115 label = "nrootfs";
116 reg = <0x01000000 0x03000000>;
117 };
118 partition@4000000 {
119 label = "ncustfs";
120 reg = <0x04000000 0x3c000000>;
121 };
122 };
123 };
124
125 &pcie0 {
126 status = "okay";
127 };
128
129 &pcie1 {
130 status = "okay";
131 };
132
133 &pinctrl {
134 pinctrl-names = "default";
135 pinctrl-0 = <&nand_sel>;
136 nand_sel: nand_sel {
137 function = "nand";
138 groups = "nand_grp";
139 };
140 };
141
142 &qspi {
143 bspi-sel = <0>;
144 flash: m25p80@0 {
145 #address-cells = <1>;
146 #size-cells = <1>;
147 compatible = "m25p80";
148 reg = <0x0>;
149 spi-max-frequency = <12500000>;
150 m25p,fast-read;
151 spi-cpol;
152 spi-cpha;
153
154 partition@0 {
155 label = "boot";
156 reg = <0x00000000 0x000a0000>;
157 };
158
159 partition@a0000 {
160 label = "env";
161 reg = <0x000a0000 0x00060000>;
162 };
163
164 partition@100000 {
165 label = "system";
166 reg = <0x00100000 0x00600000>;
167 };
168
169 partition@700000 {
170 label = "rootfs";
171 reg = <0x00700000 0x01900000>;
172 };
173 };
174 };
175
176 &sata_phy0 {
177 status = "okay";
178 };
179
180 &sata_phy1 {
181 status = "okay";
182 };
183
184 &sata {
185 status = "okay";
186 };
187
188 &sdio {
189 status = "ok";
190 };
191
192 &uart0 {
193 status = "okay";
194 };