diff options
| author | Kongyang Liu <seashell11234455@gmail.com> | 2024-01-28 15:05:24 +0800 |
|---|---|---|
| committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2024-01-31 16:52:45 +0800 |
| commit | f03d2ab206ebd2dc8f4e1f44ff450dba8d6a515a (patch) | |
| tree | 37d00b27b37eb0d6eb3a62c7d6f4504bcd07b96b /arch/riscv/dts/cv1800b-milkv-duo.dts | |
| parent | 386db9a26b454d33b688fbe811289daaa22466af (diff) | |
riscv: dts: sophgo: add basic device tree for Milk-V Duo board
Import device tree from Linux kernel to add basic support for CPU, PLIC,
UART and Timer. The name cv1800b in the filename represent the chip used
on Milk-V Duo board.
Signed-off-by: Kongyang Liu <seashell11234455@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'arch/riscv/dts/cv1800b-milkv-duo.dts')
| -rw-r--r-- | arch/riscv/dts/cv1800b-milkv-duo.dts | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/riscv/dts/cv1800b-milkv-duo.dts b/arch/riscv/dts/cv1800b-milkv-duo.dts new file mode 100644 index 00000000000..3af9e34b3bc --- /dev/null +++ b/arch/riscv/dts/cv1800b-milkv-duo.dts @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org> + */ + +/dts-v1/; + +#include "cv1800b.dtsi" + +/ { + model = "Milk-V Duo"; + compatible = "milkv,duo", "sophgo,cv1800b"; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + serial4 = &uart4; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x3f40000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&uart0 { + status = "okay"; +}; |
