hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/nspire.dtsi
....@@ -1,17 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/boot/nspire.dtsi
34 *
45 * Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2, as
8
- * published by the Free Software Foundation.
9
- *
106 */
117
12
-/include/ "skeleton.dtsi"
13
-
148 / {
9
+ #address-cells = <1>;
10
+ #size-cells = <1>;
1511 interrupt-parent = <&intc>;
1612
1713 cpus {
....@@ -99,8 +95,14 @@
9995 reg = <0xC0000000 0x1000>;
10096 interrupts = <21>;
10197
102
- clocks = <&apb_pclk>;
103
- clock-names = "apb_pclk";
98
+ /*
99
+ * We assume the same clock is fed to APB and CLCDCLK.
100
+ * There is some code to scale the clock down by a factor
101
+ * 48 for the display so likely the frequency to the
102
+ * display is 1MHz and the CLCDCLK is 48 MHz.
103
+ */
104
+ clocks = <&apb_pclk>, <&apb_pclk>;
105
+ clock-names = "clcdclk", "apb_pclk";
104106 };
105107
106108 adc: adc@C4000000 {
....@@ -143,15 +145,19 @@
143145
144146 timer0: timer@900C0000 {
145147 reg = <0x900C0000 0x1000>;
146
-
147
- clocks = <&timer_clk>;
148
+ clocks = <&timer_clk>, <&timer_clk>,
149
+ <&timer_clk>;
150
+ clock-names = "timer0clk", "timer1clk",
151
+ "apb_pclk";
148152 };
149153
150154 timer1: timer@900D0000 {
151155 reg = <0x900D0000 0x1000>;
152156 interrupts = <19>;
153
-
154
- clocks = <&timer_clk>;
157
+ clocks = <&timer_clk>, <&timer_clk>,
158
+ <&timer_clk>;
159
+ clock-names = "timer0clk", "timer1clk",
160
+ "apb_pclk";
155161 };
156162
157163 watchdog: watchdog@90060000 {