forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/meson.dtsi
....@@ -1,71 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0 OR MIT
12 /*
23 * Copyright 2014 Carlo Caione <carlo@caione.org>
3
- *
4
- * This file is dual-licensed: you can use it either under the terms
5
- * of the GPL or the X11 license, at your option. Note that this dual
6
- * licensing only applies to this file, and not this project as a
7
- * whole.
8
- *
9
- * a) This library is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License as
11
- * published by the Free Software Foundation; either version 2 of the
12
- * License, or (at your option) any later version.
13
- *
14
- * This library is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public
20
- * License along with this library; if not, write to the Free
21
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22
- * MA 02110-1301 USA
23
- *
24
- * Or, alternatively,
25
- *
26
- * b) Permission is hereby granted, free of charge, to any person
27
- * obtaining a copy of this software and associated documentation
28
- * files (the "Software"), to deal in the Software without
29
- * restriction, including without limitation the rights to use,
30
- * copy, modify, merge, publish, distribute, sublicense, and/or
31
- * sell copies of the Software, and to permit persons to whom the
32
- * Software is furnished to do so, subject to the following
33
- * conditions:
34
- *
35
- * The above copyright notice and this permission notice shall be
36
- * included in all copies or substantial portions of the Software.
37
- *
38
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45
- * OTHER DEALINGS IN THE SOFTWARE.
464 */
475
486 #include <dt-bindings/interrupt-controller/irq.h>
497 #include <dt-bindings/interrupt-controller/arm-gic.h>
50
-/include/ "skeleton.dtsi"
518
529 / {
10
+ #address-cells = <1>;
11
+ #size-cells = <1>;
5312 interrupt-parent = <&gic>;
54
-
55
- L2: l2-cache-controller@c4200000 {
56
- compatible = "arm,pl310-cache";
57
- reg = <0xc4200000 0x1000>;
58
- cache-unified;
59
- cache-level = <2>;
60
- };
61
-
62
- gic: interrupt-controller@c4301000 {
63
- compatible = "arm,cortex-a9-gic";
64
- reg = <0xc4301000 0x1000>,
65
- <0xc4300100 0x0100>;
66
- interrupt-controller;
67
- #interrupt-cells = <3>;
68
- };
6913
7014 soc {
7115 compatible = "simple-bus";
....@@ -79,6 +23,13 @@
7923 #address-cells = <1>;
8024 #size-cells = <1>;
8125 ranges = <0x0 0xc1100000 0x200000>;
26
+
27
+ hhi: system-controller@4000 {
28
+ compatible = "amlogic,meson-hhi-sysctrl",
29
+ "simple-mfd",
30
+ "syscon";
31
+ reg = <0x4000 0x400>;
32
+ };
8233
8334 assist: assist@7c00 {
8435 compatible = "amlogic,meson-mx-assist", "syscon";
....@@ -182,6 +133,13 @@
182133 status = "disabled";
183134 };
184135
136
+ sdhc: mmc@8e00 {
137
+ compatible = "amlogic,meson-mx-sdhc";
138
+ reg = <0x8e00 0x42>;
139
+ interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
140
+ status = "disabled";
141
+ };
142
+
185143 gpio_intc: interrupt-controller@9880 {
186144 compatible = "amlogic,meson-gpio-intc";
187145 reg = <0x9880 0x10>;
....@@ -197,10 +155,36 @@
197155 interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
198156 };
199157
200
- timer@9940 {
158
+ timer_abcde: timer@9940 {
201159 compatible = "amlogic,meson6-timer";
202160 reg = <0x9940 0x18>;
203
- interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>;
161
+ interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
162
+ <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
163
+ <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
164
+ <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
165
+ };
166
+ };
167
+
168
+ L2: cache-controller@c4200000 {
169
+ compatible = "arm,pl310-cache";
170
+ reg = <0xc4200000 0x1000>;
171
+ cache-unified;
172
+ cache-level = <2>;
173
+ };
174
+
175
+ periph: bus@c4300000 {
176
+ compatible = "simple-bus";
177
+ reg = <0xc4300000 0x10000>;
178
+ #address-cells = <1>;
179
+ #size-cells = <1>;
180
+ ranges = <0x0 0xc4300000 0x10000>;
181
+
182
+ gic: interrupt-controller@1000 {
183
+ compatible = "arm,cortex-a9-gic";
184
+ reg = <0x1000 0x1000>,
185
+ <0x100 0x100>;
186
+ interrupt-controller;
187
+ #interrupt-cells = <3>;
204188 };
205189 };
206190
....@@ -233,6 +217,15 @@
233217 #size-cells = <0>;
234218 status = "disabled";
235219 };
220
+
221
+ rtc: rtc@740 {
222
+ compatible = "amlogic,meson6-rtc";
223
+ reg = <0x740 0x14>;
224
+ interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
225
+ #address-cells = <1>;
226
+ #size-cells = <1>;
227
+ status = "disabled";
228
+ };
236229 };
237230
238231 usb0: usb@c9040000 {
....@@ -243,6 +236,9 @@
243236 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
244237 phys = <&usb0_phy>;
245238 phy-names = "usb2-phy";
239
+ g-rx-fifo-size = <512>;
240
+ g-np-tx-fifo-size = <500>;
241
+ g-tx-fifo-size = <256 192 128 128 128>;
246242 dr_mode = "host";
247243 status = "disabled";
248244 };
....@@ -296,4 +292,11 @@
296292 };
297293 };
298294 };
295
+
296
+ xtal: xtal-clk {
297
+ compatible = "fixed-clock";
298
+ clock-frequency = <24000000>;
299
+ clock-output-names = "xtal";
300
+ #clock-cells = <0>;
301
+ };
299302 }; /* end of / */