Skip to content

Commit bb7b341

Browse files
committed
riscv: dts: sophgo: add clock generator for Sophgo CV1800 series SoC
Add clock generator node for CV1800B and CV1812H. Until now, It uses DT override to minimize duplication. This may change in the future. See the last link for the discussion on maintaining DT of CV1800 series. Link: https://github.com/milkv-duo/duo-files/blob/6f4e9b8ecb459e017cca1a8df248a19ca70837a3/duo/datasheet/CV1800B-CV1801B-Preliminary-Datasheet-full-en.pdf Link: https://lore.kernel.org/all/IA1PR20MB495373158F3B690EF3BF2901BB8BA@IA1PR20MB4953.namprd20.prod.outlook.com/ Reviewed-by: Chen Wang <unicorn_wang@outlook.com> Link: https://lore.kernel.org/r/IA1PR20MB4953ED6A4B57773865F49D6DBB262@IA1PR20MB4953.namprd20.prod.outlook.com Signed-off-by: Inochi Amaoto <inochiama@outlook.com> Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
1 parent 89a7056 commit bb7b341

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616
&clint {
1717
compatible = "sophgo,cv1800b-clint", "thead,c900-clint";
1818
};
19+
20+
&clk {
21+
compatible = "sophgo,cv1800-clk";
22+
};

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@
2222
&clint {
2323
compatible = "sophgo,cv1812h-clint", "thead,c900-clint";
2424
};
25+
26+
&clk {
27+
compatible = "sophgo,cv1810-clk";
28+
};

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@
6161
dma-noncoherent;
6262
ranges;
6363

64+
clk: clock-controller@3002000 {
65+
reg = <0x03002000 0x1000>;
66+
clocks = <&osc>;
67+
#clock-cells = <1>;
68+
};
69+
6470
gpio0: gpio@3020000 {
6571
compatible = "snps,dw-apb-gpio";
6672
reg = <0x3020000 0x1000>;

0 commit comments

Comments
 (0)