From patchwork Thu Feb 18 01:24:52 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: 384349 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3281337jao; Wed, 17 Feb 2021 17:39:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJye9y0Sb2G31E0qrWiPlgK8jIBeZmzxBoXKo2zY283QnoW3cFmQjdDTFZZF+xcyERC683nR X-Received: by 2002:a17:906:c09:: with SMTP id s9mr1615817ejf.539.1613612347707; Wed, 17 Feb 2021 17:39:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613612347; cv=pass; d=google.com; s=arc-20160816; b=sraP8ffL3rP5f/m8OkLbNrIOCjDVxlHST7H3pWc5NQFKRaB//xkklJDs4SOREdW9Gr TmosTL6TUQ7zUzzyJZh7skQ5jzLgtS6LVDcDlj03FysUc4VWc0ZT/fsxE6JjbcwaFr92 vfM3IWbjSeCA5zvGtrMUpZpTGF8o5OvrfuixtwGuWoaWOaXHB7sb9N/FJIJAhVB88n8s VwP9LanUlPRxqhuc1xuWvlGdmFoRZ1Fghlwwe1awmfUPyJlnH2ahcoxG6nD3Jlgr+Bg8 7pFY6HxzeOpTtR7PULe6BOefdXuv4FULcxIYaQ4cOZk5x96PsJSIiga8NthMLak7aaUo BK3A== 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=XHaHf0+s3IpKXu0/DnioLgWNvoaHXdKV/0UGF4JtDNU=; b=wpRolqugGrVMmcFbQvOzN5ltc7uQ4JQ7WfFywuq86qtG3mpg9ZSLFI7KH2yXepC3pH 3HAI2cy2YfTGk/jwHGIaF1T+EyIwSQJqJCGhyvHPC8Vl3BHtcc40KvoyJmSI1v3MUN6V WmFAVsoDwycA6X/sd//CM3MRLlVqCtDy6UhDNu/SjbzU2/2XHacs1msusio+pR0Rm++s UgOLZdCTJ1ng3uk7CiIN1Bgw7C/O0PxUdJWC8HfrL3rZXV4CQhLgX8gRh3h2VznEKwbh VfX1z9efkN1IjnrXggIRgMn5puU2NMamkRCFBPFU8FkVhGmbkI5XQ8+YMuRCptcxLICm gJsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=BRVQvymV; 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 e1si2551315eja.255.2021.02.17.17.39.07; Wed, 17 Feb 2021 17:39:07 -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=BRVQvymV; 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 S230121AbhBRBiN (ORCPT + 6 others); Wed, 17 Feb 2021 20:38:13 -0500 Received: from mail-eopbgr80089.outbound.protection.outlook.com ([40.107.8.89]:51809 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229850AbhBRBiM (ORCPT ); Wed, 17 Feb 2021 20:38:12 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DYKQAv5vDJXHJ+H5XFZoCfB93zX14PmoBL8JwjRY2FbZS/80lPCFESGSBqI7KvIPk/IsExRbeDRvf9qHw0UT66dG2dhreZdQXkMBTvSydZjvR+JwLJmak95ed8AmHI59MCFBjpQltkJcODR5iEPBW1tS0CNlGK5a++5YmsREDp3rVqfzBEn4Y+UBJ4n3Tw+U3mPyykfmh1xGl8xPkcEs6T2DKU5Bd7PjJbQ2JYQ1Sqqv1PUXq/0WCCfUcuyOfyIHf4Ktgcp84VoehuMcj4IksLjqLCVHQ/w7R7+15BEWqjAurJ5AU+QjQKiFCnW1dmdWV9mbjlZWhKxLTmNjyhYc9A== 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=XHaHf0+s3IpKXu0/DnioLgWNvoaHXdKV/0UGF4JtDNU=; b=YoeQoZakb9EPD4XqNw8MZ0HBYh5IJBqKUk9lbbV9SPeG7NvNiJkBE2VW9qLVIehyOrjVq3+MQCzyLDNxS7/pf2b+dLrp+7GUe0TbSLtsuJwyDJL2bL5av1erQ44GKxRSx62SaFhFqKFraEaKYQZn8FWGoobCEB8FMJw2tn06m5PgZKsAl1YJqP8f9HJBrt9T6ZhvxksJMfP3eO5ri0WAtYUuf+RAaJlUCmDU1hnGh1MGyKYYoapPNbX8G0AuVesV360wuDsRDm6C4KlgckJFZM37EIcT9/2XDDqx/ZQqLyEAw9iURaM0OXQZLSSe+pLunKyxD5+n3ekZqgjDf6WvPg== 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=XHaHf0+s3IpKXu0/DnioLgWNvoaHXdKV/0UGF4JtDNU=; b=BRVQvymVkOqng/G0WFVN9W4htw2G8r+3hIxHnvkAttXhLfSxgTL8bDQifpUuT1p21RkAm7p51RKayoX2tZKdJGinnXN3Q6KYgpKsfUcBil80K91QDmhgl467fPg9w93GJDcV6CZkBJpML/uFHZQVkBfr1WTuU4V6uybobO3ZtIE= 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 DBAPR04MB7285.eurprd04.prod.outlook.com (2603:10a6:10:1ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.28; Thu, 18 Feb 2021 01:37:06 +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.043; Thu, 18 Feb 2021 01:37:06 +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-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 V12 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support Date: Thu, 18 Feb 2021 09:24:52 +0800 Message-Id: <1613611500-12414-3-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613611500-12414-1-git-send-email-peng.fan@oss.nxp.com> References: <1613611500-12414-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR0401CA0005.apcprd04.prod.outlook.com (2603:1096:3:1::15) 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 SG2PR0401CA0005.apcprd04.prod.outlook.com (2603:1096:3:1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3868.27 via Frontend Transport; Thu, 18 Feb 2021 01:37:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 360dd85f-916d-4505-7f57-08d8d3adb33a X-MS-TrafficTypeDiagnostic: DBAPR04MB7285: 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: t2BHvqdtUQmKdiTwlAaad1LE+HlZWTY3RIFsenpUcKyDLpDmEqLAdUuf2OWosR5neFqAV0OvCVD7bGZJYVmo2INT3/wARvnr4/+4vndKwFueWc21F96gOE9irolV+TPQHDfW++U6yt4qSI7DaSOZg9sXpjC6MjTe7ki0AVl2tM6hFYQzqk3KbQWAA2814eT7+DXYa13dZClwKvVJFhzlLVcJfGN9e2SpwLSFv5ULFuIVn+CGvE+aKbeC6J6nl6egzt8Y5Tm/c+xrUREg54J/mxYYuFWwjnVwCmk86bNYedvjMPZ21x579+HqNKW/rMbW2mbBwR6CGRFjnxJAEZSvPD1hnaXbIiyWIW70hZXgf9G+cWMGSTbAUDE4w65T1URNYXUnxoTOZycK0G+PfAQ2r/5jorMNvk36wWwiXJg50YES0qr9S+obgm0BWkn/F/1wMXhAiqGviZtkeQG2TYUUz7iYR3N4KxBsbJ7GVXsoAkLGdNpoRqKdHFCdBNBfVb+3QXE1gaJECL8kApFAoVOkI2bRHbpW7HV/LjVXYimi3lOfXXiCasB0XFsSaq5UAoDKsF/WS816+rH/glNMERphajylbp+qgbYXTKtUBLcrIdN1K+mjfvkg0x6l/GwPb0aZncvAoHMV9dq+Lk5V6bF9aOqu6lAKG/3NQ+lfzDsY6XM= 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)(136003)(376002)(366004)(396003)(39860400002)(346002)(6512007)(9686003)(16526019)(186003)(26005)(5660300002)(83380400001)(6506007)(69590400012)(66946007)(66556008)(2906002)(52116002)(7416002)(316002)(66476007)(8676002)(2616005)(956004)(6486002)(6666004)(86362001)(478600001)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: hPZgB7iBiqTGfypGf2tgfJROtbkuAadvsvHw1dAjzTWPhI04pJKnQFt6oIXAGbMa0b46ink1Aw6f2bbxA7YA3PsUT8BqO0xCEDgoHeORxMZE6TT+1xf9jN+jAmcijHs62XTgaSH/JgIeb4h3Szu16TFjuMkZXogHh41upICHjPoE26zoGZCvgH++rdhgJ5jwjKp04TC6AAxoUTcZjIxxmPgJUhEZdj1eD+L52P8U7pzoxLvHLcIKXCEUuITa681s5VAf//rQijw46bGw/p0UdXSGOhmA8k9O3mxX68nsj3Q1o1t35Fxlc4hT1y1Wa0DtYhIJdQOlxaoCY3vUhIt9pVPIOW+58HkhrU/yvwXwnQk8Y3epIPGDEO7vRqJD+OSrujTR0RDLt+p5bfJw1sWkNbahepiKCE0B0k2w5rN6oUAkbGW1OC8kaQATD/JGwpoNWUsEZeBbEEz/g1wiQO8Q3MzqsunDM1nDCfSX+aLWVQzZpKk9zjHk/NNR7kufam6XRJCOOTT9vS0Mvr+VUdrICkDFOiDkueoPc3c9AtAGcP2Y0xrEjBV0N6qmXsaKJDmEnWvGJ89kOjS0WAgTrknFeB4ocDW4IaOfw4x2997/8igZLB6vjvNXNm2oxJvatiSfnwnA19FtzdqzwTCQIXmR0+S247p24tYh/WgYV+2YJ1nvLUz1n3Skr3VeC9BausZcF/4jdVRa0QPA65jnYbwEDyy6XardBhZj5X9+X4G1KMC+wXma4lfZMX6MgreVOnV2wcxGnuIfex+r0MqgEPZD9ctfKg+ay26w9MIJ/tU7vPgkOtgD9oApl4t2kKpQgb8SwialQfJhHxkG+1DR57JZnVjc+RWr/ZLi/tLkqxUQ2Xfkx8JfitYzzKoYHb3cbMZ0qArJuMbBw/xvcoyt6BY6/riyx4qMuo/0USBHrH4XECgHjdqdRJDeV6IV5Sum/+6PFuBy3ocS8sdioZNX0VxcA1Y8xeW0Fe6YCC9F063lgl/J2IyIvEWLiG3Inmc6xuTmhRkEvwe/ryE8MmDPiPtWT0QcNEogC7pFoEBBh18FzblX9crtEIQXoJLANrXTeYToCGJNJIt7Ar0XxDgEwugyDuYirfDYw6DLz89chu7QPbfcSdW04WXvdpnZxnXoa+kBr1Iyubr40O14phsLaw1stJcc48vN8IAB3BidqH5/FOJHRbTqa862r6/dHpcDMtfbq6JhVlvOPD4Eb0ezQJ0/g2GX/chEzOagwnq0KnmJTz5dHeQ9+rTvTM4uLRWWKLEfZtW4czT0rT2tRfMU7SzGFwXl7e1BSWznQuArxXj/kzXX24S7XUwHJvPPS0pVzA2o X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 360dd85f-916d-4505-7f57-08d8d3adb33a X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2021 01:37:06.4802 (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: kNXBivtgT6TCEUnErGc8CFmuj8jjKH6mU7Ux/EdJJiG4WmxeQc1waFzCxHGNV23w8ANxtSXTeALZ+SSW2c4VKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7285 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 54d2456530a6..52c8e523506d 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, @@ -58,4 +74,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>; + }; ...