From patchwork Sun Sep 26 12:05:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 12518259 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59B1AC433EF for ; Sun, 26 Sep 2021 12:08:18 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2BB5D60E94 for ; Sun, 26 Sep 2021 12:08:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2BB5D60E94 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=web.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:References: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=+4WOAPgDLVat1KbC6W0gzXy1K4loLmup2leuDIKDTx8=; b=gdkSV1u7Ue8nhO WCQ7rt05oZrpjqL0ZXWD9HSAeT+sCT4/I32BM/L8+4XrC+A5obhG8MKcgdRrpoqOFJyVQWqRMTvKQ KyANwGH4xpFqlxshbOR6+FIsS2Ily66kSTRBFcGvCbYjoQkuuB+9Zeer2j3ZXphFs/mfsom03HNPU M0JKmFRZ9KtnxmmETIJoHgl2j/5GC8X3U1aSNXQsQdqXbs8UJJNPh3sU1+lojlQk4lLD7pBiLR/u0 Z8NtLoaEavK1W76j0A0j3RSl5lPI+n6RO9++VBKCiKY5DJ1mTF2aevoWh/wRSwCV/WT+kDen+B3RU hGX18W62wVZaTrNziDYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUSvE-000VDJ-RL; Sun, 26 Sep 2021 12:06:21 +0000 Received: from mout.web.de ([212.227.17.11]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUSuT-000V21-0T for linux-arm-kernel@lists.infradead.org; Sun, 26 Sep 2021 12:05:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=dbaedf251592; t=1632657927; bh=Fk5SREXcGiQX8LPuAbBCjfapNszlY0pzWhK5XpaAyV4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=d+Y7Dp0J7fsXTDyyNvcxHZCy/jrs90VAqiDFAouMHf1OSjiajrdy+MjMokRS9RX5a FqmwNivVF946lnn9NLfYthnc1uguQE2iEKHgIiTi/tYy2oqsFVfVUQTTFOBKzvywH7 33n8BwzfGy7xWVq7iJcTgwuovNpKwzskDJTXvbV0= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from md1f2u6c.fritz.box ([94.217.148.121]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Ljaei-1n60eU3Owq-00bcrq; Sun, 26 Sep 2021 14:05:26 +0200 From: Jan Kiszka To: Nishanth Menon , Tero Kristo , Rob Herring Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bao Cheng Su , Chao Zeng , Suman Anna Subject: [PATCH v5 3/6] arm64: dts: ti: iot2050: Add/enabled mailboxes and carve-outs for R5F cores Date: Sun, 26 Sep 2021 14:05:14 +0200 Message-Id: <1776f8be19b39a938d9248fcfc5332b753783c3e.1632657917.git.jan.kiszka@web.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-Provags-ID: V03:K1:dp14hlKFy54eJnzueDrBM91JLiiueaexsmj7SEdq785kwzfo87g YrdhsftbQU3M8LapCgIjn7rnuaqoJClXsFdFhxtEYKbdBORU6GngX7s0my/2hflrIkzoDy7 mzAuk8j79GoezzJl3AFpW7axXi11eSFncGUpCSYzRV4vrYNdgMrfahRPzqnTUhbvBEMjy55 K5S72M+ZBZI1lA6xUF7Pg== X-UI-Out-Filterresults: notjunk:1;V03:K0:r1sMIBbw0Y8=:9Xk1/WrB/p7m2ExHScKzgc Xmh3Fz+qDcx60IKALHFycQwCDd06kn0+jhkp9SE3s1otw5/25PaB4RwGToL57AZk1GPiS/oFT JGVAmiUBw4iHKEbwssm/mo3QUIjQhacpaD/INA0IZcajeGu7ISrSnG8t+D+WEZbJpv/YGUAps //EEA8f7HLM7EMBv9abQF8bgc0TaPrTkTzYfVvG5SzdszVih1UccndonTFwq3INt7j/1my0eN H7kxHtfeu3XaS+sulwKpZPKo7DL5PH8r80G4GapJDbeK/Bjpeg8dWNKAl6wlJRTAtpwuXcrT5 oVOnjQUf84yA2xw5p+Djlt2jd4tAc73tr9b+uxxB/s+1bmZUPlBZ2XacBV6L+l2zCl6DcHB4m 1FS5dD3T5sauWcY/NQfGqltYv62bcMrzTjRYH8jbYYmPyJGJJn9g+DUzQIOVCadnxMOFUN17L Rj/i6raNPt+ngaWj9VVZGl8uMB2J/3JN4Q4PKKa+nIvkDqi1eO0kbVMuaCGQEQgHXzt6+P+Dg y0d30KQcWAXUVi+i43i3gL+QwfeM487IpxPxlDsiVsOYLwXuTuzu3DwlE8fumkemdpZaOHoPU eqn++67EemPsAF3n7BN6A9/bpRjU6fEg1a9GnmBE8FnQKi1g36/q334GKsrNFweYlgQvR1zSS Xor5KamgQEYVZ0LUqKph19mO/UxRzYVU80MqyQacAnTASNOiwpElJNO7dIYkJhY9CWYZhjGoR vXTuKt3wYTuIakojMyZGr7QbV9lRKTpEv1Trv3GLgW2Du4icJ3TqOJutl9NQbC+QhrAdjjawe MoOQofQAZofc+nvW/UVXPsRhAm75ynwnoo75eMLaKAUIj/5vFwIlScoesmgkWoEtcXekW0ipV eyM2M+IFF3Kfgp4eAaS/wxVIWWzrLCUdkTKkupBNspdjxi0iecXKEqnnnZM43a10CrV5TS2Ns +zBhQhR5zWam2kyHaCgdvcg8YKR0zQlWc+QfJ5RaClWIW+Z3WoMe4F+7+9yIEywwB1st9oBzI bPiaATn3CO+zEBNdeBG6MdaPTe+ulcut4ARFwZl9Q9KCzuKPf//itknG2S78MBbvH+h+t6Q0J Vlj6AZnvnl1Xf4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210926_050533_456723_E7E8982E X-CRM114-Status: UNSURE ( 8.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Jan Kiszka Analogously to the am654-base-board, configure the mailboxes for the two R5F cores, add them and the already existing memory carve-outs to the related MCU nodes. Allows to load applications under Linux onto the cores, e.g. the RTI watchdog firmware. Signed-off-by: Jan Kiszka Reviewed-by: Suman Anna --- .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) -- 2.31.1 diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi index 58c8e64d5885..b29537088289 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -658,11 +658,21 @@ &pcie1_ep { }; &mailbox0_cluster0 { - status = "disabled"; + interrupts = <436>; + + mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 { + ti,mbox-tx = <1 0 0>; + ti,mbox-rx = <0 0 0>; + }; }; &mailbox0_cluster1 { - status = "disabled"; + interrupts = <432>; + + mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 { + ti,mbox-tx = <1 0 0>; + ti,mbox-rx = <0 0 0>; + }; }; &mailbox0_cluster2 { @@ -705,6 +715,18 @@ &mailbox0_cluster11 { status = "disabled"; }; +&mcu_r5fss0_core0 { + memory-region = <&mcu_r5fss0_core0_dma_memory_region>, + <&mcu_r5fss0_core0_memory_region>; + mboxes = <&mailbox0_cluster0 &mbox_mcu_r5fss0_core0>; +}; + +&mcu_r5fss0_core1 { + memory-region = <&mcu_r5fss0_core1_dma_memory_region>, + <&mcu_r5fss0_core1_memory_region>; + mboxes = <&mailbox0_cluster1 &mbox_mcu_r5fss0_core1>; +}; + &icssg0_mdio { status = "disabled"; };