From patchwork Thu Apr 8 01:54: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: 12189841 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,DKIMWL_WL_HIGH, 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 C169DC433ED for ; Thu, 8 Apr 2021 02:12:40 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2C6E2611BD for ; Thu, 8 Apr 2021 02:12:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C6E2611BD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=T45iTbrxJpmJY9r5IXZLdUjbcslvCt/s1qJvmmqqXqA=; b=L1FvUFli0njEYw0RlV4SHVPng uEhjabOLp4GMfLoUzln+4F7ZHKlKh1OHZCLibdUui1MRHPEg4kiOq1hFLQ6P5L4pWQtAkup5FfhQD f4JCMPgLtgmQYyq+ziXHObQFcbi3GvyDMfWuIBnLrhG4I9B3ML1d13WlW0V57R5ErYwVShJikJfA1 uFjdWsNq3R3fpgKlydpVyNkVSHurfRMySf9RH4OQC91OoxthA1i7zKwCIgMnKqeLlOpx7v3v+sY1O yBq462MoLGRgQN+7kY0/rwerZr8K79oF0jXcayBn7+J19GaZIy4C6W4YYikmEyCxmri/IiqdLv7V1 sWIrg1OHQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7M-006Zbw-MC; Thu, 08 Apr 2021 02:10:00 +0000 Received: from mail-eopbgr40061.outbound.protection.outlook.com ([40.107.4.61] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7A-006ZaR-2t for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 02:09:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BZegNIAkK5qir9DLhmlGqwvdgo/F0xL+QDd4n+GGAeTOIuK/4+p8wwMyeUs2oJcyRDMexH0xKe0O6NP7w390Yoe7O+6Y4RRVlcC8Q/g4p1xxXXsPZUZJdcJ8NPrnDE32aq1cfiithVtyO8mtKBLs9sDOtU6x1I1A1YI3fFJNz3Pf+aoH+xXN4SYqcirJLC0kHQJrCqHm5lqMsspnHmMUTE7S+BvMPX/vm2XmpHRQ5NgAxLbEyw5Sea5ifqq27BtecUYgdf5p9UOwcMFRK7AHNZ1uYZx7NX0rq+DAlj7gMziN24/gc3qjiADaJacTSCseB0/D5YcRJwvAhXyVkoVaaw== 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=PmDfEawO9mcpXGv7o29W4VdWTiVNlYWjdCBDSz/nq5gCo1N4L2F/D2jAiO8joRZH4VRF0bfkdgBc2fNK5RDtDU5yVUJi1H7WjfWHLKFFTU0U3K+hLOwJUUDcPZ4FNZK2DYSYEfn8yuVhKmI4msMEYBjzyowN4PTrJdROn4WGyn+5alqi6o8M1PruXWBtYWfTyGK8SLezHtKtKJ+Nku3nuf6PtmKmlWCXXFa9Gpa/BoSCJHLV6Jk/PR2tL5vd2hMGz72aunTIi24Ud6si9vm2mAspdS3TzDqC+TuY87pjSpmpebWU5wBkYSitv/nACAR7L7PyZmSBA1ilS4aiTpoc/g== 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=BAUQwXT90fn2Uq7NVTLUZpSDEduk/dl3BRa9WZtEfdG6m7OJDcui4FG2am7wq0BESM1hFslQpXAVH5HR/zNfo5mEo3Rb5j8z3rOpFkE7bkIrcsKOIAEKyzgai60OF10zKY6YuSCbher+W7s7ukZtSXq1QYChax4MS/1lXXT2Bmg= 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 DB6PR04MB3128.eurprd04.prod.outlook.com (2603:10a6:6:10::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29; Thu, 8 Apr 2021 02:09:46 +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.3999.032; Thu, 8 Apr 2021 02:09:46 +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 V3 1/8] dt-bindings: remoteproc: imx_rproc: add fsl, auto-boot property Date: Thu, 8 Apr 2021 09:54:51 +0800 Message-Id: <1617846898-13662-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) 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 HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.4 via Frontend Transport; Thu, 8 Apr 2021 02:09:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92bf2f24-c55c-43b7-a532-08d8fa3361c7 X-MS-TrafficTypeDiagnostic: DB6PR04MB3128: 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: zQGPRfkv27f52Tm722infUcT7IIJOzaSwgYnHHx2Q2Zun2kHeSbmKyf7aJs56CGFXILEvk0MwqMfSiSVEI1IUx7nYOxOm5zrUlInHU2OeHWaz0EETfEeHSRpHGLhFHf2o+8PKycdFs/lkRpx3W2h1TOP4+o2gtlIYgsHu55hQEyC1ZzbjRaFZPklbeWpkgEKUM6XWc3DG21QftiYVnFEIxjlrJR+1i80HMUszPBjwot5c5L+5ViFd7a0o8WhVN4yMTgLCGy2ElFCFk/SA3XVMj4s494ADAM77Jx80waRRS9RlZZKtOK4OO6h6eDgaD1PLkxZDTOSXkZsbENGeh3NexAduo5gusPHy8REi3dNrqIzXLCIwn4vO6CUnz4bg9ODJq7x8OQzFGTQOWjwTnP0PSzBx+CAeGOTHbZm+ztGukRPxeNYgbnhZ+HAltWN+CMZZ2M4jBeC50KuwTBtTubnHC1epNxFO7IUJ8IycznL1hRNggGp1jPPwOidXX+QcbK79lV/F6mkqr5OGCpRLjZ8cJF5CbtJ75JhwHW8dt5IgH6DVDIR/hWX6W8g9tD/rykfbqq6zgeb4cgeLMNS+L4X1k4rijL+K5F0/bo+mwN4KSGVhMNWv7RbGISvP5OSg+Zbgfbg56xjsko4VOt39Rh8DdJCkwj9yQYVJXQV5gG9bKLngC82/Q/mMRsf3gBNK+CUtC/IgdWi/6a/43g1hfN1E+53kOtEeSV8CqVCbfB4nLQ= 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)(39860400002)(396003)(376002)(366004)(346002)(6486002)(4326008)(478600001)(8676002)(6666004)(8936002)(26005)(4744005)(16526019)(186003)(316002)(52116002)(66476007)(86362001)(2906002)(9686003)(6506007)(66556008)(66946007)(7416002)(38100700001)(2616005)(6512007)(956004)(38350700001)(5660300002)(83380400001)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: sOEENwsmcyqDIlNO4piAcxAOOFLFdJIC4BQq6BB5vhZCNxRSlS7LsJf58QI1rU5NTdreibVkloJRAYXQA8rD1bGunj/h1pSVLLZJzl1BOOCqCQbIc2SqUVL3CXQjsxBHFy5IDF9sCs5+E674/7UqlIcygM6WoCIfuncXRqsOeP8NDuWcfKa6iUHSVF2afTOi7SMHIfvRugAmBtyrH1rBSJWfh8yNccyY58q095OwjoTlwsi2fxlNSHSprnNFBH/zDrMEfjSZ7mWzT+/xTnkVzIxLuYiQn2n0XNntIWW+1y2Dl1wpZZp4VPzE60iaOmFglDl1P+MKHCbdV51Qhmx62aqNFaf88k++5Y/ke4OwsqbSGiGZiHGcKgZIRPQZ62+YqIi/e4KgVuj6FxKqqwqi/SsmDSWfJ0P6qsKhAMVzKUImpm7sAG6cBVxppHbQoMt/WzlagAVEyb6dTrW8wY4T8j9eWbiZ+0CxpKvpiD3AKxpQxGIoEuMY9eBBfFawcF7lmtq6zT2equWI+xiQj8EJegwHSjjeTF8OhPq5unifdLYcu93ui+8RDG+gAnI/rxHQsIvkYxq547AERA7+k49DCkqIw5QBsS0HAp4nv+2hwvTq8hNoLvUYXLPQnz7Td895y9UGOcX8UD6n4FL1jaeFyHAYXnCFJ98DRGHzNzmgLoJaNyCPcpM7FHWuYVX3pbEYhhm1R+vN27oEJSbb0KhR0hs3ZFbZ/fNsK76GnROQCXjNGGQMw2gW6wgFIOC33mCvpgcM2itthZPmzIF+u64swowm6Lw8L+tjUSqmebz7kQgYdpt9OOEids/HcF40ZN+md4LSVlvWoBGNAPn+0/NXHkMDeplHGMZWFgytAcThmKlj7Hs7v5hQvEsvBJ6EXiOJ0ncR8VgSZwpIjAzEjRcnb100I+OGEfO3L1lepgAVfEZ3H0pA+eKmiQGF0gCyKyv2/KuAi6hzXJLuZdrLfoeSOJn0WvpKY+FFlQq4J6dYmS8LhGJ2lE4Of0tYDImQeId1lgaxt9vrNCvx7dQsMkhi69ZOnIPPONGWoJzFXWnTLie/FjX1oeeHIRUKGu7QG1SfznjLpRyoiRohvtsr7NkzlJKTaPOy6u97s4iTAjQDc00I/nGFpn0rSapvHV1FTiXMwnTdJ7Yu+5RN2og00AuwnGGsSc2YGb9P+BJo9+Nva+D+f8IgvWvKDffq/MWQHIUAmUb6sOtei7uw2Scmuoha0LrMQb2+pG1usrypPuISxOBNOOMpILMmDhC16lOJOsEn8g0JElWEPXkPshP9p5gZ2ESuF1NisIimnEF9vBxyQ6L5XM3rH1JbBTQ+kC2LfMQhHDrXWv1b4UrJeT+/FLI4ig== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92bf2f24-c55c-43b7-a532-08d8fa3361c7 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 02:09:46.7173 (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: VtrIz2sh8t1yGNJK12YVSkhBNlNreGm8rMBNVIeOTXoG9S+Z3VtjznV9+612rZ2d3Aj2KJR4u9Ke8glMUNuuqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3128 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_030948_336846_51FD5223 X-CRM114-Status: UNSURE ( 7.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Apr 8 01:54: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: 12189839 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,DKIMWL_WL_HIGH, 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 2556FC433B4 for ; Thu, 8 Apr 2021 02:12:38 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 33E24611BD for ; Thu, 8 Apr 2021 02:12:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 33E24611BD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=A93GTJkLYJc62HqBKHM44xpa+tQiXqaEjdHh6RW3/mA=; b=gAqsC5/Yn3loClTMmmL43JntL I+UNktRvGD6ygZgBjbHjylf6s+EAzc3LhilCLr6NnF64OAWXJqgquEPtbR/Ie7xHpJuBl7NP5whb7 +J1aJVRYOkeiRj3Eiyc29DhKxjhxW8ARjMvwjFCXgDI1xxyUVQX/Q7AHXgLOxNQK7sAAHMS1Qwuf7 LkYINLDc7AYnkzdTWfmpa9+oQQC6X2vttzkzFs2Yv543vvT5u/W8iVleccI1/rLdc1F5T6CBNS+c1 2a73wBdugQ1yrjiERMmcaCyaPHKTBIsIAyge05wUeKfN5+d/yNgbaSboUHSbiV8VnG7pNnfsqwqjO CErv7Aftw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7U-006Zck-DG; Thu, 08 Apr 2021 02:10:08 +0000 Received: from mail-eopbgr40041.outbound.protection.outlook.com ([40.107.4.41] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7E-006Zau-PW for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 02:09:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cpiNp0P5aOhu4IMRNceZ8cU3xGbftsqvSPootz3qLX4I16K3AfzU3UXkjId2Otqun6v+eRqZqXXsLO5VwEwqT8qevg+kqq6/ehVG1CABrrBDQKOgU1ZoRkI/HaCnoYuLSc/3VeTeKnBSkdq0Wuq5+xJm9ShW0PyAyrq0TpMChzaSlZVkEum+2FqN2ZeN65s211ilveNQnKMCFzxPpARurZyAL9c8V7RasJq9T4TbN8HCuvNl4bDLvOZwTr5ogaOBuq3wqWU8I4PVMEy1IGc5zms3owQdMrFFwHTCy5kjE3q9wAVxrs9US0K1DgArn400Bye6dCEFbZRGxM4W9nriMg== 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=GpSkQDxdTUnkZi54DoBmuWUwyFCQx3+SWd8YixJUpzA=; b=B2emJIouqKaF/pBz+V5w0LX4B4x3qo1UpOW1bOAgRVYmQGDvvpRghiPjsPrWJF9FQDbbqqNPKdBg5jQuFSJtzZmq+ibUPpQApL460DHrZ40oZpg8EiOO2yT9eIvLhFBYRzmRzbctW8uTYOnVGvGSSV7KrZyl0TcOU7Pw/1BCcZwnSQa/RSQwS6txNvM5xZHuzQxgVrUq8aPn4JM4hv6QZV8A2vvItuL0rQoGXymaMdLPCIxqT6KMQ7MvplTJRGmshyRrfSo9JV7sSjegeY4YMyCnrxwQZpujJt1FVjS8yjEQiIwemWnxtEhXvImryo1w2azcS6fOvaRmnnMaC0kdqw== 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=GpSkQDxdTUnkZi54DoBmuWUwyFCQx3+SWd8YixJUpzA=; b=EEfzzGxFELH1rlz03FiuK/UGN4OK+Osm6mvdNhV/7BtPs1WsaAVJZHbdAF9r5WUY82E/1Y/AgMsXZLTSaFbdgpFdkV4HUs9v36WIM2QCPhdx/7pj2IaVpcf56DeqZz+fdqTxIghIdC95FQpeB003StIWzWyj8QEok4HNzCkhKRc= 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 DB6PR04MB3128.eurprd04.prod.outlook.com (2603:10a6:6:10::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29; Thu, 8 Apr 2021 02:09:51 +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.3999.032; Thu, 8 Apr 2021 02:09:51 +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 V3 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support Date: Thu, 8 Apr 2021 09:54:52 +0800 Message-Id: <1617846898-13662-3-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) 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 HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.4 via Frontend Transport; Thu, 8 Apr 2021 02:09:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b404c2a2-cf01-400b-e851-08d8fa336498 X-MS-TrafficTypeDiagnostic: DB6PR04MB3128: 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: C5V7WjAv+etgQRh+rj59ghxA1RG6MHvIrdyTsDSzlocQobTorLk2IM4nYG9rbOwjv2V3QWYfO+GRil4jTid3intdzHFRYThsP7OBvfQFkKv8KNEkOGSXFg7WPVFOBicOpCfKrxIVWJ1xSxOFE1qtWVxo8H6o5iwAF/+6MaXIbRErLXHBR+f6r7GVW93NCKR/Vbdk6n4zdM/VUsBdz0aVCgkhIDUmhR5dcdom29tQeajNvALSQ0JV4drg4xMqeJPDd8371oLnMHm1ep5FAwtqxbA7AQtuLhtYT3pkbNeYtvGOKCUGaruRu/OCMKsJTek06uH1tW+W7V8xjcjlnGN8/IQrCd7iYyBHZitupp1tOhtEtmirEQugl8HTldcr6cApbLqLZgLk8v9ckw2lItHWu3kHRzn6bd9HlJ3jruFZyHi4aWcAU0Wv5++FewloEM9tvzZhysMdduN8Fd4THz8UxesED2wg4dH5+WtQ2uZ2h9Gw22sfGo3lbiH9TT4WL3v/D7NAYM179sB0abOoOpEUeeheg05Il6c72VVgexDaCOIeoQ2Iz8LLMhPY2R9/tWTMmX5E3AxLxsV+cGy9sFNm/+00EMjPpcg8uR6v+Ed+JPV2lLmakoFIBd++stvjz10K/ZttZGeOXrAl6pQBq4a+WJqzBIACS05knt8gTZrVdlxQOzwgQmGyp1g7UkBiQpzNI+yvmfSPdECC0hgnf6oLEg== 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)(39860400002)(396003)(376002)(366004)(346002)(6486002)(4326008)(478600001)(8676002)(6666004)(8936002)(26005)(16526019)(186003)(316002)(52116002)(66476007)(86362001)(2906002)(9686003)(6506007)(66556008)(66946007)(7416002)(38100700001)(2616005)(6512007)(956004)(38350700001)(5660300002)(83380400001)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 9n41qO607vyErS0brApWsFZhU+CNKdgLWG8SBS+vKQApE6tybdYqor/LnedcJ5cSltkHSBxjk9dseMlpbfMEsjw4mAlbY2ng/7CAMFnObtLkgeyOM0SSQzVq+A2KdH46Ls2VG8zkWasDe28StriNDNa7CKj4f/dHJkwUdEwkHhG2q/E0NKcKw6k5cAFA581eUvYoVA+NX095znCBVChAboG3j+5FDdyhS9o02PgAGXv+pCw9HswOjwGGumw7AQKVKgnKJN2qhzSy5PvBw6K2IQLrTBlQYjNVNba41yitTBP+n943Yr2HLjcreLBfcft+ROO7BlhKCa27KPh3M02+UzDoyZW9EkVvR3ZtdmbhSLyAJP7iWcajAY1evy7hWbLdgjVm/yZVya813vJux+nxcQ4c8g3BVZGbYT4uoVo4TPIf15DTvfq+T0VLYmTf3c1PJ3oVtQMu8dp92e+F/EYeqOWcs5gu2wWTUo3bKzRHbCyjZsgZTCAPu18jLDvKPQIc9KlCvgy6UBTuC8lnjKqJcvkZFGrAFWTeXNZXvZCg54LKwEFzoQcn3GIzdgm0DlcAEv92+/ldSQFpj8gSkS89Lal7Cmdcf7nKpK2zCnWduE17xWAMDEp7dVv38S5JBsk+pBNhQZXCgwcKIr0Y5OEx8bQcUiCS6bvI5lTgijsb5ff+Mw9fC9dxBomI7hHZVTAZhmOr4ZXPjDXnFMfXKDUtXujk5j1AcTcWMnOpo8AJnDuaoOTtL0p+L4Lonwod3M1zapiVoOpt30FOCqVCYByxuDeAMcCm+MocEAh1McikM5vdcbE1xfF1BlLYgJxGVFAyCT904MMTdo4UTkVK2KpxLWYbZkKHgvOoyhnPmak1rujGZtyODugy/3RiIsLmheEXFU31kX+Di36U+3saG6tRsAD7yQXva6sp/SgHPgsrgXUmISpSjzAmkv+B8W6fRWq4nuLwDL9i7B87/ZoI6PzXsUrywon9rx8b20nj45U016jtF3pKIcSulUnFZ2XpcnG3UkjDES9TamU+9UPbD/vN1DyWT1s3BGT1SHz2S0FBxLq+DyyONRpPkS6a12GfDhIT4bNAKWAuU/mM1AcZ+ucPwjVQAsAuCx03DoS9MlroJ+tM4juhGx8nJGKGbgyXp89r/WMZUaqn2Gs+FoDg0MDDn9jUnmRZIq+f7egudVSYG9hSMu//MiPz2FC/FO8sbg6/Nb0vRO185zBHMondDUOGM9TWSwQDn1lwtgdAOhAMcAQ0emrstUn5d1eE5Q78ihogp0+hxgFT2vLLmJuKLqPGurPX4ypYDyVvaeSeBFySo58Q37Avh56QccZpH3L5Kko/F665XPKDF5A1YsH+Jwgd8w== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b404c2a2-cf01-400b-e851-08d8fa336498 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 02:09:51.4492 (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: RHvmQAXoGDCThaGvV/KToYFaJc4wouIfQZSCGqJRfKpTqlq+pvd53Qw9DE5NaA3l0RUBI2KPRu/BXr67w3ZzQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3128 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_030953_310042_82472560 X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 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 Apr 8 01:54: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: 12189843 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,DKIMWL_WL_HIGH, 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 76A36C433ED for ; Thu, 8 Apr 2021 02:13:04 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5C8B761164 for ; Thu, 8 Apr 2021 02:13:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C8B761164 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xCoMkNS05wic/lOwxUnXCCUZkzoXbc8RDWMwd94PZwk=; b=QyFyAYylrIvu58QqSGybZtBKQ 37MuqACZdxysacP6tTXyRezqFPQTR0wzp8LD36LSuyAtjsdYbdyqZwBjXy3zw2gLku179fLw/8yzw FXtS+x5wrXlY0vxIMjgmo5B58MWQrPDdSmke3Plpc2FBIqX+Q+oOqiidF7GT0V4kWwWRn3cDl7mfM wQ/yo4X37IQHxHtYJHCVnWx+JGxkcNWwqWcGr/+QfJkPxhfNCu/uXkt+jlyPdSs6eZ4cUvb7NhV4O P5CF7pYLuhUmGDjsAgxNnwRm4TZoT9elZSIUr2nF8TBrctYemIo7lOmiki/cJFdGKUQvY7rrHQUTK q+3Txpcbg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUK81-006Zgu-MJ; Thu, 08 Apr 2021 02:10:42 +0000 Received: from mail-eopbgr40068.outbound.protection.outlook.com ([40.107.4.68] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7J-006ZbS-N8 for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 02:09:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q/oHGp9kbfWc6F9ydEXXtcwC4hXNq/zbAySQKBuXq08OQOoEi11a2EFAJy/tTC20V4dlkqBfPdbHFZ3AFUAdBvSBsRKyaXG9mG8WajszZo8m7N2z2QBaeS8QthSP5vKBoGHc0WZwdwVSOK2UYoqteU2x/JHJvhUdXvsoSZ3CU3/NGFxDzh6qH3QKNRdFlD1aOoGZGWVMPf3cfOIDXvi2b3jKkc34Gl7rECBqKyHfGyn95zW6mp01622zzjotpSLhknfSN1roGp92AJUeVhYRRQWMRovHhPDZh8c1nYQq9LV8a+58fUp3iZnBJ7n3VuDktPWTGTnUKRgS3Or9pKzDWA== 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=SVX5wYIgMmfc1EdHTQHFqoss+wDRmK+rwJRbq5ieBvAhIUKoDOeEOXA/N1oWlXdfPfC033eULfQIH5aE74aNOxUAwAj/w9HsUieTYgi3hfFPdvRkoBTXS0P9xI7WST0QjxLKt5PRPqofVz0v41gfFyB8EmAMUgqlMkgGEHwg/5+GtdyBSHGtlikSHrxATQcQF18g03RydU/DLr9GdyoSZplEQpk2FrrZCVst8l1wwaQixynY5boPSFxZdAh5gKNgQ5wwHxA+d4fTyXZBi2AFBaA24AbiE20hd6sIxiyExxRpm/at64aiWed7rsE/dwXjlr11rSKTGY3zHOpOfLgx1A== 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=hnHcJmarxq5BZNpUC0xs4V/PH0m03c//suZTLSrU/N1/MtxDm5u+mdtysnGM+s1Fic2IayVWbL7766U9hkLwLTizB2ghxl7TPQWfsmapGAJUPK7ZB1S1uWOe1U8ptgHVIylJnLp2ljW49mhxdQINNdItzC5g8pR6bZd6eL/OsDs= 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 DB6PR04MB3128.eurprd04.prod.outlook.com (2603:10a6:6:10::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29; Thu, 8 Apr 2021 02:09:56 +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.3999.032; Thu, 8 Apr 2021 02:09:56 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V3 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P Date: Thu, 8 Apr 2021 09:54:53 +0800 Message-Id: <1617846898-13662-4-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) 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 HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.4 via Frontend Transport; Thu, 8 Apr 2021 02:09:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 51d119d7-05f6-4dce-4d4b-08d8fa33677e X-MS-TrafficTypeDiagnostic: DB6PR04MB3128: 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: gv3BN5WS1Yz1E6r40Ahe2Nx6dX1NtOH47K0zizN8dYyItdOLq6n5edFBWO9K0gfu+FsTHP3Ahi76yANG2uZ2P/Hjt+Q+gr34fHNou7nvVXKw92IMg1/frpXNDxUbmRbkNw8ceAQKRG+X4IYot79SwjGSfjRmT7gKyvarTJj1GcsDEr9wZQeW28VgsLsNyk1zoxLVqovyvzah22pABPQBUs/LrgQFv3tymOGqNK0W2KuRUJWKf1Bb2pzZ3g6EruiUzF2JCDJVAZkytSdTCk09pWNXyOwhbutQqJnIHuTvXpJ4DsjGcS46tbNiF2MjLcV8ehoI23O+Cgv6TGpP42Mwp2Qsdjn47OT/fqs9e7G4g5dmtlofo+Z8hJt9ytW5SF5JWXtO/6bX80keYBKSC/EpKxzxDtGeGa8ZvjYpcZvlV69Se3T9MtyTTAfR9BuH5wbQsiR3XhOhFs4ltCjlyhxEttZ3lCUQdIJ9wLwVqDU+k9Qpr0qVT50suLnHa5RUBEnDaaJBrOs/sjoXR/dzWGHP7sPFHsCWaUfX+uNCikxCm8qY2rXJw6BhfgO90bwqHa7w8QlzUPXzJhbhRilpfiTrS094mkZxgfEfPSFJ4iPrjA+W/4yZOvATbpBHYkDkoJHpi7kP5WOWq6Pi3LtIKC6z9Sc7LkNQQVHxs+IFurkksuKlimMPZCBHL3sGBqV93++sleGjYeSKh8fN80155l/IQeBO06vsMcncC7Db7fX6qY8= 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)(39860400002)(396003)(376002)(366004)(346002)(6486002)(4326008)(478600001)(8676002)(8936002)(26005)(4744005)(16526019)(186003)(316002)(52116002)(66476007)(86362001)(2906002)(9686003)(6506007)(66556008)(66946007)(7416002)(38100700001)(2616005)(6512007)(956004)(38350700001)(5660300002)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: dJ0u+c1B5+uvznPafKl6zdinqMs42z2r58//HC64imrwXnBmklzDXpuzJ537jY8iLVLGGkHR9oRkDJRFrH8uZW0Zbk8ocTGThTFdCEixkfr5eVI+Vk4DQBslMMQxyw5+ymkn2JwMioz6lihF168J/zpNiVAfFvB2h5sEV9IDmiu3i8cI8jwGu+651wdsUqXJ0S3O/5bsWnCDre7+G9dKvYo1ATGWDkcoAwpvmY4Rz/yelTAOof1X72+OE7CxwaR/7K1MIEQVYgjnXSoz5z6Ueyezx4jQHh9NiEd5gcG7QbxbncMcbPuYysWechHcsdSMSHtjyTgg3mwSOlIYBnDe2QfzwJJCrbZ841ZNa77XCSnCWl1BQMlaY5loSMY77hVIeFV9k7ey0P6TW/xs6qvr0fdehcpFfRTTKUP/+qPSvy7GUjZ+I/Yd5goWAZ9S1kTSAAIOiP8/gHoSeFI5FLCOiiZS/1phVTQwjcofNSoAzXRZjaZxz9ThxCJj7TLeuZPomMNiDVcgbjOQj8zXSZ5IfGlhycoGq1dOvyTrYTSj9myoUR7MocojYlE5fsikzEG1hHS/KJA/yL9IK4a69NrfxD3dLFT096Td57qlJYWAPgvWQ+6pn0OvsIBWN3Qsa6fSqIrrbvlP430+CZJgaGhHYOHHo3hIcbvR/EIgJrpaGch0TB2lP4dxG3LgW/FZSphMahMx14MyCRyO6ALovBDyo0YzUyQwgCqSuqu/1i9s6DzFm4rC5/eLF2ohCe/p7gQUvCi+gzK0VCoRDOfdf0kkH7VG0YkUMmjFR5Kh5PuZ6j26VKIsyDJevWyF5zN5mjs1n3wdS1BS3iIXeu/Z1CYQveToJOOl/GD0nJyoB3FzjwZIa6RezX8oahNRx7leitnxKUM5VFIec7/QCvNy2Nvh4LixjW7y8tiGOdaTKv4KvcOdMJXD8Oe7IFbeeSbVq8Ok7Jntx2/rLTEehutzZPLZS6M3hi522ZYRa7IIgey1BP45d/19wqwa64y+uEVeys+Kd7w2FVZ5hCwVvNYdkbF1QgMQ04JZTxW7+lWwR/B4+RrAsVLMJ0I0NcnD0nxDLBKoCO5epDw0WZuBEjpp3l9c+WxSSjTVBtdBNxw24DkEJmfAPVrkU5qmI53NVruVqo75e3aQ1CltxkjZC6djoKJELgmOEL40VIxJMoD0EFAwx9+i0Byzcw8NGoVjSC1tE3TPSjba0RU0VEalC2AzPEB4Le/IP2AAT7eSmvix32ISdbv+TVMR6+bLuQlTCW5W017fIXVwOh0qbqx3UVGjh30qNKkzba5CA66I47G9qE6PrfQYJL8Gb0PnyxVfqAyL3oNX X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51d119d7-05f6-4dce-4d4b-08d8fa33677e X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 02:09:56.2950 (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: /atEK6pPOBPrLVPsBJIX63B9P0pQ/oFPu5z1K9JV86NPUwLHUtQOJSUd5Q+iOlFVzI3jug8wCTV5hfL4LBnrKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3128 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_030957_897835_29AE2D33 X-CRM114-Status: UNSURE ( 7.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Apr 8 01:54: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: 12189845 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,DKIMWL_WL_HIGH, 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 8F4B1C433ED for ; Thu, 8 Apr 2021 02:13:06 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D9A486103D for ; Thu, 8 Apr 2021 02:13:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9A486103D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0MMGQiUKOV1k5nIZx3LzM0/yCT50gCVB6Y8hG0OyeCA=; b=el4BcPFa9BkhMFmh8WCUiIgYy iO9e8o8PFSPYbEKoGUUIGRkoCquqdILhLxjhNw9EnfUVcGc1GJai4BPEbiTi3PTz1H23aPWj+/plh tD7UaMAHNil0JmmpaNbG8EagTFMczCt+XlDWqDLgd8WrxbKHS2CT9vnCJwIIEsn2Ft+wIybYIIAGx hxy21nB8HHNjkg4jRKt1Hl1p0QYTAD7WSRbfYZAG2KpwORG15fj+u0uSRhvsvinhejs55gSZFFIT7 7lLg7YR8oGn5TwwxcWgUcpIGGSB+LgYoUz8nKIEoftyHF6FP9NcxuvWKC0bOKySIgYJyj7gYj6HrO Zv5JbDh2g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUK8H-006ZjE-Ok; Thu, 08 Apr 2021 02:10:58 +0000 Received: from mail-eopbgr40070.outbound.protection.outlook.com ([40.107.4.70] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7O-006Zc5-Ac for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 02:10:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iUOC34boVCIBoQdouYjlmqsH0MQSrWh6znNE10+04FztYQIk3oGcQ/gQtdMhU7cTvIRu2bHAcQFZyT3gBQcA/chVgJa2n0/BHiJc0X7JZJ2+6mMAkrerED6DxeoegeGO5nomihHiWiiHeexNwrFQ0O2Oa6f0Lt7CvNKJe9db2lIJEaeoLcDF9d2AV468S9w1SIWmYoNSIHqtqE9BnSO4qCJl1pB94RisJxgKsTkk/9I9n1+9HCpQgOcywXxgfEE0LxAJn90txV801W7ly8q0ncHgt5H9OBLQcAs0IaSh1mUTIfL0Y7O66YbT74ohxukHs3gmE7pdghL+kxUn09QELw== 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=gcBcv1EiJLmzG1pf9XGFTIrwDRyJUN1W7rI676cGAW9OmmEglQBtyzyzqgV2qjhTlmGnUtz5vt/yIADwZ8m4cMyzcWRT60h37F9O9er7104tklcMuhF7X5DgJ/EJecIf0PRXicXj3D94JEW6JEHJsnDCEgItLB7Phx8Dnp4y7DfQeCWixcaS3l52yEhK05HnysYwcSxZ2dLsM9PKCDNMtlkmU5/uZJIgw+kjw20ZIkAY5jevNXU0pS+HNQdKzmaAKaX2UZbBua5GEYOz4T4TUT/Cn2HV9IPf/VkMLWXWRoo+nf8jEEeCLJm3m/6DW2Mx3zkE5/B/PS6jy6BKZEt+eQ== 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=Obkk3sl4c0YugYsfRyqqdcMa1rEh5StQI3OMF7Q573+wSOQrlyKvDkSs2qBHQyxqV7iqpQdJdZrhB6jCCdcKcqMoSQQRHB+Jn2DWtHIXW56/qO/QqT3Ra1uQKuUQBzT/zXQ8l+Uv+B7favjqD6ubeTuhuuVRG3cMhpxRdLefSbU= 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 DB6PR04MB3128.eurprd04.prod.outlook.com (2603:10a6:6:10::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29; Thu, 8 Apr 2021 02:10:01 +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.3999.032; Thu, 8 Apr 2021 02:10: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 V3 4/8] remoteproc: imx_rproc: make clk optional Date: Thu, 8 Apr 2021 09:54:54 +0800 Message-Id: <1617846898-13662-5-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) 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 HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.4 via Frontend Transport; Thu, 8 Apr 2021 02:09:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 336bcc7a-3a3c-4264-0691-08d8fa336a35 X-MS-TrafficTypeDiagnostic: DB6PR04MB3128: 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: lEvFpEsojRgpxjn+SQ4viOm3gWr/mDBLQxv3Iv+OnFxEODYgsVCU5eSkD+3kqexo65x32n+xf193bqi+/b0dGrx/AdEWnuLC088o97/HheWxXnDHB/BYxC2o+1CLCSuMRyFjQ/F9VGEIvTdWpU95x8BDzuxGmbcrWRuG4lkPELfNZ6beaaurQXOYWMeGN5zjdr2qfGCu9xo8kqulE3Y3pQFPghuz699271Lsbn1U/Dp/9ctKEUv35UVVuFXw/5pyZ7IYyDAhVQUllnA08Jg1ASVA6bmHrkTu57C2raVrLUg/pnmdjlHzO81n7C3YWFBK+g8bhkDDouBFGhG7wD0hMTTHogGc2vIvaUikG5mjMcxZ4YqofazXqpysiBWQp1W9XxG+NLJiLBqTrtlGOh0uA72Y3AaeOn/oCyr7JWrOidabR8sBinPktwllo1gJ7c43k0uyNNxp4mfPBSmcNcua3cOqCveO1+jmb/8rhNhfqQkGeYp/FaBLhYrVL4eLQWf3O/96JsIs8NnOBfimnoYg0O4IBi3mOwLBg9BWoPkeP3a3IL+mRrkdLvhukWKoO4jSERAwA7ymhrFJugiWhs25952msxPoowRteJlVcA8+L8T2bQbG2kGFDftw7wzlZHdTfSBST7g9YRykWx0ZZ8XdZTmm1imFCTcpZ8RuOwdq7xvLkREBRHP3ul+Yr7pZRAQqgLnQWFSbcVT0UorL7G2hOPEULBq26Z1voVesfRlYlBY= 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)(39860400002)(396003)(376002)(366004)(346002)(6486002)(4326008)(478600001)(8676002)(8936002)(26005)(4744005)(16526019)(186003)(316002)(52116002)(66476007)(86362001)(2906002)(9686003)(6506007)(66556008)(66946007)(7416002)(38100700001)(2616005)(6512007)(956004)(38350700001)(5660300002)(83380400001)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ogSTl9lWFuuqDggRYvRC8b1Cnln1RIMnktUPjGqjzZMD8TemYrV3ALds24EFbG0lIp5xz/W68cziAVs2M9VuXj/e6UB+eFqx8Qh9A3JOMyBL1eSSnVNlJ1d5lC89JHy3sGpsi1rASzFdRmdKyNoMrshlAVjyYbRKZ1U+xcHP5O7T+K/ySa7wolFtI+54qH38GNHpIdlU5aRzivKRUJcYLgNbypUEhu0ePyam52mlaA6DYV/4SsVxmHZJs5lLs/5AWGwkcR8dghSwqmfYO5B9jzAr2GkJ5jpVYhT+oA3nditfhaUGwqp6ecEjFftabtUHwh0keO5tJ+J5Fr4WWy79Yn319RXaKBATnkqrnVITN0hvvU8TNIPQJ4YQD3iCtuMWLmh/vPuA3UP8ZJLLG3hmPc722W6Ct0HdHKf1cwZ2AMPvx1a0Yb42TwIqZ1kl2IzDXyCYh/FCKZJ5vibrvkHw2qQG6YpCvhxiCcFUjXm/ksnjE62yyAdWI0MKcllIoFIAqfTAqTvcovpW6V2wxd2RA+YHjdqN5A2Xaa5rbryieD7N91lCamtNZlVDJiCf3pkKN1H9xr7G6BptppFQYJbf2H3CPaI0HrXtrS5swt7NcRCb8V+mdiey3ln9kN9wHJYJdkgm1UTvvnRn4QpCq0JFFtUTAv/pzPatk3SKCoCzbr9TuENxpnAKfM8v6jCIlXhKS2nXAo7TNgBqiZCgwQAtSh3FKR+BEVGRGgPwXHWzyB502kJpmmZuUZJC4eFeBZtHMAUxeeWuqNvj8ivhvAP9+XDkH/duLMMqNd2BIR8LGt7y4JRr2dov+JlSiWOiPDKhdsSxR7k1t3p48bDMaWQWiE1gLaPLbIbxS7PhmrSMynh7UzxtdfLseVqydLqS4NyCbs3DwikDMcVEkP0EVHidOrCqobodkCCggXlAFza+PvSWogT/0hlfIpsr9NDx3jYWR96C4yE7/kAVipXqQtyLrm3JTOxTtM8L840MRAInFUv/MlRu39vxCzFv40aA5osgwSkS1ESdB4BxTTgAyYYnsgpITtjmS6I8RdK/UoJWUhMPnsrfM6dRAeJSrS03HGqwCdbLHsZjGVoh/iTacj81b2WdyT281qH5v2a4HYWcgxuHrnPaWA4is0/Q4d0LpwUAA+knK/HWDwlKbsHjO5XVE9qDpCFIpPJ05n/aTS+SIfMVOMFQ4UdnWaW9qA/v9/3AcdpvoAsS5bZtJmhTKnNsnNHvC7nFi9cZGbOTBzXT5lqK50DYSmjRoV0dHsmrbC2njMNqBHKpHb+POX37aB1pJhBRnXXT6bBj6wWUDYHu4lAFeyZVVZJcL/M1Ny/GL7LA X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 336bcc7a-3a3c-4264-0691-08d8fa336a35 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 02:10:00.8719 (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: lZLYt3abNzWeIkwQB/+GxIHoupAntUNclLYw3lwdnm77pW8aQdqbY6GH36TNgA+NPWXNO0cFuIUZq8r4eTqBfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3128 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_031002_538209_9937B78A X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-) 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 Thu Apr 8 01:54:55 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: 12189847 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,DKIMWL_WL_HIGH, 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 E71AEC433ED for ; Thu, 8 Apr 2021 02:13:31 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC3CC6103D for ; Thu, 8 Apr 2021 02:13:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC3CC6103D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rIx9OxAh9qtFGMgHBAkvMBj+4V9ITfeKXhf6MDOW4hc=; b=fzKZxUynCqSWTJuozj6qKLwQ5 82LBaSE0sUaYF+zaiLVhSoCJo6aolhUslGR31NjGg1lJbTXksSuY5jGO7CLhXBEgRHwYBCXOsTDA4 6fENGgDpTELT6mIJ0vEpwBgrEBQ1q3BpPWxPb93IDIBp/bAR3zP2MJdH/LaeuP6J2Skt8c+jryH5A A3c6vusEYFtx4ypnG2GXsOu0bgTPpdwxEAn0m1YOk/K4e5v+pnB73g9Ig6tD1McWELfm/lg0EybnF zg0SFlKdoBaHN2aCxHH9QzGwSoOfHrOEBxFnq+/3rzmMCGbInhjU7xUwYoiVdsqwzMrMN1HapHvDJ McuI71rBw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUK8X-006Zo9-Ib; Thu, 08 Apr 2021 02:11:13 +0000 Received: from mail-eopbgr80049.outbound.protection.outlook.com ([40.107.8.49] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7U-006Zcs-VE for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 02:10:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HPkxL8LC1xvdbPvUzUIkI5GSASen6xzR4XwwNfzYY4F0fx6AfTX4CZo7u+SEHCA246MGSyD5lJL6OoeVcFgZp+B7H87zvIdIT6+2LFr4P+IjfPShbhkcEzO90olTX6AYfWfH/2qyij7Rk1NrcVGqDknnbE5lknp0NwJmKhisAWMYtCz0KOqTIJ/81m16b/xUYHhjgOWbk7m2QaipAfn5JhrXJBfX9h/OyHCqUPX8+TI4RUtXWKNevFpDYW0qMuhd9+jtPn97NRdb7aViB8JvE/yTORQt0Gr60peAd4wDDuDXHz5uIVhtt4YJml5Th3AvxRy1qShAMAIX1dbpj9/iEg== 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=RPdDR/GZ6LF1Fn1l7hdP17KqJ+pWyOy8r0n/eT5QSx4uxfdUc1ZVmzD2hSbK646+JzHyLxi83U1UxCXT3JNEBIdPmjfUl1WElg3uCw5eNy+kMy0G3YQSGzGmNCcDoE7MWOUTHtdUMrKJHawRChssAzAOz6XpLNKXGuoMadn2v6NGYF/WOFKeY6V3OviTmG4POhepFjOKvub4Ry0dH1DX4HUdVeHOfsrYIpkCWLlEb+zNdRNXopdKEsLTpoCt3KSGgqd0C3qQCiEZCtrTG9fWOHOFEUGExwg8JAqvwMV7aQlgMdQeWDW91Y7uO1cfUx+MfIYI1R5qmpdyfymJ82MgxQ== 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=P9fLYYumcMdAt1AI9ejdZ3285DPSvM+RJeYnRG2wa6V4j5Fip632WaMvJbsy0BbmnDLlMstz+TBL87shCTUzdLrB63bO4GX2+p6eOHwlEfkZ8m1Dl1oxk/1dkDGh/zcSeLR8rUlXrwyCHhYCpfHuvS3QWF0sl8XMGJhD4dbdvbQ= 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 DB8PR04MB6857.eurprd04.prod.outlook.com (2603:10a6:10:114::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.32; Thu, 8 Apr 2021 02:10:05 +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.3999.032; Thu, 8 Apr 2021 02:10:05 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V3 5/8] remoteproc: imx_rproc: parse fsl,auto-boot Date: Thu, 8 Apr 2021 09:54:55 +0800 Message-Id: <1617846898-13662-6-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) 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 HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.4 via Frontend Transport; Thu, 8 Apr 2021 02:10:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4e16a9c6-3a66-4e0b-1ee1-08d8fa336cf6 X-MS-TrafficTypeDiagnostic: DB8PR04MB6857: 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: ugYIUX4TxZmay6Zm8XQ5MyPkwlugO2jAxmgpXcTXYWiRiHlyGFEJSmjZm3pcIedb68FFGH5N4yEeoO+naEY/rWlqOLtiZCHbWmEymiVYSioZn3kpwKq46KSdnjtovkPV9pRMzLveWTipgW8A93Wek5hj7ydo8LtGogkTj3qtnn5krkrdCVkv0FknmQgtvMgkYTAE+J3himXGNUreegmeQOZgnxCsLT6uYWjf4rpEtkwgAlPYnM4wdH8cs4icppsm6CreLUPALE6L1Ybnqu8cywyHEA3CYfNx9/hKXR9rKC+jxQj6lnfrp/kLRhNtqgnSX9nH4oly9VIrAPSXT1cN83fnEfv3HbOYNhBPVPVUKf8lzyjBwyjfGGKqU/ArSZiRsvtP7w5AFUemP7c6LF1JfNIQEhaFlitPAhrXdoSTomKkKgb/cELKPGAkROs0qidR5YRGDllyifrKdHZNqgW78KVTWfUC3QnUEWWZz78fCSRPeU7aZ6f8VJh2aYI5yeQOGLuPsEQ72rgN7EZLKyrJ5cLXhrpMTNmW43RadrfXBFB60275IhdqgadyFqPnlelJ6i28X2V2nnOwPaGyZvhgh/9lRwKe3zjKjCSSq/Se3UuxmiW/LYx5/Z3A90tdJaekZn25ko3gJsnU8fuhb+Qe2Cc4rZqE0MPN9JTBFzTEmvnUBCJA7wTWbcj5LzfllbSviz7NroDhYzbgozOaCE/V2I86acxjyuH71J0jv+M+eQM= 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)(39860400002)(376002)(346002)(366004)(396003)(38350700001)(8936002)(6486002)(4326008)(6506007)(52116002)(9686003)(6512007)(8676002)(2906002)(316002)(478600001)(86362001)(69590400012)(2616005)(7416002)(956004)(186003)(16526019)(26005)(6666004)(66476007)(5660300002)(66946007)(66556008)(38100700001)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: /8Z4FAhpaEaGGdmWVhcmXEqsu53IfbXGxIS8KJ1X/ZJS3bCIRHGgiC1tZNVyOvCQ8wdrC6wwAe6W7i1PVQ0vdcr8v1WaaLoYIaUt7tU3gkfT98spErdCD9kegdA5pHdUhvD5m+xrB2vxJLMqn9zQy0Aona3lGc5oTBgTs3S3q4G7VSOioVJ9nSF15BrXjKp2N1Q/rSy+Ul2LjsK/sSbMNswkIYnheF6qHVC6RhJzpiUVvdm2lwOtwgwMFqi3dTZOcvM3t01gCeh5iilHeaYjLa5/kAOSDA1PtNXKeI0G3IT1nrfXlDqBLzsnNynK8b67PHeaDlc/6SVbHJGQdGosDADusZdfn+zLbl6iQtJzpVymmSzijvUO1lWSUiMv2EWn6Tq01B/dzz5b1hrfIw56ITugd+P2/x3yppcFMexCbthM6nz13TO87USVyupsUX5Ocyy8nEkXLLt6v/GBD32mE41Dk+l88nk+Kj5tI3GkQacZAIKlD4t+YeZuN1hy+d4A/iUpOMKmhimEqq9HyTXIkxP4VMe1BB8ZvufpVZlhurp321n4st0AhlYf/zZlVIUBXVAgEm71Iu30L540tmy8rSQl3i7CUmFgOjcZV7ogC4oWn9UHBgv7tQ3BvkV6fl8ybzGxIH28R3eaFp6waFEqp4y0KPzaGk0VCMq0ViWP2qLHgeSAYjts7dfTG/wHUZERJVG2p6SGIKjb6lhzmpXPythdLZZ08naDVe2CX1cFj9t8HpHeUVsPIWfw8rCCMA31KIAYCLUlNJJqb1v+R0tSh4W+QnwhmJN8GpfGapanxmgSyjqHDR4rwKA2xUGlQb6e+sbRgJhpi+jf5hLnadIl0hySUn+MwYFyV+HIpUfdGa9XKC4EvXy4uPJ0fiZXJM3CjrdmDHuuHGbMRsGOIwKeI9y38Z3k9/eRi3z9788qSx6y2Y0tHzw6tuXbt5HTi9FBqJWOmpJ/72QR55GxjbkO7cbHGV5PJnfmO+pb3pC+fhTJdEek6mg6hIw4KIwW3V7fGqUk9sC2P0fsMqdHlmjSrpeI35KuTFPbWOUZZEwcFR3p/Hpz7N1gXkbTjotKVrK/DkmFChoG0P8iIs+Jiw1x8kUvUp67Io9wXdoPDWndXhUC0xQ99r7b/vUl/7nrjQHQfzFM+Lz8cnRY5lUk6pbRKHNj+H5iq/7QsFVw8PNuhJQbAqkLRzHBQVXJHMcJ4MLrRv1WUdvjR9FIzIldqowEcVFWOB0ANMRnnqriE0Cxl6wrh4NFyQ46hQl+3rluA5uuYJCbes86Bm37LQmA775Cs31+nRwbAIrQY6aIV1WD/Tlh/S8HCwlge1TOH9ZX78mWUVXarapjX8uMt/4ts8ekVg== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e16a9c6-3a66-4e0b-1ee1-08d8fa336cf6 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 02:10:05.2749 (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: rOrdlihMWJ/2qnEd8YNfqLYyPCiIMAaOmwWN6P1Gbqdf8tE4I1s1/Ow3pMvLqgyI63kXdClEd5VkN6pnhCKjRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6857 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_031009_090955_B6F6BE75 X-CRM114-Status: GOOD ( 14.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-) 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 Thu Apr 8 01:54:56 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: 12189849 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,DKIMWL_WL_HIGH, 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=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 4F98FC433B4 for ; Thu, 8 Apr 2021 02:13:40 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE8C561164 for ; Thu, 8 Apr 2021 02:13:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE8C561164 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XFBniDgMumpVPl/aMaxCBtCjiSDNzIIGs2MI4o2toMQ=; b=KnGxEkTqhqrFaMQSu+NTvnlmu WgfgHUTtV6B7xUVaJYan8/1+f1y9aPV9PGbK3akGtUwdCwgq55yNR1iT/xtcK7svyPMevcZLRhSlj Z9/zyVP/5uO4uZ5CTV+6AtQ9E0aAYdHJM7uxlPi8EVrcJLoyhCmDIo7GFgk9cZEy39D0hu67iVwLV 7EAqn39sHI7+CP6VgtRijjAdQbMKGfvMR/Z/5LllkwGUvj6sV/VOYbyQzLW4fPnEc2Co+TA9s0hJa z1ALPba94ta5bwx2JNRz0rTylSiysISXWX/+WFQFeHCWo3uuz3tPJUOe0E6cD//6uokEnYrgr/3yH rvmJDmONQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUK8s-006ZsH-9L; Thu, 08 Apr 2021 02:11:34 +0000 Received: from mail-eopbgr80049.outbound.protection.outlook.com ([40.107.8.49] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7X-006Zcs-5y for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 02:10:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pr5a/1fAN8KCsR0r36HPU31VacZfS4nZ3Sc7vqDi2FQhCyQezaKJoE5oJqycP4EKlPFjNZV7cz9yerV3EGT1D1jwdWG+Tp12bD4G4qeZ3gHVqW26KgNS447Y8q6TeifVPzMGfTARmu7h8W4QCBfNZh/Oogde0MYfS0ycyGx99mWxYlWCW5FhztgcRuEYHMg90jfgcXKTXa4Wu8h8r2GN1Ts1347L+XfP5putfm1HgM7n3sASAq9B0QNzN9Kfg+cL5Moua+LRedgtHeXNaFnLfjgWEXPCtSPMeDiQiLVVgjyGcc7/RxWIFXTxaMGSd1azK5rcUoTiOs3TetRvIVrdZA== 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=Hlw6bD5f3VQNDpLGcX682U3Y++HsROQl4hj1JDzYorw=; b=EuzbuYTVmdl9TjoiNCyvBcKbCwhmYyCND6fJVGBRXeMGqHrxXy40w6iaZpsGYIChGH4hpTPR2XRi9iJuj8h3zZ1nSqIgZKF/Q1056yiyAuH64ZXv7DzPLOnzPL7WHwIEcFLIL8IRakB4HnpMmYQi+ATB/OQpZTIFFtuABujooH+nwktYwIo7/RAgGgqFwCSxa9Z0lJLcB+j6Uf0nw68Evg1O60vSlUtoOcdlg4kjvBXSg5ZMokFr9p8Vxc7Ly7K32aMnaUExi0/phExO0MWlBolW0wBuJ37c3AEWR7g3lM/vgqQ6EdMJXTbeSFQPgds2EoXa98Sadrc6bLi2lcCejw== 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=Hlw6bD5f3VQNDpLGcX682U3Y++HsROQl4hj1JDzYorw=; b=cnKLVyO4wB+EdlIvXShnxlnQahfWsABOFkG2HzxFi6bktvN6aL33ZPBjXaD9XdDLYLNdQWMIckpxqt9Kvg5IvxQBc14Ja/VFHXYWM6VHnbGAIDCBbsehB93tBvqUa2BqE7OanjmPJZPi7fl/U/s5POfXjyQwfUhyF2SVM6o7hFs= 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 DB8PR04MB6857.eurprd04.prod.outlook.com (2603:10a6:10:114::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.32; Thu, 8 Apr 2021 02:10:09 +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.3999.032; Thu, 8 Apr 2021 02:10:09 +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 V3 6/8] remoteproc: imx_rproc: initial support for mutilple start/stop method Date: Thu, 8 Apr 2021 09:54:56 +0800 Message-Id: <1617846898-13662-7-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) 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 HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.4 via Frontend Transport; Thu, 8 Apr 2021 02:10:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 93e5d837-f425-4876-0864-08d8fa336fa0 X-MS-TrafficTypeDiagnostic: DB8PR04MB6857: 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: TeFQ6QYN4aLh+j/uwwuhoyINdUK18JYcu9Hw+nF6y3133/aY/o8a3GQH++LPr4BOc91vh08LP+vrTz2R7LKF/3xxHlU5TsHx8rNawcOS/BqEm2SLDUFIS2bpKEf302GoJYhsF3P4PZwQW9i1GrB42h5ubVlr93WUmCXgyUGXcitN02vyhsXgY/ils1t76DdIyZBySBlzbt2SYKj3+Yp69MCE4LlZA008A2/vgY41nuutqjdKgaEmsMN6JFkOtSLrT55fyxzpOwpiJTbBRVVd908lNR1UEk8InjdZa+k5x4wSruOKsgPIPWv2mf1uEAviKF0VOvuHQae1jhvR5J7fQrfWPTSLJypZqLWGrU4z/UjahaGjfdpF51uBPRUcv9v7/am0tm0zPzJ7vL/4AuS1vFPyX+8u145uahB8Uvog8iiI8R411I2X520WR95I8rx/JQyHgPnx4kxo7SQimvKaRyPl+y8mLepJ9ED+D+YhJlL3e+oIgOuFR+5w9XWxvxB81ZX/aqYyoV58/5/wAsAEdzDaDyMQUyphA3VyzjUBGPaaH0yOwcxIZimQw1+mABDuGVVXN+3BTVqnLhP4YCBnBiDMRMIxDu0XzzN4h/ExNUIcn0BZiFZFGu9hF9MlHmtNu/bN6xOBpFUBLyPRu2Vy41qN8t6OsaBuI+Fz1BfWqwNWHSNQayJdvEy/zI5HZ0gEyFVmeb2Bwbny3F7k8702d4YC4nyCUbEKPomX/NBYDGs= 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)(39860400002)(376002)(346002)(366004)(396003)(38350700001)(8936002)(6486002)(4326008)(6506007)(52116002)(9686003)(6512007)(8676002)(2906002)(316002)(478600001)(86362001)(69590400012)(2616005)(7416002)(956004)(186003)(16526019)(26005)(6666004)(66476007)(5660300002)(66946007)(66556008)(38100700001)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: hWc7eh+nrYBYIcQed11V0JEYtCvlkL1NvArnsJgpYr/Y+eSnicOTEeF9fAellZgvK4WNplrYhxEOxDaSxmwqOApBUFufMeNa9V3p+4WqtVPRSiu9nB3eF9T4ntbuqAKLKsYdnwaoCeAG5HiCvU+DgDNa7Ba+8WkUG8xIDTAJwQ7EIe53anM6MnElMj5W4kmbp6K2nQQIHkyNF/BJuUpftxWSz7MeuUNwLcR6ZPvngs32qv+XS9SchuGHwt25YXYEei+wYvbOewR73Za/lEYP80CCPg5MgSLYe8A2cgHpnDvTJcNJZtlKC+SukYSF1W3LJYXxtVuRWAT0zZXmmiKsqy2iCokF/uB0B6IZGSJcYGeWWUnkiFFqYSqvZLf6HGooGEF9U24V0BNva9d9ougbqV9sNEBW1iSPOt0NsB9DEXtuMz3wvbPZy8fBbvgkQV6Mhl+XyGWbd/VVkFwJDSHUUW6oST3S6fq2C/MT0GGHlXvuz52ct1s8yLIMoU/JkEQr1or8JKeAm8QZgkizSKT9dDEA9gaE43AzHFOHZ91cNKhUrokUniV4sJn4KkucDqQFO5YUCJzNMuA95cOpJJE8NY6xiB0IAMzkjxsXvwlf8/rGBR3iwrv49Bi+KfuKyaAhfvK1MPhW5cX/WTC91J6dGVYxx6vJsLVR0HDWa40BQ46ctDW7aI+NhebDRh8nTVDLjTMBrUscbZ7Xy3atMYSZZ/6B9l44ftlHjX2btGv8/QaaZR4fMK//XGLSzcuwtr+DhIXd4rnyeiQgpVvGFE86JBEiT60kdzvtCe7w7gGlNeI0aD0L4XCmFc0yO4w00/1vx6NxZAtiZD9KzGngjHm/vO/AzY7xLEODYROsXk1BwSQMGfKzM1NqqVfYZRXmg4yJ/aA6kj9agcxBtGcPEpaI3wMBAzsjdOqHjegS3oDswdp6dfT2nSBfVy73iRr7T9dT0J1vO6nlxCUvKRs8EyXhUCzapXZlYqBKfBzRQbp8AIUbMN58xbpAgam9cuDry1k9PD7mPrNOwVx4sqK7XjX1xbTy/fR7/a21R/ugX2CFOj7CGy3EwkXltxZ0lsp8DYs7BOFE9cZU57wQLg4Ep4yUS0P36MrN6G50j+lhXiLLg8AHY6x9AzSX3tv6bHwVRbFsJ8bodfVgfuhwdZWtdfONiAzGPXV8vGUM95mwHJ0gG5/M/KLhkDAYYXp0+FG5jLCjZY4RPqDROVfoGEgsjOHiGt/7P842ULcH423nrcbJbOswtkTCgoOAAMxaJ1YjvrSPsOoM8Ns0wOSZ5E14c+SE6g8lRSm42DJP3qWOOjZYMXRRodw34x0w944xYeyUkoDq X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93e5d837-f425-4876-0864-08d8fa336fa0 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 02:10:09.7659 (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: JA1ZzX6IpyqI0iazmq8PD3esJuhVz/BkAND4McCbR11cKbMasrbFBr3rUA0/IYt7x++m0fazqW+mVy1oN3Af9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6857 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_031011_322177_E3847E75 X-CRM114-Status: GOOD ( 16.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-) 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 Thu Apr 8 01:54:57 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: 12189851 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,DKIMWL_WL_HIGH, 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=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 3FC8DC433B4 for ; Thu, 8 Apr 2021 02:14:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B986761164 for ; Thu, 8 Apr 2021 02:14:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B986761164 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OhmmQFPws11BYG3OSug2hpk8a+uuTY2Pz9NFOGJXQbA=; b=Kyu1/jleBwxBIAX6zqb2OzIS4 Az3tZW8D2meW+m2mnrdZNauH8AKkRUZxWYOzIlkMqmFayG6k9SOTQeYiHevONUgyqN/BIro3roOuc PZG0qUqA65mTLukQlg63zYuxWJDqPWnN72xH9jMp6iFUso+Tq7IGT+ak/dAhzaBrrqjdI33bLm+RA 7/P3CDT/GqPvdKPWRNS4H7Q9HBwvCO7I2BISrjCBLPOpm8KfCK80lCLCorWbBfP2qEQ+qM7VIjiP8 MZhonXVgDQtdwrolcBSLDeDK6n35NrPPaHFIlLjMWUd/D9PvYc5B3pbNwyecao2h+jSwdn/uL+kU8 g0j1V6GqA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUK9E-006ZxG-4G; Thu, 08 Apr 2021 02:12:03 +0000 Received: from mail-eopbgr80082.outbound.protection.outlook.com ([40.107.8.82] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7c-006Ze7-34 for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 02:10:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n2mLOVkQho/H3hIfJXjVkoWyrS/V3CEbS2G3lLz/8onL8YK3Y3bVBOVBtBa9Y8LQfsAHPCv5+On+vl3fRXJ+jGU1dujVTtr6JJU7uXvk2Yc2AFQXmVfRlX6/SUXbhgKC2ZGivzIR7Qd/K2cKrW4nyBPvNyzgAwmixStSl/R2PU3R0lKfwGHHV4JXjE8S10T7QL0oSs8qqVywWJK+Qd+Yolu43h2jGeGZbw6WsXlAvRhJBr4C/sPWL8WkF7vn9JogO+i7j0akq1PNjl7lnBXYfPaakz+6yHlOvFq2WwuqQXY8kcByBBIUDYYAi8gG8tUS6pOEbbvrDMMnNXWzFKz/wA== 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=QrDlTxuOryT1+xh8yZCWZRDmvVTCuKr76Ekbos45yJubEifWUSl70eaStd9ZPpUhgQyZYJZate0x2A9MDzfItlMOifLp+7nnTcXyzj8Bq6Fa99Xu3L01Pu2qsMWjlVX+kQCu8Od2y/muXOAcucerOM+Jz8ntl78x1wXSzw1a+8bOhspbxGW9IxgBrndyLSieo/UHwQXr7ADIFFvTu7A7As5SioWgBH2qORgP6T3gv0l/4ww3+OzwvYgihuY60NcCAKIruZ4G9X/kENBhynVKVNVHk/4dqrG+kpPmsOrxyyetm6aGU72Gs/Z9/1IPHgQJHgb3WNBTgRgx8/TmjB0J8g== 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=gzKkTCjywNLyeVEj9XqfVP3s/Io6hAHNmNyeNSM61+aFnMz7A+kGRYdpC2eGq2OdLQbfwswK57UpD6jPbumxKs4qhmrD3IkCeKuG32zMm2ZvhNEmbstGfO7hvlObbKm7Pd8G97rl8pPrBvI3lfFjwyDIy39lIMQZVWweT7f6fyM= 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 DB8PR04MB6857.eurprd04.prod.outlook.com (2603:10a6:10:114::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.32; Thu, 8 Apr 2021 02:10:14 +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.3999.032; Thu, 8 Apr 2021 02:10:14 +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 V3 7/8] remoteproc: imx_rproc: support i.MX7ULP Date: Thu, 8 Apr 2021 09:54:57 +0800 Message-Id: <1617846898-13662-8-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) 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 HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.4 via Frontend Transport; Thu, 8 Apr 2021 02:10:10 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24d4a754-0b1d-4015-f233-08d8fa337240 X-MS-TrafficTypeDiagnostic: DB8PR04MB6857: 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: wobQBq9+QcfuFTekEVEdcy0lLtA3ziOdik9HuuZ7WxKbnfH8ZBbVo8G5c87VoFLrz00gAlW2Udk9q3EAL2DIjwbC/R1ch0F1K/pMnNcGXtqbDHMFXnoRwm2u0y6q5S70UVd8yGTbdqlVZsYWdf6Zbe6J8+dsKwCVAxz7UqrcL0e7ngBxWP03Mm0EqRdtpIVP7AMpNIqMYJVXve00KiIc6ldqLkCCTPoqy6m97DM3DZ/5lfHbeWkEhPCM7sakOqFcLMl+ZLFPBjYmi/Ek3/GAKelPRh5THtL5Y4T6wHJ6p2iPL3o8xu+aD6bJOv6RYAgvEFdgyeXKtADFntrfSDPFfsVVMmWVn7jBOGwcK6yf6OFfEBhUPWAeLnsBb64wpBvK/c+v51xDM2HS2c/Jg2FYVizdTGaPDZBlJhgwzr7RA92pQnQu6ORjhB7YjUayMrtrwKY4VbpN6i0TsgFACizfDn9VhZJoZiD05OPsfLCbFEFbT/DzFkhaJWQUmy9eZPiByfwHvkvGKlT1/FkfHliWWr3HXqmq4HEoU+NLeOFlG6nAavCr8ZX37xWXDT7hrPDEffTzOwrHpAigdHausLp2eRdmUwWnRdlenRJe+0hp17DvXg732K60dcpegmdzjb0ZjDtzGDdmWPTGzPsM0Yi64SPNXtxQxbhX9K0H1xi+MaDR6jye9cmttF6YZg5O/xg8M3Gd6ywfWtkwyUv2tBjO8lXPKQ1OkiuVAAffAkMOOFQ= 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)(39860400002)(376002)(346002)(366004)(396003)(38350700001)(8936002)(6486002)(4326008)(6506007)(52116002)(9686003)(6512007)(8676002)(2906002)(316002)(478600001)(86362001)(69590400012)(2616005)(7416002)(956004)(186003)(16526019)(26005)(6666004)(66476007)(5660300002)(66946007)(66556008)(38100700001)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ojf5/OzBKTNtBINMFlPIawbHW7W64LyTJXsBXHcEHCUEqxKNTGAU/S9UHHPkZno0Lyl2zA+2btuvAEQOC0OEr+xHfZONTxaamQjeHZYvYBzfzh8LCeFI4slToM60/a9326RkdqWEEOHr6ilhD7JTCyS/x0M1ePXCVt0G136ftWeO4FCpMuljkjxm69JiFEtgXB+tLUEsburHW3mb0FWq1bkkRPh8tXTuknzWxiFMkwidW6+lf0OpwCXVsJ7Mc/rCbFVN8xNkSC7hnjxa0wWgYApZntEMOu/UEw8H8+cM7xCkwGkLZ0xxNErdUGptClOkbyHIDpVpBnRwyUz6UzoG3I6ODw3j74ms9R/5tRu1Sw3IT7Clp2HobRrMXPS7OBYwqCGsumMrOFB/XOJ5/4d3Uh7IoK11UCQQcElnttd50tT1/VUXH+/T9XiqcP7ENVg+JhnUvXDvbcTktYCovW/3q+cdWQskTiwOMS2cPPUqGjxU8su6sgS/PonoNLzviNwMTndAvWPmk/Usb6tkVEA7iFH9X+Rh9/64422c9cp99MEr1DcEqNz+jemFbnOxieUIloOVitWD3UHsfPgcJTwbfqw6BTrB1v4i2GWmeL9dmM2gpIqLcWIcJ7iYzELDSyOPMYOvgkDW68Gv7V9txrbEgGLXWdVWq6YfR64xwqSldcLAJQ6O9QUmb4X6Mzl0+Lys17A/W25z9iJW00UgRoMKljylCoLUgnUlDKEbDSg75Ie7NXtuWhQGkZ45Qo1GNaCksV4hyRKMW2hNxzP03+3y8jpTaPa1SLDoR+svvRxY/y2AIIs8PsgYUBI+NnA1GQ3S6XCGLGACcVD59kR8QSPRxmZNdjZPEyCI/+dVzDDhXriFzWBF3dMQNskQHakYEzeOOM13x3px666DPR6i/cnu9cvjvflasSGWMWaDyxyJ+4DYZVSyv59kT5cfF9XMgMGlz1K174qAe6n+y37s8f/5a9BU/EJ6yqpTnmdcl9vp5dngRO+W5tJXDcIHUozDmIOWjcC6OQ3BzvGvh/Tc/plMyDk52Vy2qqHIZEJVNQoc4i4WtwieP3feg+X7M8hIBn0dHWN6fgaEOUlEVZLDdCMF5AqRlChBvl9xZSs016DPKXXRJM3Yy/ewaflgRfPEKH9T0C2jnw/dYbfucQAUl7pt+ucrU9kDjx2XZ8hsK0SYJP8JiWFIh9zlKOz7NhXrl2oHYWxImG+qXplr22Jf88VAZ45/gDz0JSW8M4AILLm35vUV89lJZR2C9Ak5Z+SaLJuSewaWDbYL/8UXAyjLZMiqhXj/qd+4jdxw3x1KD7xHIMS59d53vU7Kt2OukNXZ80jN X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24d4a754-0b1d-4015-f233-08d8fa337240 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 02:10:14.1759 (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: xTe3NCrWs5nq543yq4hYF+ZzE45sxh0oDJvdwtpp0uLwVai8SviwUDUD22CBZYuyHND/ElIczl8FrtxLrECO9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6857 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_031023_682150_0C906DB3 X-CRM114-Status: GOOD ( 13.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-) 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 Thu Apr 8 01:54:58 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: 12189853 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,DKIMWL_WL_HIGH, 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=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 73849C433B4 for ; Thu, 8 Apr 2021 02:14:38 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E4BAD6103D for ; Thu, 8 Apr 2021 02:14:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4BAD6103D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SPPnkP9KXIOYYbG+U9dep7U+wmSlENmcDMReN/0mYjQ=; b=Odk6ZFbAaTotfF1GV2ci1JPwN vTV3n2Ijwz/+Z1r84XGXe9u887JJfPDcjgO8FxpVxZErfVhTmVZ2bcMRAVy/G4oTt6C+IydLe7lxG nKz6LHDdl6pOgbj9SyUZhk7oN5RUN6ga1vWOk1nb/nWYxofLCDH+iqAyAkYedwICJtPLEzHkGWz+6 yqyBmYIWPEl3wijMFrZuLAy5f64fjQoHM6pbobI3rPzoVIAutpkmoOhNgSPRgivNN+HnERFd9nbHe NNK3+Jf481Kk7ehV9nGx5ebt6yUm2RyLvyqP0MAJa6uwYqRZPfSr4b+LNFqvhS2cBNzWeNn2kswrU QXT166gWQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUK9j-006a74-Dd; Thu, 08 Apr 2021 02:12:27 +0000 Received: from mail-eopbgr80082.outbound.protection.outlook.com ([40.107.8.82] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUK7r-006Ze7-4e for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 02:10:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hMjca7fZGPaMXSmSNImLVFUWUHegVeI7pT+7oIQqs3KvegIbFNQs3Tou8eMXJs8MrSvZRku1kWyf+XjMSuMtxeqFdX7j6sIY6haDvfXnkx8qP7jA9grKaX3xXXbmB4DvkueEfbDItc7aq8H/5jIBMuYkWqRS9auytpLMt+tZKjfOTSNBM2aK4+RDNwz5OsPytENQ5c3L/I6k7KbzLTbVZExgIoaD9HKyTvUjOuz+kkEISf1GB6n0NPpkX9tb6iSsmBHcpfh2ZqTDcK5A3jRw0dJgKqvFLIHgHQ7IfWYutzofgWBqmgLxz7VCoY4kJODwUEND40zvGJl3gJiKUf9FTw== 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=Z6hgxxzUs6gIT25T83HtyTNU5IP1a4BOxy5KV+3jOzs=; b=CwlQ8EttgX6NCgYf75ILKry+VtF6H6rDecVNbLokprhKXnCIzggLXdvRuD4gYYWWDZLliIX/LVwMc0g+Miz6PVMCjLUc9gpNsPbDvCNUIQmMyAxd8Apre2LbtSyMnclYvftF9vDh0+6RNAIrAZhz4KnKn+FrfeZ1UNrt8O89PYJbSGLIP4qvGgjU6UO5QKbyM98pp42TjGhxixkiDiSPFiY7IaAi5v9Y9J3hGbjNAPxsZt+VDu+EWtm2zjhBujASm5BIVBUYBqXGPvE8yF7omDWt4zG4wg82JpNn1Nz+e5fu9KYDs0nfKZkH0KwfQAobooqBxtptJ3XUGAv2Olmt0A== 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=Z6hgxxzUs6gIT25T83HtyTNU5IP1a4BOxy5KV+3jOzs=; b=jImZXxionhIh86YAdLPmCL015lPaaNusEp/dl+It8uXVcP8Q8ciFRuFO5rODOIkmgVYLpfeGg1kFGiv1xuuBuVahOuteHxx6sgxjxe1zw7pMWLdtTh2f+H8H3lwQ0EPiJYsjnrzLKodKyxTpSsPK9KPfl/XvPj1gjmI464ypcZo= 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 DB8PR04MB6857.eurprd04.prod.outlook.com (2603:10a6:10:114::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.32; Thu, 8 Apr 2021 02:10:18 +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.3999.032; Thu, 8 Apr 2021 02:10:18 +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 V3 8/8] remoteproc: imx_rproc: support i.MX8MN/P Date: Thu, 8 Apr 2021 09:54:58 +0800 Message-Id: <1617846898-13662-9-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) 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 HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.4 via Frontend Transport; Thu, 8 Apr 2021 02:10:14 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c7cf626c-626b-48a4-b0ee-08d8fa3374da X-MS-TrafficTypeDiagnostic: DB8PR04MB6857: 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: NWPqSiyZuBnzCJAQV+0DzBBlccbE29yi7GizpBrU/13khSsTF/2B0+nLLpTqHQL250bKXbMTaMB1vBP/PQCKels6owb2X7yfBxihbC+nlmgx/BAe0vM2kEjsD7D0Mjsz+r0js6EF1D+YN9I/tbnFFPP3YiA9M2M//IrHlFYki5I5l7HEcjsKhXzsqriRGFENCFHW633mabdvMjeJmx8xahb7LtL9gOyS8ps1nemMZQfHBuZFLsM0EcpvSc5/RmkrGkChntsvROGL9QcyRyO/RbjxlApou6K2ZUl6NtiUGeZ1/aRpNcezmQfNSuH1OC4YBIS7jMe/Cn1w5QZyLI5eQd9bPe4CLja6IcfEN4VvvyPDYjiVxm1EHKKIwhxTgz9G0/P0sL/43zqoR9U8jR+C6auNwDShAfsUeKKoB59LU6EkBqASFAREcWJLbu4Lkzse5hLW1lXiNxw7plPLBNd6MDwAkJmHRyMqUkd82KwHyBjezUsjLWmHLp+YUT+rrV20tEPNZxTthH1GE5afq6luLGt56KeHr1ZLzXQioUtkzC7yJ+5q3G7FuDxU3NnRSgnNDl+DRB9xM6SshbmjsIyiXLMoMjxw1XvaVxQx4nyuC/dPquaCVCbuQp7AoZPFn1jhxUBBmIGrU8OG0YRLlWb7+ZVLrwguqVKFPuhPveT56XPkkaSEMIDvPda1zxoS4XBjaKNYSOR75nHBuceuZvAlL6ysbjFa6f8z/bxhehHRoiU= 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)(39860400002)(376002)(346002)(366004)(396003)(38350700001)(8936002)(6486002)(4326008)(6506007)(52116002)(9686003)(6512007)(8676002)(2906002)(316002)(478600001)(86362001)(69590400012)(2616005)(7416002)(956004)(186003)(16526019)(26005)(6666004)(66476007)(5660300002)(66946007)(66556008)(38100700001)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: cwdOnGlNopu6zdQ8mmgV+ydsZYvlsNbcnuw7YdKOrdF8LUzTb5VPpA997KAMKOP7CrEbHTac2G3eL6WfoJedE2SHLtU3UuPyjNtNHWj48vbAVwI1rSmVeFvkGsx4Aj0jn/q9dp9qWeuV96LAoZRU/rK8XkxS9NzQCt9+2Lmk6qqE2FyfgsgIwos4WLii6dUKO/P+npobaryKujeQ8l47DTur2sk3vYqiLM5Pa69tCeD3qF6wB0eJZkhfp+9RCkkgqG6CP+yPOprEmBsh44oGcgyw7uGpwwIcbB+3uM8yUXeHFglQPC+PkfYjKeIERx5ZhdUQ4ULPXd3ypEsIlVWNdaAALcCK6SwyQNd1t4xcYc8mQdkPjir9tFo7ekeOih7IFn7ANL+szIeyJLzN7s09ZzIglvPnrQyucv7Ev5t+m74zvDV0ILq1jMTswN5+B8A52DWelXkGlt6EfiV6/u+3fVbruNd/0I2hTjcn9zwhdUV0RWWnbdcQRRMqk7DdyLASzMU7qfxsxRCBNKmtfJ1y+nwIEoJcQc3aHVRA7jWG7VeDujPSKP+xvenkJPkuk/fAMkhM8g5T061Li70hLh5ulvKbY6zz1rO4ptAwSze7jeGDhIhEp5kVaXAlfe91kToDbJZXHEgv0SLU9iFfiCuDj113HYH8Vjq1mnv+Cs6Cz6hJSzDk+wj8i2sDGP/9drf1GxlmhZhEKJTcNUL3/Jbxb5U3zflDAoAwcOROIRpsSUlqPNzl/TdGRwskp8YWiFdn3oT9ErKQU9oUiPN9duvfFWOmz/RPhBnKSgkSza6RO8Mpo/zlihbfoaML4n1l81DlKl0JrgLruFOzycaZxbS/sP0NBm5N64KSYNETOm3BcjwZf1RMzwcVwT/v7zQLPcl056UGMmH4LLDwgFqD75A1zvJuX412JYevK0X4efNesg9zWCx9iYQDkHVvI/TKmX0aHElOXoXFxm+S5kx9KRzRUzvq8gn35OFjTSL5AqEGK2xO2uShrsjPvvcLdIA2qFKtOaXjYdJ6g6iZfrloRT69bqk7GilDOpKH2VtwZH3shgitnfqMxsxVT/VeMAKT2hvpvkMnmnFquN1o1mPI/VAw+AVYaDnPP/XsTMRPOzk0jORtnGta9EhyHOlThk/O2gwwdHqQJRvUbETIpf3zN1KnVVXwYYUKkmdT4eP3BiurIX4RYo83A+2MG+w1ZnAt4kxiUl1+IwgfTrI1xPUH9rWECXU3n0V+e4vooRwzuDOX0PYjbM81hQGNeHMeZ+hdArKw3+FBF5gCX5SGIVlKALNQZzqnNeHJYTWjFbvLBPhV2KUxBw/lepdGulOaE03lvtHL X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7cf626c-626b-48a4-b0ee-08d8fa3374da X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 02:10:18.7268 (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: l2F4oGPCsW04jr5JmjKwpes0wleM4IkHjqTPYgnrAej4gXXXaQmalN+6qFjNz/aUKJCxL959qiIcIqiPMwtJeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6857 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_031036_148389_35DA6FB1 X-CRM114-Status: GOOD ( 15.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index b911a7539897..9351626f09c0 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 -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to enable M4!\n"); + dev_err(dev, "Failed to enable remote cores!\n"); return ret; } @@ -261,12 +315,26 @@ static int imx_rproc_stop(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_stop); + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_stop); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STOP, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + if (res.a1) + dev_info(dev, "Not in wfi, force stopped\n"); + break; + default: + return -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to stop M4!\n"); + dev_err(dev, "Failed to stop remote cores\n"); 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);