meles: add 4g/8g dts
authorHan Gao <gaohan@iscas.ac.cn>
Sun, 3 Dec 2023 06:14:38 +0000 (14:14 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 13 Mar 2024 06:58:51 +0000 (15:58 +0900)
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
(cherry picked from commit e133903e4d08b12ac9088817e5274aabab682f13)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/riscv/boot/dts/thead/Makefile
arch/riscv/boot/dts/thead/light-milkv-meles-4g.dts [new file with mode: 0644]
arch/riscv/boot/dts/thead/light-milkv-meles.dts

index a30ab310329261c817990fa553914981296a7033..3e8e962f9962853007fbccc9e44a91341170fe5b 100644 (file)
@@ -47,7 +47,7 @@ dtb-$(CONFIG_SOC_THEAD) += fire-emu.dtb fire-emu-crash.dtb
 dtb-$(CONFIG_SOC_THEAD) += fire-emu-soc-base.dtb fire-emu-soc-c910x4.dtb fire-emu-gpu-dpu-dsi0.dtb fire-emu-vi-dsp-vo.dtb fire-emu-vi-vp-vo.dtb
 dtb-$(CONFIG_SOC_THEAD) += fire-emu-soc-base-sec.dtb
 dtb-$(CONFIG_SOC_THEAD) += light-lpi4a-laptop.dtb
-dtb-$(CONFIG_SOC_THEAD) += light-milkv-meles.dtb
+dtb-$(CONFIG_SOC_THEAD) += light-milkv-meles.dtb light-milkv-meles-4g.dtb
 
 targets += dtbs dtbs_install
 targets += $(dtb-y)
diff --git a/arch/riscv/boot/dts/thead/light-milkv-meles-4g.dts b/arch/riscv/boot/dts/thead/light-milkv-meles-4g.dts
new file mode 100644 (file)
index 0000000..5c9702d
--- /dev/null
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2022 Alibaba Group Holding Limited.
+ */
+
+#include "light-milkv-meles.dts"
+
+/ {
+       model = "Milk-V Meles 4G";
+       compatible = "milkv,meles", "thead,light";
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x200000 0x0 0xffe00000>;
+       };
+};
index 924e9f59fb3a08759fe2c249dee82cd2f3770e27..ba29b8c66100bf760e868d937b931006adeb1206 100644 (file)
@@ -27,7 +27,7 @@
 
        memory@0 {
                device_type = "memory";
-               reg = <0x0 0x200000 0x0 0xffe00000>;
+               reg = <0x0 0x200000 0x1 0xffe00000>;
        };
 
        display_subsystem: display-subsystem {