From patchwork Mon Feb 15 12:34:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12088163 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=-16.8 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,USER_AGENT_GIT autolearn=ham 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 6C933C433DB for ; Mon, 15 Feb 2021 12:48:05 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 1CE7364DEC for ; Mon, 15 Feb 2021 12:48:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1CE7364DEC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6bI+4+0M5o+ciuUblbK7F/GUTMpuiV/F1RMFeyEQr3k=; b=Jaq/vFuUUABcC52GDKvY2VBtG RQCcmMcF3Df6R9ZdLgy5MMAUp5/OQmspxOEgjGP1/qv+4uATC2FghP20cfVELERAOnjnQlbOJWaok J8VD1wP4tSNh2wiwNRZIjiJFzZwumbPVQcR77gpbZEWSpQaaGwhPCgelRkNWh9ZhP+A8Xx9FwRrAN aNT69FsActEecSfLkOgLpIvu9osqtMiQ8+uC4FsgqZzv3EXk8dz5oY7f8rNIRbHAwCKT3yQ6ZkVLo DEQ/rOS/D7+gupQO34myLv3ce5k3Pox+bUfNZCQ3HBZ4oAUbfYSKi7Ng1+fGzKXTgu7OtVZXMNrZD tOXcLswHA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBdH0-0003Xv-5w; Mon, 15 Feb 2021 12:46:42 +0000 Received: from mail-eopbgr80054.outbound.protection.outlook.com ([40.107.8.54] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBdGu-0003WY-Gw for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2021 12:46:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gF+sbrB1PDGI8p5jfvVoJxop1SpIqxlFli7FYd/4+QoGjer76kxP16T/7x7RupDRrvRYbphFb+AxrzHDK3XBfXqgsIZq6a2FvBz0+DzVUiTfrL6WUu5tOfR9qXOYvW+zqzS2lrgkOxgaUik5lhSgBZo5GEryzNxYmQbNTg/sfE6s8JQr6ON4UM2OFyVmVJDJZjolNVmeuAifpQb28erhrsBuVmJm+gM3bPVxuO/X2vPR3EcyeTv1wkDxD5AztTOHQ920NlbY7yiWHUlWhoroqM1KoMLJmvPSSpgh0mmE/hCRGeX+oIflhiDzzwi0avC5ptLSk54C66EBE4fZm8YK6A== 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=dmoMHqZBPsl8SeyXNbGQhYN9YYgird0xDuOayiiXljs=; b=GPjzGJ/4udH+L/j+WjG3ZvZXWxMEps+w12bmTaONV4P2z/SF+jlbpdYTnPKiWkIuF36EVqHuiYJnz3iTpWjqia3iAMxDpWawiQvUYVbYtnmdGbgskqIssNWxtcILbZl2iyk8yCyglWVHNnMJZKoxmP3eh8vIV7RnrOL+0+qTZcK15aPnqs42WPlP5Ad15zsTXPVxO8qzxfXycx5mOo9j4dDLWwIaVgTHyOhr5YWKBHDzHsP8W+oPXPdF97yV2xciAN3VaCnxWVKr09DoXHtffyMp4cVomwr4mKQicCqYp2UA99n8woVqIwsuxc8nfI4KqKEHGveXwk2rrksMKv4arw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dmoMHqZBPsl8SeyXNbGQhYN9YYgird0xDuOayiiXljs=; b=FzWxOk7eaTRi0rn3G+PBtH0eALiQ4G47yUl3Z2iiEwTWAjrGGnegn1yt6EYebyWOFYnGM72fABVK2MKihVhVz2QYCxFkVrZJh1fH4GDa4+gjoDIQ5wFIV82u6t+eLHpxcXvQAAWM3h0IrEuwpadaqZ9RT+NUeLdNPS6eEjcDQCQ= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB8PR04MB6859.eurprd04.prod.outlook.com (2603:10a6:10:119::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27; Mon, 15 Feb 2021 12:46:32 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3846.027; Mon, 15 Feb 2021 12:46:32 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH V10 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support Date: Mon, 15 Feb 2021 20:34:15 +0800 Message-Id: <1613392463-9676-3-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613392463-9676-1-git-send-email-peng.fan@oss.nxp.com> References: <1613392463-9676-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR0302CA0019.apcprd03.prod.outlook.com (2603:1096:3:2::29) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR0302CA0019.apcprd03.prod.outlook.com (2603:1096:3:2::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3868.12 via Frontend Transport; Mon, 15 Feb 2021 12:46:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5e00b708-d42e-46f6-f5e0-08d8d1afb8ad X-MS-TrafficTypeDiagnostic: DB8PR04MB6859: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XMDKrhPy5sm1IW/z7p6RWPHgH4JR+gL2t4p7PDNzLDuFmlOnxSrZwczc3nS4zf4N0+ilef/7bgqHAssBs24sJEfLlIygB/ny43yE0v7QA76V9sOjzdbP4VvUfLDrUllkVp0kJg9Xa14xBHnBzmnMyWZLFS4+ALm1GXIX0qG/vnREuuHXwduoHbDRrvtJxMwtUy7V/fpY3o6vQxZ8on8d8FPxxrMptNWsgGju3AcJ8RxNRDrB2bCN1+Q/kpGv5zXryAbUySosnJ+IH6ZvN/8bB7ew+0uEXZhhrCTWXLdy4GXd5mCgMOwlJqzhh1osb8Ez6JT1qxC86JTzC+sSV3JjSI84sv9GlMGSadSikMva6QsDCtHwmEnGUApK7HBsMFsrVvDDNugdcDscKXywQ0lQZ6CGylb8l2jLycNhqImaeoAuaYoXbxJW6fOFJxk7ZCRE3UiSAPmKhrzbaxfPaqpUxV17G7Jku5FXcW4kBL3aDyvUKdSjfCfFqXMJuO4ZLx7nF9Zr54u1M47iTOQI/WrYo+2yzEW0Dlqpbuwq1qIes+FRILdu9B/dlzR888CfhfPw8YQae81HTTohlVFD91JAJM+mBUFvJKnDimyEVS97owuLEKNchBuEUsF22tqqHPmr9oHthDnqWmeqVXZNJvDngTVx5zfscS94ZjM+NwlG+Jg= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(136003)(376002)(366004)(346002)(8676002)(6506007)(26005)(956004)(2616005)(2906002)(8936002)(5660300002)(69590400012)(16526019)(66946007)(7416002)(83380400001)(66476007)(186003)(66556008)(6486002)(4326008)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Ad0yIryiniFt3pmvrLGUI1NywIS3fV5MixAOCK7CE+Yv79XV4Oa6N70PGDUbwWzJnjroHPOmpktwsoFEQc7guScs8OAZg+ySSqblguNIYTEjR37WGZdYBnEmLvJT3zYx7/Ue+BMIdJRuUM91DxA5mcVpyfT+/4JI93g91OT3bm/+rhF9NK+pzMcYm97rHrhsUQVuE7dzfvm3hrxEhIlnVc2bJDw0cFP94dGbroH1ZDiZ0uY5MFffsqHuMp5YLZTynxpQBXxjM9si/xGwCRrg6b/g62nd3FK6Q6SglcejOaZvNQeJdQR9nDUb8SpTuwdEbGfGg+rlfQ4poje7lW0sp8/lxRsmTeY X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e00b708-d42e-46f6-f5e0-08d8d1afb8ad X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2021 12:46:32.3174 (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: TCCcCFrzfLkQc1J+FZG7YO9543Ll+FaUT3mGDKKeVeJj8uwj6HtJePHnOIFzPFhnWVVXC8kQdVY6p7rdM1WiWQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6859 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210215_074636_638011_4A5554B1 X-CRM114-Status: GOOD ( 11.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , shawnguo@kernel.org, s.hauer@pengutronix.de, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, patrice.chotard@st.com, paul@crapouillou.net, agross@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, matthias.bgg@gmail.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan Add i.MX8MQ/M support, also include mailbox for rpmsg/virtio usage. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml | 51 ++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 8427d0f6e471..f87e98d98413 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -4,7 +4,7 @@ $id: "http://devicetree.org/schemas/remoteproc/fsl,imx-rproc.yaml#" $schema: "http://devicetree.org/meta-schemas/core.yaml#" -title: NXP iMX6SX/iMX7D Co-Processor Bindings +title: NXP i.MX Co-Processor Bindings description: This binding provides support for ARM Cortex M4 Co-processor found on some NXP iMX SoCs. @@ -15,6 +15,8 @@ maintainers: properties: compatible: enum: + - fsl,imx8mq-cm4 + - fsl,imx8mm-cm4 - fsl,imx7d-cm4 - fsl,imx6sx-cm4 @@ -26,6 +28,20 @@ properties: description: Phandle to syscon block which provide access to System Reset Controller + mbox-names: + items: + - const: tx + - const: rx + - const: rxdb + + mboxes: + description: + This property is required only if the rpmsg/virtio functionality is used. + List of <&phandle type channel> - 1 channel for TX, 1 channel for RX, 1 channel for RXDB. + (see mailbox/fsl,mu.yaml) + minItems: 1 + maxItems: 3 + memory-region: description: If present, a phandle for a reserved memory area that used for vdev buffer, @@ -57,4 +73,37 @@ examples: clocks = <&clks IMX7D_ARM_M4_ROOT_CLK>; }; + - | + #include + rsc_table: rsc_table@550ff000 { + no-map; + reg = <0x550ff000 0x1000>; + }; + + vdev0vring0: vdev0vring0@55000000 { + no-map; + reg = <0x55000000 0x8000>; + }; + + vdev0vring1: vdev0vring1@55008000 { + reg = <0x55008000 0x8000>; + no-map; + }; + + vdev0buffer: vdev0buffer@55400000 { + compatible = "shared-dma-pool"; + reg = <0x55400000 0x100000>; + no-map; + }; + + imx8mm-cm4 { + compatible = "fsl,imx8mm-cm4"; + clocks = <&clk IMX8MM_CLK_M4_DIV>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&mu 0 1 + &mu 1 1 + &mu 3 1>; + memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>, <&rsc_table>; + syscon = <&src>; + }; ...