From patchwork Fri Mar 10 09:26:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Leonard_G=C3=B6hrs?= X-Patchwork-Id: 67310 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp774707wrd; Fri, 10 Mar 2023 01:40:43 -0800 (PST) X-Google-Smtp-Source: AK7set+9UblZwAO0+pR3NmDpwwi+dGYsE17oRclUOmVCzCoor9HDGfv+DfIM/SZp8pouDJl+140j X-Received: by 2002:a17:90a:15:b0:236:9eef:e285 with SMTP id 21-20020a17090a001500b002369eefe285mr25613937pja.35.1678441243496; Fri, 10 Mar 2023 01:40:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678441243; cv=none; d=google.com; s=arc-20160816; b=A3BYqrL9ZPURhCkDBIKRfecxbHysqMH9hn5e36AqBtssDnynjG/O/XxMuMg3zKNud4 SxpS34EHoKG86GLgOgnd8OPmWhlWQ8gL4LqFRt2+63ALVpqYUlL2hMJCMFxiS4ruSuZ6 YVL/CiWXCs5es5LB4UnCsPK/nRgJCkusiuKhr1wNNj8ReNPXu8hE9S5x7BG6bf4SZaA+ GAcYPhRMpDMLQtg50ieC1WZWOfM6zLSQ4c+zcRSu4PNQknaY+Vnix9SpdqQZ2xSvWOis Avu1sf2Ts4QZabSJsBVbUEEXxhrEGBGOYVoh9+jwDvegdPD0er2N/XFCaHp2atTXLkaR qzHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+CVKOBGPWBQuMGIcRM8FrUea9cXeR6tjADAVeMO7XQI=; b=0r6NWsNLM5hkKEPqWkknvm7T3eGKsT2yI9Ww8YI3C/2wjzit2LykVyeRHRrGDfgViu a3VDFXwup/aCfh+bgUq+ghQT5kWoqejRkjggUZiw1wq1JCQ01/IZrpOdlt+/DsMSqqY/ eL7CB6luwJd1ZhowGH6RlcY+ceOK34AxPKK0zDgmITRT2HCMY2N/4fJFVaV+PrImR812 ZCQjcBorX4Si0k3SruJQMc0xauYerHZc/xO9YkzmJBw7RKcW3IbJefD5HwZo6yLgCiHq 6UdD81FU3MiCYFaIB8Amm2KqpPPn4dqXqvIcCdqKhM33Ybp1G/ARFHXazHfkbq6C9iIN KLrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p9-20020a17090a748900b00230c717f66esi2038533pjk.172.2023.03.10.01.40.29; Fri, 10 Mar 2023 01:40:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229875AbjCJJa2 (ORCPT + 99 others); Fri, 10 Mar 2023 04:30:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbjCJJaB (ORCPT ); Fri, 10 Mar 2023 04:30:01 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E5AF92F2 for ; Fri, 10 Mar 2023 01:27:19 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1paZ1j-0003jH-V5; Fri, 10 Mar 2023 10:27:03 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1paZ1h-0038zL-EJ; Fri, 10 Mar 2023 10:27:01 +0100 Received: from lgo by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1paZ1g-004EBi-ID; Fri, 10 Mar 2023 10:27:00 +0100 From: =?utf-8?q?Leonard_G=C3=B6hrs?= To: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue Cc: kernel@pengutronix.de, =?utf-8?q?Leonard_G=C3=B6hrs?= , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] ARM: dts: stm32: Add coprocessor detach mbox on stm32mp15xx-osd32 SoM Date: Fri, 10 Mar 2023 10:26:50 +0100 Message-Id: <20230310092650.1007662-1-l.goehrs@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: lgo@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759973205032611199?= X-GMAIL-MSGID: =?utf-8?q?1759973205032611199?= To support the detach feature, add a new mailbox channel to inform the remote processor on a detach. This signal allows the remote processor firmware to stop IPC communication and to reinitialize the resources for a re-attach. See 6257dfc1c412dcdbd76ca5fa92c8444222dbe5b0 for a patch that does the same for stm32mp15x-dkx boards. Signed-off-by: Leonard Göhrs Reviewed-by: Ahmad Fatoum --- arch/arm/boot/dts/stm32mp15xx-osd32.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6 diff --git a/arch/arm/boot/dts/stm32mp15xx-osd32.dtsi b/arch/arm/boot/dts/stm32mp15xx-osd32.dtsi index 935b7084b5a2..a43965c86fe8 100644 --- a/arch/arm/boot/dts/stm32mp15xx-osd32.dtsi +++ b/arch/arm/boot/dts/stm32mp15xx-osd32.dtsi @@ -210,8 +210,8 @@ &ipcc { &m4_rproc { memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>, <&vdev0vring1>, <&vdev0buffer>; - mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>; - mbox-names = "vq0", "vq1", "shutdown"; + mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>; + mbox-names = "vq0", "vq1", "shutdown", "detach"; interrupt-parent = <&exti>; interrupts = <68 1>; status = "okay";