From patchwork Tue Oct 8 17:48:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Wilczynski X-Patchwork-Id: 13826770 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B17D6CEFC38 for ; Tue, 8 Oct 2024 17:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WNn24MWmnknk/Ro7Z5zljiZW7RwlfDfBgsutqpu0Sqk=; b=yo+LFpP1GuYWPe 95Pmb/1cbR4HFS4PUDJB1c6srdmjBjbR7j/IDAZZySJxQSOjnOT7SD0Jn0LGNmXkEzh/tV+bHVtQA a3u1HnccwnN2xUynlh+yjq41AP/X9XdahL3tVy/ddrUxx69tY4D1u6k9XwiarCVvZNzekglqX4xS+ ZbWgDzeQ2c04A3tpzJiytDb1fe6KzrfHzvT2jwqZof86z/cPP9rd7KXTm8AoIbXdpP4kb4qNFl8Tj MgruyJEc6GLvvGYexSjGtqJEd6EHm/NXFJcJF+9nmLbyIIBTNqPleOXiivKcJkg7rS4uqOi6FJZMz d31yGQkPyx5jlsptBGVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syEON-00000006iWa-08AD; Tue, 08 Oct 2024 17:53:03 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syEKf-00000006htp-0DYY for linux-riscv@lists.infradead.org; Tue, 08 Oct 2024 17:49:15 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20241008174911euoutp0143393cfc1c734c35ea58b1772858cc2b~8i4MFiXum3163931639euoutp01a for ; Tue, 8 Oct 2024 17:49:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20241008174911euoutp0143393cfc1c734c35ea58b1772858cc2b~8i4MFiXum3163931639euoutp01a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1728409751; bh=k5bx/+S6KDMkK8Imq/hflrXf6RmrkhVBbi73CyaDrlQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Br28VT5Sd1vRP8ryX/E+YDWJmsPZb/Z0KD647msQGbdPg+ju5/Yih7i+wIY6FGm1E cV2HF9+kMSc6qgnarzMWad83uj5uZ6XMnK4hfFfAAvMrORlWYuIGMgLTYbumXBvOnI wlhsWBWrIvMyeCqsZJx3Vy2uo04AQj+5Y+33afD0= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20241008174911eucas1p207f10116056604fdb66a505394a0ba9a~8i4Ld3CSP0826108261eucas1p2w; Tue, 8 Oct 2024 17:49:11 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id B3.43.09620.79075076; Tue, 8 Oct 2024 18:49:11 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20241008174910eucas1p2e832dd68ad6b2ef1420ce211fc849fba~8i4KYvOEu1811118111eucas1p2h; Tue, 8 Oct 2024 17:49:10 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20241008174910eusmtrp2635ab7bb5836b25fb982aad4b45b32e5~8i4KYDVLj3011330113eusmtrp2Z; Tue, 8 Oct 2024 17:49:10 +0000 (GMT) X-AuditID: cbfec7f5-d31ff70000002594-66-67057097b322 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 13.FD.14621.59075076; Tue, 8 Oct 2024 18:49:09 +0100 (BST) Received: from AMDC4942.home (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241008174909eusmtip2c1fea8c67365df2bf2b8a8a00a5b1425~8i4Jmf0RS2916929169eusmtip2L; Tue, 8 Oct 2024 17:49:09 +0000 (GMT) From: Michal Wilczynski To: drew@pdp7.com, guoren@kernel.org, wefu@redhat.com, jassisinghbrar@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, m.szyprowski@samsung.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Michal Wilczynski Subject: [PATCH v3 3/3] riscv: dts: thead: Add mailbox node Date: Tue, 8 Oct 2024 19:48:52 +0200 Message-Id: <20241008174852.222374-4-m.wilczynski@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241008174852.222374-1-m.wilczynski@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAKsWRmVeSWpSXmKPExsWy7djPc7rTC1jTDe6cZrXY+nsWu8WaveeY LOYfOcdqce/SFiaLF3sbWSyurZjLbvFy1j02i8u75rBZbPvcwmax9shddov1X+czWby83MNs 0TaL3+L/nh3sFi37p7A48Hu8efmSxeNwxxd2j52z7rJ7b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: 20241008174910eucas1p2e832dd68ad6b2ef1420ce211fc849fba X-Msg-Generator: CA X-RootMTR: 20241008174910eucas1p2e832dd68ad6b2ef1420ce211fc849fba X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20241008174910eucas1p2e832dd68ad6b2ef1420ce211fc849fba References: <20241008174852.222374-1-m.wilczynski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241008_104913_386897_ABCCA83E X-CRM114-Status: GOOD ( 10.08 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add mailbox device tree node. This work is based on the vendor kernel [1]. Link: https://github.com/revyos/thead-kernel.git [1] Signed-off-by: Michal Wilczynski --- arch/riscv/boot/dts/thead/th1520.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index 6992060e6a54..435f0ab0174d 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -555,5 +555,17 @@ portf: gpio-controller@0 { interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; }; }; + + mbox_910t: mailbox@ffffc38000 { + compatible = "thead,th1520-mbox"; + reg = <0xff 0xffc38000 0x0 0x4000>, + <0xff 0xffc44000 0x0 0x1000>, + <0xff 0xffc4c000 0x0 0x1000>, + <0xff 0xffc54000 0x0 0x1000>; + reg-names = "local", "remote-icu0", "remote-icu1", "remote-icu2"; + interrupt-parent = <&plic>; + interrupts = <28 IRQ_TYPE_LEVEL_HIGH>; + #mbox-cells = <2>; + }; }; };