From nobody Fri Dec 19 16:19:02 2025 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A20C227E9E; Fri, 23 May 2025 09:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747994148; cv=none; b=BH/npvpoSqWSts4BCVqVV8Z2ya6+YOP3nmJxjSxPPk65ZzgAP/zewjKhH22P8yQIk5wOW3mCQWlP7bMmTeyjpalPU3MAnG+GZIsUGE/k5vwUGbMEl7q1wP5tlnjuIYdQ0ESxDtJGW1EgZ58UHMh7bsXWsWF77AdrttLim/HOGJQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747994148; c=relaxed/simple; bh=KI9W0PaJOZE+WeFTaHv7gChpyhppsRJpx6lgKEplro0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gdQh+5Loi78L+vx/On/j/wGPqvZ4yh+z7JM7c+Gh0HgI5ourx4i9YOmtxehINiFJ3OjN6d3rasjsAF+bVpQ/cBEo4s27YXxRnc0/zf4Rbcu3RBa4UWH172QqAxKsQPbIO8+gbXhmwWT3n8OIHu8sUmO/tb7HY4kjnNUEi76KK1c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org; spf=pass smtp.mailfrom=disroot.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b=UbxLhciA; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=disroot.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b="UbxLhciA" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8C05B260B3; Fri, 23 May 2025 11:55:45 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Aw79C621TUhH; Fri, 23 May 2025 11:55:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1747994135; bh=KI9W0PaJOZE+WeFTaHv7gChpyhppsRJpx6lgKEplro0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UbxLhciApViRIkpz0p5I057PCtNTKj6gecYXv83Nag3ui55ix6swl5De41Ne6A3IG S4VCqK+iXxKRe+nLvpBFLEl+qz1QyQ9oLdPe6thDnPgXHQJ8M1vzVzB2xAdgZSrq4a NeoMqJD0ccmCyDJCT887mnUaeHxlZR63WRJ4aTN/BVESYgJTnpH3TzKjaNCGezqTR0 tsjuxmQqMwKNUj0ozdhaKlUsGhhPZzxwYYWXT1/CS/e79Y4UUyAL+YxHcZmZuA87Sc nIGsbQuIpcVcNndkR/1V44JJhplniYwRxaEJD1rWbeglMx0nSUnC8cwpLfRqESqcLU 7EhYrI+dhe+pQ== From: Yao Zi To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Huacai Chen , WANG Xuerui , Yao Zi , Neil Armstrong , Heiko Stuebner , Junhao Xie , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Aradhya Bhatia , Manivannan Sadhasivam , Binbin Zhou Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Mingcong Bai , Kexy Biscuit Subject: [PATCH v3 4/4] LoongArch: dts: Add initial devicetree for CTCISZ Forever Pi Date: Fri, 23 May 2025 09:54:08 +0000 Message-ID: <20250523095408.25919-5-ziyao@disroot.org> In-Reply-To: <20250523095408.25919-1-ziyao@disroot.org> References: <20250523095408.25919-1-ziyao@disroot.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable UART0 as it's the boot UART used by firmware. Signed-off-by: Yao Zi --- arch/loongarch/boot/dts/Makefile | 1 + .../dts/loongson-2k0300-ctcisz-forever-pi.dts | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 arch/loongarch/boot/dts/loongson-2k0300-ctcisz-forever-= pi.dts diff --git a/arch/loongarch/boot/dts/Makefile b/arch/loongarch/boot/dts/Mak= efile index 15d5e14fe418..cf7f74d4b1a4 100644 --- a/arch/loongarch/boot/dts/Makefile +++ b/arch/loongarch/boot/dts/Makefile @@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only =20 dtb-y =3D loongson-2k0500-ref.dtb loongson-2k1000-ref.dtb loongson-2k2000-= ref.dtb +dtb-y +=3D loongson-2k0300-ctcisz-forever-pi.dtb diff --git a/arch/loongarch/boot/dts/loongson-2k0300-ctcisz-forever-pi.dts = b/arch/loongarch/boot/dts/loongson-2k0300-ctcisz-forever-pi.dts new file mode 100644 index 000000000000..a033c086461f --- /dev/null +++ b/arch/loongarch/boot/dts/loongson-2k0300-ctcisz-forever-pi.dts @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2025 Yao Zi + */ + +/dts-v1/; + +#include "loongson-2k0300.dtsi" + +/ { + compatible =3D "ctcisz,forever-pi", "loongson,ls2k0300"; + model =3D "CTCISZ Forever Pi"; + + aliases { + serial0 =3D &uart0; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + memory@200000 { + device_type =3D "memory"; + reg =3D <0 0x00200000 0 0x0ee00000>, + <0 0x90000000 0 0x10000000>; + }; + + reserved-memory { + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + linux,cma { + compatible =3D "shared-dma-pool"; + reusable; + size =3D <0 0x02000000>; + linux,cma-default; + }; + }; +}; + +&uart0 { + clock-frequency =3D <100000000>; + status =3D "okay"; +}; --=20 2.49.0