Skip to content

Commit 18e8c6d

Browse files
committed
riscv: dts: sophgo: add uart clock for Sophgo CV1800 series SoC
Add missing clocks of uart node for CV1800B and CV1812H. Reviewed-by: Chen Wang <unicorn_wang@outlook.com> Link: https://lore.kernel.org/r/IA1PR20MB4953198222C3ABC2A2B6DE21BB262@IA1PR20MB4953.namprd20.prod.outlook.com Signed-off-by: Inochi Amaoto <inochiama@outlook.com> Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
1 parent bb7b341 commit 18e8c6d

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

arch/riscv/boot/dts/sophgo/cv18xx.dtsi

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Copyright (C) 2023 Inochi Amaoto <inochiama@outlook.com>
55
*/
66

7+
#include <dt-bindings/clock/sophgo,cv1800.h>
78
#include <dt-bindings/gpio/gpio.h>
89
#include <dt-bindings/interrupt-controller/irq.h>
910

@@ -143,7 +144,8 @@
143144
compatible = "snps,dw-apb-uart";
144145
reg = <0x04140000 0x100>;
145146
interrupts = <44 IRQ_TYPE_LEVEL_HIGH>;
146-
clocks = <&osc>;
147+
clocks = <&clk CLK_UART0>, <&clk CLK_APB_UART0>;
148+
clock-names = "baudclk", "apb_pclk";
147149
reg-shift = <2>;
148150
reg-io-width = <4>;
149151
status = "disabled";
@@ -153,7 +155,8 @@
153155
compatible = "snps,dw-apb-uart";
154156
reg = <0x04150000 0x100>;
155157
interrupts = <45 IRQ_TYPE_LEVEL_HIGH>;
156-
clocks = <&osc>;
158+
clocks = <&clk CLK_UART1>, <&clk CLK_APB_UART1>;
159+
clock-names = "baudclk", "apb_pclk";
157160
reg-shift = <2>;
158161
reg-io-width = <4>;
159162
status = "disabled";
@@ -163,7 +166,8 @@
163166
compatible = "snps,dw-apb-uart";
164167
reg = <0x04160000 0x100>;
165168
interrupts = <46 IRQ_TYPE_LEVEL_HIGH>;
166-
clocks = <&osc>;
169+
clocks = <&clk CLK_UART2>, <&clk CLK_APB_UART2>;
170+
clock-names = "baudclk", "apb_pclk";
167171
reg-shift = <2>;
168172
reg-io-width = <4>;
169173
status = "disabled";
@@ -173,7 +177,8 @@
173177
compatible = "snps,dw-apb-uart";
174178
reg = <0x04170000 0x100>;
175179
interrupts = <47 IRQ_TYPE_LEVEL_HIGH>;
176-
clocks = <&osc>;
180+
clocks = <&clk CLK_UART3>, <&clk CLK_APB_UART3>;
181+
clock-names = "baudclk", "apb_pclk";
177182
reg-shift = <2>;
178183
reg-io-width = <4>;
179184
status = "disabled";
@@ -183,7 +188,8 @@
183188
compatible = "snps,dw-apb-uart";
184189
reg = <0x041c0000 0x100>;
185190
interrupts = <48 IRQ_TYPE_LEVEL_HIGH>;
186-
clocks = <&osc>;
191+
clocks = <&clk CLK_UART4>, <&clk CLK_APB_UART4>;
192+
clock-names = "baudclk", "apb_pclk";
187193
reg-shift = <2>;
188194
reg-io-width = <4>;
189195
status = "disabled";

0 commit comments

Comments
 (0)