From 32bd505b1de6b7dc15a9c11c9dfdeb51ccbc2401 Mon Sep 17 00:00:00 2001 From: Haaland Chen Date: Sat, 22 Jun 2024 16:31:43 +0800 Subject: [PATCH] riscv: dts: thead: add DDR-16GB meles Signed-off-by: Haaland Chen --- arch/riscv/boot/dts/thead/Makefile | 2 +- .../boot/dts/thead/th1520-milkv-meles-16g.dts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 arch/riscv/boot/dts/thead/th1520-milkv-meles-16g.dts diff --git a/arch/riscv/boot/dts/thead/Makefile b/arch/riscv/boot/dts/thead/Makefile index 9c8390e1c..78c959ffd 100644 --- a/arch/riscv/boot/dts/thead/Makefile +++ b/arch/riscv/boot/dts/thead/Makefile @@ -61,7 +61,7 @@ dtb-$(CONFIG_SOC_THEAD) += th1520-lpi4a-console.dtb th1520-lpi4a-console-16g.dtb dtb-$(CONFIG_SOC_THEAD) += th1520-lpi4a-plastic.dtb th1520-lpi4a-plastic-16g.dtb dtb-$(CONFIG_SOC_THEAD) += th1520-lpi4a-cluster.dtb th1520-lpi4a-cluster-16gb.dtb dtb-$(CONFIG_SOC_THEAD) += th1520-lpi4a-z14inch-m0.dtb th1520-lpi4a-z14inch-m0-16g.dtb -dtb-$(CONFIG_SOC_THEAD) += th1520-milkv-meles.dtb th1520-milkv-meles-4g.dtb th1520-milkv-meles-dsi0.dtb +dtb-$(CONFIG_SOC_THEAD) += th1520-milkv-meles.dtb th1520-milkv-meles-4g.dtb th1520-milkv-meles-16g.dtb th1520-milkv-meles-dsi0.dtb # compat old name dtb-$(CONFIG_SOC_THEAD) += light-lpi4a.dtb light-lpi4a-16gb.dtb diff --git a/arch/riscv/boot/dts/thead/th1520-milkv-meles-16g.dts b/arch/riscv/boot/dts/thead/th1520-milkv-meles-16g.dts new file mode 100644 index 000000000..0c4100eb5 --- /dev/null +++ b/arch/riscv/boot/dts/thead/th1520-milkv-meles-16g.dts @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2022 Alibaba Group Holding Limited. + */ + +#include "th1520-milkv-meles.dts" + +/ { + memory@0 { + device_type = "memory"; + reg = <0x0 0x200000 0x3 0xffe00000>; + }; +}; + +&cmamem { + alloc-ranges = <0x3 0xe4000000 0 0x14000000>; // [0x3E400_0000 ~ 0x3F800_0000] +};