From patchwork Tue Mar 30 09:12:47 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: 411691 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4299945jai; Tue, 30 Mar 2021 02:28:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzntvsJO6jPqoieQMWixB3xhZZa6jWIy1K15zblc0nWlMa/Hi3gL4nQzjyYcSM4mlY63aA3 X-Received: by 2002:a05:6402:354b:: with SMTP id f11mr20517828edd.361.1617096497919; Tue, 30 Mar 2021 02:28:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617096497; cv=pass; d=google.com; s=arc-20160816; b=xHU6jAkwtLDslHVf31yY4s3FDXNxQHauDLEYyNKyNzEviOw9Ji847SvqmWFhH3rhk7 RG/I3Ng4Tj1GKDQzGPzvd3qzAKBKc9eu21VdSwx9pWuX+d6/eiW8QsXG5LaLjM8Qt8PU pR4Cf/hX1nraK485vXPMHqi04jo2BiD6xmDde4/6aHnlL5nuCwCnf4h8x/7zCKWncBPy AOMKlVQz6ccLQSFHrEqhDgJaHjwdjN2Fzn1JS1eMRv/mrPSafdl3FtIi1j9ZaHw0fmNT dH04a4La7FLdOSo98Z4514kpRsGGDgFcFP0k97EfImtC8ZTSL42dLGUOrR5Vde96LTMi JBEQ== 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=IDG0D6zfYNJqA/PXlVEbpx8jCA2iN46laQRJEh+SubE=; b=qOsnbLizX+KduISUKzcEn2aIoZj9kLLChWXRVYfg3sJfrZtahBXhIkLjm+Yu9moovH QyknL07q/a2KCMEpX06i11qeMHt5OWqh3rN7soh3ODTo6pnB3O3s5vhOMH50UUyRYKHu wgQETquxpRwCOHH+95QAUt25u8PJufevPAc1gZe0u48g0dYbJY/ICk70WzqrKnxJOZVw fKJV6Du1hylayYyuKuqwvPHmEA4ib7SZCxSjS0uFSO9innEXPhcqIsRZpvmR0nWKJaZR 9YapP9ItTfas/6k/+xiTTrTAgfccmbBFb/bmAvyte+ug64dvw+WWjk7/uhWriJSl79aN TQEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=I1pNX1BN; 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 bx3si15364312edb.594.2021.03.30.02.28.17; Tue, 30 Mar 2021 02:28:17 -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=I1pNX1BN; 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 S231820AbhC3J1n (ORCPT + 6 others); Tue, 30 Mar 2021 05:27:43 -0400 Received: from mail-eopbgr50068.outbound.protection.outlook.com ([40.107.5.68]:8865 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231773AbhC3J1K (ORCPT ); Tue, 30 Mar 2021 05:27:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UmNSFYJJ6e3+9RDgw7awAl6J7NtPCRyJin3Y1sO26XFJRo1joPlOQKVc57hP95aE3w2yj+o+3QgUA5k+Ck/1YmHJtr3PMw0EglZHSlhIPwh7y3wdapmmaWrQT9sP7JxDbHIbb8xksEZBX15SQRNHO2quXj2lIHUn9gPoF6cZrHuRUtQv6u+eGSvIGYigA0vKUvczt04ULKHN0REDbsTOvruhzEjuNbrrnNjYGerEb1/UqgcKg8wad5cw9/U16+6CKtnN84jp9pRJ/UjGYTxHu3wsJfd9GH5uxPh7dCZiEAZ/dkKRSYiJ1Vf51iUMrWIGa6Mau2xTitBi1h1AOLwOsw== 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=IDG0D6zfYNJqA/PXlVEbpx8jCA2iN46laQRJEh+SubE=; b=PSecAQGnTKwUELPdvAFuqxjEDmeC2l41tWRhFicTwr7yjIJstI958ruNymp48IXf0lAC/MqUjQkwiI6T7l0dypyeavE223fiwPiGQGYzVyu3Irfi/S1Abv60pY85Il0FekNOl3/N7GhaRUzEjHSfqWoJwg0u5pzZSh9ADTHeuCoOaS20oFvJBeTaynnBSULsQvZtQetseXFOxT721dwXBxM8GoP4gTzElwkOgxeGqU/c0tLueJlUkHa2PwQZ5nzPkMxmrv3vv6QMTv29BR+DX77hl34rgPHOiImaqgooVZzMEoURWJr1pC+GAe2HusvzpWR/dCf4UlOpPN8iBhGlWA== 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=IDG0D6zfYNJqA/PXlVEbpx8jCA2iN46laQRJEh+SubE=; b=I1pNX1BNYP/fv/8jZC7SzXH/2vvN6iKyg+2L5H55yeQp62koTs1JAWFwxyelD0d9zZgKwAn0Ogfrj9Y+3Jdnv5fFtedQUnSjvN8XIIqRvnLQim64cPf0tJ6wt+9fjrauD/ns9lnve/X55Ug3e23keEt8QF4qysHa2jXxL3F8R4g= 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 DBBPR04MB7595.eurprd04.prod.outlook.com (2603:10a6:10:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Tue, 30 Mar 2021 09:27:07 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 09:27:07 +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 V2 1/8] dt-bindings: remoteproc: imx_rproc: add fsl, auto-boot property Date: Tue, 30 Mar 2021 17:12:47 +0800 Message-Id: <1617095574-6764-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> References: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) 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 HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4020.0 via Frontend Transport; Tue, 30 Mar 2021 09:27:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 04f410b7-da3c-4f66-7c3b-08d8f35dfcb4 X-MS-TrafficTypeDiagnostic: DBBPR04MB7595: 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: SRUuvWWkl2W522T8hOq+j1GiIJyvYMZu/+qc/s/BQMImLXGqaQwdqa17hHrU1+MXLb3v7oPn1tBE6aKfKE5BSml/SYUy6uo27b/o/WIySw0tNX1Q4z1bUY7cHYxS5R7MwBoftTpTtgpn1WuMo8GRDz98AmFs/O5DVak71BdJUysoEyeCqbdWP+5yZ/nyUc2arxxr43O32AGlNHZV80b5nGxaSI1vxyodgiwLdkcAcCZuT1313i31hZ+eToS6Nh3a9XvlEEznXmu5FKB5/BXfWHg783NDdJGSqjwuMaxhCzJI8OcS4GkSalIaNV6sAHs+/3/nh9C2oTIYSPHancWAXiJ9UfqzfGXtJGRSxt2Llgsuc1Ue/GRsS9VprcWGwgNcBGRBopO/5e2Yr2DxJK/RQA+WkcUqxpZDZoYIf/Ruc2r9mVnib5fQ488a8sOvhiLwlQvLODyfchges8iYECHNje2+hkd90Cf30KM0z/8msv/jgiO5+0GTkqzvomHOH9mI3zfh6kCDk5+ccSsAHH0e5epDjAHr6nEgN8tlO3QC2R6BEPE36SurN9fXIsRfUcOZxSlnIg9UF6jzy4dEbSmsWlsHKQIA13zwnbSo34viQpXNZdjcH3EZevtInvYPutu+0VgyV+Ef9GWyPEei/rRMkG6n5RETp413VWXRAK0RtI62WG/KwHjGs4VjEAa4dzmq 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)(376002)(366004)(39860400002)(346002)(136003)(396003)(9686003)(66556008)(4744005)(2616005)(86362001)(6666004)(6486002)(52116002)(956004)(8936002)(66476007)(38100700001)(26005)(4326008)(6506007)(186003)(83380400001)(16526019)(478600001)(7416002)(6512007)(2906002)(69590400012)(5660300002)(316002)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: BifXGDV28qU6NOEi9liNBYRvUBRF8k4b4GQx+D41+Uac1+79D5UyCbvQHQudi8YJEId29ukJE8l1ALfGjGils1PNxnGuWA+kAjzyibrvv02rZEhrfoZNQ6cp9aJC7R04iOeEe2OqzQmUHFCPgGAzNnrucibOskRTXZCWch2n6svI/+suqoQU4HfePjIYRVLFTdmVyqTqBhur3Fnw89N8Qm8Oo0wsF2Pxw+GfFLi6knfyuLZrTnx8jrGUp9gXHrGVbnjp2Iq2nHW/hrsicRV8JDhPVfULypwpan/dt0eB5MeCpYOTyqgPUEtYLqCxkImeR7RWnn/kYE1l64RO0z5XFPvK4/SZJCDS+Y/+IBhqboOoDB5F3JQ1bo3iHI/L5CzCCChkG6cRV08OY9molkmzho1I75E+gyWe12L1twuHM7+WMEqrCQjByiS1HLCW4tXEOADgFuokhot4is0f1/ThjY39a4BNqDyw+0QWrSAz/k+UA3aKpS+Ta5UKq/sLdmHG5mGe2aaX828Vi5KOct4H+OprSXTghxRoiRHr/9nOHKJ/00IRSBVZQPUu04qfep//Dnr6qgOMmTS9ywmdHPc1AiraelruuyQ3AOmQc6fZugRZGrbNPPgsOnfUMVb7NJrvWpfRtRh92h5VjQhG4nFDudlQBNWEPMpg3B9lcK9wDw8a9GssL5KhO6v4ZvuyAnz57o/CK2T9k5S+uQEST6v0Vda4KdzuMgYXHMQb/13Pzx9qPpRPuOXoIb9X9nHQbKyCh4Q/TyG7cddHkWhFnrzPOQTKyAbt/Dw9sKScCOQ4855Zdwvybd0P4yPfNK0HSurS89Ne9dvAdTmEltrc4Dt6RD/31eX37D2uXU/HSWa63te1Bx8u7Pjsc4hI5XTl/d2u2i9+2AodeRv75uEgXLEWq864lO3ZtTNjXLUpdnOM9hHzjawY84HjFmbs7LwDA/bZuCOXxCG/luUTbcLoO1PYF8lqUljOR5N+KPeabfLE+CuGojVxA0+jEFB/oBsHQIFWHnVTqtM4NNDHln2ncWOni/jUZ8ztUgzj+5RwBTKurjCB8h6gqDhK4O3KPZ5PlvG2eLzrMuZScSbmYz/hu9+9+Xkk46DzXxjSAWKe/ZkSzwzJDhTFUCN6YUttthe46SA6bMhpvWx0yZJnjDxVlACtAGPhi1oRh9DfUHrz9Ds0VtLQXYJBuXF3L3O1cxSJGkt6dSmxj7o/qM2fNNwBJrKhgX5y+iCWXk7/hEQ5HU17vMxKFvzRk61KWOdKuPVjqNrMRFqvv/s29LrXqxo5jg4kxt14dbo/Nyi1DFAMXwXT1IWQYenDnp9rNAj9YsBt39aaeixe/pk8UCd3jb8kAbBJGw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04f410b7-da3c-4f66-7c3b-08d8f35dfcb4 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 09:27:07.4168 (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: Yg85wzbegRDYq7QYbGvuM5QT/x2xmviTczE06+/8B8yTUkffNacFEsjJrp4UkUnyG3Q2SDsyAsH5u/OYHGSFew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7595 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add an optional property "fsl,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 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 208a628f8d6c..b13bf8d70488 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 + fsl,auto-boot: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicate whether need to load the default firmware and start the remote + processor automatically. + required: - compatible - clocks From patchwork Tue Mar 30 09:12:48 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: 411692 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4299951jai; Tue, 30 Mar 2021 02:28:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTSl+RawJ9T2Q9NxHsyOndG39tSx8H6Z99PCVDQ+SScpqNyacpWbhbltnJAwANaL6+WqaF X-Received: by 2002:a17:906:32d1:: with SMTP id k17mr32444187ejk.94.1617096498612; Tue, 30 Mar 2021 02:28:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617096498; cv=pass; d=google.com; s=arc-20160816; b=owjunh9dovGOUUgeMuX0wl+ZMb+yO+3gq/r9ScTfrzGBreXoaoDPtaGvbpSWHzoIoZ rWsMIyfoJGjoISHlDRV4W6MzN0bT0NhnYlBxrJjmFiv6aRiV3k/X2EZNG2fgHf0TGo2G 5uSQcTxmPbz9k7NXglr8nZYZw5GSjJZ0cA2o1mEHxtdvXTIStZpcvw0+MMzDSFuNP7UT oWVZ1Sl/QQCoGAV4yBXRDgp1/svRJktKMVa43GheMoGTI3y6rqWH71itAlDD5nEzkj9U oAcW+klQw8if7h6QjTfoytcN6QmRgurxj/P+/9xOi565+XEgCduIXqlkrSgMyBqLNi99 dP1w== 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=mLRk2+Fgc0+feSPEK6WktzspNN7lNQkTCxfRir666qI=; b=imyhbv/uJ19PStIoN7ma/qWZCl4Lx8G7+dtgLluFWdZjmKjepl476qeb42HU0He0y9 qQ2TPUERh0gdjCchCy/OrAOetrL5uj2fJ+4OU/xrnNeAvDbYId2YME5Ajz3oIgooHLQ5 8RNwFZcG4yFMO/5ylUnSMCz/nqSsDY89LuEjnthKRmPDziGW7m8qeKeNHWs/FKwEyueC 3GCEL+rBWQ3rUf/jhGxmaxldCHgdg2o4LWB4HgEZ95t5psdjcs7VLDFz355cliYdXhVb 4IlH8mJSkhVPWbN+WksniJx1GJzYb+KUNY11tvxDR/D8gA+pciWdLPRmysqvO/gr7v77 dYRw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ItUiGhS4; 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 bx3si15364312edb.594.2021.03.30.02.28.18; Tue, 30 Mar 2021 02:28:18 -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=ItUiGhS4; 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 S231826AbhC3J1o (ORCPT + 6 others); Tue, 30 Mar 2021 05:27:44 -0400 Received: from mail-db8eur05on2055.outbound.protection.outlook.com ([40.107.20.55]:25433 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231438AbhC3J1O (ORCPT ); Tue, 30 Mar 2021 05:27:14 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R/Kl3o63g0WW1x5hiE5tqOvkqtTDNfoRZcdlSt/fC2nG97Gjo6T4ytBYP74acyeVRX+xkuYWnK47xXVn9sek08c9l1Bz6Jxd3gFUa9fr5nm6T9s+lWEThMp5zJDXNRQtHqVr5M9EMc+pp0R8NP5eK2imnL41Ghxk3haGBOmn/3LmQttl6xF3dLFKM0rE1G72K8YahEPbyMn86yEXaKhf4iNIdL/3GdClKyGqL1b576gMpgWuGFJMcpKSBW7VDkjuJcae5u7otuUX6/Kf4sbfV8w1FAZeSVcyARSioe0N4v+4/KxqYgxRFDEDu41gNH6ugSSBqlB1lKNQC53c5OVQJw== 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=mLRk2+Fgc0+feSPEK6WktzspNN7lNQkTCxfRir666qI=; b=UBsi/kOBCjMbd1iWjtLKOU1fiWC3U+i6YGIu97MFbZzFfEqDqbP4JZ+cW9r6q/drVGRMr2HPUboDsGDzKIaY2JsvMRORzGn18tMFwPxs5jwqZAZNmjrM1ZqE6GUilkmUdOWA60zSDyvu9ggGpmv+dU88c8TH2YhbgVzj69x4Q8Kl2Rwy6f9iu9YVE4QCG/PzD1/zDSfFSESUcQDvQyaP/Bjw+P/7QPoj37hdudXgMC8IFMTdQQY8LUe2hiVB3eF/9bs33ryo4aUTmq0+BlbEIqgjoiKGNSdgM2Pn7Iz506KOrgqg9Xc2biSnryIL8fKBt9EsyWynjrRIVVcQPPT5Uw== 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=mLRk2+Fgc0+feSPEK6WktzspNN7lNQkTCxfRir666qI=; b=ItUiGhS4Ecais9ekYaVCmlUIMVCWpaTuqwBSR751SPH7GfEIJrAftbi+CuowwCJAMv2wm6Au+iXz5qBY+oTtDKrGi1UW/3VvgGnaAhHRNH0beBtNXLQKQgerSyoOdlw9lRXmDi2nSvM+7dDns5yEdHTokDOWTE1r/50A2CJW/XE= 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 DBBPR04MB7595.eurprd04.prod.outlook.com (2603:10a6:10:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Tue, 30 Mar 2021 09:27:12 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 09:27:12 +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 V2 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support Date: Tue, 30 Mar 2021 17:12:48 +0800 Message-Id: <1617095574-6764-3-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> References: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) 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 HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4020.0 via Frontend Transport; Tue, 30 Mar 2021 09:27:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0ea81a05-64f2-4f33-8faa-08d8f35dff77 X-MS-TrafficTypeDiagnostic: DBBPR04MB7595: 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: +G1rbUOHPOWxMpFNC1Ik6pN3anOG06as0TD+HmzpVe65ufuSvTrLyJsiXcSnCSxtPYfrOxbqC3nfX4jsOxeXbujpwkkrczWuB/5CDCuWvgXiZ4N+CEIE2g4OYivB16l3o2Y004yU15/4jWqoLdBKnEofX7LO6Vl7s6XSQaQueo6F5P2LMciZtjzzFBDHbEocvv3xA6kH/tVLUrMsWDr632G/76ANFx6rhvs8+Nl6JB1q0d0WegjakgImX4rGSSfJDbUcs5908dcH/GX8NUeHMFTWHJeTAHRzXe12yuTPJX+7laAetybqV03gCXmE54xq62/Whe6SFl5d+L1KRN4LuRPrcp4VilWKa5UopArqlfwk71vowB1J+g6Y1SYLlmTlJ0ModkRh69N79xR5D+BgCLHl7gYVj+SJmoOFMbD8V11yqHxu4wRk1TtE5yyroChVdzzmXqq1HTV68jCwHUkKwHPwjRfq1aKiQiCIlIT2eMTbQ+72aptHQmh7zdBGLKjmHPSsPDW9Mvz+xjSZ4h7kD6F8KGThY/pZtDbe2S6FgAl7XGZE112QczbBZYCthSsFDilbQCxfCu8PT9Ya5W7T9vyr5y2EItA5DbblzpRPwcrL1VM72H6SyLNw13iJu40ZY6xT/+5rwYG9lJha4LUEe/bO6jf/i93HCbaNhbTelBUSNso6l4m6Gfz+Nc1aQjxA 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)(376002)(366004)(39860400002)(346002)(136003)(396003)(9686003)(66556008)(2616005)(86362001)(6666004)(6486002)(52116002)(956004)(8936002)(66476007)(38100700001)(26005)(4326008)(6506007)(186003)(83380400001)(16526019)(478600001)(7416002)(6512007)(2906002)(69590400012)(5660300002)(316002)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: xUsBPlMuUEgk000Iji3P7WG/ni8MNP6oPtp/ocxwJhUw1XnpKj/BhS4HYytywXVuQRQ+oZ37IzFnwx7j1n9BmGwMyULflwWDGr29SM8Ry5POH+uuGe1yecR0+fnHjI14NqkIQb1SrRuz81S+xIS2VyRnLXQ+ovJexbUgtOxJYviEIkvw+AHCTCDlhsC/yyeDdcMLyar78/KO+1ojzmf1hGOPDicwNXyaowa+OmvCiwAQm2an4g/+gE/GjGLeDjdOQIjozovscYYZU93xD30HT/MkCZcnrneHgvZBlm6LP0aBONrnwNggJcPL/3UO04FqYiXIjxZVRl+Ix93IEY/Uu+/hi6GXw996jjjDnU3W5FYIip3CxU+9D91nT28myRCeN4k0nnilMjSHEBPnAm4tpnN3NbyZJTLU9rTyAl1NFzO4Zlg1UxI/R49KCNWNVCawB56yDsLjD8Al2J1kKvpHPe15P+x1yKBG1ycbi3czBvpReo95Z/X4esq+LbNoFOJdNHAq4WeU4GUb3bjbS+gF4QDDVbF99PHevxAOeM0kuZMc9cxc+3DDISpE+DsilZj/H78D3MkszBlNACUXvticYHaYyP3GsuDI8o10ZYgRZMQ1TgjkZK1XXTKjaH/3z1cBTF4IhL+I20ksUuJmzZ3LBWziVdrr2InUMsdfs7NUs03srv8T/h9r7rzt3aTdl30yZteZb37/WT+vKQL1p0lLtWYNRl/Ciy+gGg3/fC7DTOTHXD8tkF12UOKm18oyZoN8Bq00NICqmA/aSBGDn7Hij+eZv+kfctxFD5fJST+g3tqUjeQscNjJVNvUvjlaVw6r/gNdx5gDXjo86hcF1Qp+O5Glri8suPqu/MlYyJuP+YvCua9HHKdp4BtaIeDdBWmoD/M1M43M5+IFa0OHkOqU2qTr/Y/aKT4OhXtQGzuBuWxOT5bUcWtBaMF9BH+YVMp38hxy9Ln7LYiD8XwlU8jdUHLDPjfD85qT+SkdBkSx/iU5VOe41TRkKtkd3mLReBmf+ZcTIpDmU3CE21jeq+f+eMaZPCurfRwV7iccIuPC0TTSMCHucQxTi/5Hkusm3zryWSpco8ZWCGchYkQrEuTffwliNcFwEGnetrceDtrVn6CO9pKBYiHypTSu5J6c7NQyjnSttIN7FA6crZ4zgJu4IfEVqr3zWsLPYVuBXCNw2bQnc4V51ZXxXPj/IsZ96XNK3Or3X7qwroazfYTIXhhSkKlnjYuTJrWxSyd/Y0j1WBNPIbG9NdxTA9S+HFD4MABnC71wssWgux0LuZWqClJI9UsjIA9PsRkcKU4Qkfjp1c4ylk6SNmAm3w0rO5am3UfvlBQ4X3DClN8hohfI0H+Q0g== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ea81a05-64f2-4f33-8faa-08d8f35dff77 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 09:27:12.0027 (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: yFhAI1lIuuubaRA3uNGBO06RhkEqux4+nsmqFYj7+6YaixI92rrAw5Jp4v1v/bADm5n61Wnu1aVLxIAI5FsrSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7595 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 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 b13bf8d70488..58bc2a23f97b 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 Tue Mar 30 09:12:49 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: 411693 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4299960jai; Tue, 30 Mar 2021 02:28:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWEcD90L1inykhGyhh1VyIi5rgHx8u/xR+wUFyfyo4XRSLkWUAc83M52AHAwOg8ZZSqisn X-Received: by 2002:a05:6402:1c1b:: with SMTP id ck27mr33125745edb.223.1617096499448; Tue, 30 Mar 2021 02:28:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617096499; cv=pass; d=google.com; s=arc-20160816; b=yeYAwLiN4pL5Si7dieV5aCncfy+GpMLAJRCwTTALtXe01Jpl9K+L/FLaFOYj9zpVmg oDNGpHY8FkC9t3kNS0cwws11167PxHLZ62xe7JrBAXJHdO+LE+AukThofJZRGwE1Ao2P zFicJMyovJ/EKAp9W6N+LokYa7bpL7nluPfTh35t2vcByexLLtJmYhD3XYEl6N79j3Ls HiYhVRLhj1reeMpwQJw64DvzbkziRdBZ95Fu33ZBXX7DUMKgv5CLpX5KYWtLlx69YVgj 7qkFrCLIajxXdSkmw6iE2ki/yQhX5eFrPnJ+I4geKD90vVlDURng/FzICrW+50fen3Pl KP1w== 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=5r2YS1IJ7iZGrBoTfdGtwCXcI68fncREV/Lm1YGhqas=; b=e+8fHo3RNerTRRUVXwau6ByoUeVpVbb7uEoC4KEWZuQlEFr5+zmHSSURxZpvXGKvQ6 xoWYfOvH8NTZ2Uol3PEkkjKVpqBBZLhAJzUqDQqRmKXAsbT9U7sXvdPWc2eX61Jz5W2j dca1QkiiDjL9C0Kq9I2ryUSkGHehZlJLjPI8+45MPqXGPblljuwyHDpC+r4MHnqRLa87 rrCj4AfkvmQxmQ93J9P7iFW3soKTZLJ7BOpSH2/3daSer0TuUrkD0GuDZJn3TaB7yElA u/ofDZXxfV1iqpFv0R2mILA/+6u6v1YSmb66q3zhxnVVzQWnq7QYEhVte73QpydvumzP FbYg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=jvAik8nP; 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 bx3si15364312edb.594.2021.03.30.02.28.19; Tue, 30 Mar 2021 02:28:19 -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=jvAik8nP; 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 S231831AbhC3J1p (ORCPT + 6 others); Tue, 30 Mar 2021 05:27:45 -0400 Received: from mail-eopbgr50046.outbound.protection.outlook.com ([40.107.5.46]:5605 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231313AbhC3J1T (ORCPT ); Tue, 30 Mar 2021 05:27:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lT7Lh+sZdcu1XAyBwj88tkEn7aLP5GLierTOVZAg1ktRG9l02ujLVvdVPhnHJZRA5csaf2sBPuST/iUefHG6eUK+SHZIcrtBWW5Z8Mo5Y7IH2/6DPw3AHazJAWdfPRxuyrkMNbzg6y854n7He/VkmuWuVgTQwurI+iekxNICPyePWcst34vlH6fPw7HEbMyJSB22ODlEgMI8eznqlWQPvC4/swxHeFPXMeueAZbvX/vxgwtm1kxHdMFIayA/DJZulvky3OteaQy3XSqTLtxboN7LupCgfcnIYb/OycM3q1h8LfXkIFfKkKZwwx0leTDQDUIX868q5IdW6mXYSgACQg== 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=5r2YS1IJ7iZGrBoTfdGtwCXcI68fncREV/Lm1YGhqas=; b=YmfQC/Vbx6mP2Rryp8yxy2dOYGJfqBIwRfv2Ncp+DmZYjOe+WGAVdrMTWm2M29jzj82214x1Ticqxhv/6JD2LvRJfWHf9mpUcAtX+fB8gjW3hYueYdNzT4Mtido2SuaMhQt29uIJONgnECqEfTJgt06YMdLBY0Uh+JzX2B1H5wae0MpW9q9SLuK0a+griYdjMNeDfesEATP2rvXEou9YTs8or3PEX9yQZOtpl+ReeBagtCJZjj17vCGneNgZxCvFV/bJDtKFBjZ0AGTmY1aZugbwvGb8OCHPyJCXASumvVaixmD3tE8I9RcEUiUZ3YB/ZoVcvRLcFWrVcIfRwr9jHw== 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=5r2YS1IJ7iZGrBoTfdGtwCXcI68fncREV/Lm1YGhqas=; b=jvAik8nPjD0oYmp4xQ67LLdudxRot/1+Qlr0yZUkngIYJ1aaKfU97tjwvB2U3bGSFqzf+QuofSfjyg4Dkk38KKryr3G7DxXh+XBqdCPBzE5ImvsAaThZBQvrJHGTvVPHJHKzqU43otE3c6F8m0ID1JURAAzB2N6T6/Xw4yLODmY= 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 DBBPR04MB7595.eurprd04.prod.outlook.com (2603:10a6:10:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Tue, 30 Mar 2021 09:27:16 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 09:27:16 +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 V2 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P Date: Tue, 30 Mar 2021 17:12:49 +0800 Message-Id: <1617095574-6764-4-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> References: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) 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 HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4020.0 via Frontend Transport; Tue, 30 Mar 2021 09:27:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 938234a8-86bc-4457-3a74-08d8f35e0246 X-MS-TrafficTypeDiagnostic: DBBPR04MB7595: 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: Knp4FtNZSR/k/z6wgqgaMO6DrsYoM0xG1Ngn5+ocFxCQVJ5STpoymNCtRraPW+PGCFUm5HGgjcS44Vu+/RpBrGsipcnGai7A67wgDG1wo+1bNZqn6FexA5l0pAq+YerYmJMQyvQ3O+oYPWdNiqekCUzdFY/potjQXLLaSYsp3LqFRuDwHf6ESHgMtZfDtSbrJw3LWmO7ibPBIEDMwQ9n1+yhi64vs/qBlMcdjBTgGznZ8u3kYabNvIsB9t45l/RMmgEdHqn6V9Q8C0S3UN8ua47W+hspnDBsuUSksf1jWr2iLjtckDvrn+SSNiF0oH/1UOFVSquFv6qTMYIprCsAT1nkCVkCfuF/kMLQTgkID9WaowgPrAcnHQd0zJc6XCDkVOUXn+IQRAi7gybCAuWBmcLmTzjBRGTWv6O3P2ydxQdOojjUGxX6zGDEKjsfrvh40au+yo8PzKfHQU7zqmlH4B50mrrgRzhfl+45fhoYGBLxUf+cYulDGsKLKObiDuqC/TysMaNLSlbdBR36SXsxIkmxAdgwixyGIizlpUGLT0MrFfLtXksU8zMEeLDx8jMK6p9Qc5HyUSwbgwHqRXcoMygBOtL/dDlX78wK6a+hU4lOBH04mPIPrqGmJDor9PKwgG5B2b9Y1Wj/jl8E9QsmK7vnWuwPm+HS+7Ikc1oHoB9hIl5PegPE5uPOFBfcHecB 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)(376002)(366004)(39860400002)(346002)(136003)(396003)(9686003)(66556008)(4744005)(2616005)(86362001)(6666004)(6486002)(52116002)(956004)(8936002)(66476007)(38100700001)(26005)(4326008)(6506007)(186003)(16526019)(478600001)(7416002)(6512007)(2906002)(69590400012)(5660300002)(316002)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: L1cvRvtgooT8FHq2Gz96PjDmIebP5FgEGSCS+g3y2gelbTn4mpRbF3pVVvurMoWcWzEUg1xvq218puxjq0AWHCLf/cHwxRwFWxN+XNwyDokfNtVBg0XreD8XFPioAvvSx5TNxXcY0FoD56NzYM+WhBXrw6QOniSom8oDJ/KFHZpKsxh+36MxE15wv/SBo3Km+wAh/lbFjXBEW1AKRAzZi7Do1+2hsWixG9BbVmoPR/gH37qn8DtFpMxGw7qOnns9sdCyWfep9qs7xCprlCQan5lGZwnYMmxMN2mDGqGGctjOfXZS7joIqtG1IcVaP7W4fuAO9SRlPsR+XfYAPLk0RRbZOPP8vYMG34/+ggLq1WHIkJyqyjR4soPWWu0BIf908P3C69nxg+8kWwOwYg6f4/a63FCW1qhWzA7j/4NYxIC8Tcp/TsVh5kgGZGQbittVSEe+X+ci52k/lCw52oPvukyI7ZHt5KZ27ok0SFC5z3uPbScsAGhIfrcOMH4fRZ9+ZYr1b7fwoSulw6d3XpIkT/VDdiZ5yXuM/N4gbGb2OQxNqyBeU2DOEF2yGVu+CudTl3WL9VxO7MJyzYBVwqJyMlBVHfKq1ixvsAspD7cxDnR6fD5VC9pnUaojdOqZCsDN+Apk8/hesB+IXRIRdpFADb1y0VPP6Yq1He0gk168vnqTS3K/RpVb2z+3ycyI9Yn4Bwz+t/ZxvdN+cBOoAJbwmgbPdAk72kpRuII/i5cXcE4BmURE0UR0zz1D32/PC/8kcR9nKosZTeRXjl42uHkCMskAr9vfgfG83XqUzsQU/zRUnPMb3NWnofH40rW+UZbIc32pD+1ac1F9Ul8ClYxEWNvFe5XpiBRHs/CaBSXNkx+TF1/WcAmETRnvlFk3twtMWXiQ2DJg+Wad4DJ/PQRHpyupbOdtC4w5OqIT2B297t4Q+LqYb6GyleiHcHXg2ZertDXAZiIHMOU5aWPlgmd24f9Ro8Xf/vPx2UEhKBHP9W4urU1hM6tEXIDIb4Fyr8fFrE0F2O0Btc4eqyEFTB4pEUSczqoQmYtQOkakq4ZbNizv1R2P8NNUhyBTJa1WxiQVEX59HzwPamOIjq9Omc6gH3a3IuOZuXELQ+IdCc118VcJdfPJQVoOlssCzm2JXDC3wFvVDA1tx6cJREzu378EGS6zu6qbrn3NXF9nZcmUi9saeZBWPONT4dTMlDutbPqH2uQvqFewrYnO66c0QhCeQxJ/vEYclLRip9CseBlk+4GysKl6U4T6SGpY3xW7jrGU7Fbt3Ynt9U/cDh5bmubm22ARW0dbBtNqlqIOyEahJjzino4Gfby37MW3TB+kOp1s0ZoiALXDyb9AtKLbzba7YQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 938234a8-86bc-4457-3a74-08d8f35e0246 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 09:27:16.7715 (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: opn4UM+ii6fic43LeuzM2RY4rQz9FvkWv/XCGRACaLuNqhRQlsN0YV1nt8SnuZMG890g1yFbWy2uMdysaU/+6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7595 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 Acked-by: Rob Herring --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 2 ++ 1 file changed, 2 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 58bc2a23f97b..1dc34cf5a4ea 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 Tue Mar 30 09:12:50 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: 411694 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4299965jai; Tue, 30 Mar 2021 02:28:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpZLxDeTba00SB47WBJw00jyLdQBXB+/lP55XI5O3o/iKQt0M7oS02EQTA8EhMtF8Embyb X-Received: by 2002:a50:fc08:: with SMTP id i8mr27408907edr.277.1617096500136; Tue, 30 Mar 2021 02:28:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617096500; cv=pass; d=google.com; s=arc-20160816; b=zNoUwssxX1xEWtU7pYY8/QcK5h3jO1hhJrkBfyXGdJUMa/65zBgZ3akF10lvRSec+6 dUBqWvT/4xTQA1sZpp59IZCFY3L4fBeKASc1nT1kdWyMKQv6dGQA4ges7+t+SzEq0Qb2 TjYt71fsZf+VCfKJgNawh52s0VgrHC9Ox/75mA1hF3LPeMNJt+XnUXw43i4Bbigrl/bW FbiCxdf6V96t9X285pEsnoIz6HPahGMAsGs0QABpAvdIyOJJQcY5vyyEL7uTLm0rr273 5b3/V7VAi+WY5zjK5mxnQHP8d/Mw6jYZ4NB8xBmTxGWq7O2WL8dm5VkQd4mSsZXjNjv5 MBlA== 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=JElioquqRM3seumWkbwBkQc9IvUvCox/SuXmtG2RAiQ=; b=BBaAXl00b0fjKIICg90LPdZemCyZYlZPs/Fi0UE5//0aw0wjT7prho8KD5YZlsDisn AmQ7glLHh431EXrv0gGR63e+TfAwWEeX1fydFcNvXPriDnk+AJtmTDjD2x24kXoUsrL/ SG3KdJx9iwr0v9Cm8R/TwxMkFnBQggfkjJFr0V0G9XItZIbAxz2+n0ftlDTsnP4xJFy4 lYPVbGmtzX7wWVR3asCv0556JqXbZpaZl8c5lTS8cBOvvCkb541mOW3+job243Mz/pK2 +ntXSZbwAf5B7eySMuQu/a3NCUDFVow7OLgvufgrQfRriW4RaM2R75zOopC6qluo/kNa lyrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=VZXl0v1o; 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 bx3si15364312edb.594.2021.03.30.02.28.20; Tue, 30 Mar 2021 02:28:20 -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=VZXl0v1o; 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 S231838AbhC3J1q (ORCPT + 6 others); Tue, 30 Mar 2021 05:27:46 -0400 Received: from mail-eopbgr60076.outbound.protection.outlook.com ([40.107.6.76]:27668 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231802AbhC3J1X (ORCPT ); Tue, 30 Mar 2021 05:27:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=obgxkbiELEHWyHh+N1Q5ifi7Q/nYgFp5RpM1qhWEZ6BKlOrGIiBCs/7FPh0QB6Exl7VAu0RLzYd1MrdGgmdvYPSvF80yWol7JXyCFX7kdfvYKMaDPB6HwmIk5tzLsMosFz0i6TNYkVbkCYJmUNhRhiGcGlk8RLFvXR/GLuUOGw7kMst/Q/eSHnAJWnV9Ip/pzaEfS0G29nJwkugEVvUHlN3NFCrd3RnDduP2Hv+Cg9e0zOPeTKqBiq2BugGly4Dac2csPjvYqc+YrRvS2aZoZkZg7S43vzja86vPeqVId8IIJxzOXgVlVuXG+AtWMNS4HyWdpSIQZsWaq/B1TduH2w== 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=JElioquqRM3seumWkbwBkQc9IvUvCox/SuXmtG2RAiQ=; b=FjoBCLVzPXrGYdD27czeOBtUK/k+hUKGmshIUxVAVPNRMFa6sUob72xhgSuVHSA/j7WCIFSTrRRzJLqfRVlbvukTg3psvPLCpqc0d4DfwZY5uauGDDez8mUY8jJskjHH3dWOhJMqSbSE4sPHXJqfDlfOfuqSCc6o87GzHk7gnUQxG9/AbwVYo7NUCmC2OeR0Yb0nbfE1Vtw2YjpwcEeufivtk8RgJLJiGQbC0SPvnduw5FUMtimEU4uMrItRA3n9TeJeI5Uz/oFGA4RmnZtuD7cUp8nRIm1Czdot9uWvXbOlWWbWtRvWgar0DtEkc1fSn14mfAe9s9xY+9v9s+kM2w== 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=JElioquqRM3seumWkbwBkQc9IvUvCox/SuXmtG2RAiQ=; b=VZXl0v1oaKV09iFmDyc09f+KJpLtfX4DqRu04pXyFKJ8QNdIqWbfTqC5jJsxkDz3ORFCo64ecfhqwFaUaCbAhqzNWzfgiRYPp1QOrDX5+GQLViSzdfblk8f+8Tb9Btyko3P9qtPgdSUmx0qoq2lrfNx4Nqgd6J1bjp10qNAosJw= 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 DBBPR04MB7595.eurprd04.prod.outlook.com (2603:10a6:10:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Tue, 30 Mar 2021 09:27:21 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 09:27:21 +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 V2 4/8] remoteproc: imx_rproc: make clk optional Date: Tue, 30 Mar 2021 17:12:50 +0800 Message-Id: <1617095574-6764-5-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> References: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) 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 HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4020.0 via Frontend Transport; Tue, 30 Mar 2021 09:27:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1915f0cf-50bf-47ee-084f-08d8f35e050e X-MS-TrafficTypeDiagnostic: DBBPR04MB7595: 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: HAmIllpyZLl6ANFNj6bMcM4gwp99wuXuOT/TC3Y0yyehiP2/M7Ns7aqT/mTbbra523cv6lJ22TRYWu0JszROQSmTJCy7Tut+JkiZl8B4EgWvs4cAAlk/Yn3xobvDYpzu+4boLdCiydsLReslxLZC7tyBBTvZIvUtif8GKY/4K6iVcVF04A6wcR4jYf55qwN1VD7bzdSjJANlShLOpZv0uaxJcNumeGaQGZDy3ixpoKPqJEfJT2r//0LSa3diFQqzzmO6U0UgECDACZdw22i3N3XFYELA8ArhEHd45M1Lg4NSMPnvVurcrNP3/5LUuj8czqRR1FrqzxOaWIbCiUefbZ19ijmcjsWXZGalpnzi8O2Ii4nsuXKLg/5P0cJy+98kfrAfjnlwP7UPXarsc9kmPyf4z7Jq3Qvmmu9YXL/f37f3IRYyW19mpt2VH6BeozwmHwCyY2rvc2R56IL5JMnKLayUsQukx0mPw38hi3CoNABqngegqpDdfyhJy91uEEtNtemwHlv0o8zq2bz3IwPHubmIKA7HbzZ6aImmWitZ89RgyyOLQfrj0xDhKxadrWGSu0oojGVYAc95sv6IUSqMzDflGwDdMPIeJM9dVizTDfuQlWYg1ATwd/5clb9xkR3HYVxc5XaDtkUsWSaT/vPG8ybR/SsAkckh6gpYvGUujFpwF+Yw2dg4lEK24EdBeweu 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)(376002)(366004)(39860400002)(346002)(136003)(396003)(9686003)(66556008)(4744005)(2616005)(86362001)(6666004)(6486002)(52116002)(956004)(8936002)(66476007)(38100700001)(26005)(4326008)(6506007)(186003)(83380400001)(16526019)(478600001)(7416002)(6512007)(2906002)(69590400012)(5660300002)(316002)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: BRo4Q4g5n7DP0YR/NExsZl7rEtoHtGU3ksZ8lq5AZ4JCJsYO+lZJ08zFO8PGYddHA34RCU7DUuVz5q7cD0w0lyvEAfIqPV0rwvZDxSfg8wDhKOhQugqscheTMKMg8UvWecyKy0UaTSojNX2g2DWMgESkKxwGDE5oD6SDke3MQJcEi29M9F0Ur16H8oW7P/6KMVnlADO5ERIj8ecCMnoEpq7s6ZyBtptX/6NF7UH8BBoqgqDTxqpHNzL8ppmNpportB/urX0veunYvAMyRBG2R1/vMC5zm0RwwCq99s9fEypbZ7rUFChpIdzYm4mCipSolhYzVkY3Bhgx9dVxkryOULOcOdJYosDQE8fBJ4ecfoB15sFkinbANVoYkg6pggz7jV/cNb1FcCjt+3ri35QEh83kwVcGYKU0GukdTmHM05fOlPLz1fuBeMZ+jjhdO6snlCSyeR5zGpILJgDHOTZiPZRM4F2lx/LbqvoYu/zqy50Xrr5PYlc7pBJFiJ/H6WwAzg1k3miblxG2efk6EnUBGLGbY1+pkhD1lSf37L/rXbBqSYYfNQ/f2xFaWlT+5TnjSpzgCcoMWJyqxwIefEA70jhD7egvGhLM2L7Yk9mVu8VNw3mBcyMgk0XQ1+V/D62OolWyIdCXHv5kA1imIAczS2smdTCRkI5cShT1f9nIby9yqHK0lku+7wF4QUTDQzj5Rh2G0vqtjzcfRt1qypV1n2S9ZaR2f3q2fJsA9yeN0qtCy7CVkvVvAEXhnLXHRXBW4IX+1vzIkW4nT2f8xeDqyIOV9FXKCE8fPmkpSqMmCtYti7DmDIPw23Ar65O4SMpzM8jAs4Rz5lJVKZkqr7SgWwnWHG5wxZr0pH0RgrzzpFybGxaLadgf45FjaVGrpauRdbKz77JamCWUReuhMM6wQn3d0tKOoROUtTwXEZQ0xI8WJPpM4kX96ENKvsB3eSFFez0KplPSVJ7XJht99T9YLdsDOniK2M2TxrDb6yBKIEZNhJb2wMIMgMZRDpenQnPcHLxfokztuToKGQbm/8Q1VWgDDdX5ImqlJ5DQ0g4WOqrDyQQEfQfe7o5+0GBnBn9VKu5UdcTd6YeCXGCOlrkyln7EsYlULlv7Ux7SRKz7pLceU4I7mOu7D9B/ZXvfAagxV6f0DT/X0fk3EBVnt1efs0dsbs9HJLibFWfEL/D+rgFAgqoPlz24C7bdgrO+SrAocQHt1EkaswnDLzgEjrfpdxrIzKqvggMbDjCL+9tdn7eDOFwB8beGF6EKPg+AztEvJwsOfyG0qiI49mwyLsm/OLxaQ/aU5ZJT3roaDI07WNn/OKzxs2nf+HHZEyKOuCaNlyv4KJRFGkQkyZ1D1tIP7Q== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1915f0cf-50bf-47ee-084f-08d8f35e050e X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 09:27:21.3864 (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: 7ILrhZEOqryZrHAQE3THQgg4w9T9kEQdsnlUysoYOMTfwCd/XztgjnUaiC84XMCET5wwrSR8RLgx8lZuekjyyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7595 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 d6338872c6db..ca17f520d904 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -635,7 +635,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 Tue Mar 30 09:12:51 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: 411695 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4299982jai; Tue, 30 Mar 2021 02:28:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKHettn5WIKZVpjxF8Npf8zOfybHbr2o4qCzPnbSordFAMahdAMTkOIbl7+tdHAjJHHrjQ X-Received: by 2002:a17:906:2795:: with SMTP id j21mr32450184ejc.283.1617096501461; Tue, 30 Mar 2021 02:28:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617096501; cv=pass; d=google.com; s=arc-20160816; b=QjCEhDKmre63QMthVrZrB84+4H2i9s00QqQKvHyC3DQhGwplXlm4oCB2lur0+Yta0M X5v4myQ8HlrKOHxTnTPSP3J0+e+y22w9vgL/tMYAXNc7PD8HaVeYNEXaRjXijc6IemJn mDv+rPDupPQBTfOeBMchg1RQvSDlP3C5Mj5bxSCwQf99g2vRcfndpcNYMnabzLb/KwXq wAbF8RBQZvzX9reuUxaMCBK3Eiu6f5rBG/8n2ACBnLwq9IET18CWuhcdHCGQxiAGEUUM xLNjGgSaYBTxTgnOMcccDyY6n6YvMmFLGsl583JE0u66sfdKDjda6Z1Fx6zj7DYzNok7 plxQ== 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=Lrd3+a3w5VU5RkFSHvyqw7S/H36dGznhA87ifuQCLOA=; b=ridk4O37q0Fur9v6G1B6K8bCSOymEotG9FEj7CeuMPRB1VqQWonyXAm4GlD+imEwbD c5w2BjAXPsjKTDtMGOcVTTdtgsXUTxyWVm9Qp1ZKNCp1nm535Cv1G+6F3pXeJX4Co3Cr VKQpwHkYj9iUKbAiiqivmSWzsi9Yval14rhFqTtcLVHQgkgFdfvZjkS44WiATgDXG2/s rE/qJ9xwL1Cz0higJO//2KzhIJRMb0nCKdk8ZJYZFWSGGdwlAD5ebxLn0rwMeQ4lHSuW QDus69r0gr/eJCXhbV/F8hfslMM20QZLkFF/x+gflz7eNYEIBCkSQqF69bRvSBLBeUv3 Qx8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=IH5jMcFe; 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 bx3si15364312edb.594.2021.03.30.02.28.21; Tue, 30 Mar 2021 02:28:21 -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=IH5jMcFe; 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 S231844AbhC3J1s (ORCPT + 6 others); Tue, 30 Mar 2021 05:27:48 -0400 Received: from mail-db8eur05on2058.outbound.protection.outlook.com ([40.107.20.58]:3936 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231803AbhC3J12 (ORCPT ); Tue, 30 Mar 2021 05:27:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TLr8Cko5D2A7LxxXw0ZiFzuqQNm4GFPEyLEIgzCwUEO1pgp/FUGbsZ57cA1nx09g9fKmkh0NxCrOjgL26d+sj6Ot5/I6lgObRKYuyLQ7opEICQTXk+hnqnt24niwxM0EqUZdb8gPyG0SrH+e+Cdw910tQyNerRyVRI/0UdvjfTLbEuGJU//2YFA54Wfdgl2PABywerDBXHOgcHeVN0n24AuMsldZOvsvgraHuH8oxyfx2dvV/rssGYRiDmNF8H0GaWTIX80dgU2pzaBfizHoeJ83zc1r/SAupb6IW/EVgYR6oBzm3i5+pwCPJPyFN0A/fLtETrvZy6L774RylCiU/w== 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=Lrd3+a3w5VU5RkFSHvyqw7S/H36dGznhA87ifuQCLOA=; b=Km8G9VZIGm0CLI6W5ZrIHRU2lDktujl2txZtaHE+r4XYGmtDqLHwjyV+VOKCRvuvu+eY/8mva/ITKl9u4qsmwB3GCzwc3edD1atQdS9Ut2yZFG91siFxlKRZ6Pnb3OyoBm0KeTrJNTuwWy6hSPBxht3O4zPZlq5ejPlIxoIuVxREiw7ib1jYXTjSLwRnwANmNiijyIioBHhHEgLl+L/4+rvrSexby7yiVk8UW2wW6r+tCv51ZE4UK3PqMt8YYedO6tXmXVLPTDy2agzDOtrnQMCnAwDPcvyT5BKfrdlZH7DMeHEU8OC+ZfG8qAgNKUtPfNNqaS7XUIufRKl9qcwV2w== 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=Lrd3+a3w5VU5RkFSHvyqw7S/H36dGznhA87ifuQCLOA=; b=IH5jMcFeDmTBlpiS++pZkogpSSB0nxloik6yEGI8kl2eIFT34WiHq7wE2AZwDjGVGsIztX1E54tFqYNaERJlVjUsFv77zB5OfvbKdaKSKLVt5XSRcCehqAhMszwDvxPVPib00O1+9Nqa21epxlVfDcuzcOl3cnrzUybeCsA8rew= 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 DBBPR04MB7595.eurprd04.prod.outlook.com (2603:10a6:10:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Tue, 30 Mar 2021 09:27:25 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 09:27:25 +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 V2 5/8] remoteproc: imx_rproc: parse fsl,auto-boot Date: Tue, 30 Mar 2021 17:12:51 +0800 Message-Id: <1617095574-6764-6-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> References: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) 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 HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4020.0 via Frontend Transport; Tue, 30 Mar 2021 09:27:21 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0c9a6f22-eb9e-43ac-df59-08d8f35e07c8 X-MS-TrafficTypeDiagnostic: DBBPR04MB7595: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2089; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4v0S90nUrW7BluLmVOz3GeEYQh/tFtMyP+nPcECxfRqSLO2xHsmvb1goQ7Cx/2BwLTU8EUQ7dDveccBatvVsDt6v/PQylL7Hwl//tyvE9cF8IEa5m0KjjlpWn8QwWBoqFdh5my+5WHnJZPUIW5KRdcN2UtrzbonZgG2MSm5n8w17T3S1uruxxBHjmPtRl/QSbegrj+qrSGLBfvL1P8XjHReiQ1eB7dWc3mt0PzzWkhJ7OMm82O2QpaSxXyrOk3rhldVGwDIt4pm7PFsuYpsDchOxmftCE1mN/CoVgRtMsIxVNLALlf/6x3ZmasQgOImDBCp0z9yi/x8VMOSMiPf4t5FGhelZW2QtmxMD3RlE5RZHcWTqD6Q1TnX7bV3fuoNO3wPStwD4z2n8CK4tliP9S+8dYn48+S3NiqjcCT/a57l+48I9bRmEdfKLL/q83nT3yuppkHAibKHwCWluXd1xTBbBJbAot7Ptm+Lzmhp/a6Qq3v5zpjxXWswKBP4Hzi6fXT7M8ukJI5ihL12PeX3TvDFlK+mZNEGAUhC6HMZbGVO1zvoPTnS9+0P28bpzHuclxpklKWCNTWcy77urhNvv6hAPvCH6dKVen9YT5d2pXJoGJgHwihxhmwVoPhZZfylt3adFDuiawtaVCTgmeu4Lyo2DC+EBU+l6OvXQyaeshPI0C/r4YDN4fZuCbO9KD9rn 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)(376002)(366004)(39860400002)(346002)(136003)(396003)(9686003)(66556008)(2616005)(86362001)(6666004)(6486002)(52116002)(956004)(8936002)(66476007)(38100700001)(26005)(4326008)(6506007)(186003)(83380400001)(16526019)(478600001)(7416002)(6512007)(2906002)(69590400012)(5660300002)(316002)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: bCCUfO0ZRvwbRmHbQHM5SCqZV+TiZdLDR3ema6VOBPoOIjKTrAN13Tgit9ZXQagwq0OhbtNrsVs7a5Y5G4nOG1LbuThw9iURlsDZI8SAHquOPslcv0XkrsZ/aqYGA9CdG1ovda+QQaQvN4w8H6K+z5veu65GKB2Mk6C5YG+Y5TAsVHxDhxI17q1VdYuFJlyVa7+uCieChMQa+ngIJokc5GcvUKvIa1nQIV1E0mNI2TJVt/EYs+XIjWHeNzqaUgsMPnKuAiTy8NcivMsdBficV7zmjkH7UIvvOFxJsV/kpdWuZNrzp6SKbBEBg6n5Oo5gCLhwHmooEnVV+OKw57R8ZTHejpVJXZ+5/0/bZsLZvUEETezdzD09F5zcuAkIg7BdEFIpwuSqibJHrW/yhq0kQ6w9EteodD0WP3G/G/OI4FQw7/HmxwokiKq35916hPL70h6BbELvLE9wWv6/z1P3mnptLMXpCDhJvdqg6pX0F16Qx5lae4abUOaogkO3+V0vGJjK9EyPhwhOMQVzM6v7vZtihjT2A+KMDVWDH5ZAqi4PYGZjYnH68Xpsr5zhcmky2VN/Bn7j2QISEP4fSraX3Tbl4sHjyGaqgbf2VVrUALytfs0uig0SUTpgwUIo6AOubkuKsU3Ud46A7B4H7ilIQCgX33dl4ugNz14O6iDpZxA67TZ0paoW4a1quPObi1DbbP/namxiUvY5asSsLyBzivCwcUvdf/Cw+4bjWfolXysLY4Uc8t1SkQBj6WTiNnYoMX/YC5i56KTrp6Z2j5vKo88oY0nkcmVIrYwdxXw8bCg69cMkyWYBUE60pt5Jc1fYswvm+Wuh1rmLkA22tOwU4lTl7J/xvGSSs3iqJKA0v7u6jIcD1Yy2v3mQ5HpA4nPEl1JNrS6RW8fuhHw84r8ouX3kunv+EEo84jh+AZkpknjfjgsflR2U49v8F0AUW0JAobKPLvwya3nNnfF4cT3ppHLbSIF1cKULK5Kow8m95k5lnZY+doEQGbedFKAYEPgMTlG2VGCARf9vePZhZhq8/mrU/IpWBWvJEmiOAofjDx6sh670p4agN1KEGy0DtEioANEDZEtvg+aucwUmaL3dsDoekfD0R7lMvWEEJ+E1/tnoCxgEKbZen80XHzTNr6y0E5Pg3K+b3s8F2FYbO6QjIOz1zYzTcnqeB9CHkXyyt/W6BIcZXZuURhdusqJI+EwFK8aTAlIeDBp6PEDGw8f9PdfX8DU0mK6PGACPcNyKBwor29+b18S8lcviwJ/w43YEdeXaZLf7oolq7LAjhG8c/se3yRC49/VSkWjKQX5dwSt/ytpYeyA9isdKLms1YINk X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c9a6f22-eb9e-43ac-df59-08d8f35e07c8 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 09:27:25.7804 (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: Bt+SzpOgTUas5HVsGLumpfkpOMeIyPOaeRhF+HXncH2vHV8zXpu7wy9Gx9QWBPv9wReKlnPZLk+yqzkY5cpXHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7595 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Parse fsl,auto-boot to indicate whether need remoteproc framework auto boot or not. When remote processor is booted before Linux Kernel up, do not parse fsl,auto-boot. So add an entry to store the working mode of remote processor. Currently only IMX_RPROC_NORMAL, IMX_RPROC_EARLY_BOOT. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index ca17f520d904..c576e12d3817 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -83,6 +83,16 @@ struct imx_rproc_dcfg { size_t att_size; }; +enum imx_rproc_mode { + /* Linux load/kick remote core */ + IMX_RPROC_NORMAL, + /* + * remote core booted before kicking Linux, and remote core + * could be stopped & restarted by Linux + */ + IMX_RPROC_EARLY_BOOT, +}; + struct imx_rproc { struct device *dev; struct regmap *regmap; @@ -96,6 +106,7 @@ struct imx_rproc { struct work_struct rproc_work; struct workqueue_struct *workqueue; void __iomem *rsc_table; + enum imx_rproc_mode mode; }; static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { @@ -565,14 +576,18 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) int ret; u32 val; + priv->mode = IMX_RPROC_NORMAL; + 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)) + if (!(val & dcfg->src_stop)) { + priv->mode = IMX_RPROC_EARLY_BOOT; priv->rproc->state = RPROC_DETACHED; + } return 0; } @@ -654,6 +669,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, "fsl,auto-boot"); + ret = rproc_add(rproc); if (ret) { dev_err(dev, "rproc_add failed\n"); From patchwork Tue Mar 30 09:12:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 411696 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4299995jai; Tue, 30 Mar 2021 02:28:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNWs750cynTZ2BidGwKgGNkshBV+bvdWMAEBEynpP3S+yqH59I2uX9kg2GJ1ImbJMwYczq X-Received: by 2002:a17:906:8043:: with SMTP id x3mr31932509ejw.149.1617096502665; Tue, 30 Mar 2021 02:28:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617096502; cv=pass; d=google.com; s=arc-20160816; b=CVmqYw1ZrxZZF4mio+VNhVnFr/qHPyQpspgK1g8rQOCr0RBvshUjKWz35iv3mZp1u/ tJk1/KFRdZU8ihgYMFQy9fR5i3MMCy12RJ8zEqgWR0rahrj3/BfC9Qdf7AhfxzZFTc1H 1rFo+HpCjqPpob/Vi4mKcxuKII2Z9N3F6gGfCZxJsJb4cLTweqtWe6r133X/j+o3qCRG iRkEtjBNxK6NDrrR8NGYD/tvJaMU6FkyOICgLYyiG1sxfKu4bmiNtpB91nKvvsDWSMfo 1uOuxm5J87Us2zE7HD6bFuDmSNPLqxf2q30oV8qPrAk/7WqlzvyvQ05i7P8FmFCrg+6G b9zg== 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=gFbeFgmbBCaZCdjmxUZR3o6kMGOjNuL0AlxqfZTemxo=; b=P6E2v1Rl3TmjuRH5zBRJgEUo6tQHVj0relsOWxOt8tu5smgnnIF46Mir8q9l2Tj+1t cyPXnYFhd5xKt12P3PtzhFlMSBwy7KTPhGhlr4AR030l+9HBIimQqscMnRwm0pXdBVBh H0O9qBhApWfjnRrM6AYt1W8rYYRUrpiBSyAuOcXJwjZB0XFapzfCW+TXTN+t5N6jvCsl fFYTcGPNvyDxG3znVIiW9ZiznF3DmLLikKugMiIn45x1lyt/ziqegrmFmEWWrdB4YVzF SRbXgzpZUTKhPoiG3b9ZMeh68pbLftHVVoa1CkHBnekPo3bNFY88jukHoWzf66512WmG u62w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=VvdweBsz; 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 bx3si15364312edb.594.2021.03.30.02.28.22; Tue, 30 Mar 2021 02:28:22 -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=VvdweBsz; 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 S231849AbhC3J1t (ORCPT + 6 others); Tue, 30 Mar 2021 05:27:49 -0400 Received: from mail-eopbgr50070.outbound.protection.outlook.com ([40.107.5.70]:61837 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231684AbhC3J1d (ORCPT ); Tue, 30 Mar 2021 05:27:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AhoOpt+wUApLYhb5chxpwTPd0E5F91d2bVk57b9WqRp7qyIy9eIaO7m+LWtFSRTdoMk92gGYPg4H4pk8QDwopN2yUEvZ0+MH605n+UPT/n17zoaSZ6Kl5AWlVvgE8WmeP00oBBFVMUymYGh3jouPSoR6+UVTNKpHMzdGK04xOQwp2v4u22w6HXap0O/p+TfIlx3x+lZq6guncUwoe67Od7ksN9Cv3M9f/befzfMqn0I/Bc3f3xXje0fJakPlRQuT6yhWLsPVjUwUluqkPWwaKAVfvuVlft+MsB91pcDy3Y3rbvRt7337t4cmK4OVJfnz7n9rZNK0TYR0HMqOwdkDpQ== 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=gFbeFgmbBCaZCdjmxUZR3o6kMGOjNuL0AlxqfZTemxo=; b=PQsgaw6YESnpWJ+vGzFIwsOcxLlR8EIpz8hP0y7l3FojEyNUhIYepyUClaD9vuMc/sKPLYOUUM/SWiidZC7ltk8uQsGiZeMeX79dabPBrC9FalfGi7VrA97p5fe1K5hwxZS99BGv+u99nhFUto6EcXU55qftW+kOfpoJNZrcKSUDHNBkSEROjKr+I+kbZcmYGUrvkyFSwHWGfi015R2ZGBK77HVs5bzHf2Iz6/R+lX9VFViC8GooMeik+yT9ewBLct4SGCDDUkZPRMylDKpfZg+ECCm6v6KCUO1cTOoYdPxpJUW2tITZUZBTejwlRCjTPXwUnttsqAj6qKTvX2h2cQ== 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=gFbeFgmbBCaZCdjmxUZR3o6kMGOjNuL0AlxqfZTemxo=; b=VvdweBsz4CvBUBZVg0pIf0vygsQ36rv+sSnUxzUOibec1uamKFzw+MN2uSLxgCrgtLCmtM5slUCClsW76WPPw7wJPPP7A8zAcfzKt+NNBW7f8bCzgcecNhHeLhXbNkHqKXFfeu13A8990Ta4M2Fl93146tlMdN1XDfYTAoPOq+0= 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 DBBPR04MB7595.eurprd04.prod.outlook.com (2603:10a6:10:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Tue, 30 Mar 2021 09:27:30 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 09:27:30 +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 V2 6/8] remoteproc: imx_rproc: initial support for mutilple start/stop method Date: Tue, 30 Mar 2021 17:12:52 +0800 Message-Id: <1617095574-6764-7-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> References: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) 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 HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4020.0 via Frontend Transport; Tue, 30 Mar 2021 09:27:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 11792d4a-afba-453a-580c-08d8f35e0a67 X-MS-TrafficTypeDiagnostic: DBBPR04MB7595: 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: 40k+5gHsf+BgyQIli7/CA3XrLIbSfRlQwpfWzSFLk20RvZTnRjPf75nd9AT4qhD2JJWTGDy5SbSn2b5ktSI4rBWCTh+HBViUUd9/oGZpfv7QkpsmMiv6Uzgb92T3zt5k2dr9JF5UrSYjeuH+w03My3qAWc8pf3Sl5f7zvYPMDbOw2cACvfqu/hwVuh5E947WhsTbU8OUUFjMhQlPI31lZKxvRZgc/syrHNSiW3Adn+xu5/pDN7jIbVNde9ErDcpRD0ZDsYEvHrVVAsa3pgmLkx9e/5A/s2gDc3aPf1FRMa4GUC9xN/mElFvG6iujUdJrSSh+aCNklvQ1tlCk176uflOwplWGTaBCfCNyi6KQW/lGI+wtBZi6Z/No1xYjHB4h7jnHP1dX+cYMWm36UwJzQYTCI9q0WN3rlOA5naaZNh3NUzN1QM9KsIwSjZCe3rp0EAQLm7RMJGI6dDlmRaqveYwaYPAcJvYjXRA2pgHLCufugnYqV3xPK4q0I8ot83VytBJy3LcsOPKoNiBKsyc7gYv7SG1tZrgXFhFJDDzyCwnYn6fojO9yhYU9OMGS6E2vLdU/SFJHXGTv4TLM7SxXnYParjDr5H7IOBOSMOrXOIWNeCk163LsnmxSKPekFrfQHAKyQEG9nN8uoMGLuColBiNev0gFIyOnwUP1VH5Xo0+hJtAWDUFPp+B8rooVHw5e 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)(376002)(366004)(39860400002)(346002)(136003)(396003)(9686003)(66556008)(2616005)(86362001)(6666004)(6486002)(52116002)(956004)(8936002)(66476007)(38100700001)(26005)(4326008)(6506007)(186003)(83380400001)(16526019)(478600001)(7416002)(6512007)(2906002)(69590400012)(5660300002)(316002)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: T+EIt01xJdy9jtkGKY1L+jcsMDdETv9f3jemscDArhVBHCYlkbw0wM9PnV7O066PpncF/GeIu7AiA0aw8cvL2Rur7zSC06PgrP8K3BjXUBZp7lYzlXSBKvE+fvYCDxg7gZZurtqEXd24Ad8UNwxasMwne3Z+H3T+VFbUMtEo1VkD0KYiLHtLlLPIOkuiWaa9wEXl0zyqGR2FNqEBmru0oPKSYLSCW2DtfWCK4XqRWdGX/9Dh1zQPsx8+1w9qjNx//zz8AeQTTUIQhLu236nAwxq9tNWHRbqJF7Vj703P6FchAEcCk8ocgqMlFXUiorH0A/2Y4bihfLklrMYOkEiTPj0/UU2SkGJu9GjBE+eCwGQ1ve/N5G7IMIiyI7kM8D44H6o1LaOZrRKEfngvXIhBxHIqFgo1wO160DCnYupTvlJotaORhq/2i3CGuTT8tjkOxG0ZuLWql8ikZuvRAF7PRRkXDddmpLAKLLMvuNZBVHF5TTtjSPtrHC9BONN/Y3G8XF6DtpGUclwuWyEFEfsZIbR6P+pm3YVjmxSwg5/n7rWgr3VY+oR312vUM0kk45m+lecqJv85akBXV8lOhcueFMYGcWv3x4PEk+rMTpjr40iD8vZk4Y6rGzYBX6HCl0vdrpK34x6DzRrhpnqODpt7CSysqL1LYG1oP12gMpdB2j5MOx/o5sF+NVJDOW2BG/F55W6gNcz2+XwF8neaR0aB1s/lMxsUPP7yvpVoFaQM0mfozsp1B9qTyoXFD6ZJA626cGPr3CpM0aZV89UK+YwCVY7fV0PJ2OB61TUSOt+34q6XVlJe8kOjp/MrzRbDC6XDi3vQ3ijxSrS76oq987sGjUYQxTiRqcP0+0rV2+6XZS4IlyLLaHnE8TCwJpxgoPNlsmaBKCF0P9REaPA6HZTt4HiVa9fGtZj4yxFBmOC4Adtf5dB2w2dHK/GpwF9khGGh4nGzkauIeYjo2WRM+wRvOiHAiKaQzvzWBrSRfXR+G1HOE7yr6FsweV8NUlmSoPoJTMCEw67NWR5310pZpGSGd5fY58CbDWvvim460fOHYHndLmS4+aU+2xjOTLF091DyRaCUh9AdgXfqAroKHMV+NODfYgr+LpTUZFqep/yY7GQVJGbruzQDNZk3dVjv75DNsZu8UR5gLitfO7Tv+gVGTldjxnu+UKB2aGoTT5ikPJ5aDSyclTy+3PhMQCJZosVgbiLxgRhTjXjxbbS29XWeIvaB9AYjh32RRwJdryljqswNmU8rYAVary+CS0S7lhY8AZUKHcazoZHzR9fh07n7HBm6PbD//EpTomW0i32KX8aOzk6+GbBoEtdz5IDQMoVC X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11792d4a-afba-453a-580c-08d8f35e0a67 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 09:27:30.2174 (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: xgxbsOURT3SnXj3lzz0K8gXrzntppKZ88V+I4fJYNQ8z5WCJvpnbnbqqGV7skff7md3iym2QnM07lpKS7aR9OQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7595 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 | 50 +++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 16 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index c576e12d3817..a7fa9d7fc2d1 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -74,6 +74,15 @@ struct imx_rproc_att { int flags; }; +/* 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; @@ -81,6 +90,7 @@ struct imx_rproc_dcfg { u32 src_stop; const struct imx_rproc_att *att; size_t att_size; + enum imx_rproc_method method; }; enum imx_rproc_mode { @@ -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) @@ -578,15 +591,17 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) priv->mode = IMX_RPROC_NORMAL; - 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; - priv->rproc->state = RPROC_DETACHED; + if (!(val & dcfg->src_stop)) { + priv->rproc->state = RPROC_DETACHED; + priv->mode = IMX_RPROC_EARLY_BOOT; + } } return 0; @@ -600,16 +615,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)); @@ -622,6 +630,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 Tue Mar 30 09:12:53 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: 411697 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4300002jai; Tue, 30 Mar 2021 02:28:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0J2poKKk7gLK+ZgUjzG9PDRX0RgeUaY5PrFRQXcyT2IGNuadSATwX50dEZ+dEeWMBq0kd X-Received: by 2002:aa7:d0c2:: with SMTP id u2mr32473011edo.158.1617096503512; Tue, 30 Mar 2021 02:28:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617096503; cv=pass; d=google.com; s=arc-20160816; b=HwW6vF/yrTV5ZN7JqrisPF1NltTcyu3gtk9W2Hwwe3e52TCm6jWuq4SYXeNJa2dAOR X8w5E32BIZJoVr+JAUyHvYcFOFZgOVBVXAytyaFqqKDXKuBAcByLzUR1nG4FK6UDeEp1 9UFUrUT1rZ2ulmlNh70ov/zd7d3lb7AkyYktoy1T6UxDCe+Gd2J7QmMpwglVn2FlOcsN DKPadjoS0FfsJJjwI3mZQFTMq+Th3tQYLY1hW5iroo5mtweBTz/xfck2mcjKK6KNNetb gG25jetpV/a3B/1sqQytnqltbSf8wXDjSxBiQKoUv/4G304XE9FwtJ1uL8puCkV4SjZg RuYQ== 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=ktwdax96pFwXnk6lBfiqoYaR9vkb92hLcZsDEySZ++I=; b=EtfqtL61kk7y0ynsl2TLFm+BneBd6Tyr/h/e2TJA0wLxK1AI2y2KwgMn3o1Jz45nYp ra+798bOiKt5ARZ6sh5o/rAu76EvJ0Jq/kSid1h+XGExY5UYUz09dkE9RDt7Zudye2u5 6lm2Lqmn2TktVytrqMHESjCsqJzXv+unlodtA8SnmdO/K5kGJUGjFSUJP5zYDFDnK18i 7P7JjiZUeuVOmAibKKCUWfcFtQmf0MXNSVc+YAXJiuGs4YPpp4U0DKUc3vx5y7tNlxb2 KOK2GqITMQhppEFfMf9S4rOSBwl5bzoaVO/Go/Js/BQ0S4iteKNQ9tExph6Xs5u6L1LT kXLA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Luh8TQuv; 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 bx3si15364312edb.594.2021.03.30.02.28.23; Tue, 30 Mar 2021 02:28:23 -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=Luh8TQuv; 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 S231853AbhC3J1t (ORCPT + 6 others); Tue, 30 Mar 2021 05:27:49 -0400 Received: from mail-db8eur05on2060.outbound.protection.outlook.com ([40.107.20.60]:61664 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231731AbhC3J1g (ORCPT ); Tue, 30 Mar 2021 05:27:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ABVjJSEyDchB4Rx+sEl2tg7neKpHCVh6vT3YSJ2dWIZu+eMtnnwWFw7zf07Yi4rb+PZQ3htzq9aHfHrSaJ3nL3WZpfePhCnVWKj+2YFm1UbnUBunzGNRhPIxnTQOVxb9ovUg8H63/uhIh6XlKhS0VEx53GOrTnnbwu1Ys65/w4Visf9LkwOVzAaIJ5dZhxcUJzn/Qo2RUmGCkmTvoFV+0UGWpw6G/B8V9hrllrn0RomRPEqD/OOCHwPYFIqeXrIGxb7LC5ilfpmAtkxL/wMshOIBXws3waDopVy3kpXN/icDTKQ4e3PoNJBRp/afa8qu6ThfHSBOouJw1vGmPMzZgw== 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=ktwdax96pFwXnk6lBfiqoYaR9vkb92hLcZsDEySZ++I=; b=NXbBsv3KFIFSgEf04GWBgBRp+QrV7I2uvyXYVfm1WKq7cXwt3qZhwriB+C4TuLWfYrYi+ni4f7u2CoOWYwDAQChCqsQgd8rESk0xb0GGU/DFaqBVZtXG4XRAsxLRwoswlNKajLYUPR2z/YP9o0LJa3r4OMduJYTm5VqW3Jy93NHU4nhBjyRGygDLGwZnHiSPy9f6q6b5O470swit1Qb+DO4MC/UYMZ+8l5LRpl9Agm/5BCNz4HfcYlzhRm5rH8if+qlViIFqqK1M0XGzo1gPKHiebVdmVlavM934q6WcfDYrmi8tfEepOfSo2i8+rZDZAbbWlg+9WR8aNXxmFtYgHw== 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=ktwdax96pFwXnk6lBfiqoYaR9vkb92hLcZsDEySZ++I=; b=Luh8TQuv0OF0PDe3oCsNH9aJpWUwV8PlHH+Sm169ueTlD+lJCxggeGDncYt6D4KBn0eI76duJyv/ZlzwZKwT1i+4aAC8/7AZyfg8EYdEx0GKVdm3ypgfNO1HvkgfsEM97vmCz5s8zpEZyCDb7OPaVpDqU4oSMbz3PDcvqr4DeOE= 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 DBBPR04MB7595.eurprd04.prod.outlook.com (2603:10a6:10:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Tue, 30 Mar 2021 09:27:34 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 09:27:34 +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 V2 7/8] remoteproc: imx_rproc: support i.MX7ULP Date: Tue, 30 Mar 2021 17:12:53 +0800 Message-Id: <1617095574-6764-8-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> References: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) 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 HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4020.0 via Frontend Transport; Tue, 30 Mar 2021 09:27:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5162df0d-4de1-4b4b-baa3-08d8f35e0d0f X-MS-TrafficTypeDiagnostic: DBBPR04MB7595: 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: c+KniEEM5VIgH/UDnPyClXeinBa5d9nkHJj08cbX1HjdWlMxOfXiV+Q4MEtdzIlt5dN4KIST4w1HDC7L4A2RZVkcuB/k+5E5Mm/GkYOCML1Na/nVNAIj33cEsns5xjXGXQO4yboPBIi/3RgDMhR4X0BqypPdi1G3DEE300H6ZGjQFBywXAgVdSyL1UjEVMegUYn1mvZ+fh8GiRQ2/xk78fsP87zmF5wzIdi6iiJ6K0wDofzcpWHIjRXulJF5jRYnRoERXQrD2GNQmeJ9O9DkcoLhVK5b6qcfqpSE7XZO1twZg6q5BMB/GeQ8rGuJbyfLdhQHTJwPaTf3JRtU+gFb/lus5gYPlaX76s10MEx2qm6uVrJurOffpe1EnsbuuFh3ri/YcafNPRs9W4U2AGt4H+6PviuJNfrfgYZt6i9axv2JBXUWgzQ23Y3vvVPur3lXL6vuNmzcHs+xBO5aPwjZsdYcwcf0eWW26wRsBVOrExwEqGcqyvuOoNH7ga32ped7TnCeHC+3fLfgxA47TyXSdJE+jP4sw2eTgZ6zkcWv8Z+ki0Cd76E6i1aKy/uxti/eaOoZXOLZbpsqowNg4uB7khBmfhiBfHR9dML5gn7aiZOHnAV/2zuAhF99L7cP7HXduk8OJ2QQKnqsoVSI/5uJsyQ7HEZRlwsJF5RVB6h1TggbmyjIuk7DBYF/esVOqSNu 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)(376002)(366004)(39860400002)(346002)(136003)(396003)(9686003)(66556008)(2616005)(86362001)(6666004)(6486002)(52116002)(956004)(8936002)(66476007)(38100700001)(26005)(4326008)(6506007)(186003)(83380400001)(16526019)(478600001)(7416002)(6512007)(2906002)(69590400012)(5660300002)(316002)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ubYqHjav40AmDo+LbTpDtalumy2b3pDZlkUZyRytO2obOuPDbX7XnPGPxsLh49lyYJv6nQ6ka/TT6XdWxIUUbbkRdWdxdi/P8O2nXHZRnVgh8/Xvq+D0d4JkotOzJ60Ez/EEZaSiaKWPeZE0gV3dzDltvoRzDyflCZFUqSpg6+7Ga1GiPnlsQehrFoyB42MxbLYBFUcI1DvVX2mHKisDjh3w8HdJEjzjkdRIlKa4CNxKd0pAkNDSAvQZhZFor5Z27YXVZQ4ZnY2iDozIX3/ez2T5aF22x44ZCqt65l2b46+E+vlbw8nlTdwn76xX9QqNZmDqQd0993RhfVc1RIWj5856fwqOsj6OEEs0pv7Ardk8AJNw1T2cNw0FuiJqy+UgsffBUVzFN//JQ349XGTY7vGTG+uHOWNbVWhGyk0hLthjwpPClw1nZj/765mifB3DZdSVO72cRfTKD0YBlSQhtOpf6EIsgsb2vW+6PEcg4ZUWbmbTlGCmU4llyYA0z31M0wijzPJYcZw/KIJPjhFmYcsJTxX3X+lddnkkuurtjc4vTRPhM/Z7aNVgGIZZh1MN5tf/cyWdacFv6l2OkPT3VCFPw/It8k/kjLpddYErKgjrBKZGq+vMP76EFSXMLXWD8IEXM3dhbIU2i47Xt9I+/xBhXsk7SgZaD3AhI90aUhysbt7NQ6bnExBAPDPUpn8d9nhE3VFelPI6eaGRR1KaO/1XDPDEXcNPsp0WTpgVpFhOWpW/JwtPgbcIARKGvNfYpkfHCqlaUKxAFV1ZTZZVulPl31wJmr9eAIo/A887wK+4gpN+gVPbRVWYZtP6S7Ku4Bv+PBi6wC+5KQ4wcbi0ypEojiefy6VCWpvl/JcVBXglrQgaNiIPa3JLtqm14RLruZTmVS9cjQvuL/BA6SAM95sjjEzlTPU2NkF6udVRtz81xkw6zuI+iCJk5aDGE5vfwKvaCYwQvUyUgNuJk6WpQhu2iHtFV7yCgWUBzZGtsT6lzNAI2bVCrVHcRRuwy3m7zQtPjCFJFymKgSspgjZQ8Qu6gbMHIJ6WgZZUZs5u747IPoF44+c8Y1Iic7oyINRbCHFXr93js63SlmcuU+Ru9PW7Kcxc//I8fyuDnm0U2EOMI6vV4eJZOqHtw2kHDgqIu8mVvLNMgsHdVV4weL2nY5yltcjlLmV/vSX1jh7PgAegM7o7oMzIsVqUxhrMcNwf2I9HO4ydSrjj+Vc1w3DmQNm8sz2Ca0BfzIbqnT/uLqbuJYi0y1HfOwYN1wckLnum4QFGrIjXT+aZk+Os4DIsiU/JANjQvo/4UEqNn6XmLogQSvkDhK5V0yMihgrVwAP5 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5162df0d-4de1-4b4b-baa3-08d8f35e0d0f X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 09:27:34.6354 (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: DHwiXHiHbSWSm5/I9L6fmhOZx6tWD8jRaCUrz1uKJ9TEvYryVAMiuMIZmn7sGccBNQmY+utdE/WwbKaTxCNDQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7595 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 | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index a7fa9d7fc2d1..b911a7539897 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, @@ -598,12 +612,16 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) return ret; } - if (!(val & dcfg->src_stop)) { - priv->rproc->state = RPROC_DETACHED; + if (!(val & dcfg->src_stop)) priv->mode = IMX_RPROC_EARLY_BOOT; - } } + if (dcfg->method == IMX_RPROC_NONE) + priv->mode = IMX_RPROC_EARLY_BOOT; + + if (priv->mode == IMX_RPROC_EARLY_BOOT) + priv->rproc->state = RPROC_DETACHED; + return 0; } @@ -724,6 +742,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 Tue Mar 30 09:12:54 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: 411698 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4300006jai; Tue, 30 Mar 2021 02:28:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybndu5k5uquPWslh3HdJMSBAssKvxlp/j4CvY7j27Zt8+LA5IqXSpcXW1HkRvVTulBBKwf X-Received: by 2002:a05:6402:518c:: with SMTP id q12mr20596184edd.11.1617096503876; Tue, 30 Mar 2021 02:28:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617096503; cv=pass; d=google.com; s=arc-20160816; b=mvajlD4eiXViMwnGd2RBXYrDF3DcPGL/sECdKxzbdkviKWMrPXJmUnovkXxulWvSiJ x796QOmiEMi2TUAW8n49fDLjEuY/YnfZZJhUkvhPOuuoe42xD012sxjmp4cnk2J9hLPZ 1U+JLyF4/i234WTYAUloncR5FWmH9jxh79mxOLnDC/y0sfJ1dodhWoVrdn3zZ9NC0OJu uxjyE/kyEYxDoMiD5vWxDrsU5lxnwcyLA9onJcURRP4uIoM2NUblobkiDUS/BO7wmBUI AD4VxvlNFJL2ImQh0E/FvYqdLV7ipv6ULsVy/jy7P6hvpfnuK9xCQ49jte4KDk73cINk hbnQ== 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=/KDbe6usScPk4BqCqIeicXhKTWCCKT5EravEfBo1a8U=; b=rWgIizx0C60QGqnvplzfRWMRc9tGJXpqe5iwherMN3IAcPL+vr/Vr9geWUGcGMV43f ARxMXgy3Zxs7bxhfIctxV4c2HTOg0mO1sBi0cHvy/Mxhy+9OfZDQXmjQeC1nFtjjkVAl xQSuIVMyXFFvR4srD77xzA84TWm3m59QswfsWlf5VO1F3lo5TI2D9V9Y1t7P8cfsNA83 SleSqbk1SD0vqQTAG9rWxf0fJ709jfQEf8aJf//0PTVlOYxFqHF8cjDYyyALUa6LweVL z4Nf9YDBEFz5RCVoJhtQx3xtF0AebIcZfeLG7ekCFf9uCrCnCPeBfPbNw0f6XDEkpHhs 9kxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=NzXrF5f4; 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 bx3si15364312edb.594.2021.03.30.02.28.23; Tue, 30 Mar 2021 02:28:23 -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=NzXrF5f4; 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 S231861AbhC3J1v (ORCPT + 6 others); Tue, 30 Mar 2021 05:27:51 -0400 Received: from mail-eopbgr50042.outbound.protection.outlook.com ([40.107.5.42]:7464 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231814AbhC3J1m (ORCPT ); Tue, 30 Mar 2021 05:27:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iyrh6pbA+ts63ccSbdDihdj8xnk3RrnSrXgPFoxempLhQxIjt7F6zXXshHkwUCV/QD9gD5J7c59zp8/xaSCel0o7OsUjGceJK6dayvWM4QnA6C4jwMwcs8NdOkCIOTXM2ACDoyuEc1WtQ/LL604K+QriQRNHqZbICKt/jWm/GoFfknNovVOeNgoh7c8g2IbAqiZimkV1zsLcxfxisuFC4r2fG36SjwgJodr2Bs6JuEMngPHQjQN2ln6PUZsh4N8C5Ioc9XToTmeEiTLXQ6dDTDG+lHdvr9IV9JUigjmXxlLC4RkwAxBT/2pVleMMxVT8/8DowXHKtDvEZGhiPWfUaQ== 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=/KDbe6usScPk4BqCqIeicXhKTWCCKT5EravEfBo1a8U=; b=bn1YFrJgJxcYNr79EankPteV11s40jd0deVJuGHidkc3lFB6PSZ/HWh7xZxypasFJiMe+2zc1oyTtB7UkBjIkeWDEZ9F5Yrpi57gv6wOeko/Zclb8h8D/z1+BiQnBU/OhnQiWtmkd5xOIpy8nbZS/UtFMafDbZKaOHFNj0s7/NF4/L7BWM0u0+LSsDtOz2VqOXA59B3Ir7MBoCm+uF6ISpmAmJOZ1xCnXDS5GOK3xJTFZ1xphfaYDkiMe4c6n/zhK+rrzgXY2d4/QeWRF5bb5mX52O4RubGUNNISkE1VwxN/q0YsU5oYnWmLwRAmL6/frOujgmSFLHWmsDRs81xz4w== 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=/KDbe6usScPk4BqCqIeicXhKTWCCKT5EravEfBo1a8U=; b=NzXrF5f41zYTA20alL9EVHiuXvn3c+t3qKfufVeRmtZtPBYuNKDNZwl7FXBGJbj6gmppN85l6edIwtnn9xFjwHrB1lSH/LD3a8kUjIPvdPBw+0MC0TycMijxxQexd+deGP4q4dqtN2W2FAU/HATQeYbXpB3/GI2xevXQkXO1WYY= 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 DBBPR04MB7595.eurprd04.prod.outlook.com (2603:10a6:10:20d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Tue, 30 Mar 2021 09:27:39 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 09:27:39 +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 V2 8/8] remoteproc: imx_rproc: support i.MX8MN/P Date: Tue, 30 Mar 2021 17:12:54 +0800 Message-Id: <1617095574-6764-9-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> References: <1617095574-6764-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) 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 HK2P15301CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4020.0 via Frontend Transport; Tue, 30 Mar 2021 09:27:35 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d586f34b-0ddb-4c80-6286-08d8f35e0fbc X-MS-TrafficTypeDiagnostic: DBBPR04MB7595: 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: rHGVLRYWYGKVb6npXfl1ztdP6jKIa622qggNSeuaysudi7zAp/NYq7X3ZBGlY+0d2GNNSpCbZaYKFC8KLC+qTjcTWYVsProZq6NfBnnzBo+PNl1d9l/Rbt9BprduiTsYpb/zhhYeeqLxVAmi+krFTm+U/0pkujAsCis/9bPzMXRxHVy6Y2Hg2znhO/chDg5ZD+UXV65AEABEwN3gqD/BiqINvmIR8Y4MmRxzyqC0P5vnLz+9a6ZRSWzvov/inYKCmhK6YalaJshcTy9fT9GRXKiaTq88tzKBl+ICzKGhZ/o/7ZXu4kytpl6ci7iU0sO+UJ2sxfUUc1EXgriHYP5s/D+1FJ3oYZhFT1mg00842oC2zled2yHe1NBmXn03RV8yaZA1uplppH9UPX3DFiY8x1Xa3HRf6VCuMA3vzGU9jazw+oloo8ylqNJSJSeY0q76EbJ8jzixbOFmgYbgVF//f+UzGyQGuEi38YTer9SC2gvRdC9//FDvPpB26bELCd3GrZ9+u3tUAUq55bFgXBgmsxKHytyz+w5LBqxAjUfuiIU5QMPPTb8dYbdD446LR3/u8tjhazuEA0CMq7OP/Vzin32FrlvrN9ArlQ07pKP4AhWF5V7vUI0Tko0BT0bNOppDfxTV6Em2/jSpblvnbOVC33laOEwkkRWU0/LF+i3OgJWUVnV6z6TJUGbN7/0gnWCJ 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)(376002)(366004)(39860400002)(346002)(136003)(396003)(9686003)(66556008)(2616005)(86362001)(6666004)(6486002)(52116002)(956004)(8936002)(66476007)(38100700001)(26005)(4326008)(6506007)(186003)(83380400001)(16526019)(478600001)(7416002)(6512007)(2906002)(69590400012)(5660300002)(316002)(8676002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: U2yNEbfVhbntWUmTlJS+1Fmpgqlpf+RvbazWC4Y7yeZFBbPzuB1xN7VFOiThawmDF65skO+PVErWIearReAgXYIC9cOrm98yv0BFG208BplPMHIhjU8O5V7VCUEoOO7r9J3YUUItsBLyRvdn3NeixiLXRWncYhpUEOLG2Rl8kOdn6+YY2pn2nDBt91fMoq/1q1xQZ7ARS+SQd4Hp7jFWkwPYWvOq5tpCisIyAdQIAIFJUV+0ees84AgIvX/ZAnho8JNFrNPkeMW0zw6VrA1nT9wwNpXajGEdKKpp+mXSHSaTuEujNlwbNTVvcGrY9EDHP8YL3hLFVKQn93CfNQi+2nqq7xy3Dqjxz289+TFxZO5TO/rZNBU+KXTbdBMcWXnOOtHtSULb+LKEKuMRP6yjOwOJNVXuul7FslJbyGfEiRcARnQ1KASCE14u1kBLYzYGmdiXYEK2OAAtzlhK0FIB1gZ6qqsxw5P7OcTDmALitfYM7/kX64dzN3k8j2scuhJZ/VzUZi5r/10G891M0jotyp9As2EeDcI/VdpX68cwS7rS+s6FeIv1nt7S0CzorN0VjKFL92xoAqyOspXSl78W0h9g1TLmdOIB/Epf5Qf+3CWTTgOu5q1w5rv0dZljTk35wqNRDYP1oZe+JSkcsfQymXyevg2Ggg4g/kbQ4p96aMm4wxC6PjAUBHO+nmijzlL0mlXlu8JHb9n/iNmofr+teoCU8VPh7H71Nmvplwqz8ZjYkrd9o5IZ1+W2sldDtkQzbp/cNzRZo6g+T5GuiiqcpEOkxUsRsbI19ReKD+pgSAeAZswWLgEdGbSmAmDEBEoIu3Y+NhKQmmpuDqV/UxnHwIql6n1+1BeYyO3YcI43SectlMZPowjCzgj55QOyUaYJnpwp1SX8fpop2SL81PLksDJJfmHtWFZwlxXy1jv9L4aLVodl6q4BpIA3Qgk3/gcb/jrR1qhZeETdC5gVpUP9ItIv58Yb/pnMROxznTUCohSPM/op+oez3cZk2/OslNx31eL51lp4WNcURxxyQ94urI23tHx8ZNrvAcvBOmYuQEbji7ohuAPx4SVqbATwH3V+x2wM6KIHq/APdf/XXr2Iq1yufmFosLm2p6UgdEUo2+AlDVHQQ0tEH42Irjj+g0JrpZAYHUGD1IyrhfNDOGV7PUbMs9Eqvba842Cn+O6yq3o7ULcFmU/w7ng7k/0+dbdb0+iYiTXkHTngB26rhkyzcenG8civ4LHD2fOZ/xz7EiUr2vcEyT+bNuGr5FjidOFuVUdL1Jcsqmo9Rmf/l+ZBtrw3ND60uRWG9WlKKMUYsU5B0upSJRRUN3uSqP2PLtYP X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d586f34b-0ddb-4c80-6286-08d8f35e0fbc X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 09:27:39.3552 (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: Q1PFm1BeqXHSSH09dQoxOnpc2Dp8moFySSc2Ldmg0683mvYV60a/zgyo8zKcLN6xvpM1udqZXtdTZKIPl18a1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7595 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 b911a7539897..c0e96defe2c3 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 { enum imx_rproc_mode mode; }; +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 -ENOTSUPP; + } + 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 stoped\n"); + break; + default: + return -ENOTSUPP; + } + if (ret) - dev_err(dev, "Failed to stop M4!\n"); + dev_err(dev, "Failed to stop remote cores\n"); return ret; } @@ -600,6 +668,7 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) { const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; u32 val; @@ -616,8 +685,12 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) priv->mode = IMX_RPROC_EARLY_BOOT; } - 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; @@ -747,6 +820,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);