[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250814070757.2267325-4-uwu@icenowy.me>
Date: Thu, 14 Aug 2025 15:07:56 +0800
From: Icenowy Zheng <uwu@...nowy.me>
To: Drew Fustini <fustini@...nel.org>,
Guo Ren <guoren@...nel.org>,
Fu Wei <wefu@...hat.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Jassi Brar <jassisinghbrar@...il.com>,
Michal Wilczynski <m.wilczynski@...sung.com>
Cc: Han Gao <rabenda.cn@...il.com>,
Inochi Amaoto <inochiama@...il.com>,
Yao Zi <ziyao@...root.org>,
linux-riscv@...ts.infradead.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Icenowy Zheng <uwu@...nowy.me>
Subject: [RFC PATCH 3/4] riscv: dts: thead: th1520: add reserved node for C910R mailbox
The OpenSBI firmware might want to communicate to E902 CPU too. As we
have two mailboxes assigned to the C910 CPU, declare the other C910
mailbox as a "reserved" device for OpenSBI to use.
Signed-off-by: Icenowy Zheng <uwu@...nowy.me>
---
arch/riscv/boot/dts/thead/th1520.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
index 42724bf7e90e0..136ebe210b876 100644
--- a/arch/riscv/boot/dts/thead/th1520.dtsi
+++ b/arch/riscv/boot/dts/thead/th1520.dtsi
@@ -565,6 +565,22 @@ timer3: timer@...fc3203c {
status = "disabled";
};
+ mbox_910r: mbox@...fc53000 {
+ compatible = "thead,th1520-mbox";
+ reg = <0xff 0xefc50000 0x0 0x6000>,
+ <0xff 0xefc48000 0x0 0x6000>,
+ <0xff 0xefc3e000 0x0 0x2000>,
+ <0xff 0xefc46000 0x0 0x2000>;
+ reg-names = "local", "remote-icu0", "remote-icu1", "remote-icu2";
+ clocks = <&clk CLK_MBOX3>, <&clk CLK_MBOX2>, <&clk CLK_MBOX0>,
+ <&clk CLK_MBOX1>;
+ clock-names = "clk-local", "clk-remote-icu0", "clk-remote-icu1",
+ "clk-remote-icu2";
+ thead,mbox-id = <3>;
+ #mbox-cells = <1>;
+ status = "reserved";
+ };
+
uart4: serial@...7f08000 {
compatible = "snps,dw-apb-uart";
reg = <0xff 0xf7f08000 0x0 0x4000>;
--
2.50.1
Powered by blists - more mailing lists