forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/omap2.dtsi
....@@ -1,13 +1,14 @@
11 /*
22 * Device Tree Source for OMAP2 SoC
33 *
4
- * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
4
+ * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
55 *
66 * This file is licensed under the terms of the GNU General Public License
77 * version 2. This program is licensed "as is" without any warranty of any
88 * kind, whether express or implied.
99 */
1010
11
+#include <dt-bindings/bus/ti-sysc.h>
1112 #include <dt-bindings/gpio/gpio.h>
1213 #include <dt-bindings/interrupt-controller/irq.h>
1314 #include <dt-bindings/pinctrl/omap.h>
....@@ -79,17 +80,37 @@
7980 reg = <0x480FE000 0x1000>;
8081 };
8182
82
- sdma: dma-controller@48056000 {
83
- compatible = "ti,omap2430-sdma", "ti,omap2420-sdma";
84
- ti,hwmods = "dma";
85
- reg = <0x48056000 0x1000>;
86
- interrupts = <12>,
87
- <13>,
88
- <14>,
89
- <15>;
90
- #dma-cells = <1>;
91
- dma-channels = <32>;
92
- dma-requests = <64>;
83
+ target-module@48056000 {
84
+ compatible = "ti,sysc-omap2", "ti,sysc";
85
+ reg = <0x48056000 0x4>,
86
+ <0x4805602c 0x4>,
87
+ <0x48056028 0x4>;
88
+ reg-names = "rev", "sysc", "syss";
89
+ ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
90
+ SYSC_OMAP2_EMUFREE |
91
+ SYSC_OMAP2_SOFTRESET |
92
+ SYSC_OMAP2_AUTOIDLE)>;
93
+ ti,sysc-midle = <SYSC_IDLE_FORCE>,
94
+ <SYSC_IDLE_NO>,
95
+ <SYSC_IDLE_SMART>;
96
+ ti,syss-mask = <1>;
97
+ clocks = <&core_l3_ck>;
98
+ clock-names = "fck";
99
+ #address-cells = <1>;
100
+ #size-cells = <1>;
101
+ ranges = <0 0x48056000 0x1000>;
102
+
103
+ sdma: dma-controller@0 {
104
+ compatible = "ti,omap2420-sdma", "ti,omap-sdma";
105
+ reg = <0 0x1000>;
106
+ interrupts = <12>,
107
+ <13>,
108
+ <14>,
109
+ <15>;
110
+ #dma-cells = <1>;
111
+ dma-channels = <32>;
112
+ dma-requests = <64>;
113
+ };
93114 };
94115
95116 i2c1: i2c@48070000 {
....@@ -180,11 +201,32 @@
180201 clock-frequency = <48000000>;
181202 };
182203
183
- timer2: timer@4802a000 {
184
- compatible = "ti,omap2420-timer";
185
- reg = <0x4802a000 0x400>;
186
- interrupts = <38>;
187
- ti,hwmods = "timer2";
204
+ timer2_target: target-module@4802a000 {
205
+ compatible = "ti,sysc-omap2-timer", "ti,sysc";
206
+ reg = <0x4802a000 0x4>,
207
+ <0x4802a010 0x4>,
208
+ <0x4802a014 0x4>;
209
+ reg-names = "rev", "sysc", "syss";
210
+ ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
211
+ SYSC_OMAP2_EMUFREE |
212
+ SYSC_OMAP2_ENAWAKEUP |
213
+ SYSC_OMAP2_SOFTRESET |
214
+ SYSC_OMAP2_AUTOIDLE)>;
215
+ ti,sysc-sidle = <SYSC_IDLE_FORCE>,
216
+ <SYSC_IDLE_NO>,
217
+ <SYSC_IDLE_SMART>;
218
+ ti,syss-mask = <1>;
219
+ clocks = <&gpt2_fck>, <&gpt2_ick>;
220
+ clock-names = "fck", "ick";
221
+ #address-cells = <1>;
222
+ #size-cells = <1>;
223
+ ranges = <0x0 0x4802a000 0x1000>;
224
+
225
+ timer2: timer@0 {
226
+ compatible = "ti,omap2420-timer";
227
+ reg = <0 0x400>;
228
+ interrupts = <38>;
229
+ };
188230 };
189231
190232 timer3: timer@48078000 {