From patchwork Thu Apr 15 13:27:34 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: 421770 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp484704jaf; Thu, 15 Apr 2021 06:42:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmW4A4SrNKLyu2+T/kUP1lbSE3YXwQFs59eapvbuWvN4UwzFxRUzJiCwo+ofW8IV5fr77i X-Received: by 2002:a63:6ec1:: with SMTP id j184mr3503689pgc.364.1618494178362; Thu, 15 Apr 2021 06:42:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618494178; cv=pass; d=google.com; s=arc-20160816; b=0V5Ia9ALphXn7MBxq729btr8fRkniEU116QGMlaslonk1NO6yTUSM+Iva1GJqR06G2 V8o/+Xgtxowe4WMUkjO7RaRBFo25/z257K8ARqlITU7Wvcfg894bDzUL75bWNOEwRk40 tGYVVP6HgooxzTXD0ZZ4QQsE0IP3FulNnKW0/kOUZXHi39JIKTOdfbpl0//BmTIye5GC Z1MsjJHN8nG/KbfU1kLV0Km9g1E7XYpk891UEJkiFwYgMS5EuW6qWATR2aw58Geo8cRB GiwshfHZULOcrasLq4hzFd1mECRYlos3IoxvTHZfqtvIUleVTN46Or7MNDrY5VrVtSdE ANDQ== 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=dReEWMdehdCpVzfrIa1Lb3yOHoY2w7FEariL+JsEGCo=; b=gpuZVRksFX5h6K/jtgiH8gMXcHxHHJ1WFeQWuEIkwyWsIaW3NypHF3YzEN1gOloTe+ GLRKGY7KE/Y+eQysYG/wf1Q8JybHkGPp1bpbvHSe7vLoo9enGm1xWbHK377sqUl/rjkS iR9TdVsR2tMmUHiAAf+TYXm3rHE0y03bvt2M9gVsyJOlqn0PN2upArPf6bJaZ50YhTAR y25pTbAdvjZhNK43VSW/YE31y/+nGW9AN5ZK3eO8k3DEF/kToap5vsua3qT4GneLGo5o Hfyupq02Gz3RG3JNGc6xrF6pvSjJWI68Kl7B6tDRrYKCZ8mEC/+t+ieLyc6BelMGVxny JrkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=UnVlvu+K; 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 k7si3338224pgl.450.2021.04.15.06.42.58; Thu, 15 Apr 2021 06:42:58 -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=UnVlvu+K; 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 S231137AbhDONnS (ORCPT + 6 others); Thu, 15 Apr 2021 09:43:18 -0400 Received: from mail-vi1eur05on2079.outbound.protection.outlook.com ([40.107.21.79]:14912 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233098AbhDONnO (ORCPT ); Thu, 15 Apr 2021 09:43:14 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G6kW9cjRp6BMIIZjCxnE/ATMMArtkYnBzvuoJHfICPJzt2rmN1NApLRQ49DomCN1sk8POzIcCMfYJJG7u+6ryq8B6KsxdEYG/RVfsj345FdXVth5Yl6Qb6yovZrnXGa5Ijh52bKiws5beplIHQHY8xdtRKPIvjaUmcDg3pLahTCF0zTiMMnQ4xeoUpyZKbta4K8EAFOk0tuXQLoZF7c6VOlxyDUc0dd3ldclaQd0fNeN3nN5CbjzrOyOxyhF2ULdygdfUN2e8WvvgQ10o+ljtMqcW2mktTp/W3avlxtASEbFl4hhBOXw7IGfnsUYjTL2njqZsbloTpGv7TrlLaCvUw== 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=dReEWMdehdCpVzfrIa1Lb3yOHoY2w7FEariL+JsEGCo=; b=UZVJERBFKlrYnUZMaSToy/f9WssPPOmhrL7PhqNFQ2cOQvt1uXRdEYmtzxujBoxhK45RQh8l442f84H5OHWoY1+HvylFG4cPopp4jhEF5AnhhtKYjCkBkw8XfLKXw9fuFBv5fH0QuIn9UBWtSUanDscMHBq1zRApxGUh3JitTvb224rGueRvVoXicur0Aen9OihoRht3LE9rec7s69uxR/Mt6l/x3mp+whz6LmwG0XeMwmfajXd4LsB4g/ghP9rMtHUiqWaO9/Unn9KtW6F8rMpLRfRNlJ4b7oDHmmtF9e+Hv1qxeblwoD5JePDYd3QHy+Cw8Gww4S6/anWpfx69lA== 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=dReEWMdehdCpVzfrIa1Lb3yOHoY2w7FEariL+JsEGCo=; b=UnVlvu+KX5u4aZ/C7huEsqze37KkB53xDrdo9I2ObE+l+e0/mpkvKRc2jbZySgvaiwaXOQK72M/oS2KJR4A2qpIAYPXNlVmRPAFfh0YlU1FPPsUPd6g8ENfKHys0r1sIxxgEv7Y+k3rdzKgvOYjS77vODryvUQ5paNVofAyAPxA= 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 DBBPR04MB7817.eurprd04.prod.outlook.com (2603:10a6:10:1ef::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17; Thu, 15 Apr 2021 13:42:49 +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.037; Thu, 15 Apr 2021 13:42:49 +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 V4 1/8] dt-bindings: remoteproc: imx_rproc: add fsl, auto-boot property Date: Thu, 15 Apr 2021 21:27:34 +0800 Message-Id: <1618493261-32606-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> References: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) 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 HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 13:42:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f0870842-b06b-4fb9-9d2b-08d900145bf7 X-MS-TrafficTypeDiagnostic: DBBPR04MB7817: 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: mf4zre2zi71RpzfK7jjmUGdGQcGKwHhyZtkozkH/LYaI/4LP0O2BQMhZR8BX0UhPDi5CzQaFLXpCkfuiljIeII2MR0a9P43J0D9YMT4ge7GYp+F/SAoV6f02k9zk2tRMiGPh78DE5rtT9YwEg+i6HBXmMggdcx5AsBpGCx6DBgCadUvA7e2LQ31m82xcohVNqdMs9fU6RxdCUdqns+cculg+hFBbJUJxvH+WYGAFuo1Ra09XW7pdBZBWBndQFiJaFqGAsVZOEQpCRANTalUlYa2fc8CsvT39VGlUx2VzEJwNhVgyKXURKSHpWpo4h5XfsW+AyRkDPCfRwwsMvJylW07Qfz3TOR6niXOqOJO4RypZfQegwuEsCPmOcpY5nd6EfKaYg3xEQ+KDb2261ScUmun4zHms1LOIdzmFXChCsL6YpEgclvQAnVD9qrgTBUPirMUEgTPTpzFKEnqnsu8vpSC++FA9BSpKcuuhCd7HZMdMCFz3jFEO/88M7PNxxjmU3zmCJiMTq+RPEiyeJXVMNP4RfMCLdQ4Go1G0qZEOtdMtbwAmuDTQvdr0p7UMUxJRVOhyf1CP09Pdlfo3B62qNgsEKSGvFM7xK85HtGYmumWKQlvSxXgpHx62kbOmKX/wqeU1jLxb/D5JU1YD9cHfGGtybZIhJo8vtJJN6XAz/WqYF2v+fVVjcVoewMxq2Imm 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)(366004)(376002)(136003)(346002)(39860400002)(396003)(26005)(478600001)(6666004)(8936002)(4744005)(186003)(5660300002)(4326008)(8676002)(66476007)(6506007)(86362001)(83380400001)(2906002)(66946007)(38350700002)(316002)(52116002)(16526019)(956004)(38100700002)(9686003)(69590400012)(6512007)(6486002)(66556008)(2616005)(7416002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 9CMwFXhxxBYBVNu5dSU0nmV/5D3ObRjz0DjWhGCiq8Dy54oVDRw0tmaj4V1HxgmG+XwgomZnFyXSeWv5Sm6xcGDBBLd+7AKhcZs2oH57KCd3B6SEOGDnFL1vaOmOHA8lNXFqFGfhPbaT5xf2GWMyN26zrTEeKub71q00U/I6zsdJ85qTX5MxjBm8rFXi3BR5zZfdwVNkk6jrb7IqjgIUNJ/DifyLs4leP+9VLK3Z30IJDsN5UfP0ipHcRpK9tzAs9VgyF5cmh1u+DVl/kb4N2KEqznLIJxi7Idy13k1ZSxIrgyn6hdTQ0vpAG3hPbWqzb40mIfk69960uS1NVV37tlQqo5Em0hEQNFpao0RSRnghtoF1As1QSzRo4y1uv7s2WZrPxKIY1tsNI+ICxIHyWLbx3dgXn1Cv5vF28MW1DU2MWRbSBBbFdsNILEaOmYLwmInm6pa4Ehc5kmwH/4QyTv3upBY3irAFlaITtK+PbcbxcIUg1t8HFv7vRDFGLcLflaYBajm9jL0uAShGqDnKdz07bZRArWJ+VVqQza2WaPP/PrrREND6kbUVjIgfCHkO18P81hU3/L/RkvZKcyBZtOQr5TRJ9YuKZ+oys+pKybNxJhyrJ3A8quG/gzesj8aJ6m4dMMv89IYgORrg+lwzciHa2bk3hugIy1kfuhZdG5oWqLGVcb3XArpqhUNK7+OxxUISNy51JwFd7PmazYrgZpGnhYz9YdrIGhp6ZDTt9eSYyuhrzgshc6/VU59KxDMUpw6zS20XQ/u50kBO2+Sl94yyoBK5eyZB3UuT+7DqGI1YyMZEqqXXxYSZbvTUaw9+0FSAo7dpq2jBjaMw8sL0wsjr+pLiZR+oQc5IzuNShrEJLmBv2gPc52xyzBDFuE1fnXdEj8jeDBI7tQhkXjfI54nMDfw9yh/XxdsEzvzBu+jpR7iWyIAaiovkzL8I2Y80sAQd/Upr/d0LmxlgvVBtKodxaqqPbHRMcRWwnkKz3KQ1louc9Ajy7C0ji7ezytmTxZrOGQbJw91L/00XqxtO3+ZQzeJmU9zPtZii1uzXkLrXb4hqXkdBfzD6FzL7WkHBoMTMYTLkibZwNOGfRG00gJPSjYKideB9Y3+dp4FMMWvWSFGR99W2vcVZvmJuiu6O/n1RZ0i7iiuvxLqsK4Z4QIXtlxXp3Jhxd1pk995xSLhet5PqujMTWVNUmUq/RYrKfxhrI0peqssFbRcGdLFF7yot7QduFtY4/EvhT7pXFsHywIlyjDcpy2xTVOq+gKJUCCkmijrzoWRF4PXbqao2Q7BAVdjKS9i9haGc9tdgzmXm9pFQe76jrKA4fUP0Gqli X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0870842-b06b-4fb9-9d2b-08d900145bf7 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2021 13:42:49.7153 (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: FD3wL55QmgKy9pgxM9FRTwEKjL4Wn5eVHVenyW2xlPs92KmZKBJNPAB92WZQaha/rIZQHdvp3RwK5ORiT5yVDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7817 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 --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 208a628..b13bf8d 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 15 13:27:35 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: 421771 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp484736jaf; Thu, 15 Apr 2021 06:43:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2bp0nJDiodMHrom0lBQ9uTmmzJN2BIed3oFn3a1yTmGgKJ6Rlqwx4gVpPOEpvjJ0rMJgS X-Received: by 2002:a17:902:714e:b029:eb:a5fa:3ad2 with SMTP id u14-20020a170902714eb02900eba5fa3ad2mr88393plm.44.1618494179941; Thu, 15 Apr 2021 06:42:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618494179; cv=pass; d=google.com; s=arc-20160816; b=Qlhamg1bBHvWQGJ39GW/cvUI+3+nn0AlEVaXfXdxgRiXYVViM3jcZOOaJXEEKU7DvE moM52zCwnc4KZQ2+kH5IcdWFl3Fwtrn/JmMktSibAQ5CNRaien6IdLnc5P5uuw4Lb/Ux S5UkabPeBsNbcTAMIvLmZEpZATfWPQh+B2BpV3ZQM/QJWRdZAs+MweMnswnblUasUm5E qnmfqqT+31zRaK/+gB3ufN9wcGz/V3HfIy4rbqCPLzS5/7IDPAaT/RFuxwknVIHVFRMK 8o61m3bMib1EOEl3LOFWQw/h47nNhcFiFZqbeC4tRRJuPW5T45H1oBU8c7+bodJMNb43 9GTQ== 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=BlD88/0c9ab9quV+OK546f4LXfr8I7iAGXLdNQxGNmM=; b=KctzNAHLB14HXahAHQ+m7+SmmecP0leDnAWjbmBsOMwBTG/FcCNIjW0tsbQC6FgO+H I6ceXdpxcyg6twa9Dhn/vCdvrkgGgUshYuRSRoIGFB3mkqGPnkQ3Azb6CxlmLjhjT4i2 XJ1uy3PUtm7z+jyA3C4n4vZF5+edYfppnaYtwDY72aeeon9pdDawMly+DvMqH/xrzIgu PHWbpIIhtTNDtIKt3rgIiP+4DT9BIvVl9JymF7KhBH34PEZ3Gs1G+wNwwN8pVEHqUbey hy+bHQkcngJx5VUG/vkHd4IvoRHil6ss/rbnAgeYhn9SlPY7T54Nb44oIz4y5My4mXWA lCDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="k8ig9/ia"; 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 k7si3338224pgl.450.2021.04.15.06.42.59; Thu, 15 Apr 2021 06:42:59 -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="k8ig9/ia"; 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 S233098AbhDONnV (ORCPT + 6 others); Thu, 15 Apr 2021 09:43:21 -0400 Received: from mail-vi1eur05on2070.outbound.protection.outlook.com ([40.107.21.70]:15552 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232954AbhDONnU (ORCPT ); Thu, 15 Apr 2021 09:43:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MFOPjhr9OHpBOwP9ULF5sIk0JbqLqRZ4HQjJE8P0zsRlDe64BKb8iuEcv9Kv0gZJ35uEP6lIDRFei3R1t7QgK/t5qdIqtHgBXFX8xTCDuK2jnQEmIKJm4O+ZaBnhwXA0c/eFnxyfzWbrqnc7ohob8i2Ox/mGyFnhlRsTJeyt+HlUT3GwpaIrI9o60NAr6wToKrEqGWCJdVOInZGm6tMw/UUvxNGVCt5uwORHfWVu/BHY/ODF4QcNx5cym4+jWmiZHL73fJbEvL1Hp9rg7Y3xWf8IwFLK3uu9f3aVU4IkwuFq9BuXraPNayNbCqKIpDfhQiTL3DIfyAfPfnUmwNO7qA== 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=BlD88/0c9ab9quV+OK546f4LXfr8I7iAGXLdNQxGNmM=; b=Q6ot3KqtEPHKwFdv1cb93FRrM2RiIa8O/2oFI+oeyQyL8/d0fptnI6M+mkotk+gn7s2TSIlyGtuEufNFuqR+wMKBWtmiLAuF/UxiAreBHlGZCjg529YPOlmUk4nHznLqK7+7t0txakiQT/0OCEgA3FnhRperAaUyRD8CNClmwxxMZ/H2CA6iijC9jc7Cxpqq//PCdJbMIx352QJk5YimZNx+KbhH6fmbe+ONs+gjTNRJPky3otXO44gONbg6iAZavwWV6veGQ3Vg8SYXvsRgMPad0ksXhYt0h2wJdvuT//QcS9AzsL7k2WiXJWFT4USqT8Sv8uCoREJGkB5Dk8xnaQ== 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=BlD88/0c9ab9quV+OK546f4LXfr8I7iAGXLdNQxGNmM=; b=k8ig9/iaIv+e2Cw+9cc4WeFY5zOVvxTcpgc/GJB9mlA6vr2O/89DUoif5yN8zusW7ZUTirCuHURUBQza8S+GOOhzK0KhxqY3s5v3cvTK1pI9lV1hQqczQzZg2FSwdhNNqBg5PE//X/igPozhVt8d1kzaM1FsvkkBYH77Cgbe2/M= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none; wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB5241.eurprd04.prod.outlook.com (2603:10a6:10:1d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Thu, 15 Apr 2021 13:42:54 +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.037; Thu, 15 Apr 2021 13:42:54 +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 V4 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support Date: Thu, 15 Apr 2021 21:27:35 +0800 Message-Id: <1618493261-32606-3-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> References: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) 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 HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 13:42:50 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 194c3196-8778-4c10-3566-08d900145ed7 X-MS-TrafficTypeDiagnostic: DB7PR04MB5241: 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: pMsFu/UlRLKTzO/VfOr19TN47FQ++MM6NJHxO59wUumMtZ/cm4Mrlmj5+uPAsNBdCRH1WaNzjCgoASTu31U2aAWMhZRCH4BXwQ9fTNkhvEvzRTBk0ZvJNncBM0Oc0nxONWvCbYoe3HP7deD4EOFDsgBW5iRSPAko8wgO5UitT/CfpPFrajadnlwxxq9e/E8o1KsCBz2aBglYyjYYzSpWn1zE6+Gp9mmKb9vXWWex1sg1Y2cviNJaCf0/qPT+hWQgnFQT8qcq6UA9f7LB+voPNDVGEz2JWaHf0oOr9XXRgg3q9rKVU1NFwdtbo7DubzY12uAAzGTfJdDozUxaooZyCU3kHuYSs9Nuzwo5NYXbu+9M1kN1F9AgtBOn3R/t2Ysn6PTKyMzWL7RZUx09pB3uiTaHXmlVdEbwGrljBpRG9y/8kjmu+2RM4BSH9cBcS/pzDWgyv6vhwd66HfrurV/LcsQ+s0MmodIu791KFbAqJKs5irDfqi5IOjIuaszj1dg4r119WsXj90lPpetC1Zeuc1s0YItwYUdk1PatMl0txTTW2K9Ij7vpBtmqF5EwLhOkCYyzu0mlKnIYt8eSsmddhfwPlBGngphmjXqjxDKno08M+7SO7l0btEsRjgf40hen8/Yu5DMnsI2IdmfKPMUBh0ovcSPKEp6KiV8rZU25zH6/jj2L/cSonbusA0+uAidC 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)(346002)(39860400002)(366004)(136003)(376002)(396003)(6666004)(6506007)(26005)(956004)(186003)(8676002)(16526019)(6512007)(7416002)(2616005)(4326008)(38100700002)(38350700002)(316002)(69590400012)(86362001)(478600001)(5660300002)(8936002)(52116002)(66946007)(2906002)(66476007)(9686003)(83380400001)(66556008)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: l/xUQl0hsclXJW03Q7EoNCGrZE2yaa1loGhhwmllAQoponACDZgHE93/mbZgtKeGtVrcnnzbQS3wKNfNE1h7y7h3CTJrdTwmSSHzUN4LLRBFwCkxMeXiSc8zhfQ+RCPX7dW8vmPuGqdFr++foDzf80nGpf8BCuPHO6zmSnP2bwb/pNWpV3LsLjBFMfkgw1Ky0JuY8WFBxwC1Lz7I/2sfX19kUu/AYjq1SkOda6kAFwyWFOTWmglM5hExFlwgIwyb4IOUGdxaqwJglMZu77vXlFEre9+Alvu52euZ07PLRxz3eYM0XgLPPmZcOUhACkEgpJjGpXme1cfhCkVzTGdg0pjr+svBVenu/xuUhylqAs4UtdaCy2yRvrPLkp+Wg9MOTMR3QhXnQBzesn6Sta8+79g56Ho17EWstkXXNR8Ad5Wg8Bww/unjNQqoIli/NrcQtPcvK68ZizIk/N1r2R6gZcMU87rc8OdABb1u2gwlJol2O1/0295zT0GEIVnwJrOnb5i1FTcybLOTHRWHBDlOSL7L4lTUL+QYpI1jII2aK6+J8Do+m3BZhmqHpKft+iODkb1eE75SMfRXIQLovZ2SFAh/jZ9QK4Uvssvf7Q+tPBhwyn55FNt5mkcCUQM/9LUNPEGPDhXRjCufAOm+On25i2UOSg4W5JknC2p52JUconqahL/w9XZOAkMY4JaDLrCKOn/8ezWgHBwIWqXiukOa8/tYpoqDPOkDOV2mHUw46o8dAaODkIED7/frh6AviSAROhfkbpgwW2msTQITmXi7Gyt439PMSezwyZR356heLQh2Y3MO8b/eODhGpuWTCWVciY16NkqXTMQOyBbWNon8YIsUF4EJTzPQRkCnl3T0BGzlg0NREgh0u9QTWqRhvPBHETKWgzuuHcmMmwAhBBGmaUn2eflp0NUPUNXmFgXi6OZ31+UvHkYQzdVrR2FHkK+WBG1ofN4bAC3RMoLXkwby5CwxDxHGLWL4IDvHtpx6lOMTgFLgC3of1NNat5uQjRkoiX8Iev6ujhFAHDcuePQVsp6lV36idPeScR3KpHvzAe9w7IiOkmh5WnJWIJw2PpZD85/iC1wkassAMXBZMRc23kQZSt/l7pw2o/LyrwXCxjq3nXSqeSqfvIyNFzYytIag+PcmjgNyfvo1dptvjQens6jRKOhFJ5guwtcCqV/Mmmu6fnNmDFyQZ3YgfSucq8QpHwRxbyMmAzPrLJaKSynpq2exxsVAaVfywvLL9sxDxavROFCV6igXVXBpFDgUklpEr64tjyWC+WKU1/mPvV+jjSNagNQBwg63hI1ZezslGKDf/wkGSXW+Jze65QGUj03Q X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 194c3196-8778-4c10-3566-08d900145ed7 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2021 13:42:54.3832 (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: Hj9E9Fc0Fm+LHWuPhg5Cxm+lMbQdW40wMiX9cK/AMlsGQvM6by2IC2FccuKgQ6B04SAsqUtGuWRmKoOPByYauA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5241 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 services used by A7 core, so A7 core has no power to start and stop M4 core. So clocks and syscon are not required. Signed-off-by: Peng Fan Acked-by: Rob Herring --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index b13bf8d..58bc2a2 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 15 13:27:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 421772 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp484802jaf; Thu, 15 Apr 2021 06:43:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrMH10Zae9BABw7E/u+ud61Sc6woMeu3TZCFwEOnwl+YhWbGjFAhMs2wcS2zd4LqLQdZPF X-Received: by 2002:a17:90a:156:: with SMTP id z22mr4190425pje.181.1618494184770; Thu, 15 Apr 2021 06:43:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618494184; cv=pass; d=google.com; s=arc-20160816; b=wKCsTF8Ejxrf+xo6CBzjGuME1S9JtaI3LfpqkNi82w1oMm7FLz7pGMVxNpehQs52h4 8Y9fhnvff8Vz80ysqd3UnjQ32x3yL2RBWie2kI0LU2AzWY/hsBjGW0P62dJUNXvqxW8p /E6R8YArRNHduO/evzqxLI7NIbPQLfIq0oGRe2+UXtiFeatGnKEldvi+oAieX5+UxBt7 EoNG75NytK3qtbzjBId8HxfVY2Qj7IlRYzIZs9AIMK/upGf6P5KZdrB/429NgSpsrDYi IlS8p8EOEJHl+nQXkEUY9Lx8JCYBa6ViWAIAEY7BRsGf53nrNSJm7V9pjWbIm18icZvn /YgA== 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=WbvBwEEshcvEkPXdSYU8hrSY4625DSWsJaH5UrQy6bc=; b=0rFc4OEJO8w1dQdU3P9YJR4hCUC9t4jqqueKgDmtfVIPCIiPoqVsAsFhu2sCLsF/mD R2GOpw1Ay1mr5fo7dR1JH2VmF4AwWhmVSxpmDowdQ77Eu39o0sFmxvNAV4S4tVc1V94d L6FD48n319EW5cPB/OjK9qkvceIYya9KHCiyPX3QzrI0TNVxFHm/zj21sL7fQr/X7I9X rPG78AqCa1hyPj+Wt2ugoSobnMsk0PDDzHNpf5cHfDUdDc5bFCp/CL4voPfum/jW7huY wQoOZ1IxodUW03eO1eUnmfAV0SG6Uha981XibTB/9UcpIcTsLkXfye4orPTNfW0/140A gQbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=dn6KYQn1; 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 k7si3338224pgl.450.2021.04.15.06.43.04; Thu, 15 Apr 2021 06:43:04 -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=dn6KYQn1; 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 S231549AbhDONn0 (ORCPT + 6 others); Thu, 15 Apr 2021 09:43:26 -0400 Received: from mail-eopbgr150082.outbound.protection.outlook.com ([40.107.15.82]:8918 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233247AbhDONnY (ORCPT ); Thu, 15 Apr 2021 09:43:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h349RSEmaORxI67TZt23CbesiQ3so0E2utzm2kvJ05lClD3iMThZZiEzGHiWtlf2EqMIllYnVY2kjIOkoHnoZQ0yDHlsaORblLoyGZVjRIUE0Hgr8Amrz2e5n9uMipXNNsZ7CeKU0u7bdMsOelKGiebdebHbGPNuEH4BUIGhD/Y6pI8oXza5xqD05MEp/x5IOssbPNFnODoTNCjLM6pmhRtfbKcin7AxzV0OW1gTmT4zFpkUp/PzdGt+8jjKln2KzLOtQlW/DmyZT9tP4kHAIu3U1EiiwWKqrG+iOBEOPp529yWm+of2RPGdYW7tFAW+kdHyAOrEhCdHH98Puf1E/Q== 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=WbvBwEEshcvEkPXdSYU8hrSY4625DSWsJaH5UrQy6bc=; b=TCP8MLrhbcskqLbb2ZOahC0+es/RQDUMYamX8gtHzKjGavIEw5RdjXd8O6qPmaX6iSY7Yzn7BumyiX90aYC4yxclBaBVqaABj6+vqKmQ/qzazGZ16ea51ayPnykuTjcbdpvNcll9GEVx2rN9FLO6wtze6aSgM+ZJKJham9X8bPCt3QQcO9JqJNV4C6MbmfdCpWgrr202GpN0oHxQ4mdMJu7SAPBO76DKWsl80ILoVsqvnJE0r0NIlBC7ru3EMM1ArnHNMEQ160Ivjt5p/LVOTyyumWHoWOHY2YocdqnYCcgo0FTy5yW+Osx6zlhmObI2loPg6WuirI9yqUZUkvdp3g== 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=WbvBwEEshcvEkPXdSYU8hrSY4625DSWsJaH5UrQy6bc=; b=dn6KYQn1/8Aaqwt/VWM1UpOGxcFY9rWct3qBE6ZpByBPJ1YY0ytN0alxkvoZMI6P1XcKfPJdtpMW5irka0S3QzqdPULTIvhdgtYs0KO/ajY4nc1/chSkukj4WYdyjwu+guNIQ2r4/Vm0rnzuuJwjMS6t7xPsXQeBKz/NImWkdTc= 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 DB7PR04MB5241.eurprd04.prod.outlook.com (2603:10a6:10:1d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Thu, 15 Apr 2021 13:42:59 +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.037; Thu, 15 Apr 2021 13:42:59 +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 V4 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P Date: Thu, 15 Apr 2021 21:27:36 +0800 Message-Id: <1618493261-32606-4-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> References: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) 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 HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 13:42:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6c754eaf-927c-44da-599a-08d90014619b X-MS-TrafficTypeDiagnostic: DB7PR04MB5241: 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: tt8IKQUnY+GQ/6dfhNxKGCKx/ybtZXbgKiXoHQym58r7WC4ylNC+9ieVhGlc4bJj6/PBwf+shHQ0McCp2pyocSnDT+c/j07BaDTGk7+foRaUleMr5sdMZgMITWn55jPPSBKqki4okwcZdkf57fDpH0Zr9Y45GX4zZyXiwIxGD3fh7WNWZfCd1cICdRHwIJEbEgSh9+F9A0Z5dC2CDx5BL6GOqfqaK9og1ebPm+3LavLfIlcTQwLM6n1C3qnCNYEAIxTFfzkwFbvgvYWBK4rgkjC0lUnM0V+apxH3pjyj836BEPGo/5w8Ha5EG6pAetkX03+TClIZtWgpYvzAtyjv+PFjp9afNd2QtDuefGb3CL77X2tdI7aes6PFbK6fvZaP0h02+POru97ybfl5rWQqBM/7Z67U/gt7/7q2avTqyetVDYDP40qFADpdcIYLT3f/6aa7f0UBBt0+YVaimHNPotHmd7J0XxgzBQ1GQWyJHdNush5hFz29CTfKNUAyWoyhayT75SU8OjsEIFESIyMcWYKeBMpcdHIBXa3oJ+ObSp7KGbmfQ/jWosaPcZlisaGNxRU8/CbacTQmeCtOVopJCS3IeYpNqJhrEPZ8ivrMK5Eu74pb0OZWkeo9Fra4sAvhb/zBzwGY0tAnatJOh2o8X6+Nvo6yy8yPpdHmaRkfjsUGJR7vyEuFpf0zvDZ/bd1H 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)(346002)(39860400002)(366004)(136003)(376002)(396003)(4744005)(6666004)(6506007)(26005)(956004)(186003)(8676002)(16526019)(6512007)(7416002)(2616005)(4326008)(38100700002)(38350700002)(316002)(69590400012)(86362001)(478600001)(5660300002)(8936002)(52116002)(66946007)(2906002)(66476007)(9686003)(66556008)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: iY9y3GATmTZC8tQj40jvVeXoafccK6vU81YIeVbHKjAhL9FrOzLDpHZDyWeN+7Z9EYnYSXkp+FTP9NEE+Iht+cadXZkQBlXe7hJ2uC1i6elw4Cv5DeG2HhJYkugDnQw9p8qG1n/TztvCMrNOxyB8pW7CySn8FXcULDBoRvQtHG2an7+QotxNOfp0k1Zj7rjTirjPldohX8OsP+UFD4KHnerJRsF0HRSveVzo5g2Uxik8hgPu4aN/+io7Hl+lM1bagAUQA2JsJ9/6p+MbXEAoMljvQcq9E6bPsDhKU02X73Tvsz+NMkM/ka+zEZK56n6l1BvNnPiyz+wpPH4Z8nD4xtSmZEhdebzgPbNGcstPUcK/5Ufj8qCtJvtUzQt3V86O6970x37BswV7kq+K16s4tF7LMRTF61bbv9c69P4R/wrtdPn0nbUqlMSKs3wqGwjXqxubmeOwJuQ18tzKyjYp3BoRUtSdW78//Za26b1y3pR4YBSgXQejFcVfeAjQS/9wcmKAAgz4lXnWPxF3gIn/MfWNSvIJaTnvBu8B+b9mfDiGE7VnzErIXEZvSFRoTu/udXWPeHavSdrqrGXOo8SUsw8LiBABzkduLqcyxY798vVZZlbzQAhLkO+MS3qqCW2LA+dOq/SxRrC3oWPUd+n8YqWq/uL4tOUZtjjZlnKUcmYMDm3u+PKh050Cr9cLzDgeheMnkFPmK5ZSXEsooddloB73Xf+3pWJBB9jMje80ov7QwJljpC+B4fn3WjVdZp1eYQw/H0Db4NHyohxlwtCvssLnlCYTBAqAQrNsOlqTajODMe4Ablt25LnQKmKRxhywN7X9F8+ccpimiFpZ2+3YiXcwp9FCSoXdVD13SfDapDv/4IrFKpE1MY7H9CUEX8TDeDKZKvkyBoFq5LTxz+sRMbvGE50ZzqJZxh6GZQsr7JkddpYWDLG4kh3mPOkoxoyjGJ9T8hyXHPpUw8FbfQxUKK9FJXwJxmKaOFKeD4HHYhX1U6T7TkMWksFZNJBfOXZy/rqLmTmr4G97ItQSYChzpBymRJgohdKNXpgP6HsUBD+xJAbXzqt0c6pdMkN5jHVrdUOuNRVi8wGk7xd2g+iCZIKtdWCIX1V5iA9JnBuLoIOtAvccQFJVNiKPG5ORVer4HIPYNHVkGH48ZLqOngjd1k84nu/9J8DVVt04XF74tCBl7LI+wE+ZMkKLMHBOlaZebxY0m8B+TfKf3JDALZBG5CIeGjVHD2QJOt8JjgPETWr17szLTUkbNlQvIilGqQpYTA+xMynNDujOpkSSZSYO21UVoFVeC1YFYCcxLRWYvK+x3AIbjQ8VTMMV78TxRy+e X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c754eaf-927c-44da-599a-08d90014619b X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2021 13:42:59.0530 (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: xLOghqBCE4AeIV0BDFoN2XW+o7ohNTJTU97Exp6oh68wK0H0BEFVSqMlLILN2Sggm4aY7waEqePkJfCQ2scsmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5241 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.7.4 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 58bc2a2..1dc34cf 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 15 13:27:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 421773 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp485000jaf; Thu, 15 Apr 2021 06:43:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPrSAStavSxsSteKlzVP+M9JYpWJOe51AruWCcA13Y/I3Qs/8+1ybwLgumGmQjPWWmti+S X-Received: by 2002:a17:90b:438f:: with SMTP id in15mr4007744pjb.116.1618494199124; Thu, 15 Apr 2021 06:43:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618494199; cv=pass; d=google.com; s=arc-20160816; b=YCEYwaw0pK3nmIRmRx/KyxQVa8X6FeBIhfvjoAM9CgBD0MrXPM6Oqju55n+nWfs0mq nLsXgiFJUaz/gX9CCKs37X6P65WgriUeYt1RTFaVhOfFoLlkxTqVX4R10GhqbE7EGcgU MO6Taac8DWK/JVWWufrEP28GAaQf/z6BD6XwM7JLrAiiWbIn2mA1Zpt0nDWKdIlmHKKZ hPsBKyB1aeKgJmPeXag6T2TN/WJZJgVGkhx2rGZTyxPOmmmiEv9zSUw3KDJ6j26+okbs THUx4Ne+P6MSKKx3yzFZaF7PvfhpaBgym4iW9TC38IjtmDdh6vWJ/fkjpzNSgHhrckIN 80mA== 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=ucKWzsTsG2fJJqlsSK+Ps/iDIC85MCfylWKilysFYFM=; b=DM3+yqHfILn5RqgbaO2VEDR0GyGQWj7+LC0ULXjMsvr4C8cYxLUgGAtv5Ls9LWxW5L 5T8eG0Ph/WdRbMXfDs5O1vYBiZ/UqwUZIK/3PnNaDgM8SajVtgi9OIGXbSRE2C5FjuwO ETuoaEa3xHZYVMLiux/hEZM0WHBDv8Lk0mmTmLNssy4fSuymnrsOcBzKGZnUMCGQcX9h gtZSxFGuFSg+Pg3jeCS+Z9rHeI0K+3iXQuSLalMpWQMLHA0ZcBKlFCzAxZ0j+86J1/xg T62urhxTD7Qit69BIHf1KCT8zVah0wktko8OQSUWj0SR+NHxIBIZFnBhWQepB8WA58a2 jskw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=U2CM4gSW; 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 q7si3061092pfu.46.2021.04.15.06.43.18; Thu, 15 Apr 2021 06:43:19 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=U2CM4gSW; 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 S233270AbhDONnk (ORCPT + 6 others); Thu, 15 Apr 2021 09:43:40 -0400 Received: from mail-vi1eur05on2083.outbound.protection.outlook.com ([40.107.21.83]:20416 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233282AbhDONn3 (ORCPT ); Thu, 15 Apr 2021 09:43:29 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AsUntxZOsBp9SKJYsotqjlGN/UgGs/3sw2vNtTLurHNNfKgRhqCwf9a6asICym/+Xxri8ItbQ1ruZurVwuU7l1+cNy6suWJZncLqnVu5YvCFE7Qurxr2RQFCE15SiRc5aUJxLjbVvWDF/HJXZDUrKDBf8ZavR2TssQh+p5RcCeh3DPBpv4kjqKV1KFMEIYj1nyFDbhVJchGHKRZYiBX4qpThTlwHs3FCbgJMFJT7kUYYXlLO2uTZ0S3bLlMNRG8KKM9nGMihamH79/hBLf7gPcYiJKM4L5MR4Y/tVsDixxoj1LlHafhRPF7f2RdE62san2ORWQtiDQ5r9OM7M+jRHQ== 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=ucKWzsTsG2fJJqlsSK+Ps/iDIC85MCfylWKilysFYFM=; b=jJmIQMjIFrq8iwFDZQH4cvuTp5/YkvFg8ce+6NUpOwLTSzF+VXYeoobGWmO8mOd6C6yAWrmXQH+UCk6x2TJQFpU6k+wi+RsQvUPypvaN99nEyNIcg0fSiC8qegbktjZwm+b6RttVzvqGxWc4yTHON20jmsJCPg8IzkYVl6OmS9naBf8tiMtHL/gukiQd4Red9/JAr/LURKjwnpOejYP3EyRanN9bauYOnXhPMXPcAW4WC6bGxg0WzWGjOgJaZDFxzUsalSv7OwaDCrVTveVD6G1wn8U6VdwCv+VRBaPbhIRWg30kQYWTHK+9a0aRyvl0hYhr8wqU62Ch2SNPoEUaeg== 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=ucKWzsTsG2fJJqlsSK+Ps/iDIC85MCfylWKilysFYFM=; b=U2CM4gSWoszKjGdaeciUNvfUCN6re2SptEUnyls3Rho4VNo+TPAvzZvp/c/Yz0oaULuKjP1AeGuwq5l84AG3nNu3vMN9xP2H2rOJ0gMvDw6hGgNlfDFBOO7RelaesW09GRDCaaoEwXEAyl0Ov+vpRzn/c/MNAukO8jZy3ftJNS4= 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 DB7PR04MB5241.eurprd04.prod.outlook.com (2603:10a6:10:1d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Thu, 15 Apr 2021 13:43:04 +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.037; Thu, 15 Apr 2021 13:43:04 +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 V4 4/8] remoteproc: imx_rproc: parse fsl,auto-boot Date: Thu, 15 Apr 2021 21:27:37 +0800 Message-Id: <1618493261-32606-5-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> References: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) 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 HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 13:42:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2b7cca10-dc46-4eb1-b979-08d900146479 X-MS-TrafficTypeDiagnostic: DB7PR04MB5241: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1775; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: siBnxHtQJdL1mdVofPJumAotjAB/Z+woqpN/c3zjhE37sM1u39ejMl/NRF4t1L7TYeIiNg2tAF5SZvVHdftaiMEtXxCYERYTyBNGGYjgbWP/yHu575bl1SgIBUphT/cq02Q+Zi5GdhSDFarDcvijIq/+lbebYHVndT3mgS5dGXFtYNCMnlpSGaKDkY7kfQJJZcczGpg/U4LBebTu7w0fhNf+inEYql5JjkoUZStGZQr31IJvpJ7eFIBoyGuQsuXdpdfM+YHijku8Pfx9eHEeE82t2JnOqOYW89nFi2noLJvlesHsWZh5X0rob949HvjEZt3a5nK+6/tOpGFn8dLhiySag9VUc5pOhUdID03ecsxCSUXoZUDD/E6oxFJHlmAdSmxJgBi6aJtAwdrWJOvYQEEekC1nGvbNe7uXuEq13tEehxNmIMg81ftxQAbqWam5PSG8r1GwdPhOZI76I6HJt60mCUcOJLob/eCvyLjNt9jIAbtyDIov57dJmsO6arJF7D8OVewTUyfj/RAOxBGdx1rLtvuEj2qiEok/39b5IDkpuH3Xv26YJ6u4rgiFZrjYniMwYFNjWozgE6giCPRYPnjwjSbretS25RjiuM01qPhzUlAmTzu3jD019bQGIgsDF3QwxlEc+sY4mF3zlCXL8kjoydPUfUTUUTjrtcpVy6V0o3VaxAMS/WLvCtFoDXjO 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)(346002)(39860400002)(366004)(136003)(376002)(396003)(4744005)(6666004)(6506007)(26005)(956004)(186003)(8676002)(16526019)(6512007)(7416002)(2616005)(4326008)(38100700002)(38350700002)(316002)(69590400012)(86362001)(478600001)(5660300002)(8936002)(52116002)(66946007)(2906002)(66476007)(9686003)(66556008)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 3XwhPofq/F5Uae1V4mSjNmc+1m+Zk8VBoUPqZJv7N/i+L985IEM0gGiGiMEODolOWpPPUADmfJxVXmdRY9aKHlesdptCazoj8utLiUKjLMpvBkSfR5BvLyNMKhHvGCsOJ3ptna7rcMXdC4aM9hy0ZtyLT3K3kuKS96DGAlVnTg/e4+j0NZKlgz8tfXWorWgIMRTWoUxqdpTpZoJENh+GObPgXlLNfjbLCVB7EuF6icsLaYcNSel2OQeAncP2JulXVrEKDiWxqXDH6gU3bmxayeUM5BUlvCsI/D6l3naQC+HG38KUdvhrqtKUXl6pGGGEb4yTxLA0k2y7nMbkOZw7BiR2yrXsdfGNE8DvvuRt+wc4cZI3Cp/q+TXsmPI4hrrA7/OIuSP2fgi7Z15fc10GrQgV7epeVJQKDtJ5NAGUogUb/NIEHyHHwTFL/dCMvZYcSQ2QFyc8kSpmN+Y4kWhLeZbm73VjeDe5+8i7OQuNPhm5Orp7fzURWw1tSF41QPVzgbB5vOdEcCyx5xhCJcJOzNLSohUrD7hqFq+mYtCka2G8NO8Ch3Oscem8y7dPXrHkw9h0ykzWbwrWIlmpSK7qKLOO7fQCJzda0vvIsqkyHaFEVs+w7DYBguz3m3TyAKqk8awosPOi4X4zliKhYfkJH/yf28lJg0fdxRnRnC0gPfzRqMC0ZZEH/2Nd9M4w3vSkgNNRPbW6KocwKWqRz2zOqV52vrFak1Zb1WLZZc/2nFM4zVh/gypIaqHfthhYXrgnbqc2V7/47uMpCv9H9GWWNUO/bp7O0xp2j89lHZQkCNYAmB2zMDoFJNWlSLaXb6f2/YKlkXbghdchffr5/L/66YExjUOGA6R0y5rBLYPtfkpyOT/1qc6qUGGTq0ac8yHxfk/RZk1lju+ZxuWIbpXMJmoF2vX7RlHWRsiwWZ/h4yFX7lIrOdTZE3uHjITbtd0gwTcpdepKHblrI4WGwrX/atytYdp1CHzTTKxFM2X/oRwftosLsVqKsTSZdpSLyuu05RZsekSswHnF81X05TxoQhsok01ExYZxx7ZANhUeDXpNQAUOIjXZE80zNUwAS9PLJ+eJO2upQSNZjFfMXSZSm97UE+9k76dHkmvP2THPZckCg/mPGiiC+OO8QwL8P3GCzDEvUqAGiAJQCuC4wCgeif5g41nQgps2B22aoqWVaUg2xL/s5igVK/jzb7ys4svSKxp5YccDUhurRr1UYJwxl4Di+S2osWKMG6hEcnYeRqRzDanhMPQPzIOY1czN48De5odIFp1IbaCdNMD9qQwBdAobNb6p3Jcgipf8lRwVBNtSQNe6Coly8ohAVZdmuFzF X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b7cca10-dc46-4eb1-b979-08d900146479 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2021 13:43:03.9258 (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: cZHlnrlz1fh3g9TSQ5C8BAht6vzNGW77azkpwhtGl7vcFbX1E4K0OHCWQ3DjdL3SeJAfWIRXw60gaI+irndbow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5241 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 only need to parse the property when rproc state is RPROC_DETACHED. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 Reviewed-by: Mathieu Poirier diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index d633887..06dac92 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -654,6 +654,9 @@ static int imx_rproc_probe(struct platform_device *pdev) INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); + if (rproc->state != RPROC_DETACHED) + rproc->auto_boot = of_property_read_bool(np, "fsl,auto-boot"); + ret = rproc_add(rproc); if (ret) { dev_err(dev, "rproc_add failed\n"); From patchwork Thu Apr 15 13:27:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 421775 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp485088jaf; Thu, 15 Apr 2021 06:43:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7l5KmvmOd6/sgVcnSL9t6hKEiVJ4+TnQ/qsKjE0jzmtjAArCvfyQ/SNudbsCnOjTVxEa6 X-Received: by 2002:a65:48c9:: with SMTP id o9mr3529185pgs.184.1618494205599; Thu, 15 Apr 2021 06:43:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618494205; cv=pass; d=google.com; s=arc-20160816; b=QLhTNY1BPFuNqKEnvchPy1SfDd1fCao2tsaU4lF0Fx6YRkLgpM/ojBrEpSPmvcppow tDukua6PLC+XR7wHVnsbF07NmSjlBDgoYJJtrWC9CHkJ9xAscjU04sAHCM9b79k5cR4L q+BSvRr74FhFRUIV7Z/eoiStue2FZf9YLoFr386Jt+foiSK4TfEpuD7YxNml8+kZ4OBA 2pHASm9d5i4ceN4meMWZ8Ikg73kZebdI9UXHDqGqkYMOXB5QEj2uywAanxBl6+mog347 W4vF3ub5VgiGiAUJSvfyS9lhxis496sGp424dGBhANtB7vzdiyWLiL6IBDwQC/ZvcBMP hESw== 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=0Irswd7lUzB1pM9KD5IwiTaCbYnT1kuWoR+EHA/da7s=; b=yN3m2OL1N/QDYmeqCkRrejEFMXtfxQDhlQ93jEpv+9af/bONEeGyLzFUy+gMnpE6GQ JnYAagQuMTJFSkJXusHqDRnFLMPlJiSDIm+T5EeWbeYkgPHedYT4ym179ocWzIC2NlTi bW/l/mJoC1stATD6gkKqkI/h81FuXJtPRjFRGPf9UiBIV+BI6FgoeUHbuQneV26ESouF a0W3koO7MYi8Iu0mK1olnbDSQdEbTiUzumEuYFj2pX4+Q4Ddkrn3b96s/L7UdIEJKMR9 q2r5Qr+xnpXWAsuPe3O/Niu8KaZo1h5AV1ABYn9xmQDnqFDdoDpcpcxwGjS/N5PhR7cZ bXOA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=TwadtdIc; 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 b4si3648880plz.90.2021.04.15.06.43.25; Thu, 15 Apr 2021 06:43:25 -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=TwadtdIc; 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 S233315AbhDONnn (ORCPT + 6 others); Thu, 15 Apr 2021 09:43:43 -0400 Received: from mail-vi1eur05on2083.outbound.protection.outlook.com ([40.107.21.83]:20416 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233312AbhDONnk (ORCPT ); Thu, 15 Apr 2021 09:43:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fksAX73Q8d/chpKyAq7Ey8VZgLW8pGWlU6VeYZit4VmzFRzlhjBPm/4YSp9hLArdLyA0Sq8lOLPQAIYQnuvBPupl1I/3f3OYqKgvy+pf8JmofhiymP+0P2x+bHVgWvRnrNLRm8Txx9Le/Ets5PI66esyoEI6mcinYluqZf1JWygrGeub5u3FkNgotGw2tmFdXBryQGSgOMpGD9R8WAlQ/FFgEtme2c9ehsWsY1hNypYViF54TjCPHwvAyOnhlvcHjoH80mptqDjqYYsWX3bAUyMQoWxVASuM0FiW/mCumvmoUZY3DCnJul9mBQSFpZxA0zszx6asozrfeS2dW8pcxg== 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=0Irswd7lUzB1pM9KD5IwiTaCbYnT1kuWoR+EHA/da7s=; b=AFwNdvoT25RqwgnIjC2/Xs+QbefxgSVzwjqd63cXmuAB8VwOP7tQZgTd1RiIA3NZyyKqzKU++dYuoF0bPEvOf+HyQ8oUMXr/tfJWwM28+56R/WrLn/QxI+lrMxNkj7jjoUOvhFt0ywblm7Q2IiWgoIWn8qmfABXjuC4/vnByRmS1tg2Da329RJEzyGJJTLxQGlSu9J8eNgPGKO0T1+YRO9Q7qyE28YMFrfmZAJFHBwgqi1NYH43y/bYYUW6w2zaw27Mfy3piE3c7YtA9F3iMwSJJwKPX/XDworoOIkOWHbhZ9mq61XTY9ECv7APicrqPeAgb44tZ2SmQk2g/RZ927g== 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=0Irswd7lUzB1pM9KD5IwiTaCbYnT1kuWoR+EHA/da7s=; b=TwadtdIcFywuuRXXwsTKkv5MxX2iVe4JiBTk88NGycs6YwUdZ4M2tPcqkUWZRXVnkzJ5ZqhHBeKZfPtCsWQhDdvKdHWQLBlKmChN1kB+Mw8Cn2p6Du1prGSA04RcmvCD/G1KxDko02NRe5qQAFvpjC6WclvFq0LanBrXSTYCeh4= 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 DB7PR04MB5241.eurprd04.prod.outlook.com (2603:10a6:10:1d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Thu, 15 Apr 2021 13:43:08 +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.037; Thu, 15 Apr 2021 13:43:08 +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 V4 5/8] remoteproc: imx_rproc: initial support for mutilple start/stop method Date: Thu, 15 Apr 2021 21:27:38 +0800 Message-Id: <1618493261-32606-6-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> References: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) 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 HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 13:43:04 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b5b5b53-7d28-4658-0814-08d900146757 X-MS-TrafficTypeDiagnostic: DB7PR04MB5241: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:341; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gg6BcXCxmFThwXJdj7uufLfchYHm6rglahHY+vcEnaGpfu72f5F6PU8OGwiXq4fQY3tAypOxkIWl6ARW11hd0lexYBZ7E/HfbN80PoSUKl28vYNwT82lY7Y6SHfUQjRcC+qzoDY2L90t16/eh+fIwA6LpqT6JnQ0NKNcm/C/uQRo3m3tCBMFgp0YCKpwhYZn3VDbVU3nRgO/sFO0QrNx9ny84pjErZcACJepNSkU5RT6JakltD3TqQrDYzn+2Tjd2WjLLSx/fGZpzpBczKkkgc0coW/x3BcxuYECvHcPHbfXIWJDHOSk4djVCIVOEvLcjZa7IaS04yP+0K23e9YTCm00hePo+f08kuYvwM5nyzsbPyXfyZMaPVsH3fuhVEANHV+OVytyoQi+yfk6ejAayNa61O0Cc0LEKpBd5Zp9Y14sNWqEsF2GBXW1E09jmmEmW1+zOK5FnuhA+GLEaHRoOD1aCpPRCy42xRZQJF3x2dM7AdtItuRM4Ofp77INE+i/FxVn2Xq/83kUTyfQNTeR32fRZW03tLgoglNYVHqlT/wJKWaC0D3BJU7JIdJ5b4T5mKWGqspx5mN91x/V2IEsW4KHfXpx8vLaLG+/zayO/wdHV2gMYR7e0XSkxIb48pDPBGW22h23blHGdAtK64tvdwIH7+ODn+HNb/6+1ESqvbT4lS1Rln6deXFRzL5yeK04 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)(346002)(39860400002)(366004)(136003)(376002)(396003)(6666004)(6506007)(26005)(956004)(186003)(8676002)(16526019)(6512007)(7416002)(2616005)(4326008)(38100700002)(38350700002)(316002)(69590400012)(86362001)(478600001)(5660300002)(8936002)(52116002)(66946007)(2906002)(66476007)(9686003)(83380400001)(66556008)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: EBohXX3DstWIcqqHK4O8WyDSPXPR705xFuqkS6EsigEdQztadhUF69syf8yUzGZKO6W5u165/AUh0vjlc1YiPfo0CoARqazbyXD2Y68BW5sSGIn4EI2FtAqePaWczJe2cZoCpcBUtiMTH6agoJlNzx9AA5nxb6d0wQ8mqIZuiz/izBYPucpljLKkBpFvuOii6IKZqaaMjwE8oHuHgsHkLmTWXJT7qhlGxesWnrNrHQ8EwXEqrC9ecx5bcGiP2Wb00JHd106axIEubqnXCXh1q5DvUSjEopdNjK/mTGbvbA36oywxMTORkM2Y/+KJhg6AzD/qAlp/EYQHH77XiMfKR3yvDBjg2uZXcnHyCCwqFr28JQXQR7AAnndNmMitClmtEtivWvHhlGeyE/tja0fzzPv8xYHoant1aBJPCgLznm7H75luDvdE+tFPnOEiQZQgtNEdezScCJqIPpA1VNii/OoRPY3ifnmPYGnKjt2zWL1a22LCYIR5o7cKf44A5nV5HkqAK5CP+wAcJfTButXOWPcuTGr6293kgGTag/HO2R8iwff+ztelV5RMq6uR8Go4jW5+ib9DY+w8i8GVzxLQIY9H5B5wz3bK2n36Cr7D0Jt19uNuY9RFuY8TrZRwyYRGuSRyfezlgJZ9E58Erb+vu180eJZ9sAO8OS1ep+UOnnPbaUGzqt4LYvhGeHqwiFIOyXBzl2paRs81idbDjIz1/4AQJTHrnBsuFaIMChVdpwYBbRNLcIL2MEN8zLXabAQXIdHT0TkUkzaNRy4qPiLacH4cfgAfM1CnPyQjHjVjT0+HMzhnI4dKmtLKAJSgfKvQ4EYw4FkndSjhVhOhNmCXvnT3lRpUlDWaIqiJEplDyfyyszGORDhJ6bnS44EIrBAvv2weJDlh11dboq+7jQ93HeMbSf1SY7qxoM5EDx4tyMIFvjj9cg/pDj1KBgI2RJBc2dZA7ZXqMeuaXAXNy1xaMgzTvOchnTRLoswSIxzNDMsSENOZMG0zyXibAdqraEQCmYFCxDmHMdVQfVmWPXaAF3e8mn0A68zW90of43wg9K2/wlt6P0pOHXWN3Li4azzgTnUHvb6CB8Og8jWBmen9c+vTA/zYZpO4U3vVKnwd7LgGE4Hm/9XSErb2XEWw5J3UO4VOy5BTOVrtBKqucw3maJhCrvD1vsIRS+awZUJe+Xz7FCiGwOqvTf2ienLznD41uesiJCjezmCQeGpZDfkMzCNerfeW98SOKuTnbp/ifJG5LCgO2CtJNL5NxhhhPvtaBSB6AcdXQOWy3v41HwM3yivKWk/eYHxT1F4Soxad0ztZ7dQkcrbbPs2wkmhhhLBQ X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b5b5b53-7d28-4658-0814-08d900146757 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2021 13:43:08.4168 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: p9a7RefcUq/pMox3u483bTnTZN+XLgDfw1/mEbp0sFHbRkcILUcKebPCVpFw8204S/B5T1GFc/elpMayAI6vhw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5241 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 imx_rproc_detect_mode that only SoCs using IMX_RPROC_MMIO needs syscon regmap to access registers. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 51 +++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 16 deletions(-) -- 2.7.4 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 06dac92..2b633fd 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -74,6 +74,15 @@ struct imx_rproc_att { int flags; }; +/* Remote core start/stop method */ +enum imx_rproc_method { + IMX_RPROC_NONE, + /* Through syscon regmap */ + IMX_RPROC_MMIO, + /* Through ARM SMCCC */ + IMX_RPROC_SMC, +}; + struct imx_rproc_dcfg { u32 src_reg; u32 src_mask; @@ -81,6 +90,7 @@ struct imx_rproc_dcfg { u32 src_stop; const struct imx_rproc_att *att; size_t att_size; + enum imx_rproc_method method; }; struct imx_rproc { @@ -183,6 +193,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx8mq, .att_size = ARRAY_SIZE(imx_rproc_att_imx8mq), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { @@ -192,6 +203,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx7d, .att_size = ARRAY_SIZE(imx_rproc_att_imx7d), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { @@ -201,6 +213,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { .src_stop = IMX6SX_M4_STOP, .att = imx_rproc_att_imx6sx, .att_size = ARRAY_SIZE(imx_rproc_att_imx6sx), + .method = IMX_RPROC_MMIO, }; static int imx_rproc_start(struct rproc *rproc) @@ -560,19 +573,35 @@ static void imx_rproc_free_mbox(struct rproc *rproc) static int imx_rproc_detect_mode(struct imx_rproc *priv) { + struct regmap_config config = { .name = "imx-rproc" }; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct regmap *regmap; int ret; u32 val; - ret = regmap_read(priv->regmap, dcfg->src_reg, &val); - if (ret) { - dev_err(dev, "Failed to read src\n"); - return ret; + if (dcfg->method != IMX_RPROC_MMIO) + return 0; + + regmap = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); + if (IS_ERR(regmap)) { + dev_err(dev, "failed to find syscon\n"); + return PTR_ERR(regmap); } - if (!(val & dcfg->src_stop)) - priv->rproc->state = RPROC_DETACHED; + priv->regmap = regmap; + regmap_attach_dev(dev, regmap, &config); + + if (regmap) { + ret = regmap_read(regmap, dcfg->src_reg, &val); + if (ret) { + dev_err(dev, "Failed to read src\n"); + return ret; + } + + if (!(val & dcfg->src_stop)) + priv->rproc->state = RPROC_DETACHED; + } return 0; } @@ -583,18 +612,9 @@ static int imx_rproc_probe(struct platform_device *pdev) struct device_node *np = dev->of_node; struct imx_rproc *priv; struct rproc *rproc; - struct regmap_config config = { .name = "imx-rproc" }; const struct imx_rproc_dcfg *dcfg; - struct regmap *regmap; int ret; - regmap = syscon_regmap_lookup_by_phandle(np, "syscon"); - if (IS_ERR(regmap)) { - dev_err(dev, "failed to find syscon\n"); - return PTR_ERR(regmap); - } - regmap_attach_dev(dev, regmap, &config); - /* set some other name then imx */ rproc = rproc_alloc(dev, "imx-rproc", &imx_rproc_ops, NULL, sizeof(*priv)); @@ -609,7 +629,6 @@ static int imx_rproc_probe(struct platform_device *pdev) priv = rproc->priv; priv->rproc = rproc; - priv->regmap = regmap; priv->dcfg = dcfg; priv->dev = dev; From patchwork Thu Apr 15 13:27:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 421774 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp485083jaf; Thu, 15 Apr 2021 06:43:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5lQQs34DIENV4R9/jpovTwhqiOGHTau6FzPWcSJ8qqhIxagbeHzUuA6QZ2DGZ4ZHdEiUH X-Received: by 2002:a17:90a:7f95:: with SMTP id m21mr4175473pjl.174.1618494205266; Thu, 15 Apr 2021 06:43:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618494205; cv=pass; d=google.com; s=arc-20160816; b=avJbAR16bUkJtM3NeaSWrJesZCEn2LSbTrdOD6UJNYeG//te0YDeYFyY8MKnYsEW31 LXGm3ZPcI9o0nLm3fAjqHHqfwM/SHDAT813UrgP4pvAQBK6VPfoonhq6F8+fSBNnO26N B8IIvoQDEoD5nJusFURCIpGcJVenfxzFxqeKisc+rId6ZY7iqMJTdPusH/+te8Z2AflZ IoTCntuwCXk9yxDpAhrGjwbRN2p5+AdV6/9DEXOY/SD88zbjDEdCh3c1LuL3lBx94AhX QPZYQO5VqFR/fuwNBndbgDIYm/9z8MUbVK6ORSREh2Iiob+m23HWgnXH3pjjzo16dNs4 9z6Q== 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=9a9IkhZQWfG30t2JfSSnxQ8byXfDi0nXCR9nkiWhHk0=; b=Bemf4jzs7Di+3eSse78N/RNNQUp0LeAme366tk6lKE2TNwNvVmK6SdB0GFZrLEe0r0 J3SVmhXxaVFXOSMuvd5usjYyseWA9VuzUB8/RXHJ+z5vfR86eCw3lMul0IWnUl3rlVRk BgpZmQFl/SoMUQ6NnO2H5o33OafI840QtgIbfXshW/mlmTHw6I7qiwG+VgQR1Ew/TiZK BI8JNMQU3XXzAUEE6yRwMelZI7yJjR074QjbqS/V7HY1mnsvzsjN8LkpQ0+zur6b6gUx G39l5ESpNIlBZYALWMnh7emf6gx+aMafh4iz04PFcC2Bp76mTMg6exYe+uOTDypdC2Yp 0IHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hdRDNp+P; 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 b4si3648880plz.90.2021.04.15.06.43.25; Thu, 15 Apr 2021 06:43:25 -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=hdRDNp+P; 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 S233311AbhDONnm (ORCPT + 6 others); Thu, 15 Apr 2021 09:43:42 -0400 Received: from mail-vi1eur05on2042.outbound.protection.outlook.com ([40.107.21.42]:9729 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233298AbhDONnj (ORCPT ); Thu, 15 Apr 2021 09:43:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OBKeH1T/dghjRklmp9XTUaO4aA3hVwRQ/ibxqmMQuXklxhcO8NborD3Xm6ehB8c5pBnmv6k/d7tt9Q6eVxO6F4Lf4I1TkZyvb13R910sPXVk1uxtFFfngu/dvzIMAIfET7v9sCDSjgR1FiAPJ5oCcbfkHsTm37YVHjfmC7w9kFdowCEPUu3cLFAdmqBN2k77b6A0PuWx29PBIRJUYJBBgI4RGQCXcEM8UlJ7gAvrdrg3CCg+cu7KxyJ6Z5NTGAC84ZRnwoRJsjNmGuK1anWSfi72TDqJdrpCzJ5tWEzys/dWJOPF/r0nL3cr3GzFngfHl9yIbspBzHMgpEYdx1T8wQ== 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=9a9IkhZQWfG30t2JfSSnxQ8byXfDi0nXCR9nkiWhHk0=; b=dQRaCTGyg2ZofeZuZdfRGBP6ThdOJSbB+4dp5EEvc0gGS63xJXjEqbGG5Zb8wmBKY4cfGDs7JQWAiQHjXSL/1mbxhgKD01KZfNnyDg4H3DAsXm7cSdkrrRxOZPmURI7M6RaISgcCS4YTVA4SblEB1OQN2iKWV+hHpMNG0E6qu4G6vT2lK7Q8ByW1tvl8dFSNqeP5abzHgTmPri9ArUbWziK+KCq6F0AZ49Ib2rNTu4lPs4pI/u/xYEe2Jbdx0V1jbO2FhBAAq81OGrT2fnbxx8wnHEz+u64LQTLc4VQuTDkIv7bXIA3eSBk286uFT2PR4Tbc2Yyq6d7RSY6rGvMk3g== 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=9a9IkhZQWfG30t2JfSSnxQ8byXfDi0nXCR9nkiWhHk0=; b=hdRDNp+PL4ZGGnuVIF7+Js1dVLSTfVw7+dmrsaA1qircaRBE54lOhDkCTnx8zKnOQQ+MzLH7dCqnY8zae/6lf1kAOsHbwUmLkJiD2SI8vkMceVkwJj0P21Ury4VdTn0lqz0jL7abTZcSjIAEzHlNBDWC+kfLrrmV/QnSrlOj5E0= 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 DB6PR0401MB2534.eurprd04.prod.outlook.com (2603:10a6:4:3c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Thu, 15 Apr 2021 13:43:13 +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.037; Thu, 15 Apr 2021 13:43:12 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V4 6/8] remoteproc: imx_rproc: make clk optional Date: Thu, 15 Apr 2021 21:27:39 +0800 Message-Id: <1618493261-32606-7-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> References: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) 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 HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 13:43:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a5572abb-f559-450a-b8a0-08d9001469f6 X-MS-TrafficTypeDiagnostic: DB6PR0401MB2534: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O2eTsJomCy4nlKarPCvf7rH9OYWLTp7EiV6zrrsF2UdP4TQ+tezifOf9vmoYytC3/ch/txtvWPgE9Uw1sL6+cl3pNFFx3hG8ImMYZnXuf5yREcDTVh+Bzsdf5ILiAD3mILiKnE8liB5DCV5vUaZySMazE9sYzIf2DflhuNIZkyx+PKjsKvU4AOpExVPnNwgYbwnJWq82Wk6z/YuRJw5Z00LEKK5GGq8Ppk9ZlurxNQZT8GWbaK2F+beeTdTVvMNWL8WZOYCOsLO3xoU5DRHmbmI4NTZ4NjS9bqXfWZafEOHqYsHwkDSjsvsuDbAX8o81ogUVTiO58VMkXU3PoabxHopuRWMAv0BuVyqdMWyyb90e17g+BQJWlorkD8gomwQsLl3hRWzSpfo8cepjmF8sKhjAKNF7xGWtambPAtuu9JVH6Af/9rO5k4cH3lAtvFVjrT5+/O2m6tsZ/qxHiqpeBP4mK/Uavcc/XlT3iI0FDv9a3ZVehlO5L2KnAlNAns2+pQVZRALPJ40Yxxhu07loqd1LUWFck3BefLWkXFoz/LXK/nxAUMMGDtVSJCJGHH0RsJFeKMdQHW7EciqBSnhXyL4h5mviQWSq3OyvkvcdUHe++My0KiiVbmIh6VflcpGsj/Hw2YVfIuYLnc06ySP2RfEPRfc81rwrv3nthn/wgTQmSVSGes2h4Cps+tP7VbeH X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(39860400002)(366004)(396003)(26005)(6512007)(8676002)(6666004)(2906002)(38350700002)(86362001)(5660300002)(69590400012)(38100700002)(316002)(52116002)(478600001)(16526019)(186003)(8936002)(9686003)(956004)(6486002)(66946007)(66476007)(6506007)(66556008)(4326008)(7416002)(83380400001)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: hzmtTJHg9RJ52k8LE63qCZEn4ywYVIMl5XG2qT3x4Vc51QUn5MErCoIacqk4tE08At8WOreXKP9HHWRfuTkYl/Fj5rhbSKQbOqavXFddJk7dbAEOucle1gQutt5fsnIn5y6ryou6vdwWMJ6H/ZSYnF+TcWF2xbon+WUNgp9WaZ3uI75VvVKufPNfC9RaS4BnKL+epuo4i7+SplEzEoHDYDGRjW9kZT7NET9NSBwFgBXAMMwFo3B+lhx67NOKsMw6PBF3FCpnA9RGyL+mo54URxwH4BN01t6dFfwyQJ7gMtDR/y64Ipf0Gjx8arqkp3PN9sg2oa561UM3KmJG+63JK5HVliCTK1XNCmBKd5r1vFH+TQskSThsDhkcK7sTog6q2Bq9/cW9qTFihB7/ssz7HK6YM0XJ+YQnSRuj3gntVkMsZp+rtx2sftOidjClc+zW/zQgRggTsx4rG1T7WhvA3Tv1220U32c2F6Wq6AG4KVTVyC5CPbCDhaqMoJyiL9PM/diVrrq6BtmZPUEM7V299qQeX5tScGRzpL2NpiUjWRPR6y1fZ0VW9xlgHVDWN2gZSByZuMd2sqwwDIjCSdA18hclO/qu1Cjm2MaDOrGDhrsO54ZJHHSQTkruaqg52gFN8Lz3ToMKAuUDiHES6+wQbyRusknBHqZbIZKz1dgOYx7XoQ8oJQUnHorcFD5m6h1undrTYHpRRb2eMSQqqRk/386IEqx2F7OrmR9dmnEqEyfVch98zw6mitLx8nx6q3h/WwYVx7tQ6D5zYFYMXG2kSF2s0x937bpIg/EfA7WL88381C7ptjp/QC71jOpCPG0CPDDwggM5KtCGGFaunLazuogmHnOqmv4VBANFEZpkHdwrDOBfBMagZUW/l3I3xaZacpp1DWo3NEeZq9dJCCi7Y93atssWbwNJFAmM6TubAveHuEkTZ5RGsbvZhxggSyu9ZaoPKknlF2oNYnF4Ifub2ZDcCUcnCvJze1hhaG+qjahOaYqx5rD1itHZJvCeoAZuZ/rzzKq7UvG/7Yh69l9POr6zL6fLlq0w4gFNhS1CcU5TYqKEheN5qKMu7uYkt1DiAl3a78iZkeZjZm9vSGAIuED2MEAw3Sasmn4U3N0FDCwJFW8cQJM/S5BIge98a1oHMu/OTsm9sb/V+jqRc2IDJ9WvOLp25yqtF8jci5zEyNIHH4I/eebGEo1rOii4yukrl2yS3D6BMKFGvkPba0kBXFvQRfZNj9J+BvaqNE7RoXadihtf/OhDjFPepq2owwBcCzFjT4lzuZSLAZLjBx/hwFceLEny1hQKIjZuQ1MQTlnZ1glS5tWUdbnbvFPWmJc1 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a5572abb-f559-450a-b8a0-08d9001469f6 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2021 13:43:12.8267 (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: gluwymvEWwOn0NL4bP3s4EcpqTgcDTT2JiXyGUpoCIACOwy3UgMEda25D0/OBtVcQw/Z7I+Ukcx2WqQQ4DLmZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2534 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan To i.MX7ULP, M4 is the master to control everything, no need to provide clk from Linux side. So make clk optional when method is IMX_RPROC_NONE. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 46 ++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 15 deletions(-) -- 2.7.4 Reviewed-by: Mathieu Poirier diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 2b633fd..56dfcc1 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -606,6 +606,35 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) return 0; } +static int imx_rproc_clk_enable(struct imx_rproc *priv) +{ + const struct imx_rproc_dcfg *dcfg = priv->dcfg; + struct device *dev = priv->dev; + int ret; + + /* Remote core is not under control of Linux */ + if (dcfg->method == IMX_RPROC_NONE) + return 0; + + priv->clk = devm_clk_get(dev, NULL); + if (IS_ERR(priv->clk)) { + dev_err(dev, "Failed to get clock\n"); + return PTR_ERR(priv->clk); + } + + /* + * clk for M4 block including memory. Should be + * enabled before .start for FW transfer. + */ + ret = clk_prepare_enable(priv->clk); + if (ret) { + dev_err(dev, "Failed to enable clock\n"); + return ret; + } + + return 0; +} + static int imx_rproc_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -654,22 +683,9 @@ static int imx_rproc_probe(struct platform_device *pdev) if (ret) goto err_put_mbox; - priv->clk = devm_clk_get(dev, NULL); - if (IS_ERR(priv->clk)) { - dev_err(dev, "Failed to get clock\n"); - ret = PTR_ERR(priv->clk); - goto err_put_mbox; - } - - /* - * clk for M4 block including memory. Should be - * enabled before .start for FW transfer. - */ - ret = clk_prepare_enable(priv->clk); - if (ret) { - dev_err(&rproc->dev, "Failed to enable clock\n"); + ret = imx_rproc_clk_enable(priv); + if (ret) goto err_put_mbox; - } INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); From patchwork Thu Apr 15 13:27:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 421776 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp485096jaf; Thu, 15 Apr 2021 06:43:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydJ447NWQxwtk83MzwZtJ/rwrW7qvejM/cnUzpG4JcUzUVi3k43EmvUlXrEjHNwlXQSYXV X-Received: by 2002:a63:10:: with SMTP id 16mr3624293pga.143.1618494206327; Thu, 15 Apr 2021 06:43:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618494206; cv=pass; d=google.com; s=arc-20160816; b=fBbk/p5Fs4IoRZRRBmdcuwIPyoCm73grUPZ9QyWcLSR8+YwEiU0C9MCd9j8Zssr5lh ipgi6VzYj/cuTVPjieazQpNJQer6j1xwJIU6nSZg8MxlcDmD9eQiF1zDyfUO1WETAVwW K4Z9R6LR/1eBGeHUL4I64yc34lC/F7O/wDK4Fpg6s9RXNqfQsThWilsnuQ7hxsH0tn+/ fZdj+uvlNxfV01CTsHS2msDNw4MihYaGPojSYgPbC17W4W4GqMoUtSSFx/VQMBWuVgK7 gehvgfQAI46IOHCRxvub+rCUp6hldfhE6bmujruwV37lLoGaYpEUNcf0rIUcxsw9IGOT H2Sw== 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=ZuFtijrZbJ8trcFN0FJOo7iX+iSDw65FhNhl95XA+fY=; b=W9wxyNq+psXvJL2fXkdMES7h2HeNSZ3d5X45HfI/x9RGU+y4FCYMp61bGhxM+7+PDu cBkgsBvgIn2MxTR8kv2gzaOhr/vqylWeqx4p5Kov76hSycyEMhWuysdGVUTifV+SXoQr efPjdMPnMxgvRw74pZMXsy3NH8t8aQZcD8JP+Sjl+uP9D8cSSOesApO85rgyS48m0CKz 76EN3gB9aC2nQQiGYcT/3e1LVTBpAr0BvTZzot0LzdmOsgG47jeMvx4jrhsFwitx9pcl yoqSPLCqqtDtsuB2tfANENz9H2bn/RBYf+XCZgrhoN4hwyXMjWnTzfDRoNT4ASFgqKaf jB5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EHHRTOz5; 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 b4si3648880plz.90.2021.04.15.06.43.26; Thu, 15 Apr 2021 06:43: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=EHHRTOz5; 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 S233343AbhDONnp (ORCPT + 6 others); Thu, 15 Apr 2021 09:43:45 -0400 Received: from mail-vi1eur05on2042.outbound.protection.outlook.com ([40.107.21.42]:9729 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233295AbhDONnn (ORCPT ); Thu, 15 Apr 2021 09:43:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OrSUvHYZW9LbMbYNUdWxN0RQqT1U9AmjlSkFKZgK9h2wr6FR2kOnOs4JAN3m3hGR92yP9tJX9QClYwdHGmGRXS7AzCkHwO19QsUxDafOgGNG6j5BBnHeoANd/Ve2lIcKW01VWEfRHqfjAZHoKlG5cKtXU6rZ773P0NQU+b6ULqe/EkNbTrXhCQsvEMOX/zNCaMA/WUVnVUSxZqt9ak7cVfunkbgCb9YU1vVJDyT+TrA8TwTt4KsdfeBnCS738grJFSUCtHLzzwApjChyin8U1Fhtz0Fr2UwGpsygBwKTMf7ilp2uivvwycoFzbjX4oT4sJsWWrVkSvumUX5rFMxSGA== 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=ZuFtijrZbJ8trcFN0FJOo7iX+iSDw65FhNhl95XA+fY=; b=SwFsTAHIdK66vveZ9gdFVsstXIV6uB3wBemMtwJmb6NHiG/t7GrflyO+VACZH3kYOLjTJtKD8jr0N6oiDgfwUgXNKfFg8VOpGX851UsDRHY0qbMzyIBRn2+TbtslwZbjRyU6HdMe8uSa0okWtSvNH1SpMKWRq/pHObql4PPFC85XhreEVZRLQzqRvoaxcTTm88z6x6Vnz3izn0d40KySjREQTkBxRtBVbALxwXqxhS1LSUjWh0QI9MVC86L5l9OSepkXqJEFoqYO3XrB70qvD2/75sxDrhwtVYm0mjaGqN8/MLagEbdktKhqFsAmGBQdul/kZ6B2Q8G3WdxKFZkrKQ== 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=ZuFtijrZbJ8trcFN0FJOo7iX+iSDw65FhNhl95XA+fY=; b=EHHRTOz5fJ6eGFAyaZ6V8tZovQFAmxl8G9XQCQWqZBvwa3wVfHzuoLJmwmIcs4cSHNFghUFwRczgwFtIRRigxUb4vHvlYab680LBiWOb7KAP7BnxRLm/ly/pa+EURHJD1W26sD6ynK93qhtFE7E5sH+mR5wtiPSPF0KamUKQ1JU= 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 DB6PR0401MB2534.eurprd04.prod.outlook.com (2603:10a6:4:3c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Thu, 15 Apr 2021 13:43:17 +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.037; Thu, 15 Apr 2021 13:43:17 +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 V4 7/8] remoteproc: imx_rproc: support i.MX7ULP Date: Thu, 15 Apr 2021 21:27:40 +0800 Message-Id: <1618493261-32606-8-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> References: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) 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 HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 13:43:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 369de151-112c-49ba-9d7a-08d900146c90 X-MS-TrafficTypeDiagnostic: DB6PR0401MB2534: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:208; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hF4eD6aDYhZ42qHWs9eV6qj5QUMdrkXCrLyazbage1dRc2plqoJH5fYabb6VyZNlc1VcUFLvG+SG5zwvTZD8n1+vq1o2h6V+APfTifcdG6TAxXVRLQHaeJkPKz9PAga4Iz+Vg6/fXZx75M8jCsRQBq0O6MmNGxN+neJn7IhUL5ah/48/qSfyG4q2/KVYLcHaEdqt+PSJMeabw4g6dtScKXIT5pNHhMBOM+dFkqoP/hyPeTc8pccz4FzpoyIflixzNA8aOXvwlf1ji61pR52inehBidT1YXJyAQyxnEjTe18UZiOnnwzWlRJzTE+FIbmNGhgF9ETB4HbtXOEnL3w+BbyrmfB6u5VY229VBUVY9LNkFI+fYtZ9x3V46fMAj3Z4Ph7Qp1r14ZG4P+Yhhmh0Gjt/BxhlHi3o/r+kwCy3U5CuMzl34hfAg7r4wlV4QDtrK6q/Pc9tAZRMrnuNIb14/7+b45N/O6muavfvCvH6ZYX+l2nZdnuJEF9RosLfgFv/5EIE6Xnke8sNSVCUB0lwk5sVfeGP/rYTLBqhij4fW73bH56zwnlPURX8w/ROTZtRDBgkStQMs7Hv3tHxBGQPAdVcgJBRNGDbngL/X8CBmrS21xomWqJ06pI6o7RNs6nkmyh9GBrzrGh3ZRtJN40JUhrfwTsQEWjq3/LSwfg/PZjL9s/NvpAu0meRG1phuC1R X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(39860400002)(366004)(396003)(26005)(6512007)(8676002)(6666004)(2906002)(38350700002)(86362001)(5660300002)(69590400012)(38100700002)(316002)(52116002)(478600001)(16526019)(186003)(8936002)(9686003)(956004)(6486002)(66946007)(66476007)(6506007)(66556008)(4326008)(7416002)(83380400001)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 3PR/UUAneGez+5fzdNP6NaHuf2RoYNZBl7ScFQMPsl3OCyedO24wfwP9hMXlQHVuarBISrlpuuNpRK8D3aEKRZUHcQjtfh1utUbm52hhGG6Dtg/iimbUyli+qqQMMqUnsp+F1gCXBYZ8GXusTznKFPB7dGBdW/rX7wMMzB/tEpz2+EtCvcROmTlb+wj7NLP4Q7/55xUeAMmxq7+eHXtpTUiEUjn50+z8aFMLwEjgdg4Fw0XMn8Owlz0q9h6FBkJ6ynpf9AYTaKdX1FMlJYXYaujTfxvWsigrHJzM8Hpuf3nwCqf8shMP/85JLPAqTNWog1wkEQKjVP/+fl0BtJOrSjyX308Sg/mj1VJ9BNZoU9a+zd5WpOfxpPR3xykbSqiEJOtwqwhjjjL5LX4BhKyAzIU2vlkNQYVwpAN0ENBsXsZmvMjdU98xe88CqmeiMzjRF9kiP1Kzi9MY6FxR6ulrDGtFqoiZrEdwGLf7nMrMBVApvIFQZNjYfv54dO7+gKhi2N4KMSPfcplmuRnR3AkSse539BepSrdwZSHpfgdzch/ULLJe5Idh5Vo2kMpHVj1n77mzgoaH0JlEQLawwSHMUJWRRnNSBBce68ViIBe0YmIavi4uFYoZqjVBGDQQF4Nz9wU/mOjQ+wPl0PvCg1TwWBFnJJo11cJSelDO+q4renbTrhtEiYSmYK0KAb7aJHdhnPLe/M0g06Cf5ailGuBeeWc9ra48zWPO3HOQnstXJj3376US2sy0Rj4XC5slH5Thg4XmiYn90Ka/zx2Y6dWnEkbIc1ZSZUgTecY9DQGR9R6wAjnBLH+tze+7K9n1leg+OTrksGmlI4UlXuTPowSULQLq+das6GCMyTnsoDV+8Qox0YaW+CDjZZadPZDjsDNI/YdnwJ2olKrFAtJT2WC+wZxipSKMexd8R1mu3mgOfNYrrEIDdGSAYe3rSCYJp444WCIXByO13yUWPw1LBB4l1BaDXqsy4srGbwlk/3XZphviG0fmvbQK4L2wHm/bwcIvXXvf/AcgIcXcfF6kDHwbhe9KfLZCV21pso3Gkywc0WS1OjHjxfXGXBrG0mY0n4TpE3dtoBsyKsUz0fnOqnrlxyD6GxTdcHHjsjeaoG7skOyn2M+mQ74jJgS4KpZ8QTWGkdcAjXfA3BxBYM4dppKO/7dMouzckkG8zCOe3CGxcQQCISRTAbIrRKHJF4FkBfK7l7Q/I0Cn6dX2NYNDHL2HUloDLlnDPcxIS9Qq1ByyvTxTIUVeuvONuhgkfW44HqLu6ssI6fKcSPy/oe33QyKrWcmNInew2uolGWjk1yplBzmdMs9TQijYM7Vwog6Drvyb X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 369de151-112c-49ba-9d7a-08d900146c90 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2021 13:43:17.2587 (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: mAqxM8zttLoKKotu636im3/dGGzZ/hmjQ2hvA/adaHNF8HnHlc3gcQvxUmtjRmbLF1MVitEU7bEG5tRnqrjSQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2534 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. And the M4 core's state is default RPROC_DETACHED and remoteproc framework not able to stop the M4 core. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 56dfcc1..0592865 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -136,6 +136,14 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { { 0x40000000, 0x40000000, 0x80000000, 0 }, }; +static const struct imx_rproc_att imx_rproc_att_imx7ulp[] = { + {0x1FFD0000, 0x1FFD0000, 0x30000, ATT_OWN}, + {0x20000000, 0x20000000, 0x10000, ATT_OWN}, + {0x2F000000, 0x2F000000, 0x20000, ATT_OWN}, + {0x2F020000, 0x2F020000, 0x20000, ATT_OWN}, + {0x60000000, 0x60000000, 0x40000000, 0} +}; + static const struct imx_rproc_att imx_rproc_att_imx7d[] = { /* dev addr , sys addr , size , flags */ /* OCRAM_S (M4 Boot code) - alias */ @@ -196,6 +204,12 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .method = IMX_RPROC_MMIO, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx7ulp = { + .att = imx_rproc_att_imx7ulp, + .att_size = ARRAY_SIZE(imx_rproc_att_imx7ulp), + .method = IMX_RPROC_NONE, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_reg = IMX7D_SRC_SCR, .src_mask = IMX7D_M4_RST_MASK, @@ -238,6 +252,9 @@ static int imx_rproc_stop(struct rproc *rproc) struct device *dev = priv->dev; int ret; + if (dcfg->method == IMX_RPROC_NONE) + return -EOPNOTSUPP; + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, dcfg->src_stop); if (ret) @@ -580,8 +597,13 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) int ret; u32 val; - if (dcfg->method != IMX_RPROC_MMIO) + switch (dcfg->method) { + case IMX_RPROC_NONE: + priv->rproc->state = RPROC_DETACHED; return 0; + default: + break; + } regmap = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); if (IS_ERR(regmap)) { @@ -726,6 +748,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 15 13:27:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 421777 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp485209jaf; Thu, 15 Apr 2021 06:43:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTZeOOTbPYuiaMZ6rEA8klvBZZrtofzyr7qSF5V/E9EUO2oSWNTkGFAx3b2zDiJRLY4ujQ X-Received: by 2002:a17:90a:4593:: with SMTP id v19mr3986406pjg.207.1618494214424; Thu, 15 Apr 2021 06:43:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618494214; cv=pass; d=google.com; s=arc-20160816; b=M0snfwbL7daiRG6gjfM7ZsOGz//AOyVWlQTbHG6IlRvEs8sc1e2iKV4IPtXSA21nHd PbQZjQ13UkshJ6iIpERqzGI14C0kYRTP+103ce6ikvrE6e5jjFgYK+Z/eK8gGNEnaPiU FB8xN0pg5LCHivJM018jRkFfkO8A1VEp//O5R2Fbr1pwz4euV/PglEthsbKNC20lxbHY RW7Y0H3ZA2izRA4LI3FEowqbRBPPTDblJUA3ATB9p0Uomhfp2YlYPjzEDdN6fXzGSCdI qjq8m8LWdobrxK3ZtgTCsIi9uhz4CHBuguULi9VhPUB39kZqSsg6+8nxC/Q+/Yw651dm fF1g== 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=JJLIjbPa54dlaXsDAtGgzgGh/KNZl5uyh2GqQiGBs90=; b=k5/BvpF0blKMIgqStfm0RX0pjiSxovEyKr12Ik2EvABAWDh+2MTgU9Ozg6QfqDL4tj z2wtAGVx6EXBK+53UJz+8JrHiOqPs442ayC9cgYl5zwA8rdPmxQUlRABOL/2dBupfAkn VzlLGD7/SPPfSRwVKyLDUS28pxddoFgXw+1MR6YFX3JISIVFAMUgvX4uB9nT6JKC07nm z5IKvCsptA3C9Ka6nITzeYMFJnaS1OVo/zwkQgbMDGZPIbwdTMGb+Xp3Gm8Ow3jqw1X9 NAl7qkQUa/BpNJkNFMWJS+C2Im9LX6NOZ7a3xfGRyyRWjMo+drs0bYDXTM8MqgsRVJC/ 9mhw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=KOw34Q5C; 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 b4si3648880plz.90.2021.04.15.06.43.34; Thu, 15 Apr 2021 06:43:34 -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=KOw34Q5C; 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 S231137AbhDONnz (ORCPT + 6 others); Thu, 15 Apr 2021 09:43:55 -0400 Received: from mail-vi1eur05on2045.outbound.protection.outlook.com ([40.107.21.45]:36352 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233345AbhDONnr (ORCPT ); Thu, 15 Apr 2021 09:43:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e0nFBuX+VLde/I+nYwddxocP/qW3rFyvO0U+vTwFwo1DQhv+kMP2sHKGqHyJ2V7QUB3W+SHj7Hg4WC6yk/BCW5XhKKVzFsus28DazaIdgrhDzJjy/SBO4gbZmKTqNaKWaF3EOdk1NKZUTNyQfmYT3AJxe+avyOs62NnBLgKuHNJKo9lvLWdSReV5/YYg9L8J4A05yC/fUm16c4V0XOM7JiuHCjuWISdz/6MPBxRipj3tQlWIPSVyUknuxXMzVCShz/eh7/NmP1pc5D3dOcshYmF5ZkfoE9vGRWtYid0Zs4ctHanM4SL215+0bF9pifLjUm7dBtCWxQ8BEQcsOYke2w== 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=JJLIjbPa54dlaXsDAtGgzgGh/KNZl5uyh2GqQiGBs90=; b=LROoNJVoALlriCXSkWXXlsu6raMe8E3XJBZGD3CZeGL5cuFF48Zy2B6ZsVtyxmwIpfaNfMFpGa7LSXjx8Ha974SZCN3YzzEh9nOTxh7BPE4nJWq00curJSyeDxNtcvXdK5Ctgjnsh9vc3eeQSM1ir7dnQC7IjrzvgsQHhUiXLmGZPAHAwql0YeM+OLJ5DcCU8M1eFH7tDj0TbHBexkcyUuue4/CX0lxF+jmSqmGnyAn7e7WH2ivix8j2u8AS6C9vsK2xeUyhnFDpkrxDUz471514nEkzl+vC931abc1FgMg4x2qT7+ypcZB6B6RVW30wIlfJ/mVCtbay3vC2uMxQPg== 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=JJLIjbPa54dlaXsDAtGgzgGh/KNZl5uyh2GqQiGBs90=; b=KOw34Q5CO0X2I118uNNygr5HCYfWoMGLe/K6P/ovUUCKzfY+EGprRXrK9KF7T2mVkqQyHCYfd0X5Q3ZpZ7g/n29Jzq0dQDDHL4huFPZyJ0tRsWBQsRV0Jgb+BXtqQOwnCqQl0+Bc2C+Zoy/rCnUqdhAXiOLx3fs1lD1UWjGMtLc= 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 DB6PR0401MB2534.eurprd04.prod.outlook.com (2603:10a6:4:3c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Thu, 15 Apr 2021 13:43:22 +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.037; Thu, 15 Apr 2021 13:43:22 +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 V4 8/8] remoteproc: imx_rproc: support i.MX8MN/P Date: Thu, 15 Apr 2021 21:27:41 +0800 Message-Id: <1618493261-32606-9-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> References: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) 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 HK2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:202:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 13:43:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 04c781a0-57a8-40ac-44e1-08d900146f3d X-MS-TrafficTypeDiagnostic: DB6PR0401MB2534: 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: e2YM+RPN8jSqd/nrDO5Y2pXk/phoonwgIvONQYo8D8q+3c8URE+RBdkTnoRpoP+UHN18154XUbOVgpX4wUYa6DamevO2oLL9hlBSLUTIOCOLyjUOgD04tujQZA0FR/hBHoJMsXQ6FdBiim8Mk6h5WYh80BYbLVxcL51P8kBTmW6ApooX33Fw9JMu/7bvanfKYQl93+pMIQ2TxlZlQAYCOYX4TKQJNVsDTcYLYi08mlY7eUPsTkOqZy1qBuEEG3dhgRjO+fsLWHo04OGFS3PX+zOuZ9Pf5CnAbVVebYzCeM92h89uUoR1BFrZuEx/VlxGKXRRl/uA5pu5lNJMFWgJFSqv1wqLFKpwJlnWjCS8pguoknli4jtssqyiluxDPJDJ/YnqGYTo+MRDOSqpQaNiwWNNrTWcRv8RkdC3xgN+RN1QK5BG5i1/CBqiQ0rpeJNzZEh9QyYuOIHpV6FpuvlZo9TxcGYQyvHofPXRMzKzwEqHtWwhGaMlrn5EeCXMc+NrSa5FT6+60Q2yEfRGriZFLd4eaOFD3a58u1OMBuOigOg4q0kmdASL+WQh8Gif87ne6PAEojwgx1RPDaKEM9QDj9HUKF4vEv4DC4/8Qd8l5GnuXr0qbEJjOeha//gvutWKMln6h9Uknc/qc/1xBzE7/5bzNSJJTl12vJ8uK5NcU8oC8aUTBF5Nj5eby/YlxCpu X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(39860400002)(366004)(396003)(26005)(6512007)(8676002)(6666004)(2906002)(38350700002)(86362001)(5660300002)(69590400012)(38100700002)(316002)(52116002)(478600001)(16526019)(186003)(8936002)(9686003)(956004)(6486002)(66946007)(66476007)(6506007)(66556008)(4326008)(7416002)(83380400001)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: y4j8vWastT+D7ctkMp7luQxRQ2WK8H9V8v2jynd/rRY9IqhT15msCAOEocqzZJ1p5bO3SulhZyjXPiT5k3dnqlPqCUA8hsdex00j3fyyqcppN/WUze7F/iEpRP3/8w1dHEERQa6joqAJ9qGvmb1JHdsM/NE6QCtMeh8UzOL+bqzeFsYlaDjAPZEyI6oFkVq27j2x86GqjW41j3BpY6p8iiDduqFq2auIhoNhWAfot47r+ae5bRn/LEPLEwPGMHoDyP8AjSGl0kt78w2Ri4SSxvRakSnBveM5XJIF18eiKThLyAbyhz1HWoFwrzl9eGhMQ2fQM77RDTjAbuFKG0bVhputZvnNHFYN7x7GNybyOZBk0eyHz4aBXSK9R5TmVS7TUihU3k5ALGbSOMkwuaLoV2NIkYMEqe7TRfyj9YcPfcwkE71QjxViU1iK2Dce0kbBwtOylmfdWPjNocoOkO6PPuoy1LX6MWlmSbGFYr5VzMzwPckx+gihydhJiXR36p6C/6I2EmsjLNjgfgmw1R/YDHgWzPrjY2WRSpm8yVMRpRd6s7tt6GIlF4gQbQBlLUzdB5mNcD4OJ2Nq8QYenE0Jg/HGR+tzgLEwgdqj5KCsMpHQgNJ0ADb4GFO32Mp6PGDx3x/4ZQFTP3hQa7Cy3cSVvEw27BGaEmqkuAwwkUyjmpuIq/sI0iKkjCp2fbYJ9Ql7bOIlA0MyrN2B00b0OutWr9cIiN3ZyVla946yrmyypxtFYHEztTPwlk+IBOY/wmMdIOgWHDpX2gladRmGPH4HJXkBUM8JgLZYhZsp/YqoFB8HCNop2TbwGmlsZ1BLeUJ8zcLcIGOkgAODUz9jSetutNW+ascHUBXtoBGz2sj/4GcIKpu7HGO0eqaT9Ecyj6CSkbGEyTN1NuhBla+EO96ir07sLSvJSZXROAk3Z1VVT8+6cRteafoAprpXPp8bEMc87fVPmUFCYjmPmErg2O3lAUxoQENMWXOJTRTcX4FrSo5txhi9faxrRocGXyJ/Rb/rW7zO2e1nkFT1qXCpGCFzLrf7gce91b12/8untKLriIDo7SPLRnVsZPzwNLgmRyeBcUlhIKGxpiNTh7U/SC8mgHooOEjHZkqjhdxQIga3zrsXI2XBgEi9AWXpZ9QOJ934hbj3N9kWtWCX+5T8dZzB6q22NA0WBTZ/lb20YoInxxHBelGlQ06y8VFIHrhK9TwRFYZoA7iDVmZnoq9+Kf7TS3NzAI66fwfcYWyAbtkozpuv1eorsL2Qk+fsav29gx6IxBmQhc8O9T2VIfKSh+G4FjdW0k/PgvasbPBgfPKwQA3M5f03YiJEFgV3OD2bEW38 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04c781a0-57a8-40ac-44e1-08d900146f3d X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2021 13:43:21.8876 (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: ivibDmSt6cuJhCcGMfpgUDnAHgTDtTsJyvPmViDVbwPo43eZxch1tUd8Gmkux7/UoBvfOpluTYsCUzb3S9tMbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2534 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 | 87 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 80 insertions(+), 7 deletions(-) -- 2.7.4 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 0592865..0ff16e3 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -3,6 +3,7 @@ * Copyright (c) 2017 Pengutronix, Oleksij Rempel */ +#include #include #include #include @@ -50,6 +51,11 @@ #define IMX_RPROC_MEM_MAX 32 +#define IMX_SIP_RPROC 0xC2000005 +#define IMX_SIP_RPROC_START 0x00 +#define IMX_SIP_RPROC_STARTED 0x01 +#define IMX_SIP_RPROC_STOP 0x02 + /** * struct imx_rproc_mem - slim internal memory structure * @cpu_addr: MPU virtual address of the memory region @@ -108,6 +114,36 @@ struct imx_rproc { void __iomem *rsc_table; }; +static const struct imx_rproc_att imx_rproc_att_imx8mn[] = { + /* dev addr , sys addr , size , flags */ + /* ITCM */ + { 0x00000000, 0x007E0000, 0x00020000, ATT_OWN }, + /* OCRAM_S */ + { 0x00180000, 0x00180000, 0x00009000, 0 }, + /* OCRAM */ + { 0x00900000, 0x00900000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00920000, 0x00920000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00940000, 0x00940000, 0x00050000, 0 }, + /* QSPI Code - alias */ + { 0x08000000, 0x08000000, 0x08000000, 0 }, + /* DDR (Code) - alias */ + { 0x10000000, 0x40000000, 0x0FFE0000, 0 }, + /* DTCM */ + { 0x20000000, 0x00800000, 0x00020000, ATT_OWN }, + /* OCRAM_S - alias */ + { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, + /* OCRAM */ + { 0x20200000, 0x00900000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20220000, 0x00920000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20240000, 0x00940000, 0x00040000, ATT_OWN }, + /* DDR (Data) */ + { 0x40000000, 0x40000000, 0x80000000, 0 }, +}; + static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { /* dev addr , sys addr , size , flags */ /* TCML - alias */ @@ -194,6 +230,12 @@ static const struct imx_rproc_att imx_rproc_att_imx6sx[] = { { 0x80000000, 0x80000000, 0x60000000, 0 }, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mn = { + .att = imx_rproc_att_imx8mn, + .att_size = ARRAY_SIZE(imx_rproc_att_imx8mn), + .method = IMX_RPROC_SMC, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .src_reg = IMX7D_SRC_SCR, .src_mask = IMX7D_M4_RST_MASK, @@ -235,12 +277,24 @@ static int imx_rproc_start(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_start); + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_start); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_START, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + break; + default: + return -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to enable M4!\n"); + dev_err(dev, "Failed to enable remote cores!\n"); return ret; } @@ -250,15 +304,26 @@ static int imx_rproc_stop(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - if (dcfg->method == IMX_RPROC_NONE) + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_stop); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STOP, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + if (res.a1) + dev_info(dev, "Not in wfi, force stopped\n"); + break; + default: return -EOPNOTSUPP; + } - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_stop); if (ret) - dev_err(dev, "Failed to stop M4!\n"); + dev_err(dev, "Failed to stop remote cores\n"); return ret; } @@ -594,6 +659,7 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; struct regmap *regmap; + struct arm_smccc_res res; int ret; u32 val; @@ -601,6 +667,11 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) case IMX_RPROC_NONE: priv->rproc->state = RPROC_DETACHED; return 0; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STARTED, 0, 0, 0, 0, 0, 0, &res); + if (res.a0) + priv->rproc->state = RPROC_DETACHED; + return 0; default: break; } @@ -753,6 +824,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);