From patchwork Mon Dec 23 12:55:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Wilczynski X-Patchwork-Id: 13918887 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 31DB1E77192 for ; Mon, 23 Dec 2024 14:06:19 +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=33CJrLEXolhj2Vgijg8o6pPMyJ1sdsaAIxAfOzYz/IU=; b=P0mZnIztYjdvdn e4JJ5OPbsn3LIoGvsiHb+kJw0S4T/tY8eoiZzongCamxx6q3uZH8zcPVkqJ1fR76wipFQZWFNRwtF 874Hq4XzS8cuOhB9nT+SuiiijxHDC/b7wghLtI0xKN0gYHiHpGSySrQihcSobbqdAvY0B3vRPXiOo xEDJPTdQwUdG7Rq7GEeD9pKrcXzvtMqLuxz5ywVXdd1A4X8Hsas+UqPPbj9UNlqMdYVV5vRv+nKdk FHckxlJRSt5+w/FlV/hYzmb5qQDFdswdVk/g5RBxFgsNGbEYs+adyXD2b0vr6DaEeuCd5frsMpXlw ztXnPVq+WWNZhSDz/zSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tPj4Y-0000000A7IO-1Ajh; Mon, 23 Dec 2024 14:06:14 +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 1tPhyy-0000000A1O4-3w3s for linux-riscv@lists.infradead.org; Mon, 23 Dec 2024 12:56:26 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20241223125623euoutp014a9212f72acdbbfd7bfbd0178df15e6c~Tz6O26vqt0113001130euoutp01j for ; Mon, 23 Dec 2024 12:56:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20241223125623euoutp014a9212f72acdbbfd7bfbd0178df15e6c~Tz6O26vqt0113001130euoutp01j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1734958583; bh=p1/ZFiFlSghVE+8pmX2uMr25gmDdGG4t+JE+dFElHyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dH6IvgKDhe1OtS9DgzRdtTOwCCo6l7ySw7cgVdLFLV+6kD4yGvTmjzqosiH061kmC fia+PKM8F5Wnw2bDMZbF55ybRm4ZxPlqEhJIbLa7Qm3550Ekjtedii56ox9WmUcvfo aGzMaLod0CPz8FO85ywmVTHPpIyYyFc6IqMz+jJI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20241223125623eucas1p25e572e9642f80bfade7dd0fe164ac478~Tz6Ogrmid1673916739eucas1p2V; Mon, 23 Dec 2024 12:56:23 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id CE.C6.20821.7FD59676; Mon, 23 Dec 2024 12:56:23 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20241223125622eucas1p18f67a49dd69b93f0e7770e12b95ceb77~Tz6OHU_xb2173221732eucas1p1r; Mon, 23 Dec 2024 12:56:22 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241223125622eusmtrp1f824616c79aff9de864f8a534e5ada82~Tz6OGLQqA2059320593eusmtrp1S; Mon, 23 Dec 2024 12:56:22 +0000 (GMT) X-AuditID: cbfec7f2-b11c470000005155-a3-67695df76685 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CD.83.19654.6FD59676; Mon, 23 Dec 2024 12:56:22 +0000 (GMT) Received: from AMDC4942.home (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241223125621eusmtip2ab474ef01d07e4fb27dbf0143b8163cb~Tz6MlUx6-2638026380eusmtip2m; Mon, 23 Dec 2024 12:56:21 +0000 (GMT) From: Michal Wilczynski To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, drew@pdp7.com, guoren@kernel.org, wefu@redhat.com, jassisinghbrar@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, frank.binns@imgtec.com, matt.coster@imgtec.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, ulf.hansson@linaro.org, jszhang@kernel.org, p.zabel@pengutronix.de, m.szyprowski@samsung.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-pm@vger.kernel.org, Michal Wilczynski , Drew Fustini Subject: [RFC PATCH v2 16/19] riscv: dts: thead: Add mailbox node Date: Mon, 23 Dec 2024 13:55:50 +0100 Message-Id: <20241223125553.3527812-17-m.wilczynski@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-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k3PLTbSK07M LS7NS9dLzs/dxAhMNNuO/dyyg3Hlq496hxiZOBgPMUpwMCuJ8B4SykwX4k1JrKxKLcqPLyrN SS0+xGgKdPdEZinR5HxgqssriTc0MzA1NDGzNDC1NDNWEudlu3I+TUggPbEkNTs1tSC1CKaP iYNTqoGpSUM1d9H/2XmPnzdsZzpr9cKxX/LKLyfXHbcvOMQv0LoqqiL0735MYav3n5io8A7t DZFHK74xpabkPz0z27bm3QoXY63V3xbOfrN/9sN0tVzW5eaZrqbNV/bc1fP4cj2tN72ilOPn N243HrV327SWh6hL7/woy+u+7K9Q8IqTf/jMfq1f+fB8IdcJDfsL5ZEC1ZOXpT/kOPBh17uu ZfFmfhxf467EnNrTtnJ90+m2s+5nVs8VWbbr+5Oy35/TH3BNSy2MuzalZp/I8Xre/0pWrb/b tzz8tPHVn611cy2tp/1gm2p4fs+mo13zLfzufNnI9eBnWcmkLUsO/3wVNe30SUvpvQ9cYyTz OkvvHCya3qvEUpyRaKjFXFScCACbfIuSvQMAAA== X-CMS-MailID: 20241223125622eucas1p18f67a49dd69b93f0e7770e12b95ceb77 X-Msg-Generator: CA X-RootMTR: 20241223125622eucas1p18f67a49dd69b93f0e7770e12b95ceb77 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20241223125622eucas1p18f67a49dd69b93f0e7770e12b95ceb77 References: <20241223125553.3527812-1-m.wilczynski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241223_045625_245086_08681105 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. 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] Reviewed-by: Drew Fustini Signed-off-by: Michal Wilczynski --- 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 d823b6da75df..0993de0cdd44 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -601,6 +601,22 @@ timer7: timer@ffffc3303c { status = "disabled"; }; + mbox_910t: mailbox@ffffc38000 { + compatible = "thead,th1520-mbox"; + reg = <0xff 0xffc38000 0x0 0x6000>, + <0xff 0xffc40000 0x0 0x6000>, + <0xff 0xffc4c000 0x0 0x2000>, + <0xff 0xffc54000 0x0 0x2000>; + reg-names = "local", "remote-icu0", "remote-icu1", "remote-icu2"; + clocks = <&clk CLK_MBOX0>, <&clk CLK_MBOX1>, <&clk CLK_MBOX2>, + <&clk CLK_MBOX3>; + clock-names = "clk-local", "clk-remote-icu0", "clk-remote-icu1", + "clk-remote-icu2"; + interrupt-parent = <&plic>; + interrupts = <28 IRQ_TYPE_LEVEL_HIGH>; + #mbox-cells = <1>; + }; + gpio@fffff41000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xfff41000 0x0 0x1000>;