hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/omap2430.dtsi
....@@ -1,7 +1,7 @@
11 /*
22 * Device Tree Source for OMAP243x SoC
33 *
4
- * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
4
+ * Copyright (C) 2012 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
....@@ -81,10 +81,23 @@
8181 };
8282 };
8383
84
- counter32k: counter@20000 {
85
- compatible = "ti,omap-counter32k";
86
- reg = <0x20000 0x20>;
87
- ti,hwmods = "counter_32k";
84
+ target-module@20000 {
85
+ compatible = "ti,sysc-omap2", "ti,sysc";
86
+ reg = <0x20000 0x4>,
87
+ <0x20004 0x4>;
88
+ reg-names = "rev", "sysc";
89
+ ti,sysc-sidle = <SYSC_IDLE_FORCE>,
90
+ <SYSC_IDLE_NO>;
91
+ clocks = <&func_32k_ck>;
92
+ clock-names = "fck";
93
+ #address-cells = <1>;
94
+ #size-cells = <1>;
95
+ ranges = <0x0 0x20000 0x1000>;
96
+
97
+ counter32k: counter@0 {
98
+ compatible = "ti,omap-counter32k";
99
+ reg = <0 0x20>;
100
+ };
88101 };
89102 };
90103
....@@ -277,12 +290,33 @@
277290 };
278291 };
279292
280
- timer1: timer@49018000 {
281
- compatible = "ti,omap2420-timer";
282
- reg = <0x49018000 0x400>;
283
- interrupts = <37>;
284
- ti,hwmods = "timer1";
285
- ti,timer-alwon;
293
+ timer1_target: target-module@49018000 {
294
+ compatible = "ti,sysc-omap2-timer", "ti,sysc";
295
+ reg = <0x49018000 0x4>,
296
+ <0x49018010 0x4>,
297
+ <0x49018014 0x4>;
298
+ reg-names = "rev", "sysc", "syss";
299
+ ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
300
+ SYSC_OMAP2_EMUFREE |
301
+ SYSC_OMAP2_ENAWAKEUP |
302
+ SYSC_OMAP2_SOFTRESET |
303
+ SYSC_OMAP2_AUTOIDLE)>;
304
+ ti,sysc-sidle = <SYSC_IDLE_FORCE>,
305
+ <SYSC_IDLE_NO>,
306
+ <SYSC_IDLE_SMART>;
307
+ ti,syss-mask = <1>;
308
+ clocks = <&gpt1_fck>, <&gpt1_ick>;
309
+ clock-names = "fck", "ick";
310
+ #address-cells = <1>;
311
+ #size-cells = <1>;
312
+ ranges = <0x0 0x49018000 0x1000>;
313
+
314
+ timer1: timer@0 {
315
+ compatible = "ti,omap2420-timer";
316
+ reg = <0 0x400>;
317
+ interrupts = <37>;
318
+ ti,timer-alwon;
319
+ };
286320 };
287321
288322 mcspi3: spi@480b8000 {
....@@ -309,6 +343,10 @@
309343 };
310344 };
311345
346
+&sdma {
347
+ compatible = "ti,omap2430-sdma", "ti,omap-sdma";
348
+};
349
+
312350 &i2c1 {
313351 compatible = "ti,omap2430-i2c";
314352 };
....@@ -317,5 +355,15 @@
317355 compatible = "ti,omap2430-i2c";
318356 };
319357
320
-/include/ "omap24xx-clocks.dtsi"
321
-/include/ "omap2430-clocks.dtsi"
358
+#include "omap24xx-clocks.dtsi"
359
+#include "omap2430-clocks.dtsi"
360
+
361
+/* Preferred always-on timer for clockevent */
362
+&timer1_target {
363
+ ti,no-reset-on-init;
364
+ ti,no-idle;
365
+ timer@0 {
366
+ assigned-clocks = <&gpt1_fck>;
367
+ assigned-clock-parents = <&func_32k_ck>;
368
+ };
369
+};