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: 382943 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp1046660jao; Mon, 15 Feb 2021 04:48:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzs8sMepJotGGtrL5Wz4yXlBaTR88EuEsNcWsvLN31kNi7/G/lnACT5rU32W/6rCOmqgkh9 X-Received: by 2002:a17:907:3e1b:: with SMTP id hp27mr14601095ejc.506.1613393297614; Mon, 15 Feb 2021 04:48:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613393297; cv=pass; d=google.com; s=arc-20160816; b=tHLGSeXMM15I4Xe9zWZN6jLStH7eEXOxOUoSRowmKxwWaGGsfPvBNLwxref4ezuo1Y ke7BlZ6Jz9DbA/IUbrpRlswhgaIoTZ64T/pzzeM5XwROSd4N1SHIXd312tf5bsglzmn9 yC/FHjHOeNLE4dqlyh0ZTTDtvzAvv4iJ8nrlhaObcHCPCRJi4jD7xctDVbOUup+7Lkam U5By/q1c4EofT29XFx6N7B1XOslYiMQo1GhzzD8P3r9jjNHMbNk/s0zj7AtU1OXp6d5c EBdyoq+3fFGKa9604PoFvmL0wWxfEeTQJyHeBA/V4uYYJBGT9phBXS5lnAg8XUHcecW9 DetQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dmoMHqZBPsl8SeyXNbGQhYN9YYgird0xDuOayiiXljs=; b=mVmT+uJkjQFUUeU6IdkNQ/iDqAm8gcYGhIS8DyGnpizoWi+svrbOxCiX7Z0b7/aNwl HMJnsmuvjcgsypC9VsxbkGDQeDwZiKqIPq3vbNDC3wg3WFM6gz67+Gh4FMH+ZC1v6CAl 2FxpNFLdlshRSLWPE7p7Z6mxTtIP/JyyB0Y+so2vakJ0ybhMWsFRjudtpFccIdo7apqG 04SoGRaSA/OFKjvSCs6Rt2zTxSpMpQFZKL3KBHz+wsmluzzG9+nvzfbro1fvqMfNmiwx FekhAxlvxQjVwaiGMOqFoAs26uL4aBZPeQ0WIuyCo/FY+L8OpTsz5Wkf/V+BxRxS9gHt NHEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=FzWxOk7e; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si12572576edu.40.2021.02.15.04.48.17; Mon, 15 Feb 2021 04:48:17 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=FzWxOk7e; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbhBOMr6 (ORCPT + 6 others); Mon, 15 Feb 2021 07:47:58 -0500 Received: from mail-eopbgr80050.outbound.protection.outlook.com ([40.107.8.50]:33952 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230223AbhBOMrX (ORCPT ); Mon, 15 Feb 2021 07:47:23 -0500 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 Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, paul@crapouillou.net, matthias.bgg@gmail.com, agross@kernel.org, patrice.chotard@st.com, Peng Fan 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)(316002)(52116002)(6512007)(9686003)(6666004)(86362001)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: UV4vTQVxgIuLit2WzZY8IeeIcDIOmk1Yv4d2XEWqsLqZoiJUSv8jJvWEmYPNggdLPp080X4OHkTrO1iLFfpokzUCpS+qL+prUZE+rCzI+CcPsFJHTb7AFtaTB7Wj9rJFYOUvdKlvm5PehFqJfBt10IL0eMLPBkvJLxWvXP+zzYnoqoA/SJrdhWcYsL+IMo1lRuXYBEdbAhhlUIpPMd6co8/fWUO1zTpEnjVDXYa3FuDB+yjWGyGPLULUsFYNybVcsyzCFDml/Pg4cdicx28uz2jKzV+jX81+1Ua73ZnhglP6ZLaRftmfCE3j3B/WgI1NyG4GxGwwDJRUNIyzk5TWYEiJJsuhInUZ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-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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(-) -- 2.30.0 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>; + }; ...