From patchwork Thu Aug 5 09:12:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12420679 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7604C4338F for ; Thu, 5 Aug 2021 09:15:02 +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 A72D960E53 for ; Thu, 5 Aug 2021 09:15:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A72D960E53 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com 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: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:In-Reply-To:References: List-Owner; bh=IG9+O42E5DR6PBx7KhxaCuh692BRu10VvJkMH7YvecQ=; b=K+dvRXQFIbLEjA kZii3SanuI7OMNt2BtDi1HELMOlwOYh4uR73kV2LAji/NpvXE0qFG3GjNlMjIrO64VFQE2J06BPv4 aYBF9o+RUb+kKIwG23GpzqKuF+7BaQXwDwVyoLrWu5jcBlJaHV92Bv0j6UL+FH5A0T/OB761JmAPN rpgSjom4oX5tQrj6TLQMOrtTrh0pB1R1Uxcs2QqsOM4uCDqYz3DAku/SKfmvJQxZsloNTnc6y81Pv jTJRb4VqfgrddomAEpmuYqrpg/NaxM8ZqLEVGCHUUB1qFEDRHmsQOxkW00DuBBtQpo7kvaWxyjTfm gKL9YUeIVsrJKah4TL5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBZRE-008o80-Cc; Thu, 05 Aug 2021 09:13:16 +0000 Received: from mail-eopbgr50062.outbound.protection.outlook.com ([40.107.5.62] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBZRA-008o5e-1w for linux-arm-kernel@lists.infradead.org; Thu, 05 Aug 2021 09:13:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=llsCINr1DXZJ1DbajqJv8OVM/laAh4lwHeA5OgFOaseS1IQJi+1R5IhgrklsfWr6TKRNjNMabtHPwnMaqFxe4TdvSvtvGnG3TGQIB8lRsIcPsUUkiGy1Tq+/ee6TiFJw74qk3vosq90IXcSgR+jHQpoNcn1X5oSC40QVWlBGE+EsoUEIaNakZGvTUuv4m4Vjz0gTgh7Bv0X2zY7UFczavDxWCtyzvbWnHt8K1upz9mL6m2l8Js7tyuvg4ufq/SrW1WMt7pWYcvxeSlk8L5s44iXUhPQx1gsEQvq7LT7Mfp2Mr/hO8kfn0Yx0KsT/oqjONOvs3vPLQklhXjmiQfuZVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0xu3h96O0+hh5j2fUxZWVQvLOGbJ7+SyPiVmwns1wJQ=; b=h4hYm6VsNngTAHWLrmWIbTr6HC/Rmji6blfsPT3Ou6ZSXQo0tx4V7EeadHpO7o5JzvemWmC7NwiUcemBz658A285h4FfVJyRfzq1+bsxiKQocqfq61+xBV7Ss77hrUW9ye0jk+R+KPDhtHi6Y/j28l0KSE+CvvFdLHZPLzH4495U56L1PPK4wreKnXMC+zCDnQiPgyN4hH2JCvENqjztf2pC9aKz1zkpM7q97ReOhhOMtkVlO3GVG/2HX3SbIJy7uESwFMTE4r3hZOFu3QdTl7FzyPq2OvOT/cOOuGX2YC31yvAfwj04VKs7t7lcWmnId5g32KqCxCj7hslLs1Kasw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0xu3h96O0+hh5j2fUxZWVQvLOGbJ7+SyPiVmwns1wJQ=; b=p/evZmNw7Yw4tsH1ybNTYGueSNMuolrDTdBMX2s07DSz6U5uuLiMxUOYDcE+CCU05ydNBytjNoe2tE3rd3R1R9cfFcsitZyHTupPqfvpuD9BFJCVUn9rzaD41EeFSAfvuHiCe9fI9PXpq8QXgQRDMmgEEj4ACda6qGjcjo0+z88= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) by DU2PR04MB8984.eurprd04.prod.outlook.com (2603:10a6:10:2e3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Thu, 5 Aug 2021 09:13:08 +0000 Received: from DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2]) by DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2%9]) with mapi id 15.20.4394.017; Thu, 5 Aug 2021 09:13:08 +0000 From: Dong Aisheng To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-remoteproc@vger.kernel.org, dongas86@gmail.com, peng.fan@nxp.com, linux-imx@nxp.com, robh+dt@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de, Dong Aisheng Subject: [PATCH 1/2] arm64: dts: imx8mq: add remoteproc m4 support Date: Thu, 5 Aug 2021 17:12:17 +0800 Message-Id: <20210805091218.1626290-1-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SG2PR03CA0147.apcprd03.prod.outlook.com (2603:1096:4:c8::20) To DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR03CA0147.apcprd03.prod.outlook.com (2603:1096:4:c8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.5 via Frontend Transport; Thu, 5 Aug 2021 09:13:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a1aaebb2-250a-4558-8ec5-08d957f13d84 X-MS-TrafficTypeDiagnostic: DU2PR04MB8984: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:238; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V0W1qQk1RUUqEaOMDpGL8MX2CbDm71tGgj6IHpFd9N83UCTcTTrFjRLxUhcje804atlRydxdcYZM4fhXciwkuNfLBg2mzXuxpQKQbk6DMDQP8Cnt3fuHww+v00y97vbyv1e0IllTbTtAteb+jNu7+l7qblmTrokguSGZOQh/vNDRP/P64v6SkQpW7gux2rQnGGMZei6a7yOUX+MrOsTXItlYf3qRxdHlMfjS+APlN9VaKi0+iG7hhP8EBPcQdi2ggtnnpb5+/qwFlSKm8nAN679aSp9HhCjYGNwVnr4aTxBXY3WHnsD3v3rwUo8lzK2eInVm4UY8WEsb1yN6xB2pttJiwBlDGL0kkq0jABHyS+1DVCbidqo52a6eRG4RmiqDHy8yGcvn8lQBpBqBGz0DzSpItTqQ4+ddgWMx/HeNTIXN+v4Fxn89iolkgQDaleCAGBVmrWoqA02VcxGZUgr/SJVVAVQM8DizHzSJ/jYaZHZDeDVpCU1mYwnvsQAXuaLc9CZY4bAhKA1OznKF4+2fTXTn4lwsab4EOS7DwMv8LRqIrYsKVrvggvy6Dxu1vecLmcJZ7fTVsX8KpWHh8IOEn9IDAHDW+yGjXvRZog5w4LWjSLbIZNA0I9aKbxg16KwyTFYKBORExV6Ags/dGaf2CQlK+sM5FwY4ebcxaUtTpk8vvXz1VicvL13PkXs112VXzHddVu0qcdFhRK2WDxbEXDuPlv2sI4BJxC2vS7YJuV4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8477.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(316002)(8936002)(2906002)(8676002)(6666004)(26005)(508600001)(2616005)(38100700002)(52116002)(6486002)(6512007)(36756003)(38350700002)(956004)(1076003)(66476007)(66556008)(66946007)(6506007)(4326008)(86362001)(186003)(5660300002)(83380400001)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BTrQZttaWH0MMrCzAghYDF8SFZgloW7+AkkPU0GbpGrILhE4PfT378rLtTscsXNWlhbTPg1M4MFCpMhOvjMXGdkElG4UbvjOgbJEbQyFPLj9pyvDBc9b+0DQmhdqomy/vE9RWDBPnvTI/wX9Xw27ipsBaCkwWqLRxpmLqKEamHM/FTSphsIQ/M/bsOcoV9/VuRLbYrguyvhAjXUj2/S4brKBgvD9qT6iPpQtFOopHtpzdTiAM/8405fb8gIaiEf8fWlLXxTzSXRp7gUbRxacdVaFAYAZJpe5NaDNEorZWbIeyaTlT2SGEvZLpbuQMZPuldkGRrJSU9jD6hnVnRGYlEd72JOOS780UGUGCBj+6rQXoRod6pv79XJHlTlmw2o2bIVgfFAIsHea0TLJNegBt1Xxlsz5qTVwQ2oYtaYrxzoQjQUdOT4lVhxoNDfD3QEJ4yoShbhw3Od63VaoDlSuus/rf4aG7saRPkCCok2PPxeIl0StHVDjkND0PpF+OoACHsN+UhjvzEPF6ArjtS2JPPscgt5OLscQQ0YmBlGmL0lg5Nj6Rel55L4+16daKIJEX77kg4VDorgf/8+AJuJ4B16lulC4iYReGykUyb/L99qwPOnyLK2jGmKIdH259JaRqenlHltPtQwT9RStJ9lpNrKy1TSCH2uaY5BO2J+p1ENB2NJmINfaHkePv1RxVKzc+H2ypkY/mqD+jndEy3/J+vHoDWDIgFoLqmakRykT4tup2YRzCSQ+ErYyw3cZtOxvZoPqa2ex2H41Z+kcuDz9McLalL1uXA67UapvZbTA+bR/fB533m2ouwE4fK4bNkcSb70kD1a636BRgXu4DRGspHNFa5PpwHxyg6Cz/IDifiV5UhY06Giut4lmZVJfdAsSDMCfAm9tVaGk7xs5FjUUdkQZ1prx00MtNVUqvluaAGVFWuJQNw6m6DC2tH2UCyxjIJn/I+Ke33/NKZMwK+cJ5eodAS/Y0dzEoKoXDZJotTMhOUlMS7S+JdTLOIRdxqSq0TSHy1OhcCG9+re7kM8dlxyWLYd5OQWv/40NNPR1PHLz4/Y4gCSRM3QNxlMt933lTLDD0QzPXzSzVvcfOjmFYDUnde5+BzZsHqtPrt1S49kaSUGjSB/i9I7eLpxaDFSyIThbUMiHJtORQtveI+H9du7dSjOAtnqWFZcTqSx+c8BtZsl6911n/iFcK4Da5lNl4m89r/umP06Ta3n4lG41+o7TrzcpTQ93GXshlJJXc1uCcX1S/czgw+PpuJ4C/fiJ5GMfB3/Gt1jU89j1fC0YNEEJEnQ1QbYL4cE3NOeKUTNd1k3lxLJ41EvKiP1om5kr X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1aaebb2-250a-4558-8ec5-08d957f13d84 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 09:13:08.3036 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ifOmKNerl4XeHhBfDDCsUWORBIZ304rq5zWgxwfjF0GwS5k/LQJSik3bndPPlzcwaT2vyKfRz8UqoXX1EcNOiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8984 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_021312_125951_8A3CDFDE X-CRM114-Status: GOOD ( 13.17 ) 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 Add cm4 remoteproc which supports rpmsg naming service. It needs vdevbuffer and a pair of vrings and 16MB reserved memory. Signed-off-by: Dong Aisheng --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../boot/dts/freescale/imx8mq-evk-rpmsg.dts | 72 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-evk-rpmsg.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 4b4785d86324..687ad9d68a85 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -49,6 +49,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk-rpmsg.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-hummingboard-pulse.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-kontron-pitx-imx8m.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-librem5-devkit.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk-rpmsg.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk-rpmsg.dts new file mode 100644 index 000000000000..4a8911087e5f --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk-rpmsg.dts @@ -0,0 +1,72 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2019-2021 NXP + */ + +#include "imx8mq-evk.dts" + +/ { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + vdev0vring0: vdev0vring0@b8000000 { + reg = <0 0xb8000000 0 0x8000>; + no-map; + }; + + vdev0vring1: vdev0vring1@b8008000 { + reg = <0 0xb8008000 0 0x8000>; + no-map; + }; + + rsc_table: rsc-table@b80ff000 { + reg = <0 0xb80ff000 0 0x1000>; + no-map; + }; + + vdevbuffer: vdevbuffer@b8400000 { + compatible = "shared-dma-pool"; + reg = <0 0xb8400000 0 0x100000>; + no-map; + }; + + remoteproc@80000000 { + reg = <0 0x80000000 0 0x1000000>; + no-map; + }; + }; + + imx8mq-cm4 { + compatible = "fsl,imx8mq-cm4"; + clocks = <&clk IMX8MQ_CLK_M4_DIV>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&mu 0 1 + &mu 1 1 + &mu 3 1>; + memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, + <&rsc_table>; + syscon = <&src>; + }; +}; + +/* + * Below devices are allocated on remoteproc + */ + +&i2c2 { + status = "disabled"; +}; + +&pwm4 { + status = "disabled"; +}; + +&tmu { + status = "disabled"; +}; + +&uart2 { + status = "disabled"; +}; From patchwork Thu Aug 5 09:12:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12420681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A26B8C4338F for ; Thu, 5 Aug 2021 09:15:13 +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 67C0360E53 for ; Thu, 5 Aug 2021 09:15:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 67C0360E53 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com 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=fhY1sGb38peKOoElWnHoSC7CitP9uUSdzEgZdryQTws=; b=WOD9vZ+n81E6mT 5zdAKmQO8Dkp0RXhoTh1afy/Mq/RZvaLKd8jCD6lA8ioB0OLPApMe2tAxXVUwUmjuGDyukpGXCsvE NH22292JdJunAeEhGnc5E5MUiBtfwMLsIrz/8AXkuVbBOTDjfQUXVZktEaPNMv2qL3fAZs2/FFr9K y0cFWpVmxaWkegMRoXisXedCBkCRCPOz6du91iXw8852iM5phbZ/5xEzvuQn3hVCFbUHFs9N7LB1p 3MCUzapa7l8cmIocSJWqueEVSdlGnLtzL8RK1h8tTx8wU4mMDGeI0BDTvsub1RlR9E/gJtOlim0gW aGcVtPbE/tNBQKrtDw0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBZRT-008oCc-4f; Thu, 05 Aug 2021 09:13:31 +0000 Received: from mail-eopbgr70055.outbound.protection.outlook.com ([40.107.7.55] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBZRC-008o7F-No for linux-arm-kernel@lists.infradead.org; Thu, 05 Aug 2021 09:13:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i3lFb2MBu2Jxv5qxJsthwc8jC+VDq5tM8hFfcf/NQp4PIck1Ru0boSqFwVKORXEgabZZq4K3WRNm7e6/xt9bOJ5dW/xTgekfnnV9NDsxRu9qWQqxIOKjkyfM0rgXFLDPbp8kibZU+0sphqAXOXkbOl27dU+eqoH8rLM0P46X4lyAXWu9EBt3RcqNhjcR7DQHtv1GkhKMp1Dt2pgCl4dkmhuXrc43z+aF/YGBbKUtsEciPrDNC/ECdVdmQyNABLLCLm/F1O7lLqhp61ad4Tab9rNeLCqxmYKf0KAQCrTo3gn4UmigqCTNdEv1/Ak51Hzaf5A7G5a0yKdQ9vFo+V8N0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0bkc10URnZCDjtQnNRy8RJZ9U7dHUerzDZM2QhQEv5U=; b=NTjWQWo8wgmnezUozJ8tmirPgbYNg6BGfwvOkOBaGMFe6E9D8upO9hHxMYIa++9d/t36xqez8dhlDWoogyZwYfZHEfmHU1Pfc2evAYk2aYMDAvTTttDUZSmOSywawQqUxW4IH9rGRSyomoRI1TS48zG0S3+5qy6dCr8zFHNbgJM9WODtzZkQiXfe1L5wUg/R83XULRH61C5sLvHWWSj3AXRMgVOaxd6zD1Y9lZl6YAo7E0jVB+8YCLtfHMOaKf4xE4x1VZXXUwBsnelEYBHUdpCHUeNn0TU2WyETL+kTALyFOB75aYJ30hURlpgdzKNwCL7RBhoEIJZYHVVFM4ko1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0bkc10URnZCDjtQnNRy8RJZ9U7dHUerzDZM2QhQEv5U=; b=iXGCkSloxI+yVTfsyCnMAes8U3YwFkHKK/hbWoiwW6F/sCEcdcg403MMX25FBMhPY/9nj7TFNFPzNOa9HI8TVQ3p+hI/O8R2UybU3kt40TRxPdBNcKSVcXtaaYjwyNG5kwXvId1XsFVThGzAohKFuJFKoQ+6XI6QcX7LChSHl90= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) by DU2PR04MB8568.eurprd04.prod.outlook.com (2603:10a6:10:2d7::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Thu, 5 Aug 2021 09:13:11 +0000 Received: from DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2]) by DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2%9]) with mapi id 15.20.4394.017; Thu, 5 Aug 2021 09:13:11 +0000 From: Dong Aisheng To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-remoteproc@vger.kernel.org, dongas86@gmail.com, peng.fan@nxp.com, linux-imx@nxp.com, robh+dt@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de, Dong Aisheng Subject: [PATCH 2/2] arm64: dts: imx8mp: add remoteproc m7 support Date: Thu, 5 Aug 2021 17:12:18 +0800 Message-Id: <20210805091218.1626290-2-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210805091218.1626290-1-aisheng.dong@nxp.com> References: <20210805091218.1626290-1-aisheng.dong@nxp.com> X-ClientProxiedBy: SG2PR03CA0147.apcprd03.prod.outlook.com (2603:1096:4:c8::20) To DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR03CA0147.apcprd03.prod.outlook.com (2603:1096:4:c8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.5 via Frontend Transport; Thu, 5 Aug 2021 09:13:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bdcca708-7f92-45b0-1d2c-08d957f13f93 X-MS-TrafficTypeDiagnostic: DU2PR04MB8568: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:238; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Cx+QJb7469OSzgnlhh70zqzXQaQdtOUUfS5OrCM5uMkRDyG5RVILRnEm5cPXgTj4HU2ZhO6Pm9U8+WECWJHs7MYGf/0W8OUzPpf/PvHNXNVymWyF9/J6hX9GEhV47OM4AaiNCOejqKDqU9uGYgSx4VNk/wi4KatyRnbX5mHmasu5gfmDiIh3/GESKh+HebT7fyuSXeGxC6wcGMNLVGCcR3uiJw1wBPbr/t4aopahi3jrFDe9WTiVnyjlPFVDgbczUyRm7L7bxhohBIPL45+thui35YOcrowxEQOCBJZ5EW7RKVCAXlncxj+odkdxPsMMYg4vWBDBp6nFhIcuvPLeYt5nEU6+FGkBT+NBTgDZK058wePZi1XfOGkc1N2nOwomt6WHJZtCqqMfyyqRD7YQ+hCljgiWv+DdFxJSrgkzF+/ZK5CKXSb9K0lOJZDF7ENkG03SweRVr+8sKWCkxn/LhG6IpHtjF5HXaWcJjUxmqEp/RZ1CYPogmTpRtezPjDjxWAYNTXfXa+gMnglIS2Xi28t99mmw0J+Tv836h0WyvlgXDjORv8Ukq6UawmAdQ4D3/l1AWHD3YlFuBwvokStrioNewucSNvS34GnMtYeP68Xuq3r4unbT6uvPiRU4Z9SMfU/HkZNsvUW33e7VB4Yib8H/OQjj4r6Hedh4G8SDRINeQ5wptqMe+isBaj47Bhntr91JcoLQoUcIi2Gh7Rw0YQPtKPczSZtUKwVxtBtK418= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8477.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(376002)(39840400004)(346002)(136003)(396003)(38350700002)(38100700002)(1076003)(66946007)(5660300002)(66476007)(66556008)(52116002)(6512007)(956004)(2616005)(6486002)(6506007)(4326008)(316002)(186003)(26005)(83380400001)(2906002)(8936002)(8676002)(86362001)(6666004)(36756003)(478600001)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 746JPMdJbHmW1QYJB2wVE51x3TvSmP4q3djeK47YjjFDQUh7hM1ODTt2yz/yDAy8Ka/4nidlDAY6nBByTL/Q88oYOeyRH6IA2hAL3Wc/aMYmX7PpxePreTb5387QTcexJeLAAwORsBAx3nAouwiR7VBF9P6/Yz68jt2ZUl3h+R0xpLRUiuLTzVt2dfPiK6opmSSM8Cy+FaLnaA79+0lD8fNJXwObRY6uZBTyVkrZkSWWVa45LuugKLz5o8sqsgVgVbvz02VHQsNqOgTx0cKSghI6SKCb9S1c2RztWrfaDNrpkBJaq3D2yoxUeZSD6gkPImWQKsN1W3k3kHBNH5xAcs0LME18DwX1b6FlvanWuH/eb0JuHOjhHs1l0Awdv8+wVADTvnwd7z+teqcZwCXRyW0xQDAhIJcDPLGP93QH1E8GRSXlkgkf2jw34DeIPy/a4TfW1uMkIn+e7m/+iop6BG0U08hbHJCOwLaDpWOe7xNZROCNfF1eLhSR5+eE8i9HQ/Lvo8Pu5rZiwESna4YxZ8NYNi2Chqk7fCmEVr3s1wXejUVRrlhXiByX7d0079L/l5GASweqzkxPV7vj4jAwefxvobiKueHxQecZ+WUaOxx02CDCVK27i5u1dgjQ0YEeZhD+8D79qQ+3WBDJ6nB244d23uVE39MVB4Utzk/iLe2mBVDxOcb1Ae6OWIWexcSg9yN1vPyV5oS/y5shMfRf969/tWj6TVV3XuH75dtEJHTROo+7HMHhK0cZTRjvyOIzu6KzgWpW7nuDcO0CKsyzAMshwbRSU35yCj5LTjnztLG+MEE53ql+oIY8KKgVAv3Yzkz3NI7LPuujH9kWMDqz8Se5Qj2Nh1/uhmxLqSQM6wELnMj5zpHKdbmxYpaai9wn2yAI8UNFn5HQljc+PbMTDarS2g1lmL0OWyB1vvZ2Y37GY4GwHfd+BDWbVEVKDA0j2whn4ZswJBSGvDJAVgi/pjnxs1V7/lDUaZxQmfIhJdz0QEddyEAFjboXm5Bt+yQM6FPzn6Hrikl8gOMCqXJFFHk9/apyUPtj+7pqDCPUMkARIBcpQHu8KwCUG4heX0O1U176+tYrkmbEppMJdmJyGK9+PZE9pyVhvOYu+859PxWyYVC39Wr2MWi7wPybpmf+QSWVEVqUNqqLdfsrDTifYx/N3c4Ot+WiVznvcz83st0zF0a4BD9GI0k+CevZS8SJciaV/JYYm+wigOnnRZs/dJqlb5uBi6AJTGrObKySBErGaz/NW4d2OthxxELgPfXIGaMam4d5tpVd97tEQTNXZks+oWAz0Mnh416OD4jCCSPGJjXszgdO3G0KZkXQsHHD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bdcca708-7f92-45b0-1d2c-08d957f13f93 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 09:13:11.6788 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bl+GTJ/av/T1CFkxjwnxfT+PC8TfV8Z4mt6i/BTrBivVCATCjYytOuR0kt11DY1r/Rotc+gJyjOyTqbx0ADVUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8568 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_021314_845581_4A07C048 X-CRM114-Status: GOOD ( 13.46 ) 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 Add cm7 remoteproc which supports rpmsg naming service. It needs vdevbuffer and a pair of vrings and 16MB reserved memory. Signed-off-by: Dong Aisheng --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../boot/dts/freescale/imx8mp-evk-rpmsg.dts | 78 +++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-rpmsg.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 687ad9d68a85..e5f4d5779afe 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -47,6 +47,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-rpmsg.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk-rpmsg.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-rpmsg.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk-rpmsg.dts new file mode 100644 index 000000000000..35c0a8d5501e --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-rpmsg.dts @@ -0,0 +1,78 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2020-2021 NXP + */ + +#include "imx8mp-evk.dts" + +/ { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + vdev0vring0: vdev0vring0@55000000 { + reg = <0 0x55000000 0 0x8000>; + no-map; + }; + + vdev0vring1: vdev0vring1@55008000 { + reg = <0 0x55008000 0 0x8000>; + no-map; + }; + + rsc_table: rsc-table@550ff000 { + reg = <0 0x550ff000 0 0x1000>; + no-map; + }; + + vdevbuffer: vdevbuffer@55400000 { + compatible = "shared-dma-pool"; + reg = <0 0x55400000 0 0x100000>; + no-map; + }; + + remoteproc@80000000 { + reg = <0 0x80000000 0 0x1000000>; + no-map; + }; + }; + + imx8mp-cm7 { + compatible = "fsl,imx8mp-cm7"; + clocks = <&clk IMX8MP_CLK_M7_DIV>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&mu 0 1 + &mu 1 1 + &mu 3 1>; + memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, + <&rsc_table>; + }; +}; + +/* + * Below devices are allocated on remoteproc + */ +&ecspi2 { + status = "disabled"; +}; + +&flexcan1 { + status = "disabled"; +}; + +&flexspi { + status = "disabled"; +}; + +&i2c3 { + status = "disabled"; +}; + +&pwm4 { + status = "disabled"; +}; + +&uart4 { + status = "disabled"; +};