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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933lTLDD0QzPXzSzVvcfOjmFYDUnde5+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"; +};