From patchwork Mon Mar 22 08:12:36 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: 406074 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370526jai; Mon, 22 Mar 2021 01:27:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvzzXixMCaAkKt3cvODYgrrt9zXk+z+vU1803p1Cn04p7vbLTZ5hSvZ3H7+dICHrJP8xCm X-Received: by 2002:a17:906:f953:: with SMTP id ld19mr17401951ejb.164.1616401662816; Mon, 22 Mar 2021 01:27:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401662; cv=pass; d=google.com; s=arc-20160816; b=VEmBZjBMJuV3gDdJ2eA+SOC2o0Dc3DCEkHgycuTZ7ai4LnGfHOayo2gHI0VshQn7fj m2XCI67vVQQkg77NwDhCn15LFS1DjVhKvwXye9zK/Y6l3ag5zG6t5Oq3i6Rp+uxFPvpe BewXW3dmWD89KZ4UEF4QJW17sGY7YaOQHbvEclAziONuXP03jj3TgbpHQh0mJlJiOGpp yN6kdAfztPbMj0w3LkcQ3OK2999i5KFCoL6iBXxQIMPa4/SyLrl5zO7aTibPV//aLhNN O59o1s2Zz1T9k8LY5ssYWVcPAXKy6dOUEECCyddDT+m/7FXIp02b4lzGummGpT7Pqshl QHZA== 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=DRMTXzMTDDos7jV77mCuTKaseGa+iEA4YO74WsUGZts=; b=HWmAS26Ol0eHgfWO8Nc0unkhigOJenK58nA6wiq15dYZSqRU7B0961dszZF8XaddST bMg4ke1SpZJKHYfzNwqGU4WQNFIT9efpgeqcapQOt+UX2hbVl1xG7ySgu+JZxoZTUtbk GisYQV1jhM5D5Xnd6bSjU4T+USxhrbwhenmGPY1pLaorZqNl2fWW0VER0O4OeV0DOPFB p99iI1kd3zkuDLADRZd8Kc6J+mPH3b1O3sY80v3iiVapeVD28Z3hTFinrnqx/eAA1z8z KV8famOVW+YG6KL+uNgYrfcWU51B6ja3LZ4hDvvUK2v9qIkJ7BB53GKnKNgX00XVmk++ YFaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=fLA63W7g; 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 nd37si7168148ejc.708.2021.03.22.01.27.42; Mon, 22 Mar 2021 01:27:42 -0700 (PDT) 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=fLA63W7g; 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 S230010AbhCVI1J (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:09 -0400 Received: from mail-eopbgr10069.outbound.protection.outlook.com ([40.107.1.69]:8324 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229746AbhCVI0h (ORCPT ); Mon, 22 Mar 2021 04:26:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EmC+OkBSBDk9WYlQsIUCnempHQL+RD09T06X0/hu3WmrraIUaGDFXjytF2bL8mWmfBJwIc9xpcAzC0XvGPLMxTj9jOi5UBgWstcUgj9wPa27dh1zidttAx4gH/PavHsJ/W7+rJdnUYdCWzLuEMKFgAkSO1t6CnkeOpshhsdRO04NyKhaz4TylibAXiCla50/7nu5MLIRmKeYIxI0j3oqYw7f4WmUMSNm+W79OmwxWg286YwpStUF3qWyBOeeX7P7yUgstf4+OYFg55FKiuBPOLIUro+sr+WBUz+wfeyw3PlnlWwCh5Es0gjYNXUhVYL+pf51dJCFkzOacRHxCQxv2w== 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=DRMTXzMTDDos7jV77mCuTKaseGa+iEA4YO74WsUGZts=; b=PLg4sCDuT+jjHlKxNhCeZRutlDbDKgZlkDQbc+jHyD6PlbVNrV2xkQWLkGCS0t5U+dmJxLpRHHuMinmdAnjpHhE9SSHAqbX3X1rcyOPREwNPlDCAX1iSYeZ+ezsHLt57XWimvlmiH7EV8hd5DpqqBCrN4u+QZoYQouLOQ2HIu1HsHrQl/DynLQcz8ZOGD/leSXhfnw4CEuinFSdqQK2mu+t7kycz0TI4TgApmyCwygtLdj3pAJmQCpCMQJ80JMUG15wgxNhnx3Dsj/X480L/UebIdU8gdYf+2n+QVGsyVgIeDDSy/XrPXqtPxr4heZzmIU4rIMDWuDoTcakjNPNb8Q== 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=DRMTXzMTDDos7jV77mCuTKaseGa+iEA4YO74WsUGZts=; b=fLA63W7gdRPnZ6uP9O6frc0xb6N+PNG/AoLtYa9xgUAb0sbQDqypdRdX8ejFtJNqaZzuME42/DPX5FRjjAdl0n9SkRCO7xU63RWVWHxFkpopPMeKDxp0PvG+s9IhaprPSsb/imqbeR28amuEHW6mA+k+IDZP310o1dby2ogl4Ec= 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 DB9PR04MB8316.eurprd04.prod.outlook.com (2603:10a6:10:246::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:26:33 +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.3955.025; Mon, 22 Mar 2021 08:26:33 +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, Peng Fan Subject: [PATCH 1/8] dt-bindings: remoteproc: imx_rproc: add imx, auto-boot property Date: Mon, 22 Mar 2021 16:12:36 +0800 Message-Id: <1616400763-16632-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:26:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ff24edd6-b7ae-41ba-b81f-08d8ed0c3375 X-MS-TrafficTypeDiagnostic: DB9PR04MB8316: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Nwa/qXGJkoq69L5xvCILvz46aiZU7bfoRUkczySu17GY+x0slbQsrKDeOzuQxnHMxzgAAjKFOL1qRC4EgroZer8y3AMzo67qZqZue3bln/pOUM93vP3DiDQBhyNfhCBNAzYSXZTIFLgpcBLilLodUYFMybiG/kp2vhQ5wL6UNAXQh7e47PD51B+TbHlPKMlh4XlhumiBLBUrohudd30wCL3JipSt4dkjV4NNFflZRQ2B6gzoIT0COhbETOq26LQhA7qJrZr/Zt4sNc1zN4GCrxpvxQT9ukR52SRPPFVYf50ZXy84D+WjVeKNA3lOVkGATGmop6UEBgnAaPrh04PAUfSlBAAcQalsCtm14HA0AS4AMA2cpbL4ufpxwmWvRHvUyetUvhqx4aPta+GqPls95DZIwl0oB/bujN/IZMDKAd799Se4ORFloXRI2izHgZAix/Rnx0J7WJRzOl9mWNqOouqFgJ7vxBIVuO9sC9fCSvTgJrjzgAaC04iMPS1eyut07LKnHF62PNP7xZ9RbmFhypmrWyhs++UT30mHIG5/eyzxVW74v7EGgfiMIp6lIdQwcd0CvQtCEmAJMEbd7zPYrISHI1JOQzyAC2pnF7+4nJpHTK36yizJ0xOpej+LSw46+4hMsRQIP7yQFgbgItRZ0dzZPF/u6V08Ep2gbkDdP7FWR3bLZPiLe2VWNz/IzVkO 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)(346002)(376002)(366004)(136003)(8936002)(6512007)(6666004)(66946007)(66476007)(5660300002)(83380400001)(9686003)(38100700001)(86362001)(8676002)(52116002)(7416002)(6506007)(26005)(4326008)(478600001)(2906002)(956004)(2616005)(4744005)(186003)(66556008)(16526019)(6486002)(316002)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1RzH30QMa4146q29xcezRSIpw17VsSlzBixtHDWPKxgrSoItT3WcD87dABICYAsL/DKl5xY0cZznemDA49LkoczUoBnCPcMTxOCZShX39raXiCY5b0zFEWMdTpqJgnqcyyvE+7cN4PjOa4A0s1nPLIWjYljOoohImbCKiWzMxmPqw6J5r6Ey3nW4mntxbNJjR2fcosfa6ofMpgSV3cXxeYH1KEdEtZqaDYMZhqMtGQtFhS15xjaJO/GF887fQ5pZQSJFMzf8qlVZHsnendqSz408idPmQ1uf4jmFKxcRQYJ+/5WuottM35AQwbNEH9RFz1oau+IBlbMQKeqtkKUt2fGgty/2cZXSycptPwNtSRw9nC1LwSVzNu/cALg5VrjrN0uGBngh8WB3i9jmryTcE0e1l1JLj3qnIaYEU/DbYuRODGeKEdQTynGmRfFWNpGsNDysZd1TeNx050iyWEs04+yWigaIo1hJ7dTmIBR34z9H5zoMQsTebeolOBjICrxca4q3TRFVdy57YRLByFoQ3CnpqaUkIz5HwxZBaxQSCIUHyi8h07qiAf0l9m/eKfKNSwLNzG5I4iuZEv0yyrST0MquYRp9Jgb5qtjdoP1IvWRYTugdtxVCJr0Gg8bkwIPO+y/lS6Eg0Iuyuz7aYV24szLf4UGyLwZWBISe2gZlVe4cTBqXPB1TD3KUoCIRSq3xBqUthT4iNMwBwMxojFeY3HX4L+JD2qVF6Cex8nVQAqBGBrrQ2lceDYaGzlkoaLGsn2anHSJlkQ8qM3rsvKLaS3nQK3jFQFS0X1Q04xNzycLD9L4yUaLZVQ4BPAaa/WYUAX41T4PTzLv9rL3AiBcFRRemqSte7YbWwJF9ywheCsKoyMB3FK1R1nuMo6yJmDXFWYlQQ4OYZ3YZ9E02+CjLdBGMc/bt3nmLNnzUIzKx2M5k4Qc5NDNTykMvqQ7FC2zYAPvH65TcHEAkPJt8p/ex0OvDllLmSuTwTm4XU/y1NLV0Bm9rNKfGQ7sBzM8CIEhANhcI2Am0rpoY5BIIadCm69bEsgCrwyWXfeZUmAZSTgLLrtRdpPFOwP3EMZxir6hdWxSMiY7RjJGLkAO7Yat+GDVRZI7XCBi6ua/Gye6UA+0qbdSdGr4X90SmGkezxyTyqJjxMBFA0p8b0SqAuOwTCuhLZqRTtIRbMOBYk9q2hq+RU5aELgL96CNDodvNLzB+Yqb6vAeuHgTpHr9qbY4S4xgaz6sAQ/EC03JgD2LrovNc9nT7gsDj5faHzyELwFpB6cl8vaBOtHXGzR/T2CvDrLFmVALmIwikOPb+LPpFlhGLEw6Yxm3yMYiBADCtvG0t X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff24edd6-b7ae-41ba-b81f-08d8ed0c3375 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:26:33.5636 (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: sm7xlYz4OEYws9kSzEUJFf6oXAP4ZczR7Tui7aGx4HVZeFc2DPVzxGM6yZDu8uME7v8QMMywY+MZqGXLWsGz7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8316 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add an optional property "imx,auto-boot" to indicate remote processor auto boot. Signed-off-by: Peng Fan --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.30.0 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 208a628f8d6c..70aec1a2e86d 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -49,6 +49,12 @@ properties: minItems: 1 maxItems: 32 + imx,auto-boot: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicate whether need to loads the default firmware and starts the remote + processor automatically. + required: - compatible - clocks From patchwork Mon Mar 22 08:12:37 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: 406075 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370537jai; Mon, 22 Mar 2021 01:27:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO8eRtj/8LRTMRSU2g5GxWTBaUBd9V6G2WOKgARQMtnMyLuoWGBIzwi7Tv4PoGWxh3cZq1 X-Received: by 2002:a17:906:5646:: with SMTP id v6mr17956220ejr.126.1616401664238; Mon, 22 Mar 2021 01:27:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401664; cv=pass; d=google.com; s=arc-20160816; b=Cbtwywg+uqOAon/DJlxmDrKgavixvibze/CyTka+J0nEfsGQsUeo0Ci6zjRS8uyFTe SDiv8tiOhLDFJoH0+mZCKYY55yFbTsBh04UZtZDzcg/DhJguIPs1ImCxZM3KRKjGlHX+ gKlj1IKjlneA2CNCSNL0sfCekgAfIYuUVZDf2aWeudjFHBf5Q+7SzU9TxqFzUW/4zgkg z53bT/0R4r+hoYwcjFVnr8v7giX7Uu7riLm53D/l++81Lsb3htG/Cd49wKPx685FkPf9 dyuB11bwndl3SlcK4cVPr70i5B/8sVLcsviqI3IEZ0n5Puiiyj3zP4OoWyshnxOT2/Lu q6Zw== 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=qY6LsdA5/8HJeb3R+ChK1pz73fGxLYmYSSDZI67rwo0=; b=lhvT61iP7su1foCCpQe05xkv4zX/p5IYO9BOT5AYuWL7FiZJxHEJIHnTPrLq8+9QPq mkuPh2Lf9FymPzQjXpIB7L64f7gf9jq1YHTs9By1v1Il6lzRheFwAIIe6QHe+V9h24Db fD4S/mRA5/n6kOkDjFjxwJrmzsHngjcdn/AHmkzHRWwSpp8LH6swuUv2pXZJNghhPMdi 6agaf7KiPcN0sxclnRqEjfYStKbP5Qk5AUtvevHrs6PBfzl1ij0mCk3obOZmDvSvSizJ AvykfOAXaYVwFwQOjEAfpAUKI/gBjeeOSPET/ifDfxVVBem51OHvkgzhX9TJq+NlLJyt P1qw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=KqBDSDOL; 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 nd37si7168148ejc.708.2021.03.22.01.27.44; Mon, 22 Mar 2021 01:27:44 -0700 (PDT) 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=KqBDSDOL; 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 S230015AbhCVI1K (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:10 -0400 Received: from mail-eopbgr10081.outbound.protection.outlook.com ([40.107.1.81]:50146 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229455AbhCVI0l (ORCPT ); Mon, 22 Mar 2021 04:26:41 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AyapJXqGHyS5F5Z9uvBDAvsFHs1rbpV04e73sT3xU6liW6rjR56bo1Cui0Nfa2+lULXhghmx/iQpYevNfaaxPg66r4N4khcFp9hZB7ObEkHFvRlb5cxKC/+nY5HHdnXf4mjzg0qIDCNSgKRwI3ePUbK70S+KwMi8V/R7WqxhuFLVXD6GLztqjr/98TcoFXS6PBrw0HwZkjr39Ixwyk0NQfN8rhi9ogF/4A3R2losF397ygQJZxxiC2beOmWT/QM1girmPI777LNKdLXis7TLz8LnhPkuIM5R7aKXpm6na+j3CakHSnLOBDTvghjN69Pl58786ajEjV9ZdlZOsJcR6Q== 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=qY6LsdA5/8HJeb3R+ChK1pz73fGxLYmYSSDZI67rwo0=; b=F6Oc1iPdObweTOqc3TLKVNyQdqFtj0FjXroBOc8jwS8pYg2MU3Gm1fZDBUYo0Tmfz1ZJT4GLeeasryjQnqT3xpOBGHYdio0Y4o0us4LtJkF9HFrW0kcH2aIkNqLtaMpRnmtOru9VCcJqsUXf0mhXgs1mSD/tx5e/FTUpKlHFn3fU8Ijjtmtqp5mBum+xH67E3wFQCxXbKZR7dkgZGlyM2GAeoIqm5UUXiVXUzRjOZCjrE2j28YK3j9pJvh41E/ovXAIWdxsu3JzCWC5oYaCughY/O4Mz1AT8CCFctrhYadsAblpsGIKgNNSzxDbEFWqujHpZOATmdCNgoxBcExQj9g== 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=qY6LsdA5/8HJeb3R+ChK1pz73fGxLYmYSSDZI67rwo0=; b=KqBDSDOLratdQ3xpqHxz/WPX+yTqDZ8L7iUxUf3iQji3qiY0uTzA97Gp5V+CLU8ic/HVhHDJ6X8NbQ5Lm3Tu9Y1E90fnjUXaWVHciZb9ssvDrMFD4GC/w+UlaxGfueD9PDOV2BXKsmfxV4Ej1YBBiNhtbymoQGscYSteFEgYKog= 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 DB9PR04MB8316.eurprd04.prod.outlook.com (2603:10a6:10:246::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:26:38 +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.3955.025; Mon, 22 Mar 2021 08:26:38 +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, Peng Fan Subject: [PATCH 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support Date: Mon, 22 Mar 2021 16:12:37 +0800 Message-Id: <1616400763-16632-3-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:26:34 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3015358d-4788-4499-7c96-08d8ed0c3641 X-MS-TrafficTypeDiagnostic: DB9PR04MB8316: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NJMubg5in8vmhcsCRIAzW4NByhHbfMG2w9RdnOXfRqYdJkhJTvl9YVDDdNqzr91iY9Vcz2k1Zpf9cmKP4Bsl969XvNma9D7y2c6bUrXK3SiSz/Bjm03xdjUoWYfmR1zCjoUvBAIoAcvHhHlDnlLcSrsb32fveTyru0Yx6CpSNmnK40/svt3I5fqMqoc2bfk+ZK8od2Ooe87TWsaWOaz/16ahXAYhVXGE3IZd2RupZ6E47CQRkH1cg8xdvFteKKNWqUUN/lDTVwMPPKcZakFIylUcEwfAFwktfo+cGsktBmPUYTZ7W4yTcrNE/xvbApqaZ9gzcZ8pDr0dL7hhu4zjJqHCNwsgY254LqaH07wp+VlS0Pl1uwhpGFS8YDwt/Uu4DGJUm0kQqPM+dB2Dm2iV4r2qKu7ShXDm9HmeVVCXIZ1LZoxG5jnoQdDKKKoX+qg+3GZcvG/srP0Vm6fil/oXmOITsU4vtIMDIr9u4la4PNkJrsRoW9TUkG8f2cH7tyYR8U+Hlk1zAJzqZpOmb01o3/wWpQfgX8AuFLOXlhMrGK3cCzHuw746vWX2an8X4TKKOTxH6r+YMhZ5vYYh5KxGU0lAoQUjbKa62kV5xhqnj0sAbbK1LENCAulgoi+f9K/yWAj9cZf/SeKJoKpaL1OIkpeHRrDbGe+vR9Ord1O7WAd8INuQy8Kxu0Xi3XzcWHp8 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)(346002)(376002)(366004)(136003)(8936002)(6512007)(66946007)(66476007)(5660300002)(83380400001)(9686003)(38100700001)(86362001)(8676002)(52116002)(7416002)(6506007)(26005)(4326008)(478600001)(2906002)(956004)(2616005)(186003)(66556008)(16526019)(6486002)(316002)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: k4eNw+vg0ZD2S+hg5o7Z8qllh5waEd2ou1BcJ0ZioL8ObubBVJ1Rc23ApDj0H1/aIas7Z8xN4sDZ5StSkSDRnrB3ea4rsb8hYipfaogFJXiXS1rh2lSL6BjU8AeIvdM+U3gETst1uuWLC8XFFhBP4bliUQiEA4OI4E6XIGaDngl6LU4AVfntq2XlGEAF87nE1mCko/ctGRJrJuSFBC6ELVnq3Vwv0uYPTClg1CkK/5Cxdpbn6Gk26e/AMs8L8tynM/9jDqpfTtmLCaRb9XTPUJiDM6VUFGuo+4n04lwPf5gn4IqHA3Yyr8V1/hPw8ybvhaV9SPnL8bFCoYqsm116ZKMDkQM9IqMb4QpBtH54vj2OgZXNoywdebmmZO0uCEXkERsA6d4JlXecQO3VnK9neDtI+47r6h5JVZ3+SF0PW9Xb3JHiUmH7XPqzilpHV22vlKDu++ZHoeyV4+M48qnXvBBaDjmFRgPya/AfBfUAW/EXRSF7aZ+/MghIz/ofY55EE5iVcs06zWrXEcZ3l9Ow2HUsxyf3kZ2OSb041NHXntmuUK5hOcEAz+dyQqiC7yxWhvQQRdSBzCAJUU+sXFKFoA2LK19Pzqn3twIl0BNXKAdt8W0m2EaCZk3ZqLZSf3JSs2VtDGJS8E79hSMufwaxWScuU14lRbhN2Z+dLrUNm8YFIwuzUHE/t6NaAkzXsI7/D5RZqIz7jYWAe3ICIkcGeIi7dlmqhX8zi2X/Pvy/FG0IDGsqNdRwiuzyK1hRJ9VaBq5tQLvYXmb3eli+633H8bA3FySIERw5D3RxGfkYu4BZcil+rb4BwgGmKlIGVshlVT2xJUUeQVFwCgqOx1JDXxir82VoDyKO92yqi7f1NAITsOMEWV/gKS9ZgSBkMLBK7AkLofT3/P0MWO3QipEEct+B/UegFwqdCsrRgqyZy/uqAsv2SxE7m7Ons3hP/66/MZc8vb/vu3ru9JIrgOLexiNXsn0KV0+MAHiZ3RxcUKWfWvyWeIGsKI+jsV6EiWs5zxEWmIM/b1YXfLBlFO20XASe/jLsAaztVnzLkZREOyRGtoAVMRfgnkHq9zDxhZH0MCmv88/+41/W+2OdRO6QwD60pn7HNoxC+8eJ3LQO7pK5bqnzu0rDe1iQDPUh2g7xXnAyw7jbNZAmm1z49408kwQBQI5ovys3L7v/BA+jBRTKiEjYNVy/loLgfJT10u2FhVHKAateMm4CzyubsXSXsNmzEAZ8nmRBOVf9Tvs5GSvQb2G4moeldBRdxvYWGkwWAhp+ie2divszvKncQbyZpdzoM3tkSinpokMXGmOryEEyyGsJMSGQLnQH5rsdYDwv X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3015358d-4788-4499-7c96-08d8ed0c3641 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:26:38.2125 (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: LNOkTAuOhwd/N5bkTG6DLGtbhRUcbiMB+ciQPQrQaqxYstuzBthGy2jokC3xxyj9LifII4gO9ZwskO1C24moZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8316 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX7ULP compatible. We use i.MX7ULP dual mode and in which case i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. So clocks and syscon are not required. Signed-off-by: Peng Fan --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.30.0 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 70aec1a2e86d..3040420ad6a3 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -18,6 +18,7 @@ properties: - fsl,imx8mq-cm4 - fsl,imx8mm-cm4 - fsl,imx7d-cm4 + - fsl,imx7ulp-cm4 - fsl,imx6sx-cm4 clocks: @@ -57,8 +58,6 @@ properties: required: - compatible - - clocks - - syscon additionalProperties: false From patchwork Mon Mar 22 08:12:38 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: 406077 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370548jai; Mon, 22 Mar 2021 01:27:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfQw45DoAsklKm7ppMMVSNyXddNy925LSF7iR8+pj4kCo+Jq1OFl9+rsWdk619G1XFli8v X-Received: by 2002:a17:906:6a06:: with SMTP id o6mr17526663ejr.306.1616401666197; Mon, 22 Mar 2021 01:27:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401666; cv=pass; d=google.com; s=arc-20160816; b=wkGyZKEBQclUQkbIAF9NY1pNknOrKbh3oXuFMHbbyBgfrgYaDy3UXJ8CDbX8HIr3iZ 4DN/7PVtszJ+nyYdxwh+6C14eOo6SLAOQcf4LgooaeYGPurjmDk2gOu0VxUCK+hOMJ8B gRJknf2sprbuw6t3Gn+VBanBefa8M+LvWXFD94nA+ixjTVZy5L06byX94EG3j1qi3CzM UV9v1DW5pEwRDHDts64UQdZ+iHGDEsNxr6jpZUd2gK1ikbDnVTGMWhXzrA4b7WLkkp3I aiBRwE07SI6/V/53ZqTJH/wcsOSSY7GRQSo3Dx9J3kP5aVuxWgX0kujXGTd4q7vd7Ere 5ZQA== 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=/40Hf9kELbcDGZl5RtawUldwr1Kv4VkzL/QMfgPoJHU=; b=hx5A3jzyb6wzTLg8X4h43TfvKqphX/WrIlh6y6MDTBECrapT5vTm11Ok7G9Ym2ul5E 2zoiklmkutkMPwIHNF3G3HlpRhqKIGcnHat/Y7NigJ99ymbEDWxgVp9TVKOP/pOysQsY qebwPAlCy4nNh/G2yTnmNLwRqEoaIVW8+Buaeliay4wW/Stm64LPEp0/HHtopXwT9NrU VLw5Y4MhNYY2uPrH0W+hjBqMC34ZB34VFEjvyUZIGlyC2Ua7cIMtSyAb+WiRnC7soWub OdRjWUvuwJ5LQ3aqEaqajMxd8nzxnXIfK9UdEmUj14pfuhIJh39k1q4GbtxuD53NvmXx Se5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Fs90nWmu; 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 nd37si7168148ejc.708.2021.03.22.01.27.46; Mon, 22 Mar 2021 01:27:46 -0700 (PDT) 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=Fs90nWmu; 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 S230034AbhCVI1L (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:11 -0400 Received: from mail-eopbgr10047.outbound.protection.outlook.com ([40.107.1.47]:20032 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229941AbhCVI0p (ORCPT ); Mon, 22 Mar 2021 04:26:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iXBHl4sefEW5o/fUkBvtSeU4Ry6TsQNRAWg7irM5jrAXY39EP4BNOQNBoIFrtIWwLIsem7IUwkxQBKyxMJ0YcsYOFkHZae8x1U6PlM0Xp04ni/rqJAA6hEgeCAivjsJnvD3LfFHbcPxG+2FB3fQgswnShLet0HXKTGsVEBkXzqAhHRZAkKnCehx1HSDf+SeG5uhgZuF6by4i/GXqWZzNwZycoLvp6QTa97qzh+W1e2sXAAL9M7e2qPo6Xcw+x7i+FniBinPkMOdCcQ0wGXIYxXBGiAH6XtmMKJ6l/5uD7KbNpDeo+Hc0N4wsm53f70S3aN/kqRlm89cQt76uIQF9pA== 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=/40Hf9kELbcDGZl5RtawUldwr1Kv4VkzL/QMfgPoJHU=; b=ML2G+AV35GYY7g8OoYtk2654hbfbRLw1wM95em7YvCpOnkmU1txL0oQIzl17PeI6HeSsgjHxAD+BdziU4N+bfVsjpdOlmh4eXcNSqFNSQ0NRRXZmD+TxnBumH1NT/P3UW8QkNijqc+Df8by78ZNvI35v4lCgTVpE1hzZzPmEVnCwn8BmHnTqFvHXN2tif+4wq73vI74nxj7CggiKGhHJnLlOL3YGMsCL4caKKAzJYdB1PbXCaDNj35OOcTwcdI6yAjeHFBJNYGNT/TVYSyFJVu2rBdoGTVWDLgOun8RkUOV671UGqhWRuQb3Q9k0BB0bWkEyP4Aa9Lbs8jia5ZP/2A== 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=/40Hf9kELbcDGZl5RtawUldwr1Kv4VkzL/QMfgPoJHU=; b=Fs90nWmutxka0/WjCrKPJXVHtpB8niDxSw013NEdiPh87n+IvS7R/OmBQkkYaTFJ3nwnoEnGPGYCD1PhjmCd69DzweWzzaCEzLrHxzUuPOpTBA7Z6fwpoAhxYeL9Rs5SYUF5yKzGrvvZOnIgnwfuROhz2mbvQlGFsBjJb/eYmEA= 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 DB9PR04MB8316.eurprd04.prod.outlook.com (2603:10a6:10:246::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:26:43 +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.3955.025; Mon, 22 Mar 2021 08:26:43 +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, Peng Fan Subject: [PATCH 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P Date: Mon, 22 Mar 2021 16:12:38 +0800 Message-Id: <1616400763-16632-4-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:26:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a9bcb5d0-26ca-4f55-fbd2-08d8ed0c3908 X-MS-TrafficTypeDiagnostic: DB9PR04MB8316: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:243; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: btfyVSdClTkJSyYO+6dLs0tHNLk0cMGbl5iRFo0NSoY4oo2kerqMbp1HQCe3qWBPuFwDrj73CkuYlj9cZwEE6/1r+28O+ldqPRAqyhS6IU7pSQkz4QiEsmTRtJQUpMt91fKQHPWaZ+oCKLjPSVCwY4BR1VnO7yhuagLjF7CNl8gO+NaqT099jE7rZGpzIQTcnpfg5hMGB3OdSc1tfa7Uqe0RORMS09o++4sH/ufP3EcAjgSsxBlKsngjxvz/KNdVX5F05zWZNfuLKQ3oTaa1YgLpUIAiGTSkuG9CfZnD44sEZb0gW9/cBuoNEq3cGDgvbhQTncCNJQWiVbAzNrtqdsVmZ8CuNHfhKCaL8fusOA3jCwZp9V/zHgl3BkJZZ1Nwjx5k8+ZFRAdfy9+f3fK1b5ilZrOvHsFD6OZm116KqEWrgUeyyzpAjEAuyENkY0fhxftrbIZnF1hGk8Up1LXzBWfTRciX9dhlngoAmXGrU8yN8NaskWlafbTo/Lv3f9a9m47g7zn5KV3UoDfhfQbVV+2ssN1GrnwrPPKHuG6sfhEI7pM/o9/rWQ2KTiNRV2+GMF7OjFuvjSCXDSm8b0OoAoNmBfZTj8vVsRAl4TNOmgKcIvu39tmaz+WFvfsvpVTBp32Zu4ytQG9msG0SgCaAZNtp/E2Zc9hk/b0YpxJIoP+7ywggQwZZgRNeONG79oVZ 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)(346002)(376002)(366004)(136003)(8936002)(6512007)(66946007)(66476007)(5660300002)(9686003)(38100700001)(86362001)(8676002)(52116002)(7416002)(6506007)(26005)(4326008)(478600001)(2906002)(956004)(2616005)(4744005)(186003)(66556008)(16526019)(6486002)(316002)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: eiMkhgkYtpKO7ZEp8791Y6F+Alpm4xes8/rPDlL2la6EHxYLPPbkUdz6ixHV4AQOd1SwNC2FApKNJejETPZmd8PQt0eWjcJHe0RJynflIdH39apkNPLyc/ieS9Paks40bAtGge0O5dWy2JFxrWW+JALBskiKIS4+a9J4TCcitbRHNVHCKotSEajO4BKB24S86EFxeKowWrax3IgW7FuUkRJ6GsyHVeqzxrLngcJglUUKR3wCE4OEhrOY9Z+LfdhAz5Y1CLHm9ldyHPPMLR4tAgrRTQ60/DMHrAjfZj3DNcUugQ/rDnwsOVXP5zu8YipcUL+Ucyqd7xU5JXpS88I2bjIjdWbLJXftnmQQeENbr4I09P9TJTHvrpHarHz2bXOy2d46kusOlk9VRqD3+5YuNcTHQ+psTGuNRM0SxG3qr63Lnj/F2W2id/k6fbqRPQlF+XyN5z/RE/VtVGLtQEE7A7Y3H63/wT9dZtUdvIu0evNt5JIxyfIMN8HTbhCAsmbkpCCCVGKiXX3HlFCQ0IUQt/XG82ZC+vTiM8RKgu8wR0nmCSPbqhw8P6jZIiVzxrsWiRm38IOBev9CrHOEXxoZoJhAqfg/TYGTpZ0HbrYI7a16U1tnfAdNfm+zBeYsDkKnQaJYqYYzU73phrT9RK5HfhDMJVCX0dqXCjdQ4d7JLupTimDx2GginvOKLP9VFmhR49zjEmnlPDgK0UfRD6omlSG5ajCgCsAnTNfqpZQ4NlLbsUsMxUX6pskpzo4xIdZ3KgdwDu01aTIFegChBPEY5U+Rto7NIv1CtiTkXrZ0wOEEheVIPre7d8k2GiLlKAcBzCn1eNE2iP/AH3h2QdQTvPrDdsOkIcb1YzLsAy0gDl4BrK1s0xcFXGv59dJxSNAiCe4NuHsCOBPYBaSpp6XtxCscJNrqLG/7twMJFhJ/2Yz0Ku9FLGnB/nINv2OuZ0LD/Kfo1WfWR5yqbLhPNeYcOmkpDV8vV6aOe2RJVHFo2sZP4Lz4EXVjcd4rHMOXC5CM2iRtasLgXWZjlGyhlDDtu70wPud/lDXxyCNgDLJ0Ykc/IlIsz/ySHNSqOSy+elsrdVvuvvxNNnZwFedV0v9HH4DxwV7eQW+c+NfE7Uoad9tVHLsvYoNcuF8b51xoLvZYiCkeGBnQpHqIopfJxnfoMYyppYGaOgicD4+ukpXd04eeKfBW9sKkeHGdBPZ+fAJld/aHscaov+RnHbuS/PoJPwa7PgiYOLDZ69IXuoB64GRpxT5h1yCDHcdDgzh8Juxk4B1QcPATQ62hEgS4qj/gH/mKC7fPcAYUPU0u6Ek8vl88Z9Zq4Vq1Y+XaEl+iITA3 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9bcb5d0-26ca-4f55-fbd2-08d8ed0c3908 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:26:42.8914 (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: o3pLxXpmFVVmtAEjv1qnPotZ/rx6Mt0qXHs4GM3KYyTSV8Ri46MRCK9EZHlMK3YNPfsU+oiBFGaERPu0jKMOgQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8316 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) compatible string Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 2 ++ 1 file changed, 2 insertions(+) -- 2.30.0 Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 3040420ad6a3..dea92538b983 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -17,6 +17,8 @@ properties: enum: - fsl,imx8mq-cm4 - fsl,imx8mm-cm4 + - fsl,imx8mn-cm7 + - fsl,imx8mp-cm7 - fsl,imx7d-cm4 - fsl,imx7ulp-cm4 - fsl,imx6sx-cm4 From patchwork Mon Mar 22 08:12:39 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: 406076 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370541jai; Mon, 22 Mar 2021 01:27:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY+GxhtUsFi3N8fxkOW4rijo6NYO9tr5tQwWQlWFS8gPQbXqZMB3uyo1xvlqVeUkprbXPh X-Received: by 2002:a17:907:e8f:: with SMTP id ho15mr18451719ejc.541.1616401664598; Mon, 22 Mar 2021 01:27:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401664; cv=pass; d=google.com; s=arc-20160816; b=RdBLg0aD+rvBv9n3Y0cfI8DIvgHDzfkZ0UNX3pibeH6KH95BwPu+QG648yg3pbJ1EC J9ceVyUIgHiY1Zjjuf6BIvItQFMl30ukXuoMgEklMbh29eJ7dAwV0NfvgkEvMLLgXZRQ ZGlWkgmUe3etnUhG1GGRQ6z8HXzj02QOJrS2LoYzqIAjCWQWS/Mij480Tn/b+hvCO3CE 7bDsSkyUzvPusJf0FvzOonaObcIP8kT5+czKD4Y5wv1m2G+Cp+VeGQFPEtFsy45bCfec NiGFBpbfCRZTcqzhbLZh0XoTmCZWxjpHf0x30l0RLyoX4bm3FDYEO4o0gUJD88e+P6VL HlXA== 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=4H98Jz/GASDO+bUQz7D0bhMX1G6nLTSXpsXRkK+eo9E=; b=clbs93HeKKMmYPtP+SzmpbABJIuW9MUXdTbZOZMPKzqYqc4HHSbVWsidO5smomqYxr sGBo5Pdb2WIRDRWEsUNTGZff/X4INmDPlDayw3d7lqmG72lMmAyFk5r4kNVxksqJJ7by EXRomVUS2HCAjKLayQ1Rfns/UioTRhLHOtbT5SJE7pThNztgS0Lc9zP/42/nXHGxwqsB 5WZUcBjWv6Sd0DZ0zDtppgjNyDxzrqzpVfZ71T7dNC9cGdXoJqYUHoLTqp6W0fWxeuVi nhQ8o09j3yXsE+2qSZctAAdTOXbR8duAjBbRhFjAQlZvhLs2Io8kjwLcRzFo9lMqi5Yn KxOg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=OeviyR16; 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 nd37si7168148ejc.708.2021.03.22.01.27.44; Mon, 22 Mar 2021 01:27:44 -0700 (PDT) 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=OeviyR16; 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 S230041AbhCVI1M (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:12 -0400 Received: from mail-eopbgr10060.outbound.protection.outlook.com ([40.107.1.60]:36614 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229614AbhCVI0u (ORCPT ); Mon, 22 Mar 2021 04:26:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jf8M/nZxGmCaOdpt+jUG4A6XWJBY/g7vyji6Z/fRZ6VbTyKaKC34sttjR27H2u2DQkyKXHGITZzKM0+idzzPiSNSH8Kp0nrLgX7cmfopzh/qW5cfC6RrTrSWZlItOpyh0MOe0r46tVX9jwz6xfLpq9GWYtjyyS2jN0fxA1kE2T3bxxouu/SqkeAsjsC19wn07BBLR7giTI5Z4tX9gqkxA7XM6aj+KVzYCwPPiKj6hDbwnCh2HQWdHI6jCa3o/EFnJfJx4JezuVefsdOC7wXs5eu+96V3H9clip2oLShspz8r1iF6Cr9TWycZPhmj2Hhw9y4jX6tp97x43R5yEguScQ== 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=4H98Jz/GASDO+bUQz7D0bhMX1G6nLTSXpsXRkK+eo9E=; b=TCufVAePOrI4u4Hvniyj6Ff1bs1lI6ltgfYdCFwmqGipSrm7KleuHy2k7VT9BOAVUj1+2Wc3QjgUJg+C/PqL+vT6TIYGuz4iE+byZSO0KvhVfpH4GChpgsf7tP8Zi1Vfu0gFiCtNF5F/h6PCzx3SQnXvjvzMT+sAuz2lYybW52wUewb94R5gwsYHsuFJDhXdMbnm8Ri0bp+23lI48n9eYOS6FIy704SkSMY5pMQRgwvis49wRpBMfOYfx6LcH824am167EfKjIgUhQ2vZ8fVDb1uBC59R+xIPck8yA9JOMlNKOxmxVwNaHCUAm1R63zW8Issu7pyQQFiI/TJ0rKs3A== 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=4H98Jz/GASDO+bUQz7D0bhMX1G6nLTSXpsXRkK+eo9E=; b=OeviyR161gvac2TD8qVakw8FW56bPVVGn1Fp6pVxxlUvfnMdkg6YvQ4w3dDdMoR1aFK4ad9KOKYfNV6Gml7Zc53be31ePCsxVqVpR/amk1Il3oUBJWu+udvuIlOz1cvvZ6PtQLrZ1Ds2mMQx5IO9hofsth1b2t+8jmCx6u3ae+M= 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 DB9PR04MB8316.eurprd04.prod.outlook.com (2603:10a6:10:246::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:26:47 +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.3955.025; Mon, 22 Mar 2021 08:26:47 +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, Peng Fan Subject: [PATCH 4/8] remoteproc: imx_rproc: make clk optional Date: Mon, 22 Mar 2021 16:12:39 +0800 Message-Id: <1616400763-16632-5-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:26:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3da0995c-8368-4685-d157-08d8ed0c3bde X-MS-TrafficTypeDiagnostic: DB9PR04MB8316: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:632; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N7r0HQYSfmyi3y9llcjF/9lQan9KK0C1N37TGu9EkRc5OzMO6f4UTw6IWFPE/z+wDtCDekY39yNtO6UjvqJDgm0HXw2m6RRhcVeIipDxnTarRJQEsK+nlXQR+lOTN4Q7qh2LkWnXPouBZoAbb1xEyPJKVQHTeQ0KWcIM7Znl4bjFClDvdkCxnmIDu9fcyNpuEGCKXVUDfMdcFRnqRZuGSjEzg+u/ytPnaNQzVmLBE0Rn0QwcIeCFavQ6mrmecFxm0SIkKO3DYRLXMR61auJHrK0nAVjUq2VrUohtsC7K9VQ0EOvdXyJhpP4trRtn0GAnfNbt4v0SbNrQe9Oe64q5TbmozLOErkCg+SLqoX7eGCXxygJJcNcM5BTcDqzYuIQB0wT5u0Yl6+CFzKt0cNQUuavUIrd/wGDdIyiPFs4ZFNWApposvkAouhHC979VPJysRYt064f9KNW1jXtwmOITGSGJpqfDBKhWo9d9Q9H5xtBbTMeA8dpkgjNohUoKkDmSRt9DBQLLPsDf8B4UarkMoZY/EXem8WcjhqDqO8xq/jRCb7IKBdZLZLDJfejotO2iZynhzSCWPEhvZr0/rUTAH/BHFGmPmG5e+oJhgR7gqppcOQCk9+FKisuMoY8Ztep4gmZewjg6GSMZujBGHG+qIQ2fnXy0f2ybfxZHcszgohokytSalbx6MMM4BhsQNBwg 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)(346002)(376002)(366004)(136003)(8936002)(6512007)(6666004)(66946007)(66476007)(5660300002)(83380400001)(9686003)(38100700001)(86362001)(8676002)(52116002)(7416002)(6506007)(26005)(4326008)(478600001)(2906002)(956004)(2616005)(4744005)(186003)(66556008)(16526019)(6486002)(316002)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: zWUMjYjh1p7vw6B6U73gBeP/3oVHRbzV/8pQITd6F0WageSR6hdGNx74d/fVhz/qzGUh5WGH7OUP+rgRCkFi24v7tnoF9JwgPiurfHODu91CndQoYVRgT/PLHWMSSSdsQH1O/r160ix5byGUDtxuqPAdM3C6ghMvaCEJ4bJWznjuukB6I44+Q2eAjI+CU5rW1/h2XSPUqxBX4ooTQpnQB4b+M/nI5B9D2iJ9DgMek6SkrvvaOWkXxJpP64qwSHXEhg4PTnviFgRlK391GXbZxUrbLEj8A30Nn5vr4xt5r6YP43qiQSkiI915B9Zv1ilfBiCS9aYIimoZIBLXUOx+qdys4PlyjcviWnS9A3lqHLjp4m2kdJ0AmKEz1QwesZQ8FKTH8nU+Gb2Dc5JnUeENPibUaHClYO/QjMjXois6I9DigOBxoHklae9mP9SfUsB+/nO13PA1X6rmaGpBlXpX8T11vCwsU53lNZFyeeM/g4pkGs474YCoUL+93+0LsMmnAyg1b/TpvxPXAGe8vPf3U4FgY03wHOlaBQaayicSQuyypW2B5fmZMZm06UviX0UWpD6UTlTyhOPvq3J/PMUuHFunbNfRP2br12AZbCPZWnc1yxX4StjcHtjcrmJQflsGujysfXvjcRgzx7Hu620yCJhq2R5gJYHLb1LhJA62cHmf6aIqktABxWkRvz2feV9nWyG3SGiQarwoQgQEknUYtN2zFDAvgbZN60eKapP1THJsx0hAKeG43C5BZt62vctYVCr2SlSAeKC/afXo/d+8j3M7Qv1W1Jk3Gy900o+lW09ahcc5HY/NDGPPMtLrS7tCwmfp3xtW89qNmwQy9Zh9gO4mGO2QTgfN+QnoT4NhUHMmZks7QrxSOCzjt9dHuwZe/0g4vXhyftNzjQiCakG+GIWqgyVaCgo0ek/ue5ojT13saVWdFCpttH06HI9Tupn/SWka0Qk7KCrmJhU8WTUGi/roNgJ0j2lW6F1iRFGQq1OtrF1T1RSK9LYsXL9xqiVpSpJRsWzUklxadV8wUJxLkjGj9+CEiJ1jK3ie1Mccp/npVGh5/sDj+1LrXbC2qtfKqdttzg1BSrKnLbngZ+wcjW9eIaHcJ+39eTWlSNlgjhaCEM2JbzS8ZSxppgM5V8j1uRgfsqDtZLYOzue2P8eEkn7ZNi+AIvCp3Glp6o2TDtXez8hjKJDEpOt1nW5OwYKx4la8xiTwDZ/mVftJjEzeDNB2zLcDgjz+sINwzUBJAeGDSmk/jUHSiuRaugSwonyEXwL1KsCFZ2yWwwryePx/sS3YT1tJge95s/SefNYH0DVS/RQ9uwNKRDmmCromBz0E X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3da0995c-8368-4685-d157-08d8ed0c3bde X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:26:47.6082 (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: eHaB6ruZeBAxhXU3GcPaIb34N0I+HBC46z3XrY+k2ok6kpFhqX11bZpCYw6UWos8a1ySX8i5nExRYvlCfleveg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8316 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan To i.MX7ULP, M4 is the master to control everything, so it not need clk from A7. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index fdaaf7599cc8..e858c1af4353 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -654,7 +654,7 @@ static int imx_rproc_probe(struct platform_device *pdev) if (ret) goto err_put_mbox; - priv->clk = devm_clk_get(dev, NULL); + priv->clk = devm_clk_get_optional(dev, NULL); if (IS_ERR(priv->clk)) { dev_err(dev, "Failed to get clock\n"); ret = PTR_ERR(priv->clk); From patchwork Mon Mar 22 08:12:40 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: 406078 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370555jai; Mon, 22 Mar 2021 01:27:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+zsKHXn3FGtNVh2VqFqtJvo90KVTWpluXXNvALgH7G9GBBixw6LjW0owHQPjykyezrpAj X-Received: by 2002:a05:6402:2744:: with SMTP id z4mr24511946edd.347.1616401666921; Mon, 22 Mar 2021 01:27:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401666; cv=pass; d=google.com; s=arc-20160816; b=HlxyGZ8EaMnom+2q3kNSeHLgOb0LKNhdQnDDxacSRQ8zPrp+xKgfqOO59S7vomY7Qb OJ0ikZlCGbWtla3lklzk94FsB+3fAu1pQ2xjKNgwEfW86qjR/PGFYuKGMNjWHGrq9ioy CJY/WCQhFfFHkcKBUcw61HzOp3QvVYyr2DKcVPso3oh38Y7sC+ZaZm5uQVPuybn2C/Ja y3IJH76mdPfFZCHaLCTBAl6FRblZuGY7Ke0xboVdOWyfSpRkRCtK0pmW4270KIJn9ejW 3DGAbkVfMHTDMZAH3t/uFyhFwHlwvltKvmmQpxEjluN9wlUdbYWn5neDgv7/Rh+jmI9A zU8g== 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=vf7ayQTSpXiUsnk2LCKoEVQ6Qweo+gEfS/5Lg2n8KYg=; b=b03+pt+rGg/OolK1e/xoRvcNgV8kyewnETeMhNfheF7SjOzgtRRmn6uv1vYMeE1bWA 4jsrD8vBjr9p6cFWSRYCp6ofw4+w6cVywOmZeS/qcai+bEECXPPZatxHYXGQkCI0R0uW C0H8UPUhfry2lxV24wZLTFO4QK9YSKKLASh2k5MLUWOYcQJaI430Y2u1nAT08Yl1X8We BYUH3ffhmyN1SxZScoEYpYicXBrX5vrRmRRkzKqLPNRXv7AmZFvjGtV7WoD15gQgggPn tlAuHOPGZiyyT4vzoMuZkc7iDdLHJnwvCl++kczaaDUfLlE/rsyS348MhHLgTZsOo673 Sdfg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=KD5BGsGL; 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 nd37si7168148ejc.708.2021.03.22.01.27.46; Mon, 22 Mar 2021 01:27:46 -0700 (PDT) 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=KD5BGsGL; 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 S230051AbhCVI1M (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:12 -0400 Received: from mail-eopbgr10074.outbound.protection.outlook.com ([40.107.1.74]:9377 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229872AbhCVI0z (ORCPT ); Mon, 22 Mar 2021 04:26:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sr8PeEVkbCep+myOa/tUTmhq6M/t/2r8r26I8C2tkKGkngQTWFG0y+chMm6xKMcv26h5k/gLDwfpwUuzXlptFSV0KoSrlwYSKgyKD05+xRnK1x7eVrUS8hze+xVe6dOcXnZoD0XhNM/t/vlcyzBPE/l/jRzE0QUgQkcxtmP+GfDlGMhTlZJCaWoSQcVSZju1D06dV4PYdDtz0NrwD0FL5vlr7g8zY6L6d3sv4R61omiJanxZeigoQp7p5VCTgxOOCxjN8Axd+Plm8rcRMgjggf/L3l8N6Jd1G8C4IWEZOgUFamSSpA+jqlFGGUCj8UtZ2u+tjAy88PvM5pHGcltrkA== 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=vf7ayQTSpXiUsnk2LCKoEVQ6Qweo+gEfS/5Lg2n8KYg=; b=nJy/i9SUXtiCe2W1r5Hz7ifOV66t9ETo9hnBEEA6PiC6ar1B0rhbUggmPWBJP+TOe682B4TL0WA+nMrjd172S8bkYz6iIKQuk3Do/b2qj/3wmWTCEYdno/5P8IWTX4EAuK3ZAsXvAVkXotc+LzXEUFTt6AkfCE2CS2oNl1Of07SeyciYt/n8p7EFBTOagjbAIVumdn4BFoiPG/R7vHcb7dxnlMKFeyMxDOlLK2pF3FWTy+amT97u0rLgDSd4Esp1O7MbspmyU92CZroq3gZxgIFSBzN9A68ebBZG7xraNhT7CSJghstsZ1b6FOHY59t0bBYVfI/pp7o0djnxbIRduQ== 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=vf7ayQTSpXiUsnk2LCKoEVQ6Qweo+gEfS/5Lg2n8KYg=; b=KD5BGsGL/5+cejydLcA7S4OeGwbXUsKl9TMKFt6JZ33Pa2i2gjblFYtL8c76d+jMWFPZxtk/Wpf4gMVhGewT6XP+FiU6H/PoE5Nsw05ct4qb7aa135AbZoYYnA++bZEM4UfPhczYVE0PhksoznVKkV1SEgtvY7ck3oBlktYx+RM= 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 DB9PR04MB8316.eurprd04.prod.outlook.com (2603:10a6:10:246::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:26:52 +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.3955.025; Mon, 22 Mar 2021 08:26:52 +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, Peng Fan Subject: [PATCH 5/8] remoteproc: imx_rproc: parse imx,auto-boot Date: Mon, 22 Mar 2021 16:12:40 +0800 Message-Id: <1616400763-16632-6-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:26:48 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 73b8aaea-9d5b-48cd-b4cd-08d8ed0c3e9c X-MS-TrafficTypeDiagnostic: DB9PR04MB8316: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:972; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DSf7LvnKvZk8BBtLo8PfFnAkHFitWoFCkz6xEJzgWGkbNzOuK/Kdbw9kOMmXNBN+Fn6wacFpnqBGhQmXYc6aysoQ9fP4zdPHP5Gig4PFTX+g3YdxaJ9obLX+6OJScaKqWA7FTvCQl8I6csi/9ZMHKDolQWxxG8gRbDI/MX/KmlwuuXwwWmik8wxrXYDSHGJZgaEHtQGZYHi+dXdqTBuOh6g/DSNvpAls01KG8XA+Br/PhxX3VwcQ0DrgFVCCRCJaO6UPRsRSb4jYaAlGuyVag58hgdegTslCh64Qe7eKHQ2lYVtV5hdEWMS9lHOl8I6F+4DOs31hF3dYNpx6PIZ6lRaRt9tZdSwyMALuu45DId3PND9jWDfede9HSHIhNJyAnzFmpLV4lW3jjs5VFOU0k7xTj7b2TsO+V78x+47RTdejGU+Ce4InoRSe4AOKdC6m71wSG3HESpqSev9qo3XxGOvMXtLh84p5GpuzDdAWfz7EebdsUrJJvy4xaqT9QZSS6ji2V7VgQ/A/TvaAVUNY4+QqhzQ/tvUTzxQCnebInFb0YtFD6G/LaAD+260U/YxyFXCvdgPfQKB4tpMOktMmzll/LsLHL3Zn/KZgvwpI3rsNkDACgYEpRO1mr27mRW5NQKPDxvgLwukcI5+Ppw4dNl8/C0IGgDUgncvVur5UZjDB88HO8DhZoc8A9RbcGCHX 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)(346002)(376002)(366004)(136003)(8936002)(6512007)(6666004)(66946007)(66476007)(5660300002)(9686003)(38100700001)(86362001)(8676002)(52116002)(7416002)(6506007)(26005)(4326008)(478600001)(2906002)(956004)(2616005)(4744005)(186003)(66556008)(16526019)(6486002)(316002)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: h4/WjWsbrwvJZTjxVf41Z2V+HEfHhwR5qgjxuaT8LeK5r2qXeRBe79HNYLRfYz+WR9a/kkdG3KB7TMpmg8ZDxv6ogD5j/5De1d2g7SMNkKQIGMLh+SJkj5QiMbwSu7ha0uEuuWtEVm1tgsHJLg98FQPR6Z7aYCGvRz87JOIhmBo2cpkUdjzwn9M784dK4P4pDmMcbs+JnbH4CKbEP/M/HGDbUSAuzKirpSfudXaGUJ85jwAU0r+9iejPV+CuVCoJBid30Mw5GquH+QHcesntxUQlCzgFVcz1f/CES3kn55G8wUijYmbQkBtEGT92TO0kY2XSpzF3m7ZtOLVoQOEY708D0vbWvqnO8iicZI/7zXXsB8kmJO4RmSoiTci7H5fJewwEtymac9W5EyCKvlL41ogdht3IU/FzQkArNvDodNMgfDvtKR5BwlngReEbRdSTdzSQd3TLV109FLFHFCuC/1dAHSNgMx1xsg7O1QBf6A3S0g7qEYSd4hbU0a9Rjw+Q6cdOXEp69REKXFBYH6WZFVftAovxSqaw/qvT/qyUhuvZerNlyttZxLzmxUuUzIs58j4BjQAcyjxzrF8P6hQbWyNhGcdILjzZWGYjE3CR+I3OmiUilQxNOonMPTSlatD7ZE0YNYZFnZW1wRgxqmeDnw8y49wgRYcf+gUgivRMRKt6KE7Z6srGJDzN571HAI/2A/Fk5L/eszgR42UBZ4rmy1o1itWP0OlVFTa11RWqYtbypg4/dFJIp+vrzHW7/mwtZANnOHsHKz3ktf3FntXeKfDEHKJCzC/gdso+YEKR5d2ed3+665tl25bt9k/0xrYVO7kO8Y4iRbocmEI39oH5c5EzUZHWbiTkUBEJ2jmGN+BBMcD5cTWC2vElA50M4WL9NGxsYQSze/DqX8zW4NPkeEDzo31lLct3XfkA9zpAy6uQIv1DtyLudOE/ZHVUtZAg9vX809b9RlFYKKpU8iuwYA0WrLLXr9t5P2+TvPuh7Y8cjStlwVrqbnYkfujE/LgXQMcJommxMYz/BgzpnEpBhPvjf4WA6JhDf7xRdLojO42DK6wpYNH88AbwNzvp4qteoQ9vmiVL4VEWSjf3HMtTGxOZgHy+azjYejtN9ZmvbB0xmZvhkI58xiIHI7pLLpUjWvLcOYjby0IlAeIpAR+uIOmo54BfF71PDkgBaW1kB4oDYCZIWY2Y0NoNnT2pUHSCmn9c4hzmRANdKjFhYaQzlGdptopn/G5G6qSLo8piQdf5kE5us0A907WxQMl5ifPNB+Xsv3pnRPyPn2a6g+djGm9UOeG4FEnwzp3QrFbLSZij/GYTaISyxPTPC4mwQVu/ X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73b8aaea-9d5b-48cd-b4cd-08d8ed0c3e9c X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:26:52.2371 (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: HbpET7uKcutrP7em7T7IvJRCYxy7pOVRFoIMfK/gE9Rhx3/WMzYF2TW1Wi+P1zEtlTutXKHPH5jJgsRStJbh1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8316 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Parse imx,auto-boot to indicate whether need remoteproc framework auto boot or not. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index e858c1af4353..f31b258201c2 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -673,6 +673,9 @@ static int imx_rproc_probe(struct platform_device *pdev) INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); + if (priv->mode == IMX_RPROC_NORMAL) + rproc->auto_boot = of_property_read_bool(np, "imx,auto-boot"); + ret = rproc_add(rproc); if (ret) { dev_err(dev, "rproc_add failed\n"); From patchwork Mon Mar 22 08:12:41 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: 406081 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370600jai; Mon, 22 Mar 2021 01:27:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/d9TCRwPnRoGRLEPdgEEYjjOY2oVy4p8OOMfj4iyDfFz6TVEEobXl/QeIRwP2LKyvCaMk X-Received: by 2002:a05:6402:4395:: with SMTP id o21mr23869198edc.22.1616401669874; Mon, 22 Mar 2021 01:27:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401669; cv=pass; d=google.com; s=arc-20160816; b=NejA8bQKxT5Z1C69MFZ92xh+Kx9+cKG6Z3zcaSXHMvMlFjRCiXDlivEC/B/Kd/kIJa Vfe/lrZDGCG5eOXQjRHlQp1eN2Fm36nFToZW/UpHCMSE5pPD733oMLMXtwgxdSzRDmgs ZhP9vEfNzh0XvoGHCzxW+gK73x6dn7W5u+iNokImZeKO/OCxXPN4m572Hv+GThQwBoAj v4tfSbnYNy+SPBUmEMsnXA9lzxDDTwrSTAvN+7UARAyvVt433ecsUEPjMI6uZGcCg94F V0BTdTGN0NudRFrZFzdwOkjDRoNsaspCc8uLH0FflzFNEg5clA4vP/0UAGNfFB7YJI0m gkdw== 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=Lxq42a/IJpARF9O5N3tTfkceJm3C5hgLuvt5ThCJCVk=; b=buVQd1SNLaVCcK4PxGL6QbgEmFN9+CayvMUPY/ekwh7IWNsbnucE7nn9vtOP6W8YSi K7/d1NFnWwq17m5UOZ+fTuIVt1ebA3QjT22BGXVxawt/B13PQo36XI5C581wNOxbmSLM J0WLIBAbFQmc31wfTBzUFGu//FAAFl19rm6oHTMt2TiWxzolUKxIRQWyMobi5gKQ/bDt U4GFQGjiolSOsWtUzxVrgGhowStME6g2s1dDqBCbAJpgkWiRQ0ZarWrcB+w6zl0Tl8qn 68hdWxGyLy9PtMhsx6VbB72h3DbcbzXIf6AI+NqxZhmh2ZZUiOQ6igmnReik5AlSxMM2 qOxA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=AvXdEQjj; 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 nd37si7168148ejc.708.2021.03.22.01.27.49; Mon, 22 Mar 2021 01:27:49 -0700 (PDT) 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=AvXdEQjj; 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 S229866AbhCVI1N (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:13 -0400 Received: from mail-eopbgr60042.outbound.protection.outlook.com ([40.107.6.42]:9779 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229875AbhCVI07 (ORCPT ); Mon, 22 Mar 2021 04:26:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iGLZr+1tHqFNr6zt0aAtuzUPMUCL8XdiKbsm8ROz0VpXbRhOb4C5XKdSFgasKUM4HnrpID81ithmJAk3Jl7TBi4CjiMM7ICaSegXduAD9tv1G3e7waYI2E4IvOWkL2EX+jbouWic0aU9/940DOLIRoc1Nlmsw3J7zHi/5JpNSSv+DWnf/H6SLKc2IM5cuy45Ep5K/wRSlTeJBgoOLY50Vwx5AKBWgKZTmlaDxMJnDMVKQ+vcKWg8ShuAg9fQaQAna7cm4ORaxBM9ldgaz/RV4tA/5lWGNuDS9Jx9mlZi7v8nm6pxehS6Qz8lg86rCxWDcuRfTtZj6xQhu4ZNCtpFbg== 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=Lxq42a/IJpARF9O5N3tTfkceJm3C5hgLuvt5ThCJCVk=; b=Uk3zcNZMo8qPM70/YohtHxFaG+ku3BFDE+h7OkVdbgM83CqLLbAzLCu+guPEglwvwCol6OsF4WTbnAwC1m1yqAPWI8JWW8k/yuWGDBZfuqAjBJTMxdtR5V0IqsYBbKTTp0GqDPjbz+yfMdIpzs4NDC0uszN0LsJnLgI8oLDXftVD/uaSbufWZpCySL1ZgeFH3cDyC0D2DyZs7wjXS70/q5iwXtIIbu5JEXQP2J75DhWUSWK5Jdla9RAMV1P/Mf0O6vbPyd8xMdXSAN1LBw9Py4wfRZrMsOk4Kq7zPJOiemqbnMjfQIISvuVabDYqGGla+qmGASgq3POtwNKEbVWwXw== 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=Lxq42a/IJpARF9O5N3tTfkceJm3C5hgLuvt5ThCJCVk=; b=AvXdEQjj7EIrg6mLMryw71b32Ge8XlnyP3s0mVe4Q7Aq5RhLkKSworFbx1n8QX7M6hP01JGjj9ga5B4jZD6eylrKuXY7ivq/earwKwVgGGHMH8qrGeZT2sh0vqsayfZxToBdtBrscPqrSAdXRIkrAErFhhupE5QNNqPUqsd5Vww= 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 DB7PR04MB5993.eurprd04.prod.outlook.com (2603:10a6:10:8d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:26:56 +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.3955.025; Mon, 22 Mar 2021 08:26:56 +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, Peng Fan Subject: [PATCH 6/8] remoteproc: imx_rproc: initial support for mutilple start/stop method Date: Mon, 22 Mar 2021 16:12:41 +0800 Message-Id: <1616400763-16632-7-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:26:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 6b81b445-1682-4f90-e204-08d8ed0c415c X-MS-TrafficTypeDiagnostic: DB7PR04MB5993: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:321; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KJlBht+3sK43u3ckg2Jr9Cs57fLiQDcqlTIaESJ6vwrSRD/qTXTO/pSaxuD4TfGOmgLaNwjFmOyXsQOmpfKwdXkbVbKoDRe5lctDhs2HgQa97LriLJD2BgtBncRT1S+pt4T7n6dTwvmja/BmtPkq8Hg86IR8XrKXpwViSrbzNnwvjHZ+HrCR7Rca+ME21Ylg8+wmcW2Zakzsc0lopACONNF2NKgUAUT/Yp3TLMdMXwANWi9g3U/oUMuc0KCet4IbO5oS2+IOY9yJ73xc8jYsc4DqBia/1aK9VIRWpxhnvI8PbLet9U9Gclf+5vh6VRDonaSI5CTJpg29Nd1Bglx5o+2ezopDxG/b3t1yePxCB+DQNaeszKc9zwvYyT2EhFnjctvUFd73mDcfTAf0mv5UKcjpQhbnbosMLo6P0GqE75hyul7yLIllcyAB7/nD9OA1kxldRnp7DxsnL+RI0J4i/T03HSRiGolwujuNLQ9aSvjBQi57gBoB218qKcGww4kAqciCmT8fpFih/JGk1Fgw9J+/TMH/GITAwO02oUogSSqzrUNIZijCZ9K4g07HLgt1pxUnJX0pcSMBoF+a6hhjr14VdIujf2LGmp+LdAoNKi9+uqyinmkHUke2AzOJgi5bDNeE0VSUq5W5hH72IamvCCAiKwbkqiTPxb69Gafukw1T3gOKwHqezK5LrLO6obYK 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)(396003)(136003)(346002)(39860400002)(376002)(366004)(26005)(186003)(52116002)(316002)(6486002)(2616005)(16526019)(7416002)(6506007)(956004)(38100700001)(8676002)(8936002)(66946007)(69590400012)(66476007)(66556008)(2906002)(6666004)(5660300002)(4326008)(6512007)(9686003)(86362001)(478600001)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1NnMz8WT+kD3xJQufWsGtfy+cys9ltoBJFKKZawB/u7IQ83F2YzV2yzvUlZVb7v01FIW++b/+3xKJfgUvg6M8qGUjYccqPjaBBknsHehZhvB5WDpt0RXaWm3CsncovZPFZO0JUQRhZsJ0gFKTZD2cGF56y7Nomb1LPzI6srLJoGeT9SEtB7wwR4pEmt8pMXHMxVGbts6x9nYw79ymLurTHw78PXPrL/6yzLvY7tql0qYp2vSqZp5M0TuBRuTd1TBKInySd7w4+/TLs7ir/xHLUIOLwQz0F34zd3D1Dl570HwexI5hIVj4Xswr0aBpf8xBUhbDaNwK/WPIUj8gJ6X1MFnC6LjldSGm8j9t62iYj5HgHhr0AweJtETDPbNaH9DNIrLNpek3YvWnPSdL3/A9jv960zUPSV9PTTL8Uy3NEecbPhkpKwZzSjmF/HlrvPKH+6l+QHRrlRrTgAPbMu1hp+v5+JgnVxHHrmT478E8wh3cf0dGoO8Uf43/g8Idwie+vP2O6gkZ2nkXU79lX6xfzpc9nF8dg6ceUBcd+toifvvrb0fAhRdp2ajdqT07gl53JvHPCf9wXDfGoYp8L58LqfuDYbr4RbB4ZMS/gORs31lXWcsfezyJEWDb2vccbwwOmCtoKnkLjCBxS5fsnVKbAl/N4yhZ2P5BQ5j2cssae8m91ZTjrim11SqHVc4np7JRTVW0xJbeIjlsQlmnp9WOfe6++UiM7qAOJsvraxB85Ho/PeDgkAInDiqN7cvf6nNLEHJr5Vq1GkMC/ltBicM2jQOJ6OlvPK8NslPWJbBPgY1QX2D1zdUR5713iYpfqnROY3jPLd7JLvdR2MKkm4vFIxAXR10Ja/uqTXerZIMc6dshF12wr58OYVxenbURl3qd4zkBIU7R7fiolMtbNhll9MTd8JoDC5rbu3imhFeSo19lWuOPqWc1fhHT1al996BNEY4jzX3sgaDn7eNI/aHOn945gujLhaoc7sjYpKBKBj1bqxKQUaqUudrNsdMJF0SNuxvpMi70QeHqa1XH5xg11qHLbXO4LeXaTVYeb/Z/kNk6nVw6UNbcgBfPHjcxl9RTgNDs9i54M+LzcgCh8pFsKw5PDkOlM9WH4X8/UOBvdKjA+MkSWLDx8UnFsR+GWCo3flGzhNsDZBqPFOu3QnktxR41RSPdagi1rcIaPn/M+nh8y2CmjWy5xH0cf6jgouEtGg9T6S6tWkeO7wrqM40BF0nZIvlTmr+2kdTpim5xyqLhUhiYFkScS/Yx7YLTJhOh8Md38x9rfKgShbVCb6wFgfZzm4EDqYN6m8wMXbYrb+q+wNS2BGuWbpjfbdnzAE0 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b81b445-1682-4f90-e204-08d8ed0c415c X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:26:56.6521 (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: 9cfqVJC1AHrAMiZrgSCcjM7Ygy8pfEbX9Oe/9JF586mNjFc40iowXcKIMrYKKinlNTi3vJDc8mRk7ltnVk9MLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5993 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add three methods IMX_RPROC_NONE(no need start/stop), IMX_RPROC_MMIO(start/stop through mmio) and IMX_RPROC_SMC (start/stop through ARM SMCCC). The current SoCs supported are all using IMX_RPROC_MMIO, add a restrict in probe that only SoCs using IMX_RPROC_MMIO needs syscon regmap to access registers. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 52 +++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 17 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index f31b258201c2..8e545b654e54 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -84,6 +84,15 @@ enum imx_rproc_mode { IMX_RPROC_EARLY_BOOT, }; +/* Remote core start/stop method */ +enum imx_rproc_method { + IMX_RPROC_NONE, + /* Through syscon regmap */ + IMX_RPROC_MMIO, + /* Through ARM SMCCC */ + IMX_RPROC_SMC, +}; + struct imx_rproc_dcfg { u32 src_reg; u32 src_mask; @@ -91,6 +100,7 @@ struct imx_rproc_dcfg { u32 src_stop; const struct imx_rproc_att *att; size_t att_size; + enum imx_rproc_method method; }; struct imx_rproc { @@ -194,6 +204,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx8mq, .att_size = ARRAY_SIZE(imx_rproc_att_imx8mq), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { @@ -203,6 +214,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx7d, .att_size = ARRAY_SIZE(imx_rproc_att_imx7d), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { @@ -212,6 +224,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { .src_stop = IMX6SX_M4_STOP, .att = imx_rproc_att_imx6sx, .att_size = ARRAY_SIZE(imx_rproc_att_imx6sx), + .method = IMX_RPROC_MMIO, }; static int imx_rproc_start(struct rproc *rproc) @@ -567,16 +580,18 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) int ret; u32 val; - ret = regmap_read(priv->regmap, dcfg->src_reg, &val); - if (ret) { - dev_err(dev, "Failed to read src\n"); - return ret; - } + if (priv->regmap) { + ret = regmap_read(priv->regmap, dcfg->src_reg, &val); + if (ret) { + dev_err(dev, "Failed to read src\n"); + return ret; + } - if (!(val & dcfg->src_stop)) - priv->mode = IMX_RPROC_EARLY_BOOT; - else - priv->mode = IMX_RPROC_NORMAL; + if (!(val & dcfg->src_stop)) + priv->mode = IMX_RPROC_EARLY_BOOT; + else + priv->mode = IMX_RPROC_NORMAL; + } if (priv->mode == IMX_RPROC_EARLY_BOOT) { priv->rproc->state = RPROC_DETACHED; @@ -604,16 +619,9 @@ static int imx_rproc_probe(struct platform_device *pdev) struct rproc *rproc; struct regmap_config config = { .name = "imx-rproc" }; const struct imx_rproc_dcfg *dcfg; - struct regmap *regmap; + struct regmap *regmap = NULL; int ret; - regmap = syscon_regmap_lookup_by_phandle(np, "syscon"); - if (IS_ERR(regmap)) { - dev_err(dev, "failed to find syscon\n"); - return PTR_ERR(regmap); - } - regmap_attach_dev(dev, regmap, &config); - /* set some other name then imx */ rproc = rproc_alloc(dev, "imx-rproc", &imx_rproc_ops, NULL, sizeof(*priv)); @@ -626,6 +634,16 @@ static int imx_rproc_probe(struct platform_device *pdev) goto err_put_rproc; } + if (dcfg->method == IMX_RPROC_MMIO) { + regmap = syscon_regmap_lookup_by_phandle(np, "syscon"); + if (IS_ERR(regmap)) { + dev_err(dev, "failed to find syscon\n"); + ret = PTR_ERR(regmap); + goto err_put_rproc; + } + regmap_attach_dev(dev, regmap, &config); + } + priv = rproc->priv; priv->rproc = rproc; priv->regmap = regmap; From patchwork Mon Mar 22 08:12:42 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: 406080 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370570jai; Mon, 22 Mar 2021 01:27:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSFweb6QuTA0fqjnKRB7Nd/vu9WX6E+Di1OLg/3un+jXb8ZH3x8oA9kIMXfQvXE6p5C6DS X-Received: by 2002:a17:906:7150:: with SMTP id z16mr17763148ejj.103.1616401668024; Mon, 22 Mar 2021 01:27:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401668; cv=pass; d=google.com; s=arc-20160816; b=JNG9VqHIDSdddxIziy7y75sNhwKODVwCnyzdZALz+OZn7oLVMn1EX4spdcsaN126YP qbwT8kpWMoSvrXCR/lwp7WTxUduXsDzDyL5MgvxU9m+k4ijUVrhOgQyKqyvHEvcO3HGa qoten77H1+hqyhHjw3BLF4a9RVrMPAnxWjBZhavuDJevifknnYvXpVkCzuyppcgmpbOS b6D6W3W4EuaKTtqyufx5wN0WhSjEkUBFUoH8MET7vqCg01igBHw0XophqwTV/F0gUrz5 tPEzfmELHPPvMddUQOOJ+2Uda2hYVlDDlXsukk2VDZXXvGDPPpkJ0AtaTAX/NUD8gxMo odTQ== 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=i5VwaKegBRxG56V2/anrNjKPfbeJKryS3uQ6kE6PXE4=; b=xnO96NLqQ2+mq8wiCOj5v7wJUFjeopX71rnd0AW49xJS1S1yQ+7l4p9SmCz72rs9SY GHKGjpg6WxBPyEUOegUUt7OvG+XBsY/EvBVr+fcG+OIEMb44sZaw7fi276G2ngu6z07f Zjyfbq4KrbjuLxekLTYD8gtjcKUz75g9jgiINjDt5y5EAp7636u4u5EB3gUt69mH44LP MuwZBL9w9eeXDrGUhja8YhfY4bHrJJtz790tRp0U45a/hFF5R0aeqMRHJjyeL6ugdJlD y0JsjWuee2YF1EN/n1hytjrV2wHyyUCNGS5FSpacPBkpGIuIXucX+YjqGFB6JHPx6ClD 7vZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=BJufkY+a; 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 nd37si7168148ejc.708.2021.03.22.01.27.47; Mon, 22 Mar 2021 01:27:48 -0700 (PDT) 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=BJufkY+a; 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 S230071AbhCVI1N (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:13 -0400 Received: from mail-vi1eur05on2051.outbound.protection.outlook.com ([40.107.21.51]:33505 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229955AbhCVI1E (ORCPT ); Mon, 22 Mar 2021 04:27:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c9JGyveItMR6pgYqew0Vnf+J3f82xwiCNl2Ukr2z+CY+AscmSGd2+o1x4kln9tD6vbkPYLF/lcElEvmeSuN1wePNA+LsDl7AdKiZMIi6RbCEyYdVGi60yOI5kJWrKet+XxW/dNpNGz88ZYzA9Hw6kdKdwQXqHQExRtu4bfQWTlv7W7buJNiowlvf8DjxitNRaC4HLnWsNpuWr9Q8nzOfQDRRgRAv7kNUOHcyLgnxPeetBT+jsa117AGvaZm1uigCciLNeBlRiFroGwOKlV/O9njXsXm44XQBrtg2DPR71Q1tDTFEi6/V02jfJNp7R6zX23E8fvOM90ThtlzpsrIykg== 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=i5VwaKegBRxG56V2/anrNjKPfbeJKryS3uQ6kE6PXE4=; b=i7XnaLOnsEsZBgGAOXUXRDQJegZzB/Tknq6JdMw39EZ1Pu6LtpR5hNviXEX5BtfcjV3CkmMIFE5y0cT+ndYtDZGK1W0fMIAwoD70zF6haq0bJbNyi43WfydiKevuiYDjWYl2a7UtiTBH3jUO0ivxkLnph5g1ByNWtaJ3lCLWaTNPdKcJKLbEF2dGQerlkVokkMYbPjB30bS2QBkQ7iYoknUWPbztuM3rA204dsaLmLGYYMVPD/NrW68rpI7TFiO43Vs1+WbH8f0s1F+TQwR56xSHMhdv3bMoBthM752A7i9jqn92CVPPaMJmJ/O8iNrNAehLs2aWFdci93fCsGu4YQ== 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=i5VwaKegBRxG56V2/anrNjKPfbeJKryS3uQ6kE6PXE4=; b=BJufkY+abeCgBwCBJlLtlpdGeJc+96e40XCH9+W2rDbaqraHnonYKt9wwrG44wMaz1J8PzAy7SMN9cL/ByhD4KxXLTgvNkYyNQrO79Z/cmIMOR9TQQxGWyTJgB1NJ/0qIbV9etpCt+G/4aXWp6K6MKXukt1xpItYN3v6NJo8aBc= 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 DB7PR04MB5993.eurprd04.prod.outlook.com (2603:10a6:10:8d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:27:01 +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.3955.025; Mon, 22 Mar 2021 08:27:01 +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, Peng Fan Subject: [PATCH 7/8] remoteproc: imx_rproc: support i.MX7ULP Date: Mon, 22 Mar 2021 16:12:42 +0800 Message-Id: <1616400763-16632-8-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:26:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8bd95aed-a40b-4b16-810a-08d8ed0c4404 X-MS-TrafficTypeDiagnostic: DB7PR04MB5993: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:118; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8kN1lwpROHGdUtY0peAsXoDT1YqFaYtBar6Sb5yZxN/kbnIM0Ma5ywhKtJDl4uRAy5GLhxSECPHk8jtPpO3cFjmkiCGQ1QdhTCUxZorL/iI7DR//yy8yW3VMYCY+oKKSbf9DuC6ENPHeOuSc5RO5deWV5ML2vJ1MC2yA4B9Ll8ZwzRj905KGQvzhrWh9DB6ItjaDn3a1NheZjQHURSIJJuAXl3+h7pROoiv2wXUCbgphM8s6ruWsNK3NSoE2Qqj7q7+gCiKSGWyCFWLyY8Mq4dAVHlPEmF1XTM0FTTK9/louEoqIMt6Ns7Of4LfqLHeD21wvUj1qAI/WWO8ww9j/lhrZUYwlBvA2KUiDqsvPwaxAdRlP6BwAsEMjT++M8MUkJxYnBYObIwUfX+OPvVzYaBQU8TCpUMqImiKeeqdLUs7xdYXM4yJjlM4S0EM4nyZavFsW46ReRJzwSpxZ4+9JYmyEZWA3py5FlkTD9P26TOctTus78YLmtGyu6z0shVUIQ7DspF+/13ciOfDOuw8sNr9+LYwrenraPXVrBSlkiScYn/R2up5l44b8utw26TGhPdNnNcy+nG4X1rzbRTPU6CeL5ZKKFm7NgEnowTe+CmskpFqxbDjjc12ZFpNuVboxwLXNgfdrsdz1i6M04ATzBRevSZEf0dwgoG41Ufq/UYkzQCwzgduZpynEARhLm/ai 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)(396003)(136003)(346002)(39860400002)(376002)(366004)(26005)(186003)(52116002)(316002)(6486002)(2616005)(16526019)(7416002)(6506007)(956004)(38100700001)(8676002)(8936002)(66946007)(69590400012)(66476007)(66556008)(2906002)(6666004)(5660300002)(4326008)(6512007)(9686003)(86362001)(478600001)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 76g9jJXQoeEn8kju47f39zWisbiqOh9HJ4mQgrnen1W/cK6V8rGIGdp179NN8IbZz8j3BZyvkaALDIAwL/9ns0H299JG+Fa+RSGXneWDSD8F2u5JuHNrKWZ7qEmTvV1Orm4UBf5obzQYej4ELTz/OviJnIDZ699byoLJKY3MGlh31tY7rPDwL20+RjaZu67B5tCqa9GJ9L1gNjU2+/JFSkXFyyqja53Xo18iiM5iLrxdHoU0w04gEKQ1b8rUm0Nim63BUYynwSvj+1rv9MLUN1r0a1fyt9kYKDKcaH8Gn509Jtd2ITHPKW7K0q9eBk4jIASsz+89vZ4RH91vinQyZT3r9mA3w2YX8C6U3yWpdN+VDTlsF5MO9uqid/Gu/L65NSoxZBe0cwwIpfhyElSUY9xpNEkudzxDOCUVBc9v5Rxfl/V4/G/KobjS1Ez/JPVZoSNpB1I9kNk3FlGmT7O85IhIGyWnROs5dhaTEBy/ZeaPPEGmeQsz6h60+T1tghRD8lWr3roEe4Cye9SNGyLv7/DRaBegI7n1I10l/CWOEgzEcP3RiFufesbHO73EpCV9io0NmDwEzsudEbVcQXeRUPQhZULIvIZEbMQFijlH0ph89Ev0q0gamhJOsz7Az9/U7B8ue2yIs6hYKwvNjPjwV1rq/3So1hzkdxzR6O65T5QwTSUMmMToVUQ74WdbSR/YogTfAhdgJ8+tXZASmXLocG3+wiX6IUY6exK0pOlCsdJrArK0fH2FU4PPtlHMGqLZdAbV/KJoATbTITQHyuAgtFM/66HdMIL8QqEaJOV131R9/a5WMmqL0ALDMoVwVeIxJsVcIaQXPjloVSI81gfEtJZTBzo0djYaAlMyw7sS1xnuNgaAn3CtSSeXoOIV67dhxOGrqq51VFgn/oQdnPFVOzfnWl2I/a57rnOGGLmukezvU58iJg317wmZRzhOsitPQVL5+V4DqQAdpj320LHBVpo4G+QlMPGsjvT/4g+B39JhZWXFh14rxBljvyI7n5qVxMJDU2e4yVcBXu8hsYEpnFzZm5vNnueOSlRZv6O95ZraoTfpc+y7OkgQuHPCmsTerhVjubYw6mpk20iAUBz1E1BqhJYiKZeLSJ112nrCX/URnAoyOhD/nZxbQ+K4JZIUQt8pKuBKENMCQFR8NpbEDKb4si4EOs+q91c4fFaebOsegIsIZ8pWDzwapz377iz5UtJvybDJhnriAi5/Gunw5U3jI6scNxd5KY3msY0S0dvE8vvsM7ZM2O84JVsW5gLoYjlydqBEaxvoNMipCKXjdhBwhnIW9g4neDv9i01AoCNtwXHkD+1z3XTd1TYNkXqU X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8bd95aed-a40b-4b16-810a-08d8ed0c4404 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:27:01.1080 (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: uXNPzi1MSFkDouytE5kdznlwh6VrvMTHwmUdaG73Qp/zgES8QlixTYPnODLKh5ci5sBbJjZA2Yri/2s7IFh0JQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5993 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 8e545b654e54..79a6b65d60b6 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -147,6 +147,14 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { { 0x40000000, 0x40000000, 0x80000000, 0 }, }; +static const struct imx_rproc_att imx_rproc_att_imx7ulp[] = { + {0x1FFD0000, 0x1FFD0000, 0x30000, ATT_OWN}, + {0x20000000, 0x20000000, 0x10000, ATT_OWN}, + {0x2F000000, 0x2F000000, 0x20000, ATT_OWN}, + {0x2F020000, 0x2F020000, 0x20000, ATT_OWN}, + {0x60000000, 0x60000000, 0x40000000, 0} +}; + static const struct imx_rproc_att imx_rproc_att_imx7d[] = { /* dev addr , sys addr , size , flags */ /* OCRAM_S (M4 Boot code) - alias */ @@ -207,6 +215,12 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .method = IMX_RPROC_MMIO, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx7ulp = { + .att = imx_rproc_att_imx7ulp, + .att_size = ARRAY_SIZE(imx_rproc_att_imx7ulp), + .method = IMX_RPROC_NONE, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_reg = IMX7D_SRC_SCR, .src_mask = IMX7D_M4_RST_MASK, @@ -593,6 +607,9 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) priv->mode = IMX_RPROC_NORMAL; } + if (dcfg->method == IMX_RPROC_NONE) + priv->mode = IMX_RPROC_EARLY_BOOT; + if (priv->mode == IMX_RPROC_EARLY_BOOT) { priv->rproc->state = RPROC_DETACHED; @@ -728,6 +745,7 @@ static int imx_rproc_remove(struct platform_device *pdev) } static const struct of_device_id imx_rproc_of_match[] = { + { .compatible = "fsl,imx7ulp-cm4", .data = &imx_rproc_cfg_imx7ulp }, { .compatible = "fsl,imx7d-cm4", .data = &imx_rproc_cfg_imx7d }, { .compatible = "fsl,imx6sx-cm4", .data = &imx_rproc_cfg_imx6sx }, { .compatible = "fsl,imx8mq-cm4", .data = &imx_rproc_cfg_imx8mq }, From patchwork Mon Mar 22 08:12:43 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: 406079 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370562jai; Mon, 22 Mar 2021 01:27:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysXSSGacKsN0itV+KFbyBKSU8DRQhcjSXKp1dmxAMLosoNgxp+xl23dPDwmVIbTLsMjXkQ X-Received: by 2002:aa7:cf90:: with SMTP id z16mr24310695edx.273.1616401667681; Mon, 22 Mar 2021 01:27:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401667; cv=pass; d=google.com; s=arc-20160816; b=e3RQKKCIAaTQypf2i6iU9l1kGoOxLpFVaML0Hv/hDApr7M2x4BMZXk+6zOocrLFPO8 yGwFJ17JlB2b16yQtKqfO1goGMxIbIPLdYQYOh0IZVtZwOgD20XYcoRR7gunsTIYg1NP TmZl1jZEQLpe9dhjM1ocRrKJ7fIXtxyKJx+PGDOZmNag+CfTW4Lf68MBiRsMYKWLj45j fzQ+KUf2iuzYlvOMrbePcXRM1C/rVJRjOwNAOJ3WTP0Jg5BjTWuFp5j/soH5p4HhDfW7 EEABDtGfd04AC8VEfsK+lW9IWu8pD3o/yTeYpqBnkpLat3QyM4eXALc3/cpPltB8zrWu Vx9w== 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=bCBf6unOrppIzqlJ6E6KQrd1OzGVoV8XAj786J/PFp8=; b=zB8ZYf33hLVcnJPPIYcS51HMLfBTAVlYlvWUvzRuhbJm98hyPZ5pOZVQHrfzMlb49c 91j2EQovHisekvMnl2bL/POE9eKzjBnFpHDnSNdivRSF/iFCWDvO+tV6nAWP11nVzJBZ 15Y/s/LS+hyuFN5tm169EMFmnu1Efqxms9z+PyDqnk/NLw01d/1lcSgjiPgG0pO5enU/ ChwS5o8+OJJB96yh1w9rHipUa8rS1tpqOlFH384Km2wAsQHYXxRteRLW2dcLKL5AqEVe daGVixtQhE8vy8mWoNaZpctbnSMQvx8g21mAmJPWYGYNd5byJBu16/39DjS2PeETH7ME zr9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ZOCGMbuJ; 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 nd37si7168148ejc.708.2021.03.22.01.27.47; Mon, 22 Mar 2021 01:27:47 -0700 (PDT) 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=ZOCGMbuJ; 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 S230078AbhCVI1O (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:14 -0400 Received: from mail-eopbgr60067.outbound.protection.outlook.com ([40.107.6.67]:64443 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229548AbhCVI1I (ORCPT ); Mon, 22 Mar 2021 04:27:08 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bi3u/VC1Dcwavpp/RNrT9thkSoOv12r9Oyq/CJ1Exvuey7C3TRNZekVS2Ad5tAB2YSCc9ULbcJ+ANfuZTMA8qt6xZSlLlDMuV5Z7BX3aheqMm2GVrfGsJHdj1E9YUJZvCnNHbeYLNHBqTA9mH6bP47c0owugDkjpondN9KwYnEhbNc0d+qj5uQaVWJ5ggv5iIQLrjkTk1dVJEDVWxoUbtbCAht8YjMDPsB1xT7uVYFarpTeD3BkPfW2BXKXw9r1YSKolvTuNRTypW/LxxYGQdv5AwkZ4/68vJCTEIN6R0FYe2nV+jAUEjYqLbmRF2ur3+U+WjdV2XabsMLWmNclazA== 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=bCBf6unOrppIzqlJ6E6KQrd1OzGVoV8XAj786J/PFp8=; b=Zjx7TEEt7zhUKvik7iZnTmiZ9C0aVmdXsOtYYpiQs4QaSAEXSXNWUPU90F6gdFqLIyoPsXIL4yON+jnGqoiyyQKZMM1fy/PF+VhkUiOdn+sz6jDxSmeqGwsfv+Yt3GZ4yiFlmt9Wdb/xh0h5wjlqs3F1pcAV1KwIQZCl0BhrycQQfmQt0z6rMjN7X78uGbNAR/EF+w007/1YJCvxLD4gkTfbKZftrleqXfgaLBaXjh2OYpvBPtrgIGhuLLbZUEKAX7P4Q8P4kCYx9wIAgoDt+KqX5jyoyo8sfLp4OKcUorpGtBYOD4+xEW9avUYyXFBko8qrgPbWmevREwk7KjxAfA== 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=bCBf6unOrppIzqlJ6E6KQrd1OzGVoV8XAj786J/PFp8=; b=ZOCGMbuJL81EKyOsOYiJ8uU4GUEvuwGGGt38n45/OCvkaTIp1VJW5CnZuhAVvhW79JMUr0nevyryE7xb0v9EtkcKBPojNHwxGVwluxFDBMEUim7nk1H8W+wsIQYbBf/sUpZMiso4nIp5wKBq4lxUX1PTuQ035hKhfEeCNH/z3GA= 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 DB7PR04MB5993.eurprd04.prod.outlook.com (2603:10a6:10:8d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:27:05 +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.3955.025; Mon, 22 Mar 2021 08:27:05 +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, Peng Fan Subject: [PATCH 8/8] remoteproc: imx_rproc: support i.MX8MN/P Date: Mon, 22 Mar 2021 16:12:43 +0800 Message-Id: <1616400763-16632-9-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:27:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 18d9bf9f-be6a-4222-aaf5-08d8ed0c46ab X-MS-TrafficTypeDiagnostic: DB7PR04MB5993: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:335; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ZumD0z9jX+tPje2KiazrZH3IU4QobLExpJXjwlzjyaZro5khU0Vs5GCuXtYugmmoRS2H0siItl+ELBHBM5E9hkyxlkmOlWmg9Axf5VIor5lAR10kj2bIExiMt2nH1vOinmDb3XSyANXhTfjuFWiHGD33nZ0pzKDE4cGYRnrAxEkVFWlgvEH2pus+GUoUroVodqftgJXX/0pZfOpHEFXEGAHPIyAUe7/X6IFb3z9Zhq2XALnnvKulrWLwdz2JlG14bkjFbca5IwdV7WBMmuQPKYqQC4GyRsiOBPfemLZ0YEhUcTwkJgm9KIIcE90PwuVe8uTjnTEjnZRIDc3rLsSFKknmJ6hEzANo9stgp5hGuqI7fyF6Q/YrI/VISgBiQ7CECJXRCq6GKEFYpxqIfnMu7yhsibvLQR8lc5gEnUDQk6JLsgdiD3614lKQR7ug/xcQVoflJyx+IU5w//+RksmGqqgisOlmRvlOhlV0npcPxdAJubM/791LwufRj0GnXzCNY3PP2BQhDhwEjG7/AaX23IqU+FtBDIVKI9TJk6ThAm/+M0i6B1ftJVnFHqfc8L2Bn8AWqnEoU2KEnR7XtnZqnMQ0/rwegThgI+mxgXboGWHnjZuBKMInmabzFWZ+L1pDgD/VCUcgy/+v5VA4YlxA3exkDtgv5HYzn4ARqT9hNxB8LYvi0B+776t0Y2MKVUX 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)(396003)(136003)(346002)(39860400002)(376002)(366004)(26005)(186003)(52116002)(316002)(6486002)(2616005)(16526019)(7416002)(6506007)(956004)(38100700001)(8676002)(8936002)(66946007)(69590400012)(66476007)(66556008)(2906002)(6666004)(5660300002)(4326008)(6512007)(9686003)(86362001)(478600001)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: VbfYH4nmh68IwS8LxH87MPdvEqqI1i06T24h0yniWITJ7OAEq9w9fXEyj/9cwNM1wE2RkeVKahCYqpWbzqfXlC4i2mM+y6xY1cNyXS+3xRmFQvULNb9PXZQ0cOjAjwvl1L0PnQacpbQ9hxrtyhFA9wswSyEwsYNK1WgD2DPA4jy7/DLN/ukERYDb2eHZejhRuqOMHCY1qipuvegaT5+bYn/giCZXhjkrY6WTYpP+IIZ1YxPa2kwCBaA+hoBqc/Es2JbpciGcPjQRGLxvWwNLaZXB5d73lS1P0qUJUqfQmjvLH3UiOxnCCPtudAojILYDgIs2g2lddD2EVO0VTtGuPkbegixZntvrCx0A9bKdYcMONP2l/2vZO9IIv28TGG6lR157lBr824lITczBiUMNsCJ+o74B/glN13dZM0R/FlzMyzXmJT2CCMlF9x0pDlu0zmYuO84UoxLcu4yyDGKDxbbZ9xpPxsgBASZ/BBd8sLL9YAhMW89qqM6wnZkam5z/LkbZFa/5bJ7bRu3PL7E6uYQwSQg4ToNsN1V5/v4dZ3yaxnlm7xhZHLQriwboraCOFy1eV4vsAACRY80hY6jw/+iIkW1IVZujaoTDdNpNOov0WwND86Yx7glUZZavPY90oPVmp2EcUNYlqgEqMlDH9dpCr73BDgQvAEMLG0Qwn+mPhogRXa0OA0v9PjdkhKwnMWR33V+FMn51O5qN8kSjzOw1L/FPUVM08BrBx7gXA8YWy+RT4w03NILdlTSOcydOUqrSLnKq7mT1aqFIcOBUwdN9il5o9AFR3xZ8vOuy34qZbPB2M7A/1SRD/65zhqZXxNzJ92oCUIB44Kj/OVtCpPn3GAazHdrmDzsRe7gMZTBmV0xCR3Wzd33hd69ZiQ1P9M4tXf5nSFdrIu/sj+NraRmboRL5HJXfgnNbzrU/SakuU+nCLFdFmKRO6mTm2LuKUTGPrhfREV8Ry207DPOpiYXiUzOjQntr02yM551BDUr47TLoHV9WmyECpmvY5/7CL9RFQaT/c+SSbFgh4L4tzqSitfWMvvjd1J7cYIoeQSrQ0k15xZQnauw3KHJea/ErrmqLBvzR0MHKHLuJxGILdWokkiEjGecn64kkhUTCu3xKVQGiCElzlm6iZ+EZ+qwvli0RVIWF83SCEQDM3Ur/SYSBkQ4Ia/CdpMB3Llg7wC/p9f9WA2nadM/xS4zSZjGG+pKfitjlLyBT5C8veXzpdYajhsycaKN4bxCkUw6lt59S3+J4ahtxXyuJWQJBY5Q8Z+fO+62uZ0XXl3dzNs3VDpuD0wMc+pmr90CnOVbLMt6Q1siC3Dt8ePh91T/ukIon X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18d9bf9f-be6a-4222-aaf5-08d8ed0c46ab X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:27:05.7309 (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: N4hFrfD0dfb/2qUPe9hnDCSdwojjdsptpFR8oLDlATK/SsTwo2MarBQCsLQQM8JGhfVt0DXzvPuPY3iWuiW7fg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5993 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) support, we are using ARM SMCCC to start/stop M core, not using regmap interface. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 89 +++++++++++++++++++++++++++++++--- 1 file changed, 82 insertions(+), 7 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 79a6b65d60b6..948139321330 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -3,6 +3,7 @@ * Copyright (c) 2017 Pengutronix, Oleksij Rempel */ +#include #include #include #include @@ -50,6 +51,11 @@ #define IMX_RPROC_MEM_MAX 32 +#define IMX_SIP_RPROC 0xC2000005 +#define IMX_SIP_RPROC_START 0x00 +#define IMX_SIP_RPROC_STARTED 0x01 +#define IMX_SIP_RPROC_STOP 0x02 + /** * struct imx_rproc_mem - slim internal memory structure * @cpu_addr: MPU virtual address of the memory region @@ -119,6 +125,36 @@ struct imx_rproc { void __iomem *rsc_table; }; +static const struct imx_rproc_att imx_rproc_att_imx8mn[] = { + /* dev addr , sys addr , size , flags */ + /* ITCM */ + { 0x00000000, 0x007E0000, 0x00020000, ATT_OWN }, + /* OCRAM_S */ + { 0x00180000, 0x00180000, 0x00009000, 0 }, + /* OCRAM */ + { 0x00900000, 0x00900000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00920000, 0x00920000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00940000, 0x00940000, 0x00050000, 0 }, + /* QSPI Code - alias */ + { 0x08000000, 0x08000000, 0x08000000, 0 }, + /* DDR (Code) - alias */ + { 0x10000000, 0x40000000, 0x0FFE0000, 0 }, + /* DTCM */ + { 0x20000000, 0x00800000, 0x00020000, ATT_OWN }, + /* OCRAM_S - alias */ + { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, + /* OCRAM */ + { 0x20200000, 0x00900000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20220000, 0x00920000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20240000, 0x00940000, 0x00040000, ATT_OWN }, + /* DDR (Data) */ + { 0x40000000, 0x40000000, 0x80000000, 0 }, +}; + static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { /* dev addr , sys addr , size , flags */ /* TCML - alias */ @@ -205,6 +241,12 @@ static const struct imx_rproc_att imx_rproc_att_imx6sx[] = { { 0x80000000, 0x80000000, 0x60000000, 0 }, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mn = { + .att = imx_rproc_att_imx8mn, + .att_size = ARRAY_SIZE(imx_rproc_att_imx8mn), + .method = IMX_RPROC_SMC, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .src_reg = IMX7D_SRC_SCR, .src_mask = IMX7D_M4_RST_MASK, @@ -246,12 +288,24 @@ static int imx_rproc_start(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_start); + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_start); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_START, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + break; + default: + return -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to enable M4!\n"); + dev_err(dev, "Failed to enable remote cores!\n"); return ret; } @@ -261,12 +315,26 @@ static int imx_rproc_stop(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_stop); + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_stop); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STOP, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + if (res.a1) + dev_info(dev, "Not in wfi, force stopped\n"); + break; + default: + return -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to stop M4!\n"); + dev_err(dev, "Failed to stop remote cores\n"); if (priv->mode == IMX_RPROC_EARLY_BOOT) priv->mode = IMX_RPROC_NORMAL; @@ -591,6 +659,7 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct rproc *rproc = priv->rproc; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; u32 val; @@ -607,8 +676,12 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) priv->mode = IMX_RPROC_NORMAL; } - if (dcfg->method == IMX_RPROC_NONE) + if (dcfg->method == IMX_RPROC_NONE) { priv->mode = IMX_RPROC_EARLY_BOOT; + } else if (dcfg->method == IMX_RPROC_SMC) { + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STARTED, 0, 0, 0, 0, 0, 0, &res); + priv->mode = res.a0 ? IMX_RPROC_EARLY_BOOT : IMX_RPROC_NORMAL; + } if (priv->mode == IMX_RPROC_EARLY_BOOT) { priv->rproc->state = RPROC_DETACHED; @@ -750,6 +823,8 @@ static const struct of_device_id imx_rproc_of_match[] = { { .compatible = "fsl,imx6sx-cm4", .data = &imx_rproc_cfg_imx6sx }, { .compatible = "fsl,imx8mq-cm4", .data = &imx_rproc_cfg_imx8mq }, { .compatible = "fsl,imx8mm-cm4", .data = &imx_rproc_cfg_imx8mq }, + { .compatible = "fsl,imx8mn-cm7", .data = &imx_rproc_cfg_imx8mn }, + { .compatible = "fsl,imx8mp-cm7", .data = &imx_rproc_cfg_imx8mn }, {}, }; MODULE_DEVICE_TABLE(of, imx_rproc_of_match);