From e133903e4d08b12ac9088817e5274aabab682f13 Mon Sep 17 00:00:00 2001 From: Han Gao Date: Sun, 3 Dec 2023 14:14:38 +0800 Subject: [PATCH] meles: add 4g/8g dts Signed-off-by: Han Gao --- arch/riscv/boot/dts/thead/Makefile | 2 +- .../boot/dts/thead/light-milkv-meles-4g.dts | 16 ++++++++++++++++ arch/riscv/boot/dts/thead/light-milkv-meles.dts | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 arch/riscv/boot/dts/thead/light-milkv-meles-4g.dts diff --git a/arch/riscv/boot/dts/thead/Makefile b/arch/riscv/boot/dts/thead/Makefile index a30ab3103..3e8e962f9 100644 --- a/arch/riscv/boot/dts/thead/Makefile +++ b/arch/riscv/boot/dts/thead/Makefile @@ -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 index 000000000..5c9702d11 --- /dev/null +++ b/arch/riscv/boot/dts/thead/light-milkv-meles-4g.dts @@ -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>; + }; +}; diff --git a/arch/riscv/boot/dts/thead/light-milkv-meles.dts b/arch/riscv/boot/dts/thead/light-milkv-meles.dts index 924e9f59f..ba29b8c66 100644 --- a/arch/riscv/boot/dts/thead/light-milkv-meles.dts +++ b/arch/riscv/boot/dts/thead/light-milkv-meles.dts @@ -27,7 +27,7 @@ memory@0 { device_type = "memory"; - reg = <0x0 0x200000 0x0 0xffe00000>; + reg = <0x0 0x200000 0x1 0xffe00000>; }; display_subsystem: display-subsystem {