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: 853371 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D6A81C07FC for ; Mon, 23 Dec 2024 12:56:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734958588; cv=none; b=Bmh9TM3/uOiDbJkaze239/0jdApPS6q6ULgyhwz3CKjVpeLENzZt6rMOeEj9DHCTBsL0MVQcpXIrJc7RXsjYxEt06Wpy0/bC8aprWUU12hF0dnJxxzGECnoziIndgwxurRmnrqhsaP60uFEJrbXAMzPv+2256iMonDQpTGhEusM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734958588; c=relaxed/simple; bh=x5jU/QLDij5Ckp45QlpqENN4KA1+wEzHawFLmLKu2/M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=lKlQh5cKiiefB7zVe7LPL24cGyBF1t4ow8ibxDkvQkda3Mk0xUos9W+U3IlpEnvgftOnHEs51JZC2LKn3BPgkeUdQ+5UDsBP1xivxQubGfoboJRPl2dai4kCma0rcZPpFeiH3uPMldbOsO5LtDpaKGGAE/fDOu0qR3sJDhtqPBc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=dH6IvgKD; arc=none smtp.client-ip=210.118.77.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="dH6IvgKD" Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20241223125623euoutp01d5db5ccb1908bcce2ebe33a8d9a1f696~Tz6O8Puvq0189901899euoutp01E for ; Mon, 23 Dec 2024 12:56:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20241223125623euoutp01d5db5ccb1908bcce2ebe33a8d9a1f696~Tz6O8Puvq0189901899euoutp01E 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-To: <20241223125553.3527812-1-m.wilczynski@samsung.com> Precedence: bulk X-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CkFjAyrWIUSS0tzk3PLTbSK07M 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> 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>;