From c56347a43e850de287a2249d3d9118910718527b Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Wed, 2 Aug 2023 01:54:37 +0800 Subject: [PATCH] add lpi4a 16g dtb Co-authored-by: Han Gao Signed-off-by: Icenowy Zheng Signed-off-by: Han Gao --- .github/workflows/kernel.yml | 2 +- arch/riscv/boot/dts/thead/Makefile | 2 +- .../riscv/boot/dts/thead/light-lpi4a-16gb.dts | 20 +++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 arch/riscv/boot/dts/thead/light-lpi4a-16gb.dts diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml index b4cdcd6b5..b761131d8 100644 --- a/.github/workflows/kernel.yml +++ b/.github/workflows/kernel.yml @@ -89,7 +89,7 @@ jobs: sudo cp -v kernel-commitid ${GITHUB_WORKSPACE}/rootfs/boot/ # Install DTB - sudo cp -v arch/riscv/boot/dts/thead/light-lpi4a.dtb ${GITHUB_WORKSPACE}/rootfs/boot/ + sudo cp -v arch/riscv/boot/dts/thead/{light-lpi4a.dtb,light-lpi4a-16gb.dtb} ${GITHUB_WORKSPACE}/rootfs/boot/ popd - name: compress diff --git a/arch/riscv/boot/dts/thead/Makefile b/arch/riscv/boot/dts/thead/Makefile index a2d12534b..68f33952c 100644 --- a/arch/riscv/boot/dts/thead/Makefile +++ b/arch/riscv/boot/dts/thead/Makefile @@ -28,7 +28,7 @@ dtb-$(CONFIG_SOC_THEAD) += light-a-val-full.dtb dtb-$(CONFIG_SOC_THEAD) += light-ant-ref.dtb dtb-$(CONFIG_SOC_THEAD) += light-ant-discrete.dtb dtb-$(CONFIG_SOC_THEAD) += light-beagle.dtb -dtb-$(CONFIG_SOC_THEAD) += light-lpi4a.dtb light-lpi4a-ddr2G.dtb +dtb-$(CONFIG_SOC_THEAD) += light-lpi4a.dtb light-lpi4a-ddr2G.dtb light-lpi4a-16gb.dtb dtb-$(CONFIG_SOC_THEAD) += light-a-ref.dtb light-a-ref-dsi0.dtb light-a-ref-dsi0-hdmi.dtb dtb-$(CONFIG_SOC_THEAD) += light-b-ref.dtb dtb-$(CONFIG_SOC_THEAD) += light-a-val-crash.dtb light-b-product-crash.dtb light-ant-ref-crash.dtb light-ant-discrete-crash.dtb diff --git a/arch/riscv/boot/dts/thead/light-lpi4a-16gb.dts b/arch/riscv/boot/dts/thead/light-lpi4a-16gb.dts new file mode 100644 index 000000000..39d82c053 --- /dev/null +++ b/arch/riscv/boot/dts/thead/light-lpi4a-16gb.dts @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2022 Alibaba Group Holding Limited. + */ + +#include "light-lpi4a-ref.dts" + +/ { + model = "T-HEAD Light Lichee Pi 4A configuration for 16GB DDR board"; + compatible = "thead,light-val", "thead,light-lpi4a", "thead,light"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x200000 0x3 0xffe00000>; + }; +}; + +&cmamem { + alloc-ranges = <0x3 0xe4000000 0 0x14000000>; // [0x3E400_0000 ~ 0x3F800_0000] +};