From patchwork Tue Jan 19 07:35:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 366132 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp515730jam; Mon, 18 Jan 2021 23:50:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9s//4BSsSd/pus0Kf7rP8iSZMJRlRoiLF+a+9q1fFmxCr/JSy8Jct5GIwW13QnpcdamRP X-Received: by 2002:aa7:c7d8:: with SMTP id o24mr2473043eds.328.1611042606961; Mon, 18 Jan 2021 23:50:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611042606; cv=pass; d=google.com; s=arc-20160816; b=M6mSKzLcaNE5C3ov72F4THuBUcOErj+tO7WjASZa/V+iD5vahVBmqeMNJlqNvDl0aQ SEoejadCBXCjjM5SsqdycMnd4ALESKlwWY93lpe2vnRfsSGOTFUTKrmo3WWLL3SSOcJB r1mw7zyAqm8ANbllbU2wnE3wCUTCoPGr+Wdbj7AyQZ36E9OebLGzZnp6vlXRx5vDn0ay UabOv9HBXS4tJTxWINbnv53jnwpvBIIhBHyhCn3pONFQJ5hxHXQKiVd5waYx9Pvk6qIa WcT6Z70HPJqk35wjCKqGLc2YHIK+hbiUFw4vcENqwfiCJd6MkKqT16aAwHbGTObvYit0 JceA== 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=C2lJ32NApXPQJSBQSQTUo8FalMPB5GyWcrxu9zgUz0U=; b=NLW8/zWvkQJ/Svynh1ZTxZKdMfcdQa8nC3x0hIbIP1Bap9iJmcQTw7W5uhaliZzjix 4tCrnwBg8ZhQw6bq8WaXZGLtYkSacvPDQ64mo4RJ0dj/DDE25hNietequ9AT6Oma8APG yjeWEsKkh/bpo+MA1cqQ0KpYLNd59Kpdb+0QDoURuplfThKnuwsIlWJq84RcU+c1Sojc BBI0XQOJxlw2wEnsYP1fFw0hE9aLmXb5zhk8Wrb9MIVbqiAdRYzcLqjbYSaVta4I78pS WkKvqcVlgVBXu60n3SH0FbV/XzGKRS2LK3moNWRIJTD2t3mRxZ3VKNkkN4NEinUMykPO 90DQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=jghiAg8z; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (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 t7si706017ejr.383.2021.01.18.23.50.06; Mon, 18 Jan 2021 23:50:06 -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=@nxp.com header.s=selector2 header.b=jghiAg8z; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731481AbhASHs5 (ORCPT + 6 others); Tue, 19 Jan 2021 02:48:57 -0500 Received: from mail-eopbgr40046.outbound.protection.outlook.com ([40.107.4.46]:22240 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731361AbhASHra (ORCPT ); Tue, 19 Jan 2021 02:47:30 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=af+gTEmYrABdWPizFEbyfqLsMO0/yWD76NcCHBiZR7uW1dFseaYDm/j3QELRO2sMsyRaeWiJVTjw6rtKYFzNIXlmxyg8dqIIjjCLOKGczGVeZZpYKkdLNWNER7HnSDwTXdiiEtNHzVB/Qxo7Vu/zK+cLjDBLwFvUesuh/VyxGQveQV1fc2747YwafyQp9icKYARVSkInDrC0FrnNKBLNE9YZlGq1lAjEukXXanwJjfav1b+GP2F/7BPAXcuNOYfcTmkBrT+iv0fZynBbjqrkzhpa3dmR3jQ0MG68FUwZA0+uUTJIfF/DVQXGVlMvWZijt5OBqkUeYQFLR5iL9DPXGA== 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=C2lJ32NApXPQJSBQSQTUo8FalMPB5GyWcrxu9zgUz0U=; b=HIO2jPtk0Bb/TRqphUOb9dRZU2L4a7oER4par3s2k2LFxOVVQrWEKRUWT4I3GfcDELBKNk6nkUsSdCF78pVLA3XRtysQOMB1T6xDP08XqE/lPhJ1oXRKHmE4141WoXJH4bZoie1VYvXgHFzK8dbTwFXxx72AoosCHO7tNCehvT0Xv2POpOaPKQ3ZBoCHCBqA+y31oAbxJff40HecQLlJGO8eUmDxUcy84xVi8TDaM7HMM2V+fxkUuJ8JA8g2aiL3lOMUuCwVyVcB1qylF+MOBSfZ5VnQq24VUZge207zxTasrWIIgBEMgnrXN27xW+jPQsOfUW+POCwm5VXCnyhK/Q== 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=C2lJ32NApXPQJSBQSQTUo8FalMPB5GyWcrxu9zgUz0U=; b=jghiAg8zFaPKDV0jyENhxVS7cm9WFzpvB/uiYN5VvfqdpYUz4b6AFJjzIXH+gwIJOw79b/IRy+ayGCmyV5ElMdV7zGQ6LO4SLEj2ld74ZXdhNBar7GP5X1FL+8v+X2f4/4eND2l/hEyO7BPggt9TZsKzjoAI8uBbrdJ9JDdq8gs= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none; wizery.com; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4492.eurprd04.prod.outlook.com (2603:10a6:5:39::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Tue, 19 Jan 2021 07:45:45 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5%10]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 07:45:45 +0000 From: peng.fan@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 V8 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support Date: Tue, 19 Jan 2021 15:35:03 +0800 Message-Id: <1611041711-15902-3-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1611041711-15902-1-git-send-email-peng.fan@nxp.com> References: <1611041711-15902-1-git-send-email-peng.fan@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR04CA0161.apcprd04.prod.outlook.com (2603:1096:4::23) 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 SG2PR04CA0161.apcprd04.prod.outlook.com (2603:1096:4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3763.9 via Frontend Transport; Tue, 19 Jan 2021 07:45:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 413ac416-e40d-4620-7ab9-08d8bc4e3ada X-MS-TrafficTypeDiagnostic: DB7PR04MB4492: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b7NI8TcAAz14730ocVVaqDdmk9Ub1scEmCHADQj1Ddm2YVvZcp+kQyrlX4lKevDgG+8mmNONYdu6UEagynMZYJmaMin4V8uGI/eeHUVBKUDEwQHPJi6dk/z7cBN9DcbS8QH/VHgjIUbFdyh9pqGMmeG68SifO/Xjt+NMXhMcB3IWrlt5kfAdJ19VJ3XZTFDwYEBMR4DGK5R7R+XAgd9aEHwmzDGAo6SEfOkPNxpezxbVCS+6Bs6n5jXnV2Wl5U3d3y/PUCzbsQq/CaWusMH3B2hL/6z5mf+5NmP+yx/Cm1Wo33JBt8hfEKt0X0bhyt1VScrw7OVLmMSIN2uqHzJciqS8iHht/SoHACrD7xaDw/bOBumi3CY5EwIVNtZNTM23jOf8leAKkAP0B9h4X6Gd/7sPlqDm+wSb1j9ywdZpz8IMAki1V7zIDDe3Q6208+hYYIKmp0eDJSp8Cq0HYK3c9w== 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)(366004)(5660300002)(2906002)(66476007)(26005)(69590400011)(4326008)(6666004)(66946007)(186003)(83380400001)(6486002)(6512007)(2616005)(86362001)(36756003)(52116002)(8676002)(6506007)(498600001)(7416002)(9686003)(16526019)(8936002)(66556008)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: HA3XfdKLaaLEUu4ycHB1BhHsQG6qJRsT4JgnV6C7u62n8lhSbkg0b7UGqaY5pZZ7rVNYC8DJNM0nthf4OU7HHawdvjbGLJrn9+AlIWCzLH1oM4E8eYtiXkPjmf9q8bT9Wk3EXoDaOp8Mci6rtRD9taYX9nuykaMewV9AY1VPTDRPLBF9dbTmmKfhblyJFD7Ev+leUudKsEA2pjZfzMApgSu69YHVvkQp5PuHJ6pziAj+PkNURvD/Y+5VH42sUV9jaW33hVes9HOrP2YD05ATKdBPzW3MtmRhn/sprZ+9lbB7tfTd3VdUPfgCJBk35+xX0zLPmP0E1Fvnalz6EJUUIbP8xvni5PRRA8e92VUb7Di5uvYT62JVzCkppSJu/bDVWU4Ggq4hIEmGEKtT2JsiFM04fp2w0RPi0R0jVtBUgPeLcj2AlKqpUstACG7+EeNSu4tDxodjFLf8KnvdkDAvBvjSakqve5gTcaofoAeD2ysp5AmoX9/zb6t/eVDOK0m+oXGyL9VlWiwWAq+eipApeSW1iFHMaZ0syKq19TyZeE9PYhJictML3Lcjr+RU6odhUhD29UCWwymaPI1Y1+gXZoPaF2fYm1n9RMaEalUi7GFDt4aytrC/0hLuMQUmbTY7/o1jedBpWTOZ4CwKu21MUzDGEFY2eaMQQMqc9UfgBHHC5za3IaSbDlZFczMJRwXI9+C/xX7/inr0j6liT9HbV20gTaOEP/MgoBGyiafsysbE5OmCcvg1sRpgtEF9HOjw/beCeFS4TIPuL5egO5sHjSiT7y0p8vA46PZl7XqSVvES6jDUQbN3OSKRqh3A0YoGveDxGQ0oCb7SUnjCIcwf+/5ycMLmQXzCyGzZxZ87jChABJ3cx+AaVfsr7Bf95Bd7QD5d4oAl+vHa13xN9ojo6VcZNCnA/rYp5Zht8atXUYUTPkEfq3ifO1bjSu1UCClml3ColzGTXts90WsZbx3uODH6PMHpq4SGl7kdVK6bVwWnaEqMubhLuXHVkNfq2o6G X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 413ac416-e40d-4620-7ab9-08d8bc4e3ada X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 07:45:45.6001 (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: SPn8fjM2xnoJHFYyDIyKLrS4/OtTQpx3G//o7VQOH6+aBx6o5uFPsIj1ekAb+Zu50K6EnrWZCQ8mgRl8Hy5o9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4492 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 | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index bce6ccfe1538..b0d600baa161 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -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: list of phandels to the reserved memory regions. @@ -56,4 +72,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>; + }; ...