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: 417376 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp128577jai; Wed, 7 Apr 2021 19:09:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxbPttPlaZqJDrCTBqJk8iYIZzKF1f4KjyXXmSSztvZMcNZxMFeX1g1OhlskKk/Co/a6un X-Received: by 2002:a65:6704:: with SMTP id u4mr5809833pgf.169.1617847791066; Wed, 07 Apr 2021 19:09:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617847791; cv=pass; d=google.com; s=arc-20160816; b=rYX5i61j6kg/q6zLwjLo/CtPp4VEYv5Vc3SfEVtx/Ka7HRAXK1ynH8vPejNLsNHAOQ z4W5nfRse4n9KC/0Kxl0XvzNr6fFzWhkuOy41k4x6vPxueBYMzj0j/CCxRrKRg6m8KKa FRUhs8K1FoeeNSrffsB6JHE49sSCe2Cu8+IFEzAP5Mxij/d2RIMvTViUUYO7TMpjc9RZ qSxDHn/OsmpviU1pdYrU29LSiPr6H/sWTeGet/VJNLa+90vHXURZcNIl19564V0PD0B+ HnalTi+gj44LzEUMyUrV7GEX1FliVbG8VaQW3dAWk6iFHiowMrv28PdAZXChMGFvr3ja hlug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EwXlKefmrLgWHF+p/zEssQIWV36skW01SSIYJ4rTNLE=; b=uFcKCPcsNqhQBUzpHmhyC/4YF/MJ+QpBUcwJ/RHnP3aYN0Uv239E2TlSfzVcNc9Dqx uArB73ZGhlI0TG39hdPo+YkeS3XvCBp27FcA5F+vUGvEqm+XNZUrqT3Bb/A6wsYA1lz7 PmUh4J1HrkQQgu8bacZe3JLmBOxneuoMduPvJ3i1BOV2501CWp5nmNF+MVk6nMbrZ3zJ TbwxW8gUlOC9Z+bN/1OznV9xknQHKg9o2CP/iSA1FNmVcemeNJ8noYYeqZ3nNi9GacGe Hzv+NOyJRpc+phlKQQsFp7kiuZBa3DlA1IJ7uG2jvHzyYjhlvQT0l0NxNOgRBWG3YQnb DWfQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=BAUQwXT9; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si25878870plh.211.2021.04.07.19.09.50; Wed, 07 Apr 2021 19:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=BAUQwXT9; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbhDHCJ7 (ORCPT + 6 others); Wed, 7 Apr 2021 22:09:59 -0400 Received: from mail-eopbgr40052.outbound.protection.outlook.com ([40.107.4.52]:63557 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229505AbhDHCJ6 (ORCPT ); Wed, 7 Apr 2021 22:09:58 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add an optional property "fsl,auto-boot" to indicate remote processor auto boot. Signed-off-by: Peng Fan Acked-by: Rob Herring --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.30.0 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 208a628f8d6c..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: 417377 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp128685jai; Wed, 7 Apr 2021 19:10:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTHRh77c6vBG6CXnub3kGDsJEI7Jxx1dN58OtW9KQetBvZ71LdJk2NMz0JdyDDqgRsb8mx X-Received: by 2002:a65:6792:: with SMTP id e18mr5985167pgr.256.1617847801575; Wed, 07 Apr 2021 19:10:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617847801; cv=pass; d=google.com; s=arc-20160816; b=BPsYNGUBw7/la4VjgTB9n0amTJqwUSOs0hHCNEivSmIMxjRahk98VO1MiNI6kV63Cq SW9PnyTM6fn45yMhj5WbrZDpeRGagvJuk+NIY6olhw/ooylwG0I/+Umrw7V1U74RtM5n fs/PFskIkAa2ah+xvnNuiSzVTveIv987aosydKYXiIe7JrReWOd7jXp5yrcSJifxjotq 2U8FaDNWDMfZVPdbaZZx83WGWAfbkdbJFBvhGvQEfVLKNbjGRV/anMvoc9P+vybKKkeT +ypJw+PAdfD/nkX0CNC3CJR/ycJuPFnOUAJgjAgbn90pXFXpSnmSYNnCFOm/zR/VXPE7 GrBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=GpSkQDxdTUnkZi54DoBmuWUwyFCQx3+SWd8YixJUpzA=; b=BMzofABAHn4ehlElLfhN4hBd5doO+U3uAAB0yRJS3TIB3MKP6IvWGdjeznlIPxTBUt N2eIe02hc8mqwnQkpb8UxYhruVmJquigkbCtnxW/tCy200oTczbNPiYl1rOqh5erehH/ +9iZQEdAd0Zm5eEou0sNYhg214dUmVEgWXOy4KaVidzCikdyJy+9yUVut3kv/O0g1vdQ 0ntqYFgJmDcXLVRctEPxTzs8DwxtQuJleRnxsS2VVpf3c2cVZCiVajBwfD5DrLT1Mpbb ExhE7l+MME/6Ovig2C2FroQ8tIJTqfDrYxjXQucgpV+TYb3zvlNt+crLojdqiIa49iBt JVIQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EEfzzGxF; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si16150399pla.370.2021.04.07.19.10.01; Wed, 07 Apr 2021 19:10:01 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EEfzzGxF; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229825AbhDHCKE (ORCPT + 6 others); Wed, 7 Apr 2021 22:10:04 -0400 Received: from mail-eopbgr40051.outbound.protection.outlook.com ([40.107.4.51]:14055 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229601AbhDHCKD (ORCPT ); Wed, 7 Apr 2021 22:10:03 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX7ULP compatible. We use i.MX7ULP dual mode and in which case i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. So clocks and syscon are not required. Signed-off-by: Peng Fan Acked-by: Rob Herring --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.30.0 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 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: 417378 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp128702jai; Wed, 7 Apr 2021 19:10:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEJMGOyGJGVMv4wNkRlSzCncr2cq3vIPvBFvemRUCgXF/NBWoRg/h8kNUy8yiNDsgBWGKc X-Received: by 2002:a17:90a:8b16:: with SMTP id y22mr5900428pjn.191.1617847803115; Wed, 07 Apr 2021 19:10:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617847803; cv=pass; d=google.com; s=arc-20160816; b=bNQOJsl78t0vgSADX6jdjQppiKyy4CgrtGhrJCf0tu+5jpBqZ+HPKjm66sVVrxThcA +mUJVd/8hnTHztSTZ+/+5xy95GcOcXP5LAtiYnbvPcghGLiMkrFUbM6jiZwVrhv7M1xx Nv6hsYbZO/wtin2GkgTE6uDnn0mwxbmgVH2q78fAgrbzAly7+X9y6edW66zLpq3q5UEn 7LTU+OdOW1OkizUceLUaspZpg4cU2jfw8PeXwKe6JT1zGIFyC5LksWTiSxNUGcHaLOQm O2sIPwbj2iuke6xTZVLHU/eSHpQCW3w5bi18Ne8EjKa0xpDFHtB3xYB3JV+hdmG/hS/g 2aJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5r2YS1IJ7iZGrBoTfdGtwCXcI68fncREV/Lm1YGhqas=; b=o/Lnha9VWuwhJBOfuDrYgiOmhiH0CsWWx3Bg7kXtAGRORYPzeR7YHwgZE3BKmFXpnX GoCRbrZRPevpR9Xr7TCamHkuFZzuzLjekakTIjSBBV/Yw0Q5gNtfr9JMJQN5Q4l6RJ9a Sf4YuHFId2VMSbkaAkVlJmDO84z8e2C/AYV8rZu5xWnQMMRd/UU9eZKFldxzTeu2wcB9 zRxMr1J+7Y1d9MjhTIbl8/P7uRJ0OZhvEcCvzdmkoXVF1EkWmHRR04Bg2Csay2wZGLT3 VIu5J1+mtsUDTyaSofuOOAJ9oQaxPy0c7/TYPy1HyVe0YWImubREdDDdPSko7+x9BnGt ifAA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hnHcJmar; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si16150399pla.370.2021.04.07.19.10.02; Wed, 07 Apr 2021 19:10:03 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hnHcJmar; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbhDHCKK (ORCPT + 6 others); Wed, 7 Apr 2021 22:10:10 -0400 Received: from mail-eopbgr40057.outbound.protection.outlook.com ([40.107.4.57]:57183 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229958AbhDHCKI (ORCPT ); Wed, 7 Apr 2021 22:10:08 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) compatible string Signed-off-by: Peng Fan Acked-by: Rob Herring --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 2 ++ 1 file changed, 2 insertions(+) -- 2.30.0 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 58bc2a23f97b..1dc34cf5a4ea 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -17,6 +17,8 @@ properties: enum: - fsl,imx8mq-cm4 - fsl,imx8mm-cm4 + - fsl,imx8mn-cm7 + - fsl,imx8mp-cm7 - fsl,imx7d-cm4 - fsl,imx7ulp-cm4 - fsl,imx6sx-cm4 From patchwork 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: 417379 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp128741jai; Wed, 7 Apr 2021 19:10:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxb+GaxqsBhBl8pmwNpixuBXaDyaG42+Hlz8Wd2kD0VbyQ/t2vyTA6whWNrD/pCxFy0wm1v X-Received: by 2002:a17:903:2488:b029:e9:708f:2e4a with SMTP id p8-20020a1709032488b02900e9708f2e4amr4587plw.32.1617847806362; Wed, 07 Apr 2021 19:10:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617847806; cv=pass; d=google.com; s=arc-20160816; b=BHVGezppF3Q9XiILbxujxHbvSvlU13JRxo3cVQLo5jPZe40RX6ye5+bKu6A/A/tHfu VCelc+iYcaW6IM4yfDw+PEI3moMc0QAVlwSrbiKQJWT1jAgjih3fRpDUnmzrHpGlH6/6 MxLzS+o/P0XzpkCEwNDs6t8YogycLRnCcFAbTxaqNzOpoAhxPbr+YoX2K1ORMlXKIFAQ OU9p4O1YAZxQNif58Cua4v2fD9oxMJCe3cu561vWGMsuRO5UoWjM1zd34GXhdbiQ/m51 7aG7O8kJEot1dq0eXgjNXgJEf/eCBPjCex1pjTmAHE1HjYLGAf849zqHXH1a6xebs5hS UYJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=JElioquqRM3seumWkbwBkQc9IvUvCox/SuXmtG2RAiQ=; b=fLyVkhV/l+UUSZddrAUDRmfguYKNE+QLQxTTy2e/DKkIMoKeHC7+94oGEcWm7TS9Wa h/ST2f9dvdWKrfx4JiMxcKWaSs+3sSJC3Rl42Z72dxSPWLP434+kcZS7coeHA0YDTvza RhNvwrCxt3/z+AkqysHcS0aRm6++sRDaW2NlsAmdlHS0nBzEViXCivU5FNA2bznXPEzC IZ3KuGVrElN5f0/ba7AUjkAHyBkwNj53yeW2Bx9vLmHOKJKshd9idF5jXtXpNbG2roJs jF/z+d3V0Nl8cZ5IxPM2om+SJ8fnMBKpa0o0P6fiyQ/SZ8/zDy72DNBkSERgIrIhgLcJ bHxQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Obkk3sl4; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si16150399pla.370.2021.04.07.19.10.06; Wed, 07 Apr 2021 19:10:06 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Obkk3sl4; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229505AbhDHCKP (ORCPT + 6 others); Wed, 7 Apr 2021 22:10:15 -0400 Received: from mail-eopbgr40069.outbound.protection.outlook.com ([40.107.4.69]:10566 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230305AbhDHCKN (ORCPT ); Wed, 7 Apr 2021 22:10:13 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan To i.MX7ULP, M4 is the master to control everything, so it not need clk from A7. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index d6338872c6db..ca17f520d904 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -635,7 +635,7 @@ static int imx_rproc_probe(struct platform_device *pdev) if (ret) goto err_put_mbox; - priv->clk = devm_clk_get(dev, NULL); + priv->clk = devm_clk_get_optional(dev, NULL); if (IS_ERR(priv->clk)) { dev_err(dev, "Failed to get clock\n"); ret = PTR_ERR(priv->clk); From patchwork 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: 417380 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp128766jai; Wed, 7 Apr 2021 19:10:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjcgjANDLz8HtSHiKvW7e4h2dlr/4dnTL3AMEWIGtiIHRQxWuJ3Nm0UM00tROkrQRw4Spb X-Received: by 2002:a17:902:a716:b029:e8:ba45:ea0f with SMTP id w22-20020a170902a716b02900e8ba45ea0fmr5722726plq.63.1617847811677; Wed, 07 Apr 2021 19:10:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617847811; cv=pass; d=google.com; s=arc-20160816; b=xa1f0cfvBZIGrTobr+4IIoBglidodsxN4oH3v/SU8YqUvxATqZDca8DMZkXka+qE99 z0Lp1oq2KBTOVa8JBw9bwvmiRumNIFqRy65EQWImXc9IHhs16WXY5ldfbMIe/gRs0cMh wLUJlo9NlKLYjufi4vLc40iNWZPDEu9t7MLnK2tVNUhMpgN8k4jzN4aqElgwX39ryJvm 9PC9dA0CXTIP1KAFLANsx+dc9pzxDdrvw4SiHVzxhLESVEz1kAVtMXYpTszQoM8+3665 rzFMx41BRReyiWHT+2UZSQ5B26SH1iZkOThBu518ijwCX2c9XgyCnCaXhu1mnzZBITTF Kw/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Lrd3+a3w5VU5RkFSHvyqw7S/H36dGznhA87ifuQCLOA=; b=fj85oHjaf26GFEfXUYvsvmgxzftQk/teXN9N9jQ/+a82lPANkRJkNeqpImSulqGqR/ dXL0huHDT97RrRdppOmG0Q19fVOf5LgkI+PlzBzsg7TNhdw6c8saug4Cj1wf3RwaMTNq PQLOqDUktiMNT/s5PldlKo/ZpVANANN67IP2BeVKgGo1NMfHWqiGy8KXkbkb1eIB8QYT K9IdUoKiYS0ZKDUpsY6ym+4+QqMli1udsB5U+iwJGIAuS7IJBFBFCgSbcMqU2SFThemU 3jaLnYuJnGAPHCEPHnp2pZXo+g468yFmOrIeqJX2sXANvs0OjP/O62FMJ1L3xK5IlYQk yZDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=P9fLYYum; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si16150399pla.370.2021.04.07.19.10.11; Wed, 07 Apr 2021 19:10:11 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=P9fLYYum; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230406AbhDHCKU (ORCPT + 6 others); Wed, 7 Apr 2021 22:10:20 -0400 Received: from mail-eopbgr80087.outbound.protection.outlook.com ([40.107.8.87]:53176 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230305AbhDHCKU (ORCPT ); Wed, 7 Apr 2021 22:10:20 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Parse fsl,auto-boot to indicate whether need remoteproc framework auto boot or not. When remote processor is booted before Linux Kernel up, do not parse fsl,auto-boot. So add an entry to store the working mode of remote processor. Currently only IMX_RPROC_NORMAL, IMX_RPROC_EARLY_BOOT. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index ca17f520d904..c576e12d3817 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -83,6 +83,16 @@ struct imx_rproc_dcfg { size_t att_size; }; +enum imx_rproc_mode { + /* Linux load/kick remote core */ + IMX_RPROC_NORMAL, + /* + * remote core booted before kicking Linux, and remote core + * could be stopped & restarted by Linux + */ + IMX_RPROC_EARLY_BOOT, +}; + struct imx_rproc { struct device *dev; struct regmap *regmap; @@ -96,6 +106,7 @@ struct imx_rproc { struct work_struct rproc_work; struct workqueue_struct *workqueue; void __iomem *rsc_table; + enum imx_rproc_mode mode; }; static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { @@ -565,14 +576,18 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) int ret; u32 val; + priv->mode = IMX_RPROC_NORMAL; + ret = regmap_read(priv->regmap, dcfg->src_reg, &val); if (ret) { dev_err(dev, "Failed to read src\n"); return ret; } - if (!(val & dcfg->src_stop)) + if (!(val & dcfg->src_stop)) { + priv->mode = IMX_RPROC_EARLY_BOOT; priv->rproc->state = RPROC_DETACHED; + } return 0; } @@ -654,6 +669,9 @@ static int imx_rproc_probe(struct platform_device *pdev) INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); + if (priv->mode == IMX_RPROC_NORMAL) + rproc->auto_boot = of_property_read_bool(np, "fsl,auto-boot"); + ret = rproc_add(rproc); if (ret) { dev_err(dev, "rproc_add failed\n"); From patchwork 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: 417381 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp128833jai; Wed, 7 Apr 2021 19:10:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaWrcgrpIK/q6pIolpqzT1AzChRQdywUpG9mlcrRTgOOqapJhTlfjV65buM9llWSTqaJsW X-Received: by 2002:a17:90a:c10:: with SMTP id 16mr5891366pjs.31.1617847820721; Wed, 07 Apr 2021 19:10:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617847820; cv=pass; d=google.com; s=arc-20160816; b=cqrS3YrSCKRenWeaO+ZmSBhA/zrrQ5KTnicbzkyo/t/smMcqx2oxyQQvFHPmK2M+ke U8jS2aQDFypeyKxkRq7e7mc+H6tqKxLRQ5YzTqrs7sRCBh+UqJdef6LmoPGqG3emqs/t LZHu5iGEXgR4jOa6y8QTdscSx+0OWL6GzGwowxNgiDhUPuF8C83RjapVcC8mhGaqhmw0 jqqSq+TbXyRFI4yC8T4bF9gUMKPiLCKRV/hELp72Mht6lxyWVynR+oQmd42XcgIVtlnH x4hcLYcoULYR1me22QyQ1YlO5hHKRQ6uinAPfVBDE2tbRPsDyGjkyKQWDTPIPyC3Honq 92Kw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Hlw6bD5f3VQNDpLGcX682U3Y++HsROQl4hj1JDzYorw=; b=kKRoPf/IRIJl8kWQpbuRSOufIpNftOy6iTSIikwHr3S/UBe/xAwBZE/bgO62kk/mV0 aCy8sGJKOvSWWJJL2U+eeymYx1vBxZMP+/olmOdYgTktbgeaYNF523RzwO70vsnT6eYu LaI8vX7vKy682jP9wrOIU0nTgtEYpL6htmrGdh8fS7JAeM/XvKmngY2SxU3VQ1VcUZiB elPVwsfMixxAR4jLvw727m7vx5L3Zjlwa8xyw1LrLZPVfZ0Gjkj/urMjRgYmCo6tE3Zi 38CtNd6nJkw7QTgMYJaSwxaEGBtU3Z8SLzVB+9ym9YjhDW6Ay7ekswDfxHIC0eLT4evy rppw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=cnKLVyO4; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a28si25574510pga.104.2021.04.07.19.10.20; Wed, 07 Apr 2021 19:10:20 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=cnKLVyO4; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230520AbhDHCKX (ORCPT + 6 others); Wed, 7 Apr 2021 22:10:23 -0400 Received: from mail-db8eur05on2056.outbound.protection.outlook.com ([40.107.20.56]:53889 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230443AbhDHCKW (ORCPT ); Wed, 7 Apr 2021 22:10:22 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add three methods IMX_RPROC_NONE(no need start/stop), IMX_RPROC_MMIO (start/stop through mmio) and IMX_RPROC_SMC(start/stop through ARM SMCCC). The current SoCs supported are all using IMX_RPROC_MMIO, add a restrict in probe that only SoCs using IMX_RPROC_MMIO needs syscon regmap to access registers. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 50 +++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 16 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index c576e12d3817..a7fa9d7fc2d1 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -74,6 +74,15 @@ struct imx_rproc_att { int flags; }; +/* Remote core start/stop method */ +enum imx_rproc_method { + IMX_RPROC_NONE, + /* Through syscon regmap */ + IMX_RPROC_MMIO, + /* Through ARM SMCCC */ + IMX_RPROC_SMC, +}; + struct imx_rproc_dcfg { u32 src_reg; u32 src_mask; @@ -81,6 +90,7 @@ struct imx_rproc_dcfg { u32 src_stop; const struct imx_rproc_att *att; size_t att_size; + enum imx_rproc_method method; }; enum imx_rproc_mode { @@ -194,6 +204,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx8mq, .att_size = ARRAY_SIZE(imx_rproc_att_imx8mq), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { @@ -203,6 +214,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx7d, .att_size = ARRAY_SIZE(imx_rproc_att_imx7d), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { @@ -212,6 +224,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { .src_stop = IMX6SX_M4_STOP, .att = imx_rproc_att_imx6sx, .att_size = ARRAY_SIZE(imx_rproc_att_imx6sx), + .method = IMX_RPROC_MMIO, }; static int imx_rproc_start(struct rproc *rproc) @@ -578,15 +591,17 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) priv->mode = IMX_RPROC_NORMAL; - ret = regmap_read(priv->regmap, dcfg->src_reg, &val); - if (ret) { - dev_err(dev, "Failed to read src\n"); - return ret; - } + if (priv->regmap) { + ret = regmap_read(priv->regmap, dcfg->src_reg, &val); + if (ret) { + dev_err(dev, "Failed to read src\n"); + return ret; + } - if (!(val & dcfg->src_stop)) { - priv->mode = IMX_RPROC_EARLY_BOOT; - priv->rproc->state = RPROC_DETACHED; + if (!(val & dcfg->src_stop)) { + priv->rproc->state = RPROC_DETACHED; + priv->mode = IMX_RPROC_EARLY_BOOT; + } } return 0; @@ -600,16 +615,9 @@ static int imx_rproc_probe(struct platform_device *pdev) struct rproc *rproc; struct regmap_config config = { .name = "imx-rproc" }; const struct imx_rproc_dcfg *dcfg; - struct regmap *regmap; + struct regmap *regmap = NULL; int ret; - regmap = syscon_regmap_lookup_by_phandle(np, "syscon"); - if (IS_ERR(regmap)) { - dev_err(dev, "failed to find syscon\n"); - return PTR_ERR(regmap); - } - regmap_attach_dev(dev, regmap, &config); - /* set some other name then imx */ rproc = rproc_alloc(dev, "imx-rproc", &imx_rproc_ops, NULL, sizeof(*priv)); @@ -622,6 +630,16 @@ static int imx_rproc_probe(struct platform_device *pdev) goto err_put_rproc; } + if (dcfg->method == IMX_RPROC_MMIO) { + regmap = syscon_regmap_lookup_by_phandle(np, "syscon"); + if (IS_ERR(regmap)) { + dev_err(dev, "failed to find syscon\n"); + ret = PTR_ERR(regmap); + goto err_put_rproc; + } + regmap_attach_dev(dev, regmap, &config); + } + priv = rproc->priv; priv->rproc = rproc; priv->regmap = regmap; From patchwork 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: 417382 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp128845jai; Wed, 7 Apr 2021 19:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSP/nykiLsTxScHuI1qR5KMtmkd6ghRMv2ZVacATIv6gKfBXSxT4dZiVRAM5jGlxZ0Q8i4 X-Received: by 2002:a62:7d07:0:b029:21b:d1bc:f6c8 with SMTP id y7-20020a627d070000b029021bd1bcf6c8mr5512587pfc.45.1617847822281; Wed, 07 Apr 2021 19:10:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617847822; cv=pass; d=google.com; s=arc-20160816; b=ZDglNQYUtNc9K58D5Hn4sPJrXGryxDs1ZV3qunkRaeW+KmBnjqWsxSmeH1nAwLPtlT K8/xz6tbnnCLuU4oIZ1Yakb0ubNqlQHvjgpv9Y9DhRRC4iMt1Vfjd+h1AwtHRmbh+xgQ wHd/wAlPenLWYkeTdr933bDHNtZrNYi5oe2mWQBxJtqdiLGtOBGb0F5PSmfnUZ1fz6sw 9CqfAauKgLcJQQ59F/UTogUWCZi7vc1/WJxFxENZN0KFyybMAsV59C88tnRGzHSu13yJ p9fQio1Ea4ZpW3Tev61wguAyv751IM02Gc7QDqQNWAOkUzcnRZeSEAhi3mQKZymVHG1c QKrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ktwdax96pFwXnk6lBfiqoYaR9vkb92hLcZsDEySZ++I=; b=OkgI7T5R+58o62rtydAkWYp95OG6VQ3p22BzzPBfbh89UgkepFrN4ykLpk+7TCpaPR Z1uE3ixgyxhXsHnZOrP8qNQmyhYevr176nCJFVVVMXl4u0ByefpAti/VY1h9lGbxWgtd h/BWUOWuaIVJpuWtEQbt8Ik60xi2wxBonMx2GGWrg5iEakfzdqujkpJP/4hJvEoOlx6R kkSVCD+TB1oNF+yW/669yzJj0+gjVicqjq3/1VM3HhqYzqU0RkkaWIAyvnyOMDLbsOKd r+YH3Ru5jmVIxlCh+g8FPnksdBHA4t1/PmbcqHRo60aOpVYsyDpsnfBhkIOPBUNBJ1Y+ DIhA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=gzKkTCjy; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a28si25574510pga.104.2021.04.07.19.10.22; Wed, 07 Apr 2021 19:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=gzKkTCjy; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbhDHCK3 (ORCPT + 6 others); Wed, 7 Apr 2021 22:10:29 -0400 Received: from mail-db8eur05on2042.outbound.protection.outlook.com ([40.107.20.42]:24544 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231144AbhDHCK0 (ORCPT ); Wed, 7 Apr 2021 22:10:26 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index a7fa9d7fc2d1..b911a7539897 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -147,6 +147,14 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { { 0x40000000, 0x40000000, 0x80000000, 0 }, }; +static const struct imx_rproc_att imx_rproc_att_imx7ulp[] = { + {0x1FFD0000, 0x1FFD0000, 0x30000, ATT_OWN}, + {0x20000000, 0x20000000, 0x10000, ATT_OWN}, + {0x2F000000, 0x2F000000, 0x20000, ATT_OWN}, + {0x2F020000, 0x2F020000, 0x20000, ATT_OWN}, + {0x60000000, 0x60000000, 0x40000000, 0} +}; + static const struct imx_rproc_att imx_rproc_att_imx7d[] = { /* dev addr , sys addr , size , flags */ /* OCRAM_S (M4 Boot code) - alias */ @@ -207,6 +215,12 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .method = IMX_RPROC_MMIO, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx7ulp = { + .att = imx_rproc_att_imx7ulp, + .att_size = ARRAY_SIZE(imx_rproc_att_imx7ulp), + .method = IMX_RPROC_NONE, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_reg = IMX7D_SRC_SCR, .src_mask = IMX7D_M4_RST_MASK, @@ -598,12 +612,16 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) return ret; } - if (!(val & dcfg->src_stop)) { - priv->rproc->state = RPROC_DETACHED; + if (!(val & dcfg->src_stop)) priv->mode = IMX_RPROC_EARLY_BOOT; - } } + if (dcfg->method == IMX_RPROC_NONE) + priv->mode = IMX_RPROC_EARLY_BOOT; + + if (priv->mode == IMX_RPROC_EARLY_BOOT) + priv->rproc->state = RPROC_DETACHED; + return 0; } @@ -724,6 +742,7 @@ static int imx_rproc_remove(struct platform_device *pdev) } static const struct of_device_id imx_rproc_of_match[] = { + { .compatible = "fsl,imx7ulp-cm4", .data = &imx_rproc_cfg_imx7ulp }, { .compatible = "fsl,imx7d-cm4", .data = &imx_rproc_cfg_imx7d }, { .compatible = "fsl,imx6sx-cm4", .data = &imx_rproc_cfg_imx6sx }, { .compatible = "fsl,imx8mq-cm4", .data = &imx_rproc_cfg_imx8mq }, From patchwork 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: 417383 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp128891jai; Wed, 7 Apr 2021 19:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8TLx38fvaShKdbuU6khEU+vfCzRi9XxNkFTilS3RHi4FXiF+/mypsaPPIdbuchrxupiAV X-Received: by 2002:a17:90a:4104:: with SMTP id u4mr5884789pjf.81.1617847826607; Wed, 07 Apr 2021 19:10:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617847826; cv=pass; d=google.com; s=arc-20160816; b=r0XZWDIEIu7sOlQk8w3RpHVGK7b//oluDjtXj/AlVYCPqf0AoqLw+sz+4c2sVcHVA3 2c9RqiiWUVQbHp1XX5qLE2eZdkhSzexNYKMDN2WmXOBipiLD5QVudiHP4xl+06/XPPgW UO9Aiz0GEuSaFVdupZfkcFKyZmOtH48XbYkMKpllLMCQ51jTpsou4xb4gj8VFRHak6SX fuxV1GZJpjxGCXaaJZOu7rbHQvkwswgtkcrHqnSzgtIFuOGsqOwSLXqaUnN1fKT3Nglo l/OT6Kbxv2/7yyRGLjdr7dwbu/awzImnRzvKDyEsY2K7keb0KXtNPJb2Kjc+n9PCgVKl jRJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Z6hgxxzUs6gIT25T83HtyTNU5IP1a4BOxy5KV+3jOzs=; b=zWdDTwt5vyMcyL4B+zReRi0iLUQ06HZC7CiD0qIUp5oQJS5MQC1OrltGjS2bizhedR pRx0H6xjkqfO6U/Q40ne8iUvSspLNnDCgtWGsSqprrutHAJHrMgo/LBAKZNBO2pSjZYG ILdiusUIgKzTo0XfyGbpXTVg+NZwIkbBB9knkCbOr2gL8KAUv9qU/0DEoagkwfecrlsp 56vxmiJNheezXEqjTG+zQ8QIjOxFXuqWwL4CXqZlvf4onUzuLZxVHkK+n+vSXXg4wHV5 UgaqcTyzZBRAwcxsQqDAOiUaEgSw14ZI2AgiTIzDGXKg+wxOnGpoKiw02uHR0XENCAvm Nstg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=jImZXxio; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si29232427pfc.159.2021.04.07.19.10.26; Wed, 07 Apr 2021 19:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=jImZXxio; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230305AbhDHCKd (ORCPT + 6 others); Wed, 7 Apr 2021 22:10:33 -0400 Received: from mail-eopbgr80070.outbound.protection.outlook.com ([40.107.8.70]:48299 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231172AbhDHCKb (ORCPT ); Wed, 7 Apr 2021 22:10:31 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) support, we are using ARM SMCCC to start/stop M core, not using regmap interface. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 89 +++++++++++++++++++++++++++++++--- 1 file changed, 82 insertions(+), 7 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index b911a7539897..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);