devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yao Zi <ziyao@disroot.org>
To: "Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Huacai Chen" <chenhuacai@kernel.org>,
	"WANG Xuerui" <kernel@xen0n.name>, "Yao Zi" <ziyao@disroot.org>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Heiko Stuebner" <heiko@sntech.de>,
	"Junhao Xie" <bigfoot@classfun.cn>,
	"Rafał Miłecki" <rafal@milecki.pl>,
	"Aradhya Bhatia" <a-bhatia1@ti.com>,
	"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
	"Binbin Zhou" <zhoubinbin@loongson.cn>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	loongarch@lists.linux.dev, "Mingcong Bai" <jeffbai@aosc.io>,
	"Kexy Biscuit" <kexybiscuit@aosc.io>
Subject: [PATCH 4/4] LoongArch: dts: Add initial devicetree for CTCISZ Ninenine Pi
Date: Thu,  1 May 2025 04:42:40 +0000	[thread overview]
Message-ID: <20250501044239.9404-6-ziyao@disroot.org> (raw)
In-Reply-To: <20250501044239.9404-2-ziyao@disroot.org>

Enable UART0 as it's the boot UART used by firmware.

Signed-off-by: Yao Zi <ziyao@disroot.org>
---
 arch/loongarch/boot/dts/Makefile              |  1 +
 .../boot/dts/ls2k0300-ctcisz-nineninepi.dts   | 41 +++++++++++++++++++
 2 files changed, 42 insertions(+)
 create mode 100644 arch/loongarch/boot/dts/ls2k0300-ctcisz-nineninepi.dts

diff --git a/arch/loongarch/boot/dts/Makefile b/arch/loongarch/boot/dts/Makefile
index 15d5e14fe418..e55df9f385af 100644
--- a/arch/loongarch/boot/dts/Makefile
+++ b/arch/loongarch/boot/dts/Makefile
@@ -1,3 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
 dtb-y = loongson-2k0500-ref.dtb loongson-2k1000-ref.dtb loongson-2k2000-ref.dtb
+dtb-y += ls2k0300-ctcisz-nineninepi.dtb
diff --git a/arch/loongarch/boot/dts/ls2k0300-ctcisz-nineninepi.dts b/arch/loongarch/boot/dts/ls2k0300-ctcisz-nineninepi.dts
new file mode 100644
index 000000000000..a67a8ce4211e
--- /dev/null
+++ b/arch/loongarch/boot/dts/ls2k0300-ctcisz-nineninepi.dts
@@ -0,0 +1,41 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2025 Yao Zi <ziyao@disroot.org>
+ */
+
+/dts-v1/;
+
+#include "loongson-2k0300.dtsi"
+
+/ {
+	compatible = "ctcisz,ninenine-pi", "loongson,ls2k0300";
+	model = "CTCISZ Ninenine Pi";
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory@200000 {
+		device_type = "memory";
+		reg = <0 0x00200000 0 0x0ee00000>,
+		      <0 0x90000000 0 0x10000000>;
+	};
+
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		linux,cma {
+			compatible = "shared-dma-pool";
+			reusable;
+			size = <0 0x02000000>;
+			linux,cma-default;
+		};
+	};
+};
+
+&uart0 {
+	clock-frequency = <100000000>;
+	status = "okay";
+};
-- 
2.49.0


  parent reply	other threads:[~2025-05-01  4:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-01  4:42 [PATCH 0/4] Initial support for CTCISZ Ninenine Pi Yao Zi
2025-05-01  4:42 ` [PATCH 1/4] dt-bindings: vendor-prefixes: Add CTCISZ Technology Co., LTD Yao Zi
2025-05-01 10:53   ` Krzysztof Kozlowski
2025-05-01  4:42 ` [PATCH 2/4] dt-bindings: LoongArch: Add CTCISZ Ninenine Pi Yao Zi
2025-05-01 10:54   ` Krzysztof Kozlowski
2025-05-06  8:58   ` Yanteng Si
2025-05-07  7:07     ` Yao Zi
2025-05-08  2:42       ` Yanteng Si
2025-05-01  4:42 ` [PATCH 3/4] LoongArch: dts: Add initial SoC devicetree for Loongson 2K0300 Yao Zi
2025-05-01 10:55   ` Krzysztof Kozlowski
2025-05-02  1:52     ` Yao Zi
2025-05-01  4:42 ` Yao Zi [this message]
2025-05-07 10:08 ` [PATCH 0/4] Initial support for CTCISZ Ninenine Pi Yanteng Si
2025-05-08  2:49   ` Yanteng Si
2025-05-08  3:54     ` Yao Zi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250501044239.9404-6-ziyao@disroot.org \
    --to=ziyao@disroot.org \
    --cc=a-bhatia1@ti.com \
    --cc=bigfoot@classfun.cn \
    --cc=chenhuacai@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=jeffbai@aosc.io \
    --cc=kernel@xen0n.name \
    --cc=kexybiscuit@aosc.io \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rafal@milecki.pl \
    --cc=robh@kernel.org \
    --cc=zhoubinbin@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).