From patchwork Thu May 6 04:08:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B054EC433B4 for ; Thu, 6 May 2021 04:25:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8EF8A613E4 for ; Thu, 6 May 2021 04:25:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232274AbhEFE0B (ORCPT ); Thu, 6 May 2021 00:26:01 -0400 Received: from mail-eopbgr80052.outbound.protection.outlook.com ([40.107.8.52]:5035 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231407AbhEFEZ4 (ORCPT ); Thu, 6 May 2021 00:25:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RAWI0l9N1Dq1ZKQn56ephXihjHAMxeEJ0Ksx3XkCyBIckr/D2InR39Em/xUaYQ1b7JKF59Cr9IjHkawQXRplPlBRiClIYiUU3QHutwDAkROhb2qJd4HdsZ9ohpnqPQS6j4s6pNIqY1sAGeAoRhF8ZzlPlSxzeUgyrmJeXgAM7VyUkjuGRB5Q9XqXZL6v5bZhmfuh8h6Z9JyRRMzYwrOJfymfvR4LlHELPXBY8tsWMSoSk4WrD/5ySheSZQvkeOk7f0KeRB4Flphw2LvIZv5o/czLM12xqa3Swmr/jLCmwaOEPc+cfUc4j9oO94SnGS8K0hMs8VF+72zHoG8P//95oQ== 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=EwXlKefmrLgWHF+p/zEssQIWV36skW01SSIYJ4rTNLE=; b=SWtvdC2BHKvhDqcJAtBA23ytJx0ykH6aKa36DIa6YZ3oNIYKEsmdRG9CgScK+V7kX9MHI5uGV3zub+36HTkhPaErshs66Z8lb6HjKkp7Qa4dF2uiw0IrVdJEENOPX2FTcxpdBaItCLm1w5qZHCHVM19Yie1pNWYJRGg0D/e0Zol4XuNdomlPKtqKqZedMhHUgidt4oSD5QUS2yvY6xA5xpPnG6kIj12GeRpEUIPa9cQdaanbEhtWd0rFKr66aFU9D2cOg2QFtRvpGYU20HiL6/eHKacDhycY7Z4QktnD0E/Clp+8ZGA7biKFu7MgD601S/m6+03pM0kzl2KXDW2Hpw== 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=EwXlKefmrLgWHF+p/zEssQIWV36skW01SSIYJ4rTNLE=; b=UR8DeYT65Bz4W/PRmItSt4tYl17PvHb8DEBMTQEuncSearN1+nqgMYl8of5HP6b0ELZpd6U3QjeQBu7541paCkDdERWDvKv9ASTtGwhVoTbWkdf+/rQogOKhpfidQ9GtLmAWNUHqY0wsmdHWu3ZMQYuLIoq4YuLipmfw6TByrXk= 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 DB7PR04MB4940.eurprd04.prod.outlook.com (2603:10a6:10:22::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Thu, 6 May 2021 04:24:57 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 04:24:57 +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 V6 1/8] dt-bindings: remoteproc: imx_rproc: add fsl,auto-boot property Date: Thu, 6 May 2021 12:08:36 +0800 Message-Id: <1620274123-1461-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> References: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) 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 SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 04:24:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 66705158-951d-4dd6-0840-08d91046e773 X-MS-TrafficTypeDiagnostic: DB7PR04MB4940: 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: mtHdB/vhfWPT8sbWkcIzSBTuALsmc8/OHk+Ac1GuDSlQ01D7nGtstWFvOY91wddanl2Y0wfcRKuDtsxudqoVKLRrfXnFa5SoDx9zymi6FSLDGjX/lYbLMmlzxumGALlINO1sCQefHNjdxMpTfdE6As9hcZPVKYAylkhGtbe3aKIsLchDBDWhN6WDgp2rtrBZ0bLd8K+4xR73WlwRIHWEGS2Y+HVee8UkwZbD1UGE4XZjN1TvbzmSGkCbFRrctVCQ0jf8Uvs5aWTcGF/VWJOdOHGkPosYlHszEXF7+T4xNkauLud6wwe8Wuv6jUiS1uE5Rgcf9I0Pi/ZS7RDgjTxyrWJc9brpr0aVvZZzwjodIj9zNMx7l3ArkrhTT6qWRB1T1yH/Vg89XVwAno+FN2nCINr+OAejnCcDf9fNynvoj2aYGwB8KxNCX7Ajrs1YWQAZEiRW3lMRI+RX4U5UF1x+pYbCZCk5YJVIsyOP4irkT/plKWeeevCF0DOc4y3QMNYNeesrt4GjUINxQ9SCIgJLVAvduHcJF0MqPiD/RgNemnJhGVaGn+SH84fRp98ifHLAPfnA5xTIDSJ8hIq1Sz0x/2bQEXCUSBMK6yy1HyeYQhX038pYFlEVpzbxpKhh0OTm2Yrk1cvtaCj2kIS9paO2K2ITXCbWGht2grPo15VaLfs2s2Gv2PspuSPm4zCXHdb0 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB6PR0402MB2760.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(376002)(366004)(396003)(346002)(39850400004)(6666004)(4744005)(38100700002)(38350700002)(6486002)(7416002)(66556008)(16526019)(316002)(478600001)(9686003)(2616005)(83380400001)(2906002)(186003)(8936002)(26005)(52116002)(66946007)(6512007)(5660300002)(8676002)(6506007)(956004)(66476007)(4326008)(86362001)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: hW6rE0HTcUlp6J2xK8uEBifkat2lo0CMVedkJM/aY3HX4KDykJMAovfiQBGI/+geUjNTqcqwN2q5nT6BN2k8sbFmC6wDisS9YIZ53eIhmxpIjzHzYAN36tBeo6MOX9mPAuqKeMFVLdEyBRXPaC5Mz9ieUGeGVTxQIN6mh1XqGE7dNkDVmedXSUqazzwjbsfkCMRNOcWh+Oen22VdDy/e/Kk1j3R+e9ZIaKJVL9G2Bmb0SNhC0ibz4z55Fk95n+Du5SQHBxxAbmE4UgwscSabfErpmKYtH20roL0PY6JfVdySnTXKAMSMiIsVc9V6Al6dcfux094wzdnhKM/vElZVFq1nrl0zT/jEcyC+n3liH2UpV3JuZ1Pm1q0eGL970+n62rzCsMBgyLMUQTsKx7e8K+j+69PuG9nKa223//OB7ONkqtmelwzUf7jKsMkGX3gfYGz1BRxStbTPQkMbWKEcU5KHuTkrFEflJl8vt7aHxw/l0qIuK4pWLvKVEoZjGIPKn2Co8GGvuE9xQ34Y069IirrYn5cRIYHtjov+S/FWqXIKOCTwnPn5ZVpTePL2Yyuo6KVY67fC+VmEd3m1eV5vCb17++n2rAM5sj8g236j26emeuV4Ys5S/L+aXnignYvG7Zfcw9hHpyTtjJ6tk8XJTxV4Xvj7iCG7o6LoZUrABDsokwuMr4Ih9xswXvLvuQXeBjlaAGSXx8bciBLnKeQWtmhCqCWESGpTnsUHl2MJz9bsG3wryilChl3aFoQyArHIRiFXyT1mOXXmOyYywSoxF+5zb9i1ZP9DZr3G4GlFzgxSQT9FGgIbwDNagJUT1Z5KpAbR29eQYdmt9LMoJZtyNxAX7TsU+VxVdEKjOz0684yFiKHxoAhbg+BJKRCPhnusb1AMsimiesb5THSkmMQTTxkdjeTsLBsiAz8aL0xcqV+TUKAD7yIx/ldnuZ6V/FweoTBze1jNL9H3hCiDPSkMytKhAxBFOm+hAxqFxYemSqctcciqCwAA5xZAq4kK1ug+W5+gQL8ZpQ4xqnUZhQ5B4s2MFNxFk0PxNt9dOZGW5YrazIM0zu4EIgZ824wXczhdy9UDuGO+SQg3TPxubTuJVK6XDSjSIAYZzj3rhHK3vUxsqd+8+e8Cn8WlrbvGdOhn0WT0HH5lEQHHQTaLqpmTGXqbCTDTCVgH9XnYAJbkwGnyJltxOmiRhMzZotvcnsZy3vHUEGriuFbxUApBxe11wSQU/9X4rL5Dcc70auOvXu64f3spQJl7mDPjTvz/Bk7lA71P9vQ7/LMdQbcEt8PLDpZm/L4ZK9UrC1r9jqQdYMOUqpBGev+39v1XbuI3GhO28jY1HK+fXB46EWsP2LjqqQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66705158-951d-4dd6-0840-08d91046e773 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 04:24:56.9645 (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: 0as9p+EMqPR5hXm34HjGYuO8mfkoCwc1R9apN9bmEInClz2A1enAtZYShKIwsOiecseshTOmsS/O+urKh7uWnQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4940 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org From: Peng Fan Add an optional property "fsl,auto-boot" to indicate remote processor auto boot. Signed-off-by: Peng Fan Acked-by: Rob Herring --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) 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 Thu May 6 04:08:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241619 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D5ABC433B4 for ; Thu, 6 May 2021 04:25:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E4A94610E6 for ; Thu, 6 May 2021 04:25:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232542AbhEFE0H (ORCPT ); Thu, 6 May 2021 00:26:07 -0400 Received: from mail-db8eur05on2044.outbound.protection.outlook.com ([40.107.20.44]:18528 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232073AbhEFE0B (ORCPT ); Thu, 6 May 2021 00:26:01 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QyVbu42Ikd6NX9nuT7o5gG6tB97kzcPy47MRP7Za7W5296fBhOQJMlMXKOzrINqsfY1nNFq2ctbimNqn6zFOWowjqtyt2nFkxOhB/ocbHZ2lC1jnlODS6PGxw+vIG2UZJP20KFb159+JkdM05cENNs7OD+VPpQ0zDf58296IPWNyJ9/18RlKbsDHW0GcEEwVIDdZRFbyU5Tly793XEI6AOmWQ8T76gi0+lpR1IRnrKCI3zuHqaD/DrsrTT+lIwlA0OKKnbujI4DMhc+3Pomv2wVdfbN5WZw52/AiH/5AavfMWUNy36Id7Q4aEWzkMKZWta4v4/OvjkrD5l1Hyc0xwg== 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=eCRqmt83T7B1ZPemzgBrJCr2tq6gUaG7vIPBCP5gj34=; b=U7Zp3BTOPZHGpdghamFnhp+wn1qDmRzK+xHzOP4EG9wipX+eEfJyz6MlQOMzKcrZAF323+esbh4orUybsMo14Zd8niIKzZDCEesna9Y5+OPh8F41fiF520zni0X17HWeotkvzXSPlIupAiA135FywpZmAFrRo/RAp/Jbuwk8CHBR/4GfHW666xSS2PipRBQBbc3ieVQhWo21oR6xyb4U6p2R5A93VPR50/mlzUTEu4IVzzQbbNouhRqGxIN+LRD3CVTkCL0SJv7r+6P2hrCO5c0HXz83jkNTdBDVNPsmsIFiPFEnyymqP+ECec7V71tWtSTmFXBItcFQ6ERL69gaWg== 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=eCRqmt83T7B1ZPemzgBrJCr2tq6gUaG7vIPBCP5gj34=; b=EZ8JI8+XnDd12orV6PPmjVhm+g+z1K6se37YaNeIbqthOuOWnwwtVTZlWpMsNiiIbC5JhGlxy2hJc+Sc+p5cD5OWuMFC/+RXXDy+OdVJUfyiKySlqYBtSJbz9VwrgXDxKFgG3eBPiKrBmfoVoY3no0DzxPaPfkVN8VI/XOiJYAI= 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 DB6PR04MB3126.eurprd04.prod.outlook.com (2603:10a6:6:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 6 May 2021 04:25:01 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 04:25:01 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V6 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support Date: Thu, 6 May 2021 12:08:37 +0800 Message-Id: <1620274123-1461-3-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> References: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) 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 SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 04:24:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 79aed0fd-d6ba-4f0d-35c5-08d91046ea33 X-MS-TrafficTypeDiagnostic: DB6PR04MB3126: 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: FMp+9mSqW1QZmuRb971XWYBV6MO++7IFXTpjpD71zOJ1+cwoS6CDb38HYGaN7M9AXmTvFJiSftscTt+x8bji/ER9IkLMC9ULLnR+93rafZSQNSiDz7TaU5/iu4gw1+HwrtqsxY9xLhHiabFnrnJ/ntAan76X68wHyu0Po99CH08YLx/5ZI5370JataoBoUbNXKDYHxw9B4M/viUgJ/sHhhqVDW0WmBs0wIvrCMfLdwQ7yxHUB2vLu+OqFIKOp702wGOvgQedSYjVAyquTfvj7cfI5AGHN3bde5FXAI335fTbHvlF2ASz1r0F7ovyOdehgKsvt00G8eesGe/q0n6ELNXCPPqMO41Nu5k9BO1eMCEQscLfA5haKVAkY6lorLkZearb/ttarKzer+N7y0TDh5nODil16Nxi7R+lKMXnwldsqE/8JG4LfZ7TQsQFVpOo8uA8nAxT+V/BnbFhTS5F4g8XprqwISPNqqx55+uSpgi6c/nGIVeBSes72cwlZZIbMWsVkMaOFjc8yj6FnaOjTRb6CAdjaUy4AxJAya+z0Nklsy2cRePPPFa1rSNyPCRGrsq/F7QtgMiTv1Y1Fq5vNI8dAqIk+a5MoWzO97MvviRVFOZbKtsYsaXRXZkLeqpu4eUkBXa4IBEKI152VrUWnnx1chWlV/hNwD3si7fKS6ctVVnirFddqur7FPMXu93D 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)(39850400004)(366004)(136003)(396003)(376002)(346002)(26005)(38350700002)(52116002)(9686003)(2906002)(66946007)(6486002)(8676002)(6506007)(16526019)(7416002)(5660300002)(6512007)(38100700002)(186003)(478600001)(2616005)(316002)(6666004)(86362001)(66476007)(66556008)(956004)(8936002)(83380400001)(4326008)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: GPC/LluSEPAIF/1v0nQr+PVyP3a5UiDZeVL4gqPizcgHUah53AaaGhc0zVA1ZfWtapvsz9uqtUJqv9pMCYqD08qcbhxp23DEfFXHy7TwoAqH2ZxH8GlEmnll9fBuN/NQElCKKsQP9plmlDtRnUnIl+o9iJlHC7mbFjRfDmx2tLByLKLKd5BNDdEr+h3/a2bE3x5bXptRc/NnwTVNgK21met9Qx45agE8V7t6Ko7Y9oBdJg5nmZAibMBZpSYbqHOt2PveVd8mH2U5jvzSLwnjLkGCDE3kX24dXPWeKWZWTRHAfqBly4sryS/lxFweujcuFlabPVKq/c138liPJlRlH56FinrIvGaMPY9oHdtHrPxusGoAswyJPPpYMgWUyGa0bRqawBK5ZUjKIkiafLoiQatc348lRoLOua38+A1aU/ZwkSjQv4juw26ycitH1zcC/3eyoul7xguR0gXOc0P8sSNxLuHsNxzBAANsd1z+4iMG6bOV5s8dq8oxCVR0kAtpiwAHNKK7Ye/B+K1dow0OP00O6MQAmKXsII2/f1edUT/lDg+wK9HJ9+DAghZMHfA/kYR3TT1cQHYbBfvB2t5TJf0F6UzHt7FjXF4keXkR8raFK5AGNp4qjU3xxDTCIvsySahRZ1N0ExIBVz2qTPnF/p2TSAiu3WMrGfsaUdN6r/MF7jtt/7ZbcN2bpJNH9JvG6XI4s/wa1aysuSRELOGa2uq0dn5WoBuU9Zaxx1WwUPQC+C2VLJNPMiVJdQDoQpxr27nkb0kLM/nhq12i2QOiKfzyx/47DW4EQitRQ8VTLIZF4mvL2eWMQ7UKfO1u/wqW1lONYxiC+1+OoPr5GFl329Y2PTkxCZKy6FEJ/pkBj1x7YJvLMZv3LPtO3OZmEb/xPMkN8n0nRe6EDdCfGFU0giZ7AR1GtUY+YqRi4A+ZP0ZotvGHm4Pfsh2oIyCli29Mx5LaNVYDM31DD5zbc0B56Qkutse04bJK4zqdqgQYq9HTEOynqVSgT+SDQHHTbCukFkI+CNqGhM+N2ig4N4J99pPfJcxAGgHSORtloTxGA2oT2AdAJdYFz2K7fJ+eY+BeF/JKuCeJvpOaGMhg0lLG1YSwrtw7n4BaHSYcJCdXdwlmk/xPBRjfvFOVPTEhbAEKukyHKVIebT/CMwAcJv5dgujfvxodHTetyfrpC22GUKbc30DaASwIXigWEjPF39jYYwU3L36ctD8RKp3nhPKwdFfDbCyXVi8zWlRePUevgPln5VEdkJzrGw4z0gXnYT9SSHhT0dGhd2BqJ7CRhqtlHSMUDifzTK37B/denoO9X68AgXPcFBpSKP9Ccek2tcQ1 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79aed0fd-d6ba-4f0d-35c5-08d91046ea33 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 04:25:01.6154 (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: pVmCnU5vdwjwXhbd5QvEvbS5c5vPzD9oRpco6cu64Qix2lM5rVU7rFXRglHp/CPzlU5X8AFQqIUNQCmNVXb2Uw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3126 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@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 services 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 Acked-by: Rob Herring --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 Thu May 6 04:08:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241621 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 336DCC433B4 for ; Thu, 6 May 2021 04:25:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0C25D613BA for ; Thu, 6 May 2021 04:25:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232484AbhEFE0K (ORCPT ); Thu, 6 May 2021 00:26:10 -0400 Received: from mail-db8eur05on2044.outbound.protection.outlook.com ([40.107.20.44]:18528 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232400AbhEFE0I (ORCPT ); Thu, 6 May 2021 00:26:08 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eCX2EwAkRlggmADZRxob31OqJ5DsfAq0f3Y+YYG24kh6diiqtKAh2TjG4sNKmzslZBi+4ybh9rQ91kckZTjzfXJLPrKWyIUwfnEMoJ5eYeuNvBy349E1Q+XPcpSz1DnZhmJa6MtPoOTeJqvQFzhb0tOdEdtJwRiEklPBzZcajlSfzaTX5k0epNG8YMEqroBhc+WLFvsIJKZN0GPlrEKz9hlFKvTGYDac5EByG5Ktmsb5BOPc8he9ik9AL8GUAMZljSAx8RhPjlRXkRqTdtk4+DwT0od0Lpf8oq3B0sqk8p/9InQwTOJtQINjWYeXWCrdqA553JxiFqPEDsYrM78ifg== 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=ZOHifvL6kx5LI/0jf6tRkHZNtJS3NF/9+k6nt0SPr14QZKww2offloE1zGe3MF5cYB50PDP1/UYGfyvl78cK3XFe3N0eqt/jPicjIqk6JXfEF7X2Fz/x2ykNavuARokb60pN24FigzJ+SE/CbnTWnDEf3Gxs8senbZJrE3krQ6paKQ3gplldccNpovumc9EF35pCIOk2l/mHAi70t1ud/z3++APKnnzavvpGhAMVbsne0Ln0/PSuTleGEI+RD8NBdBdPDvjKxuLggI/lEUtwU86/80KtXdAFmwAczeSZSUCAYErQZi2jQ54lfVY8tClYfIC9MSyQkxoSfHNkkpmrIQ== 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=S2uQdGpqfbf1s6NUQqlZiPypcomBrB8ozeplNf/beNUgHQAT7ZnAXSzjZo/UKYx8eSRlz9yFKyZMc7DdhQTewGMtKWzk46MzRHEndhh6349rC30s1zpigB1XoiQ1zN42iLBKHFf4vuImtXRYPmdTleJ1dAkZUTuzN+kyu3ISheo= 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 DB6PR04MB3126.eurprd04.prod.outlook.com (2603:10a6:6:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 6 May 2021 04:25:06 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 04:25:06 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V6 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P Date: Thu, 6 May 2021 12:08:38 +0800 Message-Id: <1620274123-1461-4-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> References: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) 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 SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 04:25:02 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2f9f1fef-7682-45d7-81e0-08d91046ecee X-MS-TrafficTypeDiagnostic: DB6PR04MB3126: 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: HjrPQyGiWSeVB57srAQAQy426NZCr90/XAOWCU562A4n3SGtYEWzPWeKRMMe7atokLIKQCk17zIiM0tD8Xb6Df1iKgQXktN9a0YxoOsTMwI0y1a6Qh7/7WgU0G7afriL+Yze/MaCG0fxd95LfGefFzEeI6IenoatWxbc/eH0WXN2i9UgaTGfMYBsPq8nZUIyH9tvGL2tXIZbDwMN+zYyCal1OezNS8JfGoJUPuGR3oOqyI0JV1tXG1KOxilM51Bu+Oms45SpfoNL63er3SEQrbzQ9aDBWaAPNWsV8Or+dbBImh1dOVH4OPTvnB8HxGzK9Ppbv/97qrKygw67CCb+U+TiavjRGWzdbUP4pJuCtwsKU6d0rRnuYl/phnabr3f4CXWzgEjfPB2RFlfoHBZKX2bACCSu/S4VnvdGDj79YDBOeLiiiMXKEuqax4KMgY2lUjQmt66+p/KRLdtU0BjSGiD2LNI7dD6RdC5NO22aHJG9eGojZCLPYF6V2vn3R3VAAEXFhzj/x2ZkxaLaWp6+IYnwpqbfh4qx68ZSF5vV4CVf0NgO8wy06SkEk7NxbYRUi1/kFHMP1sylrto7oUcrX/hwLmuDyFH3bg5T0AoYBo4c0Os1k+s/lFWgvsLVWHCXmSUWp5UOsOeqXO0uJaPLfdq5vsdoQAIeNICDmow4SsuWxTrT/LLnFFPCtz4IZHyd 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)(39850400004)(366004)(136003)(396003)(376002)(346002)(26005)(38350700002)(52116002)(9686003)(2906002)(66946007)(6486002)(8676002)(6506007)(16526019)(7416002)(5660300002)(6512007)(38100700002)(186003)(478600001)(2616005)(316002)(6666004)(4744005)(86362001)(66476007)(66556008)(956004)(8936002)(4326008)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: BkZPMdzyYnCmBZBEfZDX0TESDc9Xb8pPaclngI4dYtMtJrixXEDw2Tp0Rou/FdEV+5GcGXBI4dSSZzXrw8huoTLQyaC05Mxe9Zmbf1QrzGicDuRTfCy9RouvqbRjPzC1nwJ/jUa2hpl+xoBTU7qaZrTaiUpGdLYurA/d9ebFF30AWHaG3vTAZ5cdmTg6E+U4yDDV+xspAtSkf6LmI/BB609iB0q5PX/lexxyfZHybqqs+OQ95RnuZ6hLC0OE4tsAMPvnYoB9JZg8MRqWyZmgaR2tGXJeLgQ0TniFkIvKaMdh7O3EJXdGLPMzYcCCKT8rc7bcQlZvKU3uFn5T5NRRqb8mOiM+5g28ZWKDfYktAFfjbqzII97tbocEYcufoLaq1CaBUf3BfY41Ww1770OPnUaIpi3DTwHl6xjJRFYdWwoYwz/uY8+Du4k7RiB9Qwt9EnsXBQdJJuGAdNm+aMb1IydNs8tsi0RTeb+1fUmce5MD3269gu3VKRpUNr81mZu14K7K80munF2St9VbDN+rCOAvTsLSiUnitFt1Xki2mznH+QRKVUdnW3+VPU7PqHMlpx1ebah3k/ocHFu3bnpShAfiZaI6ldJMHuOU+VS7psUGZIvttK8hyvGtF4/pcErWw6n33BvM3rN6UIe2qsJH5AE1UIHx6ZzbuDygrVcQ6vpDcK88KPfusK19eMgdSdmsNVcbcS6cPKAt7wsHZihFcezrc+xjYbpb7+gvWqqsCVFbL+/IVVb5b4peVM0afonKxk/Z28JjTqr8z6HkBw/fCEyPsJLdhiBebSLHia6YYitWzdLm8C5osl3BWNk1UUz13W3I6bceG8UVwy6hTdj5dBNSLB78uOPCydvjsIGN7sShNwGqKbvhNIQ/v37dl12+6p9PfaYiE/jAq4K8LGz6ojCTO3ebD4PMFkS0dRo9g9uX1NLjSY44p0/XnB8XZ28pMf0LJATSFT6CtWWN5/vd5DHNvxGb7OBihnjP72kRlPW/UMPh8XblrIis99yM0VTX7x7yOVRP7keeGadXh7FpA4OTHRZi1TFs0OCe6l4iQ1LQVirrQVEOXcUj4wCycHlm9RNUfZ4A9S+ZcMfeDf8QspmKYRjKhq7fn8LDatlh575DFUVlQn78qE9crsYz8eQ7aQxT5QNVoRCJHMplC2xcOWhQuob0aI3P3bd43qvDKSlKcHhRx0e9iS48a/NrhlYtmgxHtysEKJyFiJdokdxUx6qiVh6+6XC95iUKEqY23/E3etf3UbPRI76IvR+OXUjHDXypSgmvAc5osLgm1f0I07kRZoyDQRE2a2JxnL6v8MOo8FqaCAlmmElJmWVPrbog X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f9f1fef-7682-45d7-81e0-08d91046ecee X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 04:25:06.1603 (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: j+FR6JzSP7ik3K8diuN7LkPEHWFj50ku7l5qM48AnBe2egEikM9Fub0qNr6lIb+0nifmtyG/qKtp6Gktrh8hRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3126 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@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(+) 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 Thu May 6 04:08:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75718C43460 for ; Thu, 6 May 2021 04:25:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 56531613B4 for ; Thu, 6 May 2021 04:25:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232838AbhEFE0M (ORCPT ); Thu, 6 May 2021 00:26:12 -0400 Received: from mail-db8eur05on2044.outbound.protection.outlook.com ([40.107.20.44]:18528 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231407AbhEFE0K (ORCPT ); Thu, 6 May 2021 00:26:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PrCnByhCrRj291bDpwePVWOaZS98+6ABNEevrettbqmKNvtUyoEgaZzIpKHk50qC+qT99b6QFcZK8hlZcl+rRjwy+3Ft1aaRjiMAGX7WtK0NCrC0kSBQvzpFhbyZHcW+//ZWeDgcGiZuQ/76+vzGk7OsUMKuvxJb3rmBLgeHvp4Mx620VBUyvLEAOxWIhP6jHt3macE+oAv5gD7VilDuvwnsnRYl0u2OEsyjzUDR8pJ/plJ9M6oSD/HMziac8DPRJ/ddvDXm9k6+pev0sXIU2EURQ8lSAvbQgIyPiRQ41d8R+/qUOGusgoQ/g1CWJLA5nLJy2GGsxSZkMw6Mcp+mUw== 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=5wDT0/duqjnGCPE6YxdFm3Sn4kEIcN4Q2kRMEQCwybk=; b=lAzpaUR7HmaK/5w+kfJ+fbv0993YU9rjFhft7/AeCZwfMJlefpXtl/UpCq5KRW079AB/+GTCyxy8UF7wndyefa6/dtpAA/+qUpbPz6jqr5HYwFPPYnXKtMAwPgkpFAoLeboScE3BKiTztQ3cJ3uif6+Yps1LDYx6SjPmOcs4NwqU61qEwgvX4j+FyKbTosRCiALj8aNMnamnV1JwjW7b1cknX1EhDOUMCTilfxXv7zXzXffS6mGBSey6NYOwhex5FwDVgxmsxOctCH1rz19zUmAItQMYWmckb7Fsthj9uSiYYGE055msenJHxY5lsQexwdfSdda2QpHIss8JfWHobw== 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=5wDT0/duqjnGCPE6YxdFm3Sn4kEIcN4Q2kRMEQCwybk=; b=RerJKcX+iMEYDvtgN/ZbQBZaKkb49IGMKVIXKymQqw6VZlCWdz9+/mbQ+JbsGEBXxVZGvB1u4DT83MCNCZIPWqBaUIEhso83j4Fz31m5lQv56mvB07G/WjI2+PfxWvAgWv4lEv8hXSBIi1/4ZJtDn56yCbstS1LE882XPxylv2A= 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 DB6PR04MB3126.eurprd04.prod.outlook.com (2603:10a6:6:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 6 May 2021 04:25:10 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 04:25:10 +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 V6 4/8] remoteproc: imx_rproc: parse fsl,auto-boot Date: Thu, 6 May 2021 12:08:39 +0800 Message-Id: <1620274123-1461-5-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> References: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) 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 SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 04:25:06 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2b30aa26-d8e5-4302-803d-08d91046efa0 X-MS-TrafficTypeDiagnostic: DB6PR04MB3126: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1775; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ws6vMwib5hkLRu1qMeoNHvsymMdCnRSyqhsUgCl4IkmoMR91aX+KM31hL+klvlPgxfrATTv2KCdvIV/DE7pcezT7b2c+OpyHscQ90JkvuWVUy6C0Ib+kRq9zATXHufSs2PhrvFRQSxp5s89fxUYzMBzC2iJWA5mtzIRetP8iA8y5pIqmbNHGKqlVkGh34ZOPkDCfxM47tnBH7dqKBpBuwakpDMfh/4aaWn7BNLbVW8d+vzEIAK6LIgaXb+6HX9mvA2AfcqhuXab6S1Yc3LXrId7RDC9SP5P2zMQbaoz1OvifQ8Tf+5tdwvefEH/ldZBGmRqAewdLEjfBLgNNfTCYLVsm36WB/HV+MDvACBeSFdJ+MVrZ58mC7j99yAX4/zJNKs4L3TPFt98vW/mlLGfR30gTODpp3G/SkEKnPIMB5WG0M1JwNBfkZM1qHDe/pCNCjJeMiRQ/Ba+E6RGgLXo+JBjIfz8tA1JDvXRbt76LoDuZ66YTBTLeKXuYGPN73US+2OsMiYUOi6WMtfQZlhX5wHLEbgAqJMH2NbC5AzzIdJj78GN+feyzz67byxbvUAv9bbfURZcAXghjjShmLJ1cYBzC/R345pcYRJH2s+I/1LKUl/nrqvqCKnFGk78sHGLIVfFBviH9NeO9IBZDCZs4+ewDyLS78oBE1Q6Op2qJ/90FwDrKh0fCEVy4HLZAGYO2 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)(39850400004)(366004)(136003)(396003)(376002)(346002)(26005)(38350700002)(52116002)(9686003)(2906002)(66946007)(6486002)(8676002)(6506007)(16526019)(7416002)(5660300002)(6512007)(38100700002)(186003)(478600001)(2616005)(316002)(6666004)(4744005)(86362001)(66476007)(66556008)(956004)(8936002)(4326008)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: tLNKpSdvD+KDH+Ft1uZSbeXOGGJRAc+TxXO73SQqgGi7LwjZcPJi4xxvHJWh9rey7z2FpJETpOik9+XZv3zLhCpmkQ5q+sLO8Q7YfUjQpNkWlSOUJBcfDWmEHmOIZ6T+c5Jl3TLnMr/nN/Hls3tPnM+WpbZ3TSOED+rrhIFlTh6u5eeZK1pqoY/JFx8JETitWZY3CW9KQWF79JeTl8qbZe7IHsgXMXy7nAiI8ssZu/vJi7ELxGwruJgrJp7AQLpqbL0nuypU0yysDcoK17WM/7Gab77Vfl8GbIcj+BprZNv0gHvY9UwsNx7dbc6yppMw7GVY1OXt/+xyU7m6rf90zh1iY56opTxy7e5YkbKg4Zfs5TYdlOzFeu3sO19NrkvLLJIGCCx6sWPi6fXJID+AFPgYlWxWMrHTRGYH3cD2TDfGURV6COOtUcSR0VE8Z5aDN4pLXv1BhuqNcCUgoZqUCEhqMVmBIKf2A15S9o/PYJv2rAZFal6My8vI7+ftjeRZmQQxXiCw7noJn8GqSGUPVuZEeY4a+ylhF+Bunp2HV7HDPIUre+duEei+qTq5DLph6qf4dB/3OPIPlpa7K6RTov0a6c1hUUOkbdE26BjvcdsHJTJEBcIbIblL9p6SWD3tOq+WhPfQSLjGRTZGTRbJ7aIyHyHPHKO+DRnlfAOuVCauOUkOJkX++Wyp3j8p3Vf9RmMxZZ4NxFF7Bq//ujwgh5QNh21TH5Q0+W0TOOGCPuHAa4yCWHgV8rg4u2Xu38tI22ixD7VLEOHYHC9/qKnqYX8A9BvmhjHEj17ifHUenCXqYyvjd/1Jd9IayJy70FPdy63po4hBlNUdFCreD2CMa310+/vgDYGguflQoXjQgPMPoSdwkDtsGyiemGYA4tc6rkFEFmjJp7n+MPZ3zkWepBoZpiiIuo9i9x1llunsW1SqUV8ARn2zonQoSW1pvvsT3JNQjKTbAO+ZQoXVwjjPIxRP3K9niEFdDY81QeTuvbFRVFWo417nPqWXkNDdjlW2fR/fe3lfi1YjEhj6+bTZuQ7fwHVXnesvzTHDmNf5HzegwOi0Vd7vLJn4XiEv5DItKDWcfmqzZ8DDhTn7vKNLOvGDCF8gUoqmiMLmKDNt3TX6agzR4nWkytJMGS6wvTn3GHvfAqXJOwxIZPTZ0KXNpfkWUVIB15ywt4r4fWMHY667AxiaU4wkDclfXYBIYk4r+cot/46B2WCQJBiiFaMKnHqNDmyjWKTuPJAEaNvrSdk9TlZ0a638f87NEgMFEW6/mW5ByPFfFkx1PHLkAbq9SEW5NduVMpTnreqL36w2fyfHDaO4GRiEcDyIHRy8O1AO X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b30aa26-d8e5-4302-803d-08d91046efa0 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 04:25:10.6882 (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: 18qZ9emeqsgXyPhCgsgaI4KFat9BWe9Zm1r/yUBKdK7XaZRIHu70ow4bxibvUtG/e9QHECF6iTBUs60dr2Qr8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3126 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@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 only need to parse the property when rproc state is RPROC_DETACHED. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index d6338872c6db..06dac92e98e6 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -654,6 +654,9 @@ static int imx_rproc_probe(struct platform_device *pdev) INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); + if (rproc->state != RPROC_DETACHED) + 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 Thu May 6 04:08:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241625 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F0E7C433B4 for ; Thu, 6 May 2021 04:25:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E5DED610E6 for ; Thu, 6 May 2021 04:25:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232915AbhEFE0S (ORCPT ); Thu, 6 May 2021 00:26:18 -0400 Received: from mail-db8eur05on2055.outbound.protection.outlook.com ([40.107.20.55]:21472 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232847AbhEFE0O (ORCPT ); Thu, 6 May 2021 00:26:14 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HMe41RcOSY18+O85qhg0fd/cZdaBlPm3nvPp6CdmJ6UIssJjjGv5xV0W2JBDm98WYi3lz9kKOk88iBVvs6Z/raU5l01sajAlGWrwVr+UeCSYAdc5KS5yz222Vot3xuWNkuOCJinylUVsTsoSX6tw9eCOCYhWSYwYwG2p296RfjTizyOgH8P9L3HMrQY+fk4W4FtThd7eAQj101usz5WJCqeGv9GJOawJ4cNA1dpEI2hSzgTaP+x++ATCUJpGDjqfILBf7QCdfkh0TwGFnit6jWPi3blH4qDHMumbdq0YDEBbMA0mevOYSOVZ0MMgHvbk5B3h99yoGJBLnxRFtY2+XQ== 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=DIJPvyXTkoBhcPI0vQASlR3kY78KULzsmBHaugDn8KM=; b=G0GGWww7xpXWsOR79LydFqyHZibiz1CO7ipNxIyuui6KWkpW3SGSGy1GWCzRW8QPWMta40eyWfOyE7Ztjq7e7gIlJS2D6rsfuLHr+rQHrZU6Y+i0MbW6ixLaBbZ3GECjkp4TiVYIjiPFzXvB226M3vGRwVj7vCtDw7IKHP9LWtgHlhypRc/bWcHbWjNTYDFZ1Lmk/zAPLJ1SGshV4YV4gYV3js8SzV26XJYD3KIBkFEHhO5/MG4JW99AkMeRSBJLQ5lMm978nSoom8zMIm48HU5y2/RQjEcP9Bh1WjcW88AhMWNx84A+7NlnzPpp/Y4EvlEsYCozPLes/MGIZuMA8g== 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=DIJPvyXTkoBhcPI0vQASlR3kY78KULzsmBHaugDn8KM=; b=eH9jdsFztbgTLJMlHHPdqyz9ya50rh32SY+dCv4wRr6dRgLJHeSlSejM8lPBAEEaDMBWvI9eJ+YYuvHKcCRKtS0nygeedIUZcL59CjkyRYthFXMG8Ph2SA3Zx5VjqyC8svJ3a8Cw1QWYsav8RUNLyb/VD6kpy482DFMVRXpGrXM= 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 DB6PR04MB3126.eurprd04.prod.outlook.com (2603:10a6:6:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 6 May 2021 04:25:15 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 04:25:15 +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 V6 5/8] remoteproc: imx_rproc: initial support for mutilple start/stop method Date: Thu, 6 May 2021 12:08:40 +0800 Message-Id: <1620274123-1461-6-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> References: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) 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 SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 04:25:11 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4a7e877c-f490-441b-baf9-08d91046f25a X-MS-TrafficTypeDiagnostic: DB6PR04MB3126: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:153; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IC8Z1KWviBBQot74tCp4FTxI68R/r5drN5eWOUDHcMD8iH2RxZJlu0WaaQ812ZWTwzT8kV54qkdqVlygkINv53z9xvvOs6hxIKK8xZlzvl9/xYVfqCgx/g2RGYu7OHBmczjMo5pkq+eGWaq5bOJITOzeOD4zKhmNYTWqcKEsu8qwiTW7qXf0KZhGgu+OUv+/F2sv6gZE9UEG9N5sCZndVoakPBp5Tm3uvME6VhdrKcUHX+wLvz+mHVWQlWf6EUP6P/PdMrNN0tqY3cTpW9WpNXVe8kzbqE7k1XwWJR6e9xHzs4OxMJPTBgMndve8pRo7CItZlqtF1kVwd5c1rHnYXIsnBB3xLVi4lXwe7b/a1G8dtg1Y+CZ5Iu5R96DDH+1C7UtAJeMWI7dJH5CVhmtoYRKFx1cdxWAIAVsUhCsOwYnHj5/r6/uBwStp5XwufoPa26oVOZbyktqXe8UAcUlrf7QiWARTjGIj9bkaQxJwmQyqI+MP/ync0WGf7MwOvePfBQn1FZRexE6gW9Qsnj65FvLpC1Mv1efstX8J307p9syFaBlTmZc0MdB/GL4dLDYzqFAxGv7DsEcQfhqKAli9OYRE50f5WWTm51j8s8UCVoQO1nIAKow2LsoijjyXfDsGauwLR8wAtM4eGCpx9xkNmOG3TLqDJs9/YgXZc9Y1EllkfNrx1ztHQjyOzb/9XneY 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)(39850400004)(366004)(136003)(396003)(376002)(346002)(26005)(38350700002)(52116002)(9686003)(2906002)(66946007)(6486002)(8676002)(6506007)(16526019)(7416002)(5660300002)(6512007)(38100700002)(186003)(478600001)(2616005)(316002)(6666004)(86362001)(66476007)(66556008)(956004)(8936002)(4326008)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 2KW4wOzG0KWO7+njDF8mWYoxvEMN/OY/NxINRa9lwTtpmtPT6+/itDLtnWtmMXES4yGvr9Mi4uat+Kr5pxlGwGDPpcgqNDMPnntZL1ihyNTSqwmnbL9E2Nu433XYxMrHjKgEC72ZDylyFOEEtvuXiG9nreB2LKvFGMUPkLFgvW9vnMzXf3IbW+qRGu+1sGcBFS+yaQ6YNUcy+6pLOzsp87G6KTI3EOTEt/JbRBEE83hG04c7AT+nhElYheiS8LP/IyfB9OsGqp8kys7QRH6+6FcUXd/B89wWLolpmq6NJdF9n2VSKXeVJcOZScMG96m97ws7ljGwdxbU9Ujj+mQ4zQv9j9RXW997fyYvgZaB/bjuLCZy8SWRy+AVEds/H/8Ict6rhyfnbKFpe3+vw/CSl6c9J9T29Wf9jeWnseINK+X4P59zz7KLwh3jirzt1s+/A4g8pvWEttvIejx250sw/0WvuAsiOSdDPz/iIO0SGUlg9lSEx39Mn79pufkDcLcBEzCLZvwZvdCnuRWp3DqAWixvPLnuCtrV1zcqLx3dFzipQ2u5ZoFHCHBrWvPiOOQosQJkA/0MmQ/x/sKyIdKoksXA++Id2RRT/OFS39jhOnm2noo9nq4BoTuaYvEOFGx4yCSLh8sFSH9+D2Pk7cWswfJ3PZ9JJGn3Q1M/OzOQeoY81y+7omKu32lAi/JExgJs8QDEsG/0gHHyXBJTnWuhChsEGzBe3qpe7/0w0JCS3tdiiCsx4Qm8clFUnsvz9Siha5XsAhUXKoiPSbIwjuSYRZp0fg627zMHDjXkwSo7JiWl57zOYeiYNxcZCAhpOnNQ1i2WgiXg8J73oFzHUjB9vFOO+iFRPYzIxQLsLdYHQKtx5M9oGXOFK6NJ8LP4BV1tBHAfBg2FBDXJoFhxZ0Hf9B9TQrIgfsvicOSK9VK7HiusvOocZBBzVBYB8rF1ANxOs1ezxemGfGJHEMfivIFSAuAZcuQTnA503d3AWFpeKyBwD4eZ+pTr6zkg73vDdhdmu+X0arG+yfrV0CJDzTemYNhIC89/1iknWmLt64mR+v3P74FXheX5bkj6Fyz2rLITql4+BuqbMUc3v1t4g6WZZudE23Z8XE5xjLnWTenJg59inaW1MXPgVLEiahf/uRTacv25zFkRayi2lncNFvfJ8EFw69Du9sEXp+tlmJvjToI/jpao6mc737qvzRzQofFCXYAogE070ZTYCtuM2HjRotFxAYAI6BRwGKB+qnrOqHA7RObsXV+nmC0bFMKtguWaGP7KTj2/L/68J8WG7+vr4qfp6gvFmAr1XKCr2gZpyiNKNaEyKE+thnyosLDCm5/Q X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a7e877c-f490-441b-baf9-08d91046f25a X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 04:25:15.1342 (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: 6gd5X8z1ZsQJ57tw09D9tfauTMHbMy1pA3AivMbaYLpAlGLkDYEajWHEFh6ZB5rKULDOneP5qNHAszLRIuEdCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3126 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@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. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 06dac92e98e6..6289aeae95b6 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; }; struct imx_rproc { @@ -183,6 +193,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 = { @@ -192,6 +203,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 = { @@ -201,6 +213,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) From patchwork Thu May 6 04:08:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241627 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D37FC433B4 for ; Thu, 6 May 2021 04:25:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 60C5B6121F for ; Thu, 6 May 2021 04:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232853AbhEFE0b (ORCPT ); Thu, 6 May 2021 00:26:31 -0400 Received: from mail-db8eur05on2055.outbound.protection.outlook.com ([40.107.20.55]:21472 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232884AbhEFE0T (ORCPT ); Thu, 6 May 2021 00:26:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lX2/lXybXv8u1aNoABehfmy8FuLY5eZR9h/qU/J10o313onL1hp3xHE9NNtcksVNJBOEPvJcq+ieNKZWaMsCe8howEkXmvtU6PXSbC/tjh3Z421K7XZ7cAsiwDbNxUBZrfbF+gpLJ5Q8r7ij46T0BAmGKJKuhB0fFqM0hU0j+ExURxJFdDAcUkmmRADAGi1XEailCtvpDjMa5VG8kobW2EzdN+WZvebV6wFb1av+bgW2dwBjGnvzqjT42qFzZtzBwRKzFFU09DjamUhC1IXYsDtV/EMZeJlFGEj8wB22kUbKqvmnO7hdhagHs4AuBIOLxPug9hMMIovUftD1MTcyaA== 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=UzymBpZ5Ej2sizLxQ5Gkw5D8Y97LziPProGsnKRR5vQ=; b=Gu600ZCMuUeF3WLRa78qOzTHGskiS+bQv1EPOqFemyqQCv0c0YCErPOadhuJYiLJcyERip3Uy7CfV8scm/2Tyv5IS9uikejwNU6Zyd0249PtdOTerqrDgTJro8BY/gTxxNLuopfNA6yExrwb29thDGQTJODmEMkddOFDgCyDADsWH12dlYM6DHtMe1eHUaSgJCEoIAecraxAQNLz9L4aMCWurctQ/37tn627mY0DJoFoVmOl3pGsVnvuM7l8Ik8Sk6U5yWO2ZWfdV7JI88wEzgjDm0/Nhqr2loGAoU9wGM1OMOwyeF25nkSFUwtAjRVBc7bBzQT/CzeXmNdm6OxmWg== 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=UzymBpZ5Ej2sizLxQ5Gkw5D8Y97LziPProGsnKRR5vQ=; b=gRT3qy3fzHH+7mhNVBs1PwdV7ZxHP9T0FZQRLCH9/iE74n8wDPDtsKzLCjIk9p51f6XEJ/S0xUUE7hH9Q2WfA1o4teWrSiWr2lXbu9E0qPUWpJsaKIfM7+7QxXv0N1oA2QCKe7fX51VEw0Xdr37yTBda3dlmW7yFeqaUhz2Ap4o= 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 DB6PR04MB3126.eurprd04.prod.outlook.com (2603:10a6:6:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 6 May 2021 04:25:19 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 04:25:19 +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 V6 6/8] remoteproc: imx_rproc: make clk optional Date: Thu, 6 May 2021 12:08:41 +0800 Message-Id: <1620274123-1461-7-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> References: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) 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 SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 04:25:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 96c93367-2e63-4862-9b83-08d91046f4ff X-MS-TrafficTypeDiagnostic: DB6PR04MB3126: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W1MFy0m5hUDnPzOmbOBKvehit8kKt9T2aJ9Hy30AMJrUyuCGzYN4LeJ5pzYOy3seTPskLCuuqpD3FjGFS8SGOb/WDucHDt7JmqqfwsZmsZEyNudgzjcs6UfWMFS2cMID1CIpaPPzURwWGf5wselwtusEQ0FqJ3de4l7KbL1FRBLOso8k8SxJqV8JZmTgeHrz1xemVem7loZW8x90nTX5rFO7xD+PgqC5Q2t92oUOhscaTnfDfM9dpEyp28d/jVnx9dDBX1glV/jJUgfueBIq4ftKB94lvxM5QmUI+hb5kwPdDyxkAbPyd9l416PtV1q7kqx2z3VGZOIMEaZLOjdU67atc4plqCDmzPsZJvuLyGbptMAwmUW+AJO1qXwSGJwa1y/5z+6CSMVVwjIngIL9OEUUt0pO2KIIgSaMNhvdao4lwS4UhyD4/rbNQyB5y+h0jE0tPLdLy75JgVPcz2frlEHnG8h3bzGPoYeyd/y4YYfjRAg7cQDH9qWS6TdSFRwFVmjZyd/J7u0WH8aoS0BXfFPDY+Wek7Iip74QZeeRAPAQiIw+BL1UXdPXhNKmb3r/NFH5KneT05iH/VnYYQ4Ov6O8XAY34VF6a1tJSlfdVEIwciXsEkh9QPQ7ji+Yv7xpMAdLJGIJRyKCon/doMwh/zzP13bAN2qyW5Y5ncaelY9wA3aiwNb855VcoVj8AnxP 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)(39850400004)(366004)(136003)(396003)(376002)(346002)(26005)(38350700002)(52116002)(9686003)(2906002)(66946007)(6486002)(8676002)(6506007)(16526019)(7416002)(5660300002)(6512007)(38100700002)(186003)(478600001)(2616005)(316002)(6666004)(86362001)(66476007)(66556008)(956004)(8936002)(83380400001)(4326008)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: RJrXoQNgej3Zzk2x4ncw7nDkMEidCNY050JmKWmCRA6rSmcGYGULH87FT8pvmNzZXl0pI6srasMt8iwt/NZGvamvEjcarbJW2WJJrjRReHxwiIi3mrSoq9DmfdmxMzQIj16BdKMCAvkxWZOUNvVk9Ks9M6R0pa6mIu/gHG3kbWZYGZ9OFexnRKJaifjuM3nyljkXKZA7KHOM71ObRm0xF4r7aDMixPb/EKPbReWsbc9tWXaFzdbiReIoVmoAI5ibkraW4xKCRznOyyxu9OjG5MmfJYHQh+/i92taOvw+nEGcPNnGTJCsHdq+tayyY0Snq5Kf5kUwdmlG500q+xQspxwBbF752ntCcpIgw6AwHbw7oKeKnlORMHHvSHyDciMcvoAzECy8xXlE6zuZ0TkG3npPLz3DDKHi8GgeUzVYXy3YrhtQyR1+an/vLQX5G2kgLxC9OyZZ1rSIjqUd/NKTnuiRCD3asc577Q0jsXF0PoUUVph11Zoc4tbRDr/0YpIZ7QJmPK0JL+3mW3FXcupk9AOFp2vlb13VDdxPhou4KJz+gVzvQ+GcHZhpJM0t+ThpmHYwCUHgb2S2gEv6XlzgPzusDxXyT1XiTz8ZrIgO4sJ2xq9rEtZZYwhPHPMxvWPHMoMrvWrdjOxRZXE2oJ3th2uojE17Z+tJO58T6u3IKatwXSNAX5pW8CZau+TuffKO5p7INzJDZycjDuSSw8mJ4vYH0wfjNzuxR2xv4TiNXLZGoDC++1kN1LEu0DRyCUKgs9gi57Z4NvJgACPlYTqBjxOWUiTuViQ8Ls06edi/cP/Rbas8cSxD0mVB/lQ20X+H1C3llD17XWkLhGy+h+lTuGB4aZvQSMtdjdlrUoOYmv9m+lwZesqCWz84vxr4T5oHGed85y7xKx+bjue+76KVUFHH3HMD6NSKtSAsgO2qStCS5kxBUqJODCqbD9fK9+ZhZwASwFhViEp4XHwq6Ve0HjH3Ru7/IsHEAWMYjf+FOYmUrQDYPTycuAi3c7rtKkffCoese6s5+QlGquwdBLkK7t66G31JjWEKVF4UcL4o1FgM44TBArQTJ/koeMg6HGIU+qU7E70mxqEiBbV1Mu9XulVKO8boTE2TvEpJsXZZvscJ8H/CXxV3r3vADN2xfL+FCBADoJUTcuIRTEjuSuyaleH7dRK1Nx50I0zspQW4FmlDTV7nJW/hsSD6/DTuU8vIVFNXU5Pvbd8/1bDTDAkkgJnTXzY5CoJPvc8oXAySsFd4ZG70YeWuHJm5Hf1y/5LflwcSkFWMmHhdRmTo6EDVGPPe/Bt6imKPxNvXjWQDrT6C/HJYX22v7ECh7KsU0MYC X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96c93367-2e63-4862-9b83-08d91046f4ff X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 04:25:19.5862 (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: a9GFDZ0iwao7cKCr7Z/savb44s0oKlPuElh4A9RMzKwaExHnVYy0Iwd0k4vKgUhyokSD3YfmqN54RY7dUfBOig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3126 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org From: Peng Fan To i.MX7ULP, M4 is the master to control everything, no need to provide clk from Linux side. So make clk optional when method is IMX_RPROC_NONE. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 46 +++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 6289aeae95b6..e9d9860e4fce 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -590,6 +590,35 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) return 0; } +static int imx_rproc_clk_enable(struct imx_rproc *priv) +{ + const struct imx_rproc_dcfg *dcfg = priv->dcfg; + struct device *dev = priv->dev; + int ret; + + /* Remote core is not under control of Linux */ + if (dcfg->method == IMX_RPROC_NONE) + return 0; + + priv->clk = devm_clk_get(dev, NULL); + if (IS_ERR(priv->clk)) { + dev_err(dev, "Failed to get clock\n"); + return PTR_ERR(priv->clk); + } + + /* + * clk for M4 block including memory. Should be + * enabled before .start for FW transfer. + */ + ret = clk_prepare_enable(priv->clk); + if (ret) { + dev_err(dev, "Failed to enable clock\n"); + return ret; + } + + return 0; +} + static int imx_rproc_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -648,22 +677,9 @@ static int imx_rproc_probe(struct platform_device *pdev) if (ret) goto err_put_mbox; - priv->clk = devm_clk_get(dev, NULL); - if (IS_ERR(priv->clk)) { - dev_err(dev, "Failed to get clock\n"); - ret = PTR_ERR(priv->clk); - goto err_put_mbox; - } - - /* - * clk for M4 block including memory. Should be - * enabled before .start for FW transfer. - */ - ret = clk_prepare_enable(priv->clk); - if (ret) { - dev_err(&rproc->dev, "Failed to enable clock\n"); + ret = imx_rproc_clk_enable(priv); + if (ret) goto err_put_mbox; - } INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); From patchwork Thu May 6 04:08:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241629 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 708E8C433B4 for ; Thu, 6 May 2021 04:25:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5228C6121F for ; Thu, 6 May 2021 04:25:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233058AbhEFE0m (ORCPT ); Thu, 6 May 2021 00:26:42 -0400 Received: from mail-db8eur05on2055.outbound.protection.outlook.com ([40.107.20.55]:21472 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232848AbhEFE0c (ORCPT ); Thu, 6 May 2021 00:26:32 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dnttg+UvEOnIlzkRTnalaXPIOHu+EpwywNLykZ1rEIHczd0qKzITtepEOD0Y5gXiTxnOTlhJbXcYArTFhWkGr6b6sGD2ojOE08YgsYBzUMZKqxcQC6M+gNMTd4GAtYw0iLV9XSKXdc8491COcKkaBsYDm37qRWXRFghgVoXqcCmFRJflXh0SyYxGnbUJAIISZQS0UpKOQr8TExUBUY8kOgrAqzwZ/KO3zdupBMnYdv7TEvqD5FCcklA9w/x77AcdJIihd+3I6PWVCjC53PZbBFOE3z1Btrnkc0TWyor1RWhsEI2QpE4160Vk6ugWDt2a2bZXp5kjQfjVi2mLRiIpmg== 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=NfYBa1daWkLa/S83Q2i3o1uIDSl9rdtzZmjwwoixPgY=; b=VxDBxFZGZm1DRwFDRWfpyyXGlamLb6KOX/oQjlF+jpBEKyG3g/MY+dTz4dSWp5lvl/0DH8TY+Y/48d2p9oMlhR5aknIixoxLr2WuJ3awBKCSDOtiNrFVUgWTSRQtkPkhERZfjzO8opO/j5IwVKbI5AENJV1mWcOeqGoqTFNrnIlXRw8JejSsvMHy/3LXAgjq1781pRlSQ8vU5d6HZHoGnnxDfzpd6m86Tod1YEl6nTNn+jyFdA9IqHg5OGx5x40ySTF7CWk63LCNad2uaCFT34ymxmhGV2f9qgU55+AkzdItaOsvsrVr4lGu4Xe3fO0zJcbxlET0aEn/zJE7H75dhg== 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=NfYBa1daWkLa/S83Q2i3o1uIDSl9rdtzZmjwwoixPgY=; b=CjqmuXyVV88ZqNx/kL2vxks7C/a4fvgjWZF0ah/GA4Wtat7S607K+PewaItKf8Nkgh113h5qdPXbN51AURFyzrVE3uejVE8Wq1pXIaeDNylJL2uNzUCEWHWtVRMoIEndDB8zl8PS9JDpRaKRAmwPpLZguNk5p6T2MMRrdrrZUnk= 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 DB6PR04MB3126.eurprd04.prod.outlook.com (2603:10a6:6:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 6 May 2021 04:25:24 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 04:25:24 +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 V6 7/8] remoteproc: imx_rproc: support i.MX7ULP Date: Thu, 6 May 2021 12:08:42 +0800 Message-Id: <1620274123-1461-8-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> References: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) 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 SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 04:25:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e342db9-3388-4036-8018-08d91046f7ab X-MS-TrafficTypeDiagnostic: DB6PR04MB3126: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:208; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4UlHyaDrbjDKVvciZg8mICievaCRuBOVknjjjEgstJcJWHN7GqlifqQzJO2NNLkFCi7XwDP4u1iAJgRjgXZv1IhWc0F75v1q6SQpxniLurxGwAApfkkq38JmLauvQeXB2PqqpOspLR/GjNxgq65jc06bf46thxcBi2HbHugwFSgw/szKBbrqC+PD622lmRr6vw71XRlLcXlHWCsdAG/1VV6EVql8+g7swJElohGIhH3QXiF6W5kXf6ZnCyjzcW2VleAXdn2rwsHq/gaAISXsGoWz3mskBhNajX/I3g007YBLm7YeBcMWp2AGMX7CwBrveKc6Xx97z11V4ZO8Btpq1H39MHZTfkHog88/sKy9n6YIOck7BL9JtunI4W2xiWoagIiFPhaG7ziQ90IokmK0+KBlEPpbOsWmp2Z2H46YFr09dKJk822hPBtM2s0mL2poXqV3ysh+Qn2vrz8L8+XqzXjgSKRMpWZ3HuwtVzTUusKi67EKeYwVwGHLJQ+L8OIJt83qp3UMMhyIlur37LsQ9yxdFZ6LVKru019O1PduOubxDlhLeD1Bbyen8MkbKzc8O5McsvMjmkJDStdHSsQxv5H9jjUxSadvNpNrJ8UkQOxLAfGYQzaZNoj90C9gNHRp6DIc7F6vbPi02jfioX9vNAh5xPaLrdv58nvsdEDquU4WtnrNo+v04WEj/bejYDXF 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)(39850400004)(366004)(136003)(396003)(376002)(346002)(26005)(38350700002)(52116002)(9686003)(2906002)(66946007)(6486002)(8676002)(6506007)(16526019)(7416002)(5660300002)(6512007)(38100700002)(186003)(478600001)(2616005)(316002)(6666004)(86362001)(66476007)(66556008)(956004)(8936002)(83380400001)(4326008)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ffxRW8/pqJotC1m5STE13q7VTulIDmirGV5RexpMp53+4ow2XVofFPCmO4j0vkxwtapHFKudwi+BgXbmbPKZRChQEIOktauuhWhVOOBn+J33UtoAegGnN2p4k9vVX5T2KB9zkXjFeaUaP1+gXot90f9no6ia5QNdYSzb+wNEpTYmKnjUGIaarzGXATT1hC2D+7ya3hzVSmBkoN/U3l1fgtU1J4ONDJ2KV5Fsvbm3ZNEvrvDPrLc6bNWAmC19VZpnjWpUv/h97PkLjdROm9NunrqR2dQloRidtkzZuBH6kauBZhaLoH26KMgBuY4FhKgGHGE2JlqGxOSGE+ZuQSMZV8DLsWuxqqvtgL/fvpvnqFKhvLbdE2M0ceGz//bHQYyPhv/bGgTPqBbDTo44XeLL8g0/cv0s+93P9iRipJ0gNeUJPXv2nbs2guRpXj95RZMeTByTGovtOf5o9AXECeAviL6AjbPeA88jnMlL+iVEsUpVd/7KM6d9HZPixgis2/egF+2xWJRXm9mZ7uMwztqcgPotrW+VG/CtKCX4ozYVF365laRKxgReqfVTAXL4gPaFELqAcM17Zkbu34M/MwlFE0c3xZ9n7uIUEQqQwTMC+Q6xZTexj+Io4t4I6MZvafQs/Ow+LEF0qxQACFQjPK2WGIV161A1JgwvnOARRWZ9TWX8aG+gI9H1lx05a4QId9PauBkLczxAQrQNYtEKVgwiEZbTZ6QPi7e4kV/rG5aC5zzMXTT4fXlYIyufUKMc2Bb7zxqaY4fuCdEHCUxrhqHdKKOHsNFd2Ulcfccvvh9AvOx3x9kiaBBZ51Ef35yVVLvvooKPCtUQINu4jAGU0B+b97+x/eN5vZ9p0JkLFzefazYujAgOqBAClEq+EM8KFhvbam/C+l1QD1ZaIt02TJjLe+8Q+MF1XyyV817yzG1YbpQs/EJjY2Ap+U+goyMg0pU/Jq4XCXG0yMxWVR7XBGEY+5ktdr1mB2wUWitozEw0c1RETRgtkdkvAEAmWxir5dRbEF9fUmXpzP6qrkZy73oVDQGDpyY1kWPBK3bx0hsbzHXwuTUOq36wp1T4R85yP37WD+2ilaVFyA7Ltx3iI5pU0OC3+lrW1hxsY03V1+YKuzTzuzYYSmWQ7QIb5wp2/RjzZKg8HScU4uvlMCie3O6iMKiDUrMTeakmAaMkg+kbmecPVIe9OOQSdNNaGKr5eeFYBIbm3T2QBkNuWDC7Hhmq8oBsuw9mex3IHrEQFg0DV39lEdwxqjvE2QubCclI5znVA5ATXf/RNzmxKpnQR5DLqtKwtWR5EM6qjkTSoTa5hyaa5H7tQf+sxNcVn/7AAGNG X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e342db9-3388-4036-8018-08d91046f7ab X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 04:25:24.1291 (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: ap4Dh4O7LgYGV5B06AsXVuGDGlMpXzL6PEIWvBDv5imef47Uv3OC5ydDLzHdIu1cGBijMToOy8YEndSaTwDRNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3126 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org From: Peng Fan i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most services used by A7 core, so A7 core has no power to start and stop M4 core. And the M4 core's state is default RPROC_DETACHED and remoteproc framework not able to stop the M4 core. Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 49 ++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index e9d9860e4fce..d26254609a52 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -136,6 +136,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 */ @@ -196,6 +204,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, @@ -238,6 +252,9 @@ static int imx_rproc_stop(struct rproc *rproc) struct device *dev = priv->dev; int ret; + if (dcfg->method == IMX_RPROC_NONE) + return -EOPNOTSUPP; + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, dcfg->src_stop); if (ret) @@ -573,12 +590,31 @@ static void imx_rproc_free_mbox(struct rproc *rproc) static int imx_rproc_detect_mode(struct imx_rproc *priv) { + struct regmap_config config = { .name = "imx-rproc" }; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct regmap *regmap; int ret; u32 val; - ret = regmap_read(priv->regmap, dcfg->src_reg, &val); + switch (dcfg->method) { + case IMX_RPROC_NONE: + priv->rproc->state = RPROC_DETACHED; + return 0; + default: + break; + } + + regmap = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); + if (IS_ERR(regmap)) { + dev_err(dev, "failed to find syscon\n"); + return PTR_ERR(regmap); + } + + priv->regmap = regmap; + regmap_attach_dev(dev, regmap, &config); + + ret = regmap_read(regmap, dcfg->src_reg, &val); if (ret) { dev_err(dev, "Failed to read src\n"); return ret; @@ -625,18 +661,9 @@ static int imx_rproc_probe(struct platform_device *pdev) struct device_node *np = dev->of_node; struct imx_rproc *priv; struct rproc *rproc; - struct regmap_config config = { .name = "imx-rproc" }; const struct imx_rproc_dcfg *dcfg; - struct regmap *regmap; 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)); @@ -651,7 +678,6 @@ static int imx_rproc_probe(struct platform_device *pdev) priv = rproc->priv; priv->rproc = rproc; - priv->regmap = regmap; priv->dcfg = dcfg; priv->dev = dev; @@ -720,6 +746,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 Thu May 6 04:08:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241631 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3002EC433B4 for ; Thu, 6 May 2021 04:25:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1496F613B4 for ; Thu, 6 May 2021 04:25:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232831AbhEFE0p (ORCPT ); Thu, 6 May 2021 00:26:45 -0400 Received: from mail-db8eur05on2055.outbound.protection.outlook.com ([40.107.20.55]:21472 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231407AbhEFE0n (ORCPT ); Thu, 6 May 2021 00:26:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jOO8/+kMMbgqqN6cB3+MZTPuXWojbUPZ3LBBAxPBISAXkBMbf1mwMTUKaLUigVQEhRRhwJTyl9XUHt4Lf3AJtbulmGNedY19dasikW1FSLo/IgixGDs4Oh1P98Imt2zNSC6fFvc5jl2OAys9L5hxS/HG1FB0rrRdfSGP17inQ9uQn2M0oDXhhNY1I+rLogu/euuPb9infpAtfs/eLIuoTClRXIU2XoIbFKXZ5lQujK/B8Bvmd/AK161pRyLekSRiWHA19X8PYOggGixn7Hvg80tYJEBbZdotJWTc2j3F8eEmY9gKbKJLkZ3XHd2FVW8ZyV678k6eP7oW5yp/YILKEw== 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=n+f2shXecIZnDZ+S4uhohk7pr+CquYnO3csfOkvbeX0=; b=dybX88V7umUOsvQldcfLFlMRdKNt4cgmfHYVcp4XNGlGU/hilteqYcYdHt3epvhws9rU5QORBoEwyNI2Gkn6O4ARoyiGRKxbLPmQbaslBPiUqSIBK3bQYYcZBwAFhH3YAtq6BaoQYdTGsuNMFoDIrN2edu7ZwfMliYL8c1f9t4VUBwLVr6Hjw+gySEYUXGqqiKT4DBh4iv9QZHQDJbzkiDSwvSZsL+BfHwsNeBnxFTmfelOuTF0SSGOTDUs8zI+Sm+b3WUJAAjCWbFqt0CX86yskAAsadE1XIR2lizL+uxAKmzrBgIgBfdjd21BJUIEaW4mZEok2Z4mzqyk5xTpoSg== 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=n+f2shXecIZnDZ+S4uhohk7pr+CquYnO3csfOkvbeX0=; b=aKn8whlPi2Oc68d09wg4HOp7+XMH3e86OyoVnO7Ovj2Jz0nIvO4owHpZoeagV/UGAXza8PT6PCR2fG0e7Gv+3cVLMzsOL6eeQ36ok1gQ//+3f7mTwghTqNL8EAcMnVVzlzeX/fpehZ5l8UZVeDTTHafIeCDCSfHWjKV8vKUMC0M= 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 DB6PR04MB3126.eurprd04.prod.outlook.com (2603:10a6:6:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 6 May 2021 04:25:28 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 04:25:28 +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 V6 8/8] remoteproc: imx_rproc: support i.MX8MN/P Date: Thu, 6 May 2021 12:08:43 +0800 Message-Id: <1620274123-1461-9-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> References: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) 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 SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 04:25:24 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8049edf6-9bb6-4eb2-b734-08d91046fa55 X-MS-TrafficTypeDiagnostic: DB6PR04MB3126: 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: 5FI5pdB0fUsEtz4k4vwD5MzfgEeHx6NnOMRp4IJBNc+cvavBimMkYmh8exGifc5X2j/ziIaQuQimKSaDRZkYRPsYWAumZDwd2GeShRB6dNrcooxYuCFJPHq1kvcexkbuGKOknVo/u1OD4cKmppvK5fsnrmyRJnxXQ052cgOE6X1sjcPJIQ6Pl8NbpKmYxf6fg7gi5iIOrxZTT8lFu2mxOLIzfvZe/5s6y5qJ5x3ebjUgSlz672NMq1Vt+OKZ99WCojanb38Yl6EP8+VziVIgPjgbo8v0vpsopaWkOXVUYgF9VjslsC/cgMUHirxjZX8C12UdGMMCTOq8NasH8S7/ZWHaUavQWwXa5nmF2ylZWcNGWvfPbt1P7/T9bhhyG8Ey0x8CXgYToG/LWUQqoqvjvdha68WoshG5zwg5+NLnXYVFWuPi/ut3Cj67L45mdAMUv3gxAJs34Px+uLRIZCOzy/VLxkssuER2BMuFJsVvPeoZXHbXTEQ1jsqYSj1mQnS1I7f4SbFDjLs0GLmdPdjPEFseqLX6HHIr9ko4julQ0QC9uE6Rgs35oxbdghdZaNCjvqg3FOJz0SNbsHmb8ouNzCKrRkEbhsZ3uSdXiwge9iXEb8eTNVj2HQOCMyThKKl8lswlxSGijqVauhdeIVyL0YytI1XtnOi6ugmYOowNljIlH/gjMl6xKSIlA2Oww2XQ 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)(39850400004)(366004)(136003)(396003)(376002)(346002)(26005)(38350700002)(52116002)(9686003)(2906002)(66946007)(6486002)(8676002)(6506007)(16526019)(7416002)(5660300002)(6512007)(38100700002)(186003)(478600001)(2616005)(316002)(6666004)(86362001)(66476007)(66556008)(956004)(8936002)(83380400001)(4326008)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 4g9h+pziX7fokBjld2Mta+pIZNq0sveRM6hg3pN5BYnjkPvrvm/zRYH5IXHnQCCkJevzlb7UW2qXxEXRhlTyXrkE0b3uyk7p3BlBZsfDGHZenb/NGsJ4KdEhmfC/h1kOQvew9nb68wFqWhXWgZOSMV2xyOOrdLpjfQywZ4qd8gQqm8acqZRl+YieIo5T/i0HSHRFEa3GSlCekRJwmeW98pg5KQiJjUj6A0+kiyaLkHxMBaj3iqyEXk1wC2xgYYu7uHq3UguLoYxaAbSlAUCZXXRrxWbt83JQ9ptP3m0/3ZYsXab2INGb6my41UwHt76siv9HiHBIKs4Qw3mbQg/GGcEKq3zgGFtfE+Z2CahSzyu9UKgrsDGieSY3vzCtS2OD9bvbZWPHhNmo17wyBJmilKvG9xCY0sUeT084Xn7T1hRm+B3+QVfh8pbTohzgP5ZTWoWnCypPzxyGL7mF9S/KMrVJ4HsQVFc1gSCJQ20cbgiteTMlg5hKlj+c0SMxEHba5RUIqPuQELnauBiripaVtXhAPElO6NQPS4j58gZYzcqKvF4KgA8/PJnogVe0VvzBI2ya49PPOHBMWKA1sPRAvOfaNUgiMkT8TOTI6/6iP+NSsYr/f1FhbhRrGlWCl8pDLHzWnXepqBLBqhjmp0PEJZcQFm6WlCGZmpxpC4WJMFiSrNPb7gZaxBisPboQmwqIxrISyibHOfCRihSfk1N6qrRo467LRfR72GVGE30L7H0YRzBW1Cvty2isWi8A4e7I0EsCZvJjIEgjJlgt/3dslGQB6++XW7HD01h4Ow44sukJvIvnZeuMyXI2b96jyhmsD9eBK6pHRwMrMqcJ501VtvSV342L+Zw+GKKpVsN1Qcg5FgUADuFmwPFuCNUTHZue66hkAp+d1g9v/FnnOJw2RjiphwTmj+dw4PmXomMkQmoCoudZ9aSBIJY5W2j/KXO4MenNJgXWcxPzaJtXhYhFi1U/W3NJiQmBrXrYa2VlWedjPbmR+LhfHWyexzsRh3fdiWSaGmhzO9P1egtIRnYuPX5pUOj9T/XizB2sSiZJzHWkC2hU3OLvXOOGKCdXjKLrkrgvyEI6zTS9BeROhwMNIQ3Fg45m5lqPz0+ecGQIr7/LIlCMwuUSTUSZsXHxNDuVS/jT1i/vQ3xf8LM68dbF185saq4HlNuukzcFnP/4bxT7+ibAeSX43a99wn3yDcHTbYutkLZuENFKZ8X5jy+T21Z0jF66AjwadkHarsFn5dWRLJiTW2npeEpGQxChwiyovUswddSFidwNK7j9NKIvw+zZX0tFvJ+qDaiG0zvJdXU6A+V43+1QLQ+YEaaDuVag X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8049edf6-9bb6-4eb2-b734-08d91046fa55 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 04:25:28.6291 (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: Vm5icW8wRtRi+AFXlFGovjzo1UGnWHUr3iJLM28Y8aD/BUD0njr09tQUlglUP9N4L/rz2V+2YB+EMldfcF+hnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3126 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@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. Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 87 +++++++++++++++++++++++++++++++--- 1 file changed, 80 insertions(+), 7 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index d26254609a52..7cc0cadea1cc 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 @@ -108,6 +114,36 @@ struct imx_rproc { void __iomem *rsc_table; }; +static const struct imx_rproc_att imx_rproc_att_imx8mn[] = { + /* dev addr , sys addr , size , flags */ + /* ITCM */ + { 0x00000000, 0x007E0000, 0x00020000, ATT_OWN }, + /* OCRAM_S */ + { 0x00180000, 0x00180000, 0x00009000, 0 }, + /* OCRAM */ + { 0x00900000, 0x00900000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00920000, 0x00920000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00940000, 0x00940000, 0x00050000, 0 }, + /* QSPI Code - alias */ + { 0x08000000, 0x08000000, 0x08000000, 0 }, + /* DDR (Code) - alias */ + { 0x10000000, 0x40000000, 0x0FFE0000, 0 }, + /* DTCM */ + { 0x20000000, 0x00800000, 0x00020000, ATT_OWN }, + /* OCRAM_S - alias */ + { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, + /* OCRAM */ + { 0x20200000, 0x00900000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20220000, 0x00920000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20240000, 0x00940000, 0x00040000, ATT_OWN }, + /* DDR (Data) */ + { 0x40000000, 0x40000000, 0x80000000, 0 }, +}; + static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { /* dev addr , sys addr , size , flags */ /* TCML - alias */ @@ -194,6 +230,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, @@ -235,12 +277,24 @@ static int imx_rproc_start(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_start); + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_start); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_START, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + break; + default: + return -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to enable M4!\n"); + dev_err(dev, "Failed to enable remote core!\n"); return ret; } @@ -250,15 +304,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; - if (dcfg->method == IMX_RPROC_NONE) + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_stop); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STOP, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + if (res.a1) + dev_info(dev, "Not in wfi, force stopped\n"); + break; + default: return -EOPNOTSUPP; + } - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_stop); if (ret) - dev_err(dev, "Failed to stop M4!\n"); + dev_err(dev, "Failed to stop remote core\n"); return ret; } @@ -594,6 +659,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 regmap *regmap; + struct arm_smccc_res res; int ret; u32 val; @@ -601,6 +667,11 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) case IMX_RPROC_NONE: priv->rproc->state = RPROC_DETACHED; return 0; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STARTED, 0, 0, 0, 0, 0, 0, &res); + if (res.a0) + priv->rproc->state = RPROC_DETACHED; + return 0; default: break; } @@ -751,6 +822,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);