1d2c2502961f97f7ccd78b833a987fc6fd3377c1
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.1 / 083-ARM-dts-bcm5301x-Add-BCM-SVK-DT-files.patch
1 From a0aef7fbab0d8b5a0d445c74990e5233beda246e Mon Sep 17 00:00:00 2001
2 From: Jon Mason <jonmason@broadcom.com>
3 Date: Wed, 21 Oct 2015 18:46:04 -0400
4 Subject: [PATCH] ARM: dts: bcm5301x: Add BCM SVK DT files
5
6 Add device tree files for Broadcom Northstar based SVKs. Since the
7 bcm5301x.dtsi already exists, all that is necessary is the dts files to
8 enable the UARTs. With these files, the SVKs are able to boot to shell.
9
10 Signed-off-by: Jon Mason <jonmason@broadcom.com>
11 ---
12 arch/arm/boot/dts/Makefile | 5 +++-
13 arch/arm/boot/dts/bcm94708.dts | 56 +++++++++++++++++++++++++++++++++++
14 arch/arm/boot/dts/bcm94709.dts | 56 +++++++++++++++++++++++++++++++++++
15 arch/arm/boot/dts/bcm953012k.dts | 63 ++++++++++++++++++++++++++++++++++++++++
16 4 files changed, 179 insertions(+), 1 deletion(-)
17 create mode 100644 arch/arm/boot/dts/bcm94708.dts
18 create mode 100644 arch/arm/boot/dts/bcm94709.dts
19 create mode 100644 arch/arm/boot/dts/bcm953012k.dts
20
21 --- a/arch/arm/boot/dts/Makefile
22 +++ b/arch/arm/boot/dts/Makefile
23 @@ -69,7 +69,10 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
24 bcm4709-asus-rt-ac87u.dtb \
25 bcm4709-buffalo-wxr-1900dhp.dtb \
26 bcm4709-netgear-r7000.dtb \
27 - bcm4709-netgear-r8000.dtb
28 + bcm4709-netgear-r8000.dtb \
29 + bcm94708.dtb \
30 + bcm94709.dtb \
31 + bcm953012k.dtb
32 dtb-$(CONFIG_ARCH_BCM_63XX) += \
33 bcm963138dvt.dtb
34 dtb-$(CONFIG_ARCH_BCM_CYGNUS) += \
35 --- /dev/null
36 +++ b/arch/arm/boot/dts/bcm94708.dts
37 @@ -0,0 +1,56 @@
38 +/*
39 + * BSD LICENSE
40 + *
41 + * Copyright(c) 2015 Broadcom Corporation. All rights reserved.
42 + *
43 + * Redistribution and use in source and binary forms, with or without
44 + * modification, are permitted provided that the following conditions
45 + * are met:
46 + *
47 + * * Redistributions of source code must retain the above copyright
48 + * notice, this list of conditions and the following disclaimer.
49 + * * Redistributions in binary form must reproduce the above copyright
50 + * notice, this list of conditions and the following disclaimer in
51 + * the documentation and/or other materials provided with the
52 + * distribution.
53 + * * Neither the name of Broadcom Corporation nor the names of its
54 + * contributors may be used to endorse or promote products derived
55 + * from this software without specific prior written permission.
56 + *
57 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
58 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
59 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
60 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
61 + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
62 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
63 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
64 + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
65 + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
66 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
67 + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
68 + */
69 +
70 +/dts-v1/;
71 +
72 +#include "bcm4708.dtsi"
73 +
74 +/ {
75 + model = "NorthStar SVK (BCM94708)";
76 + compatible = "brcm,bcm94708", "brcm,bcm4708";
77 +
78 + aliases {
79 + serial0 = &uart0;
80 + };
81 +
82 + chosen {
83 + stdout-path = "serial0:115200n8";
84 + };
85 +
86 + memory {
87 + reg = <0x00000000 0x08000000>;
88 + };
89 +};
90 +
91 +&uart0 {
92 + status = "okay";
93 +};
94 --- /dev/null
95 +++ b/arch/arm/boot/dts/bcm94709.dts
96 @@ -0,0 +1,56 @@
97 +/*
98 + * BSD LICENSE
99 + *
100 + * Copyright(c) 2015 Broadcom Corporation. All rights reserved.
101 + *
102 + * Redistribution and use in source and binary forms, with or without
103 + * modification, are permitted provided that the following conditions
104 + * are met:
105 + *
106 + * * Redistributions of source code must retain the above copyright
107 + * notice, this list of conditions and the following disclaimer.
108 + * * Redistributions in binary form must reproduce the above copyright
109 + * notice, this list of conditions and the following disclaimer in
110 + * the documentation and/or other materials provided with the
111 + * distribution.
112 + * * Neither the name of Broadcom Corporation nor the names of its
113 + * contributors may be used to endorse or promote products derived
114 + * from this software without specific prior written permission.
115 + *
116 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
117 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
118 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
119 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
120 + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
121 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
122 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
123 + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
124 + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
125 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
126 + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
127 + */
128 +
129 +/dts-v1/;
130 +
131 +#include "bcm4708.dtsi"
132 +
133 +/ {
134 + model = "NorthStar SVK (BCM94709)";
135 + compatible = "brcm,bcm94709", "brcm,bcm4709", "brcm,bcm4708";
136 +
137 + aliases {
138 + serial0 = &uart0;
139 + };
140 +
141 + chosen {
142 + stdout-path = "serial0:115200n8";
143 + };
144 +
145 + memory {
146 + reg = <0x00000000 0x08000000>;
147 + };
148 +};
149 +
150 +&uart0 {
151 + status = "okay";
152 +};
153 --- /dev/null
154 +++ b/arch/arm/boot/dts/bcm953012k.dts
155 @@ -0,0 +1,63 @@
156 +/*
157 + * BSD LICENSE
158 + *
159 + * Copyright(c) 2015 Broadcom Corporation. All rights reserved.
160 + *
161 + * Redistribution and use in source and binary forms, with or without
162 + * modification, are permitted provided that the following conditions
163 + * are met:
164 + *
165 + * * Redistributions of source code must retain the above copyright
166 + * notice, this list of conditions and the following disclaimer.
167 + * * Redistributions in binary form must reproduce the above copyright
168 + * notice, this list of conditions and the following disclaimer in
169 + * the documentation and/or other materials provided with the
170 + * distribution.
171 + * * Neither the name of Broadcom Corporation nor the names of its
172 + * contributors may be used to endorse or promote products derived
173 + * from this software without specific prior written permission.
174 + *
175 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
176 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
177 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
178 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
179 + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
180 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
181 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
182 + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
183 + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
184 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
185 + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
186 + */
187 +
188 +/dts-v1/;
189 +
190 +#include "bcm4708.dtsi"
191 +
192 +/ {
193 + model = "NorthStar SVK (BCM953012K)";
194 + compatible = "brcm,bcm953012k", "brcm,brcm53012", "brcm,bcm4708";
195 +
196 + aliases {
197 + serial0 = &uart0;
198 + serial1 = &uart1;
199 + };
200 +
201 + chosen {
202 + stdout-path = "serial0:115200n8";
203 + };
204 +
205 + memory {
206 + reg = <0x00000000 0x10000000>;
207 + };
208 +};
209 +
210 +&uart0 {
211 + clock-frequency = <62499840>;
212 + status = "okay";
213 +};
214 +
215 +&uart1 {
216 + clock-frequency = <62499840>;
217 + status = "okay";
218 +};