From patchwork Wed Apr 21 02:20:15 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: 425271 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp905883jao; Tue, 20 Apr 2021 19:35:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZnpUWDG2FX1XxTFVjddz935Tv09kHuqItXKpC5mcPYjCIsWgWgOwTHHAP0Y9FCdfvclOJ X-Received: by 2002:aa7:d588:: with SMTP id r8mr36699005edq.318.1618972556193; Tue, 20 Apr 2021 19:35:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618972556; cv=pass; d=google.com; s=arc-20160816; b=s8hP/pKWhNKV6tFytrIQTfd+zkwI2g6n43qrLP1Rt9vURnYkEKdegX0Ej18o5haJr5 Jo8m3GeqcB2jCpfUUJbJ78tRlmquf786cN4S/PYwdTXz/geq5Yn2U/j2UaNAx07evKkI ignl7jeg46FjCwQuFH7aWjNNdLrEJQNWzYCHuC0wLhdiIJuMdSYbJHtSwYlkQdTlYmRO +KqXxxddKjQd0V6x3dexvQqDxd3Q73KURK/I4AvTcxCKz60p8x3Hxq3mpMdh6RtifEiL S6IbGfX9MGoyr1aOF86veOLX/3ujHZh5eYyMWLxYnfLZ09VC65A81DvN9noiE2aErVqC +AuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EwXlKefmrLgWHF+p/zEssQIWV36skW01SSIYJ4rTNLE=; b=y5/gVR3AOMCvbiAe0BVWvaL85gexP8PU9JTpXxU8ORMVWUm64p7VcsxH6G9LaTPjGt WehMbAlKTrsdQSEswrCg2uEcp5Zy7mqAcsAc7RKMW/TuAebug6l+TMAHTrJAqJl5F3MJ EggIlLigexh1hEJFLVOGxYpxkFo6uVeW7gfEsNlzHpoUuA/GnD7CtLNVYYIme+URdG0z omWKl8mnvLAl+U8dKwaGMbOFjtneWlDLxEkUqRar0/qf9aeRTGkpMaTEyQUHMkbIUZrK K5W9s1zdlkMkGmTLAk7/6ut03uf9AFLTe0UonsiRj1uNvcn8DQRV/Pc7susJGzH1rpyE zLIQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Dm8P5n2z; 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 re11si587460ejb.590.2021.04.20.19.35.56; Tue, 20 Apr 2021 19:35:56 -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=Dm8P5n2z; 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 S234682AbhDUCgZ (ORCPT + 6 others); Tue, 20 Apr 2021 22:36:25 -0400 Received: from mail-eopbgr150071.outbound.protection.outlook.com ([40.107.15.71]:54838 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234679AbhDUCgY (ORCPT ); Tue, 20 Apr 2021 22:36:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Az57CVCYDGhcPNYGx2UEyWwF6NCEaQsMXPHd3Z++fwj13b2X061YthAEkLjunjzgUmuQA9+jIsvbFxTFXnqKoYOkREJeT1QlFOg7l0aS3AN4MxUUJodi0CMqzKMK/doo+c0ZyC8+yGtzydcfTqA1GKtTCftCz7J7Ta7Oy3Vmp+uSlMDj+MtHOeoAwsVGC5kK+rDHClDVOcmlVWqpwpHjmNb7Yx33uACrEWxDAtxZ0In+gjKlBu7GO6oNsjjplJVyZsE/tz1tZKXne2eBLfKWtM4djApP23w4Q2+Ey0QiXiB9CHeGSNDJx4jzUZh9vvRWJSzjkI2v/7Z4CsZdrdw5Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EwXlKefmrLgWHF+p/zEssQIWV36skW01SSIYJ4rTNLE=; b=amn7EN+mWyicU2KXV0mAolGcIEa2VrrcB/tzVbnIJ61ZZIc65i42hcCQMDfhNuilQ3zJXa8J4X3ugunEmzfj2N8VKiHywFokuCesIDVNHJPxe9r+4O1oWZeeXgqK5SU9ONIEMm/tx7dmOCf5IdVPkza1ZAWVgTm9kJhKHF92mOk1Hi3P52waZB6NdmfwRA2+mgvuXAY3EDsGNFJqPY4mnOhVztom0VlvpfA55f2s2psEIi6ucw9rFC64TzsQVWEBIfozdjMWSd+JjKYGnmn8pnrtaeT0pPztBabDaD0b77Xt4zOBHWogjpm2c7n1w/rHOPIMr/LMZ2+zQPczhpRxeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EwXlKefmrLgWHF+p/zEssQIWV36skW01SSIYJ4rTNLE=; b=Dm8P5n2zktGEoMgy75esLkCKkspocNyqfmq8aHKam2ygFXVss2Qh5NU/KlzhL1JA/eVAFQDy1vZxOKUJRRIylAcNVJkuLA8iJlUMFD9/cwzxImAQAYvVa5djSUH9XMZf7+DUwDnt11K8UCa+s8nyISLC1z+AhEwktUWV2SKE2N0= 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 DB9PR04MB8313.eurprd04.prod.outlook.com (2603:10a6:10:241::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Wed, 21 Apr 2021 02:35:50 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4042.020; Wed, 21 Apr 2021 02:35:50 +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 V5 1/8] dt-bindings: remoteproc: imx_rproc: add fsl, auto-boot property Date: Wed, 21 Apr 2021 10:20:15 +0800 Message-Id: <1618971622-30539-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> References: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::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 HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4065.20 via Frontend Transport; Wed, 21 Apr 2021 02:35:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a27eeefc-c9da-4443-ef66-08d9046e2ce2 X-MS-TrafficTypeDiagnostic: DB9PR04MB8313: 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: ES+Ipqfq1JG7miC4Wcaj+1G4tdYgXq0NI4nv7hKz3Jq0oZgvbyA+rr32jELNvtryqjMVlEAbkGxm3ReqQMwBYKuL4AMiKQJkDuRDTj/GK9EuOoTy7gQ7CI6Fg6FB9mISN1DVDdh5FQxtjvaJXefXsJVN30511Ko/sIgpkkVDBz9aKmfFGYNwC/zVk+HSuPjs/RxPRKdMQ60ESi2RHrXeXJY+Ve2EWOUwRl2EaOOss5E3VH6tbXa5Ffw5enG9cCGHTive/6xbPRz96gVD8MVtYGKDV5dRB56XLXzZyw0tcoor5pZD5IICZhcK6j2yfGwtIbPCI65zFJkvFwOjjh4SoMkRfjb9tCrELYITyB4qAzL9RR2xPR5yVJQ6vUmpFTnkldQJWLzYZslmVKtNIKfFJLZZ9BUHM2kpEaYHHkkXpXqSwuf4dxuz2Q9VogCKJomm0iq6ia9KoEhpfsYbFw2K0fgN0NIPXhQRJCSbVjolf5UOLQgydr1DvFj57v0W60LUVXyTOI/u3fkBt65f+oSl/k7S94XAvwFao+HLtQu8nOuSqz2++Ug+w/tj36IQ8AXZ+3KN/bcdYdb+ddVtQL0Fvd3VVFuzh46P3FUsXJWScORsQD/AXvMbB3ZflLrRIdQd7TI81DPnxm+Ab9WMRb7eMmzoYQfcAUAhY1ldMs3BJTkUXhrorfo08ANgtpP56Ote X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(39860400002)(346002)(396003)(38350700002)(26005)(186003)(38100700002)(66556008)(52116002)(5660300002)(956004)(4326008)(8676002)(66946007)(4744005)(8936002)(316002)(86362001)(83380400001)(6666004)(66476007)(7416002)(6506007)(6512007)(2906002)(9686003)(478600001)(2616005)(16526019)(6486002)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: q0pABtDIkf2WnGyfeqYmcpHKB44wXeS1j84XA2lqCR5MYEV6RVZebUPpWYxJDbMYiTZTniCg5IpjwZB2s2SeNmTgPatQsp+Lb6/RB4VHtx6SP5/hv4VVaSyj68nlfOGDU9V2hvg7+fdRqw7VCgztHx6fWKS1VfzAErLzeEWRSFNNvlR/2vYhWAoy8ssNlszm1zFV469ENmFYLoRnICM2JV9yDp8Fm2jPvEmE5TGfXnYew2+CP2yPIVgdPjl6yzRUTq1Vs+MRQ0b/vsq86NkMzTSi+CbgQzFuoYwKnIJ0KvDgj7AEY3S6Zj0dtBl3SxTw/ocCgwHmRZFshRJtMoKv32jXMOJ+q1MRqj6wMvgpmb7fnqAzZhQv0rmP+YO7UlKMeCSdNnSKQEzUFkRrqsyFMb84ObK0s5RYMof9dIEK+rvspd6zMoM63ZxwnrLlpt6vnVHKzXq6iqP1p6Y+dDBk1VDXkZD7IACTAn7hYOQUNVu/iJM0J9izdMA0+8J3W/LoWO6K2U+LcoMnM+lPUKN6C794oeYnGkcAiykSEFjtIKbWFBSjn2luVPgY8VfzotTUrjJ6pXKvNC1wQOLMN4J6dYDTooxwkJ+0UBHEF7dkd9NzWbbUQYA/sCHqzZb91T5oIBzib1oQql4ySmMdOwpq3QxU9cAyOiLtzuhvBQm5Xs4A337Sl9B3/YV2VuysP5YAdqByeiZ2+PpU8ySsgKv7gS3/WHuYFtPrr9I5hACpLhj15sHALR2prC/wyWEgLned75MGfm6i2A6Pv7AwIdwvh51+PjFoJEkKXjylb8J7QNUy505LkUCyqbY38QcFu5FCxtHEs9e6J9QGOkreDTCGk1Wm3diaFkWVWdEe5QXbFuPl9fJNQ4dMPyUoMVV8NC0xk2ycLcEQv2b0001XKWlC6xrE0LduZddi7980vjp+HK+nNlz1mIxCGddoQ7qsgSue0PG0x6w0LLOBvQbhP8KahDrJQXdE3Fc6NujKj3JX+WuokqFEv8TuY5F5rb4wnZL2A57jH2YSPam2CjY4gRDcwUUYOPqfKrec12XGaYk79DZSweooWj4Y1fE2jCgT+aSGPm/zHKIPQUhk3lTUUWFVwtTaiaPLmGRde63qL/gVj/OIcCbWz7ibuPOJ3oCHCMwiAmjUgKJUi15mVqPglWRSRXSrFhw0ZPdgkEcoJt6IAWQYzrhnVJdMQBEb7aFfgn/Pvg0F6US1D7MBfmKleBULN5+Z+DWYTzHzv1ZwjH6iBXOPLRjaNjf0oNch8YBWZT1jGRCxG8q34/cE9BpifruUCvuBC5MJgBes++UhIdnGZwl6CdcXTdaMqyV0lC2fAO8b X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a27eeefc-c9da-4443-ef66-08d9046e2ce2 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 02:35:49.9467 (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: qHTuiJVGJpbsX3TdcuWLoqB5vdlAi6dWLf43qwp+8lnMEclPjBKsfXg9bOJ4HrFTFp2BxyMZNoTuL9x++JTamg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8313 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add an optional property "fsl,auto-boot" to indicate remote processor auto boot. Signed-off-by: Peng Fan Acked-by: Rob Herring --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.30.0 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 208a628f8d6c..b13bf8d70488 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -49,6 +49,12 @@ properties: minItems: 1 maxItems: 32 + fsl,auto-boot: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicate whether need to load the default firmware and start the remote + processor automatically. + required: - compatible - clocks From patchwork Wed Apr 21 02:20:16 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: 425272 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp906073jao; Tue, 20 Apr 2021 19:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqMOyORvxkcOW1PTFkHLErXrVKc2K+DLe/FlvHWw7Bmr97UO10TiVQvJOLn5BxQr6F5HHi X-Received: by 2002:a05:6402:105a:: with SMTP id e26mr35684295edu.164.1618972579231; Tue, 20 Apr 2021 19:36:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618972579; cv=pass; d=google.com; s=arc-20160816; b=ZEAWBFe21SqA8GTMWYv+rrWN0CxTX4imGCS4Tjgthvy0yl1WS+L0fL/t7+hUaN5UcJ S5ogRPGbuurY4C3fuC8ZcdGV47kCYeYoWEuXnp8rCErKF9TN1ZQZ7ywSXWYPdt+ivGVK O2WhlYM9+Tk90Z7eSjySY03djxPwbWjha2YDwfC8ueiY43mffyHe5IK/9GcSC3hvmQPQ 4zKJXa+agLNEuDLFwbMF3CbAEnejm8laVcMOje8443+pGoSjup/wvA+8EkAQXjhY33jm fRcNeuJ4QhZaWwlF5pa5Uk4x3aD93HtLgI5CM5fHNzXn9EA+yPxyh8+fT7bRok3mmLQ/ tAuA== 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=eCRqmt83T7B1ZPemzgBrJCr2tq6gUaG7vIPBCP5gj34=; b=d7F66El7u1TkKcQc6I/ql4bgJUPSz6Qr7fkA0HGHbzo7lFvVPxSVH+2lZoYnYFcURa 3w+FPRpXGc2q3wcQDetrt2HPjFKhgWQuzcR+qvPOtSnF1qo5M/zMj2ifcrITj6O6i8H7 V6QD1+d33GrVBGaXoH/A6AJ7GEXvLMcOuf9jGnjHHgWxBuvxFK8gvqfM4LgO9ns5pFYj owhC+Un36INn6UqrwFOANaqCVKYKQ/ILEvTOZNg8B9zZf8kvqqbmm6OxP7qvPARt5zJG +SZhI8mSWEyyJBfbNaawk5k7tnFMOTdlYkFifLdBvMRRRwWFIPlbk0oL5wSHg4pUlXxa doWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=bQvMu1Wf; 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 x16si756747edd.387.2021.04.20.19.36.18; Tue, 20 Apr 2021 19:36: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=bQvMu1Wf; 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 S234698AbhDUCga (ORCPT + 6 others); Tue, 20 Apr 2021 22:36:30 -0400 Received: from mail-eopbgr150043.outbound.protection.outlook.com ([40.107.15.43]:10816 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234695AbhDUCg2 (ORCPT ); Tue, 20 Apr 2021 22:36:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cofdXt6vh0IBS1Uask39Ay00VzyzMziVU/YvNik+0uhMqv9g5GE741wxqFSlVFYz6rrnSHK55RVErkZ7ePV3k0zMCtStxmMxO/F4zlqRLRnal8RaDN1Ph/R7ctO71eS7ZRSDIbLyauiiIfg77F3iqPeTPD0douZxj2SD4y5Q3vPrEV+aD/04ojCUwp7wT3d4pRdacVDoeb2I8IvtBMVfAoE6leNH3Ju2hkEQc9LyhrYr+oD2vwTbRwAyqIWaeDPqHYE2182avCUBLzrqStrEfVQBYbXy8jJNt0Hl6GrhuXl5ZQ74GFi2wofrUF/NAYYyzGR4r1fYWvRzJoqO2OXh/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eCRqmt83T7B1ZPemzgBrJCr2tq6gUaG7vIPBCP5gj34=; b=YDlZaoeoPc65V5XwvJW2vBGwqZYtWPcOStTDGqB7eN0jZ6WyC8KM+KgwyaUKDKPEyq+RgGbWSQmAeP0In0QSgqJlTvboJ/ABuOfBG3058iN21BFfvpoNJM7XP7WrHQzQInuKPxugjVY6Zyl0KGOxOJCMrl4MVjLiIbvrvihMkzBilvrJTDErFybs8N4ghZiyaZgaVMKekKOVtYsIK6/edK7+uA13bnWw+9u3DHQ1wAfwKeVgde8nwC7PU3X87CYrpaU9w4BiQ8+CVxsm1Lqp+1hmCj2IXJk5I0mBenIaEPEK2tzxG0Eqt5SOoT5ktP1aPtg82f5HOnpnki/0g+eTFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eCRqmt83T7B1ZPemzgBrJCr2tq6gUaG7vIPBCP5gj34=; b=bQvMu1WfpXhkojJrpYg3xZjNHkUTOJvDB6bRMTVm90hOrddjm418cH3INRkIAQfUvGMzjzHSW1NXMU+C3fYjFl1DE9/kRlUyKkGxspkW8cOqrhKrxFWRriA65GBdHlaTb1mh2SYiHM0DjxNOTTuYLvSlBFCwHW8+v3MrrS75CVA= 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 DB9PR04MB8313.eurprd04.prod.outlook.com (2603:10a6:10:241::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Wed, 21 Apr 2021 02:35:54 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4042.020; Wed, 21 Apr 2021 02:35: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 V5 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support Date: Wed, 21 Apr 2021 10:20:16 +0800 Message-Id: <1618971622-30539-3-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> References: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::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 HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4065.20 via Frontend Transport; Wed, 21 Apr 2021 02:35:50 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c58b42e6-73be-40cf-a323-08d9046e2fad X-MS-TrafficTypeDiagnostic: DB9PR04MB8313: 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: gV/w7k+7qLznrvWcjdn5V9g8xxYX939uf3f3c6YM1+qZj+p/huDoMHcvRDqoVzo6iAyiIE5F+aiHnvOt5dUIggPh37RwaL5g+laJRhuWdEIAnaxfkUM86CG+masgnYFrsXtcSDxX7cOAtfK8TAgLvP4/XNKoGZK5nBGzcUKd52fTsTgrRirxmy2KthN8GhuDT8Rg5ZVO1EOZgFj0Fx8fyXYYnY2Hv42G8qxY1l5bpw2BN5PVhljUvXLKxGPS06ChgIxdnL+57BCQeg4FyDj8JV3ZoXPn6yuUO2S3DXM9k9vViDGJOCtSMq/WCUWf2HsPpeXVjrS5qD+9/4/pnJDQbHoxL4m2PYw0L8E127W3XsDvvnGqjAVYdLWq74XTzzUBQWIl6D+s4kIxf/2su7enrNbOItKcNYWY3VslHNMhnESiegM+PS2VQfvW2j61YWOV/XrcuSad8UCVQ5q+WwM5MHFFDqVbfmS7RWvPAI5TIFwKmP/SJe4YnTjqwEjbIOlSQJooF3axAp9N72O3V/IP2BELTDODWdEvnskNJQCY3OAkrOvvDs8TczDzHQwxX713hJrCaiB7O8nCc6pINNm52BmPC6U70bqCG1XV3OQs7YpOfbUNRaS6I5agcpAlL/ucTVLYFI06LnNytsLgP2HGJUVjz4V/MI17Cm+VF/o4kIpj9Z6qqEF7LhJ0yXuOaT/I X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(39860400002)(346002)(396003)(38350700002)(26005)(186003)(38100700002)(66556008)(52116002)(5660300002)(956004)(4326008)(8676002)(66946007)(8936002)(316002)(86362001)(83380400001)(6666004)(66476007)(7416002)(6506007)(6512007)(2906002)(9686003)(478600001)(2616005)(16526019)(6486002)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: lprX+wXcyVHDRXYxpoWA2dEy8QvrEm+m069kmhnnmWtfj+USS8gfFA0oHKGuiUep8tOoWw7AmGc2A/qd9NL41eiAgW2lPkVMckElwFaha47Co54y3RjauYaWc/dq+qO8K/l6Z+VxyIJrnwGoMWlkccBNyyFcTpRGTVC42JevLXq2KLqYrm6Rjn3aIKPcqfAV0tfJf2TCC3zxMKINhhbSp9EwikXTSFVkjCKbayhH2wbngxoelcCphMyFKDMSBrnr9RVJ8XfgwT39SBQnUVO49l8Qi8aCzAENgLFOWbMoDlHwTEy2glIWZ6rgEC15wxkAskcrlI6ttAcrv0ImFMH6Ps2L8TPMspOu/iSF6Uj1IrOIIhR1UJCgR4E2r+qC9Hpu4yeGo9FGHIWKQb1iN/TcJ09pehrq+fdL1QMye5QKsKKPExSnwxF3vaNdhvbla99/qQpIvrJx6nwJwAZShWEMCR9TTbtZaFDGDN1q28EknuuPXjkP97X3bWmKlFWxpGHWYIR9xys4L5oNabG+6YK7x7xdMgSZR3R5fkKScmg/ME6yOPDmeTkEiIivF1xfmDuU+/iQV/h7sQZnvobN+hM0BXjI/Q4XkB4yUwCWzAHMbju3U1gNHrtqqSvTnHx4nVfqNMQLK8LP9DE+3qhNn7ALjqc8e1JxlEp0GUHcmRpFBkyj/ytnHsH7lniQZGyLYRa0+Eqa5hQvSXwCe1RXfQx4M2TcvajDXtf1zJkt5/aXOCP3voeFLWiqTzsmsKlC+kSXEP3r5DDHF3YqWxN+lWK31ieoPJyG7CjxkOH5NggNnGgKN90Uaps/AiNmc7UI450uOIbpvsC0/aNqkFUtQXc828yghhb7f2yxbLi91dxnpWoTX/hoyP1sE9qALH3ex3DBphlpH9e1DT2NFg1my9gQs7hV/ByKithJGx7Nl4aFm5cwolJ3/SwAW8TWv0Hi6f5Wh7d3SnqMmB1ocZM8ADAonsC1KIBdS/S/8YbVfjQacGEo8m43W8lR3nRcocAyvjV3lAXeRcBwYN/n/VhHe5As367jF2hsuHKDqgJC7rRXzeMYeflfWxFiA+1GINsoghzKt8YqPnv1SlT8yByUTd8Qo/QAq54Wjrqnv7AGn1ipf3e5HDQFints3HAm8cWG820/Pg4Afwj5Fw86NxM6Ig/ZCu68pmOubCzMEhehKcSAF3uz4mnUpn0o00yqhiut7ALBObE+DQIBfTKQtUppbrgeEp/FAwr/EWDUcJXMrytz3YD8hDKGSDRxjN8CaOBlAxVPjpIuaoC+7jt8jv6JwCc4GA1JYiuIG9IDXaXmNAxPR/kTOAu2DvTWS6JQI7Y4zDl3 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c58b42e6-73be-40cf-a323-08d9046e2fad X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 02:35:54.6586 (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: 6oXzMeeb4SHgGJqGts0xWppV2BYnzheCnaz9tLikylIOHCKGoY6Ba9WAmfYh/djJUw3Juup3iwFjQqFvuFivwg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8313 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 --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.30.0 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index b13bf8d70488..58bc2a23f97b 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -18,6 +18,7 @@ properties: - fsl,imx8mq-cm4 - fsl,imx8mm-cm4 - fsl,imx7d-cm4 + - fsl,imx7ulp-cm4 - fsl,imx6sx-cm4 clocks: @@ -57,8 +58,6 @@ properties: required: - compatible - - clocks - - syscon additionalProperties: false From patchwork Wed Apr 21 02:20:17 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: 425273 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp906090jao; Tue, 20 Apr 2021 19:36:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxozK9BqFPQth1kuZF1bknAgv8pSjRM8qQhyD0oP6kCLGVDS42FuaPpX1AJhHnZKM86Mgk X-Received: by 2002:a17:907:264f:: with SMTP id ar15mr31104706ejc.484.1618972580818; Tue, 20 Apr 2021 19:36:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618972580; cv=pass; d=google.com; s=arc-20160816; b=eEcXKLhogITqA3rCCLN6+kIB4NaFtZlwoIvyTu2q9NxJRw824nvKTSbpCct04D5VKD oZkVAfkjGj6S8wYaeRgQ4EEYehIO8UR3EdpgTSxfkNAOcztnPKs8j0joZeQS5iqlAWVJ S95aOLmI667zpi0ABuaQKrq96BW7UCOE5eQ6J3D85y62xFUQSlhfkUSrzLOuebo5wrEX V6mHqEvInRHpeu97SXT0cJ3D8pnzm2qU0xJm7RDTE0ZH4U6k4vHwJ/SWf7WTy0sznL1O zekTZ4xDvrEzzPCZhZbHiyvylNWte0uC5C9cgp7oU8gtCIACWkEUJulzfNLYf2aJBxU4 GA5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5r2YS1IJ7iZGrBoTfdGtwCXcI68fncREV/Lm1YGhqas=; b=0hyrz/l0SkGagL62Nj6uJIBjq0QQAOYg+gRXFJ1c/o/vP25dXackAgHqh+BYbgX0oR T/U4JkwMhrMQJfpzugcQS5Gb1IJqE/geRP9A2KFbhWvxRjTwJESJTyIlRnbCcCGqj9qI s0dSLIlPdKb+b360dPrs7I6XTC9PLbEoSOQDVzQV1LJ4PKzeR1GduBWs408TDxzQnL5N TxEKwnd5QsMtgwQPGQV4EyC2bkyFWrqNMfbBoGCZ2VCFAXgOR38qHuQzGqu0kUrugLqB zl5QCtI4RAlbHkQsrJoLErtl7ErbbNcTChb9giy6v9Ovybe1Fs75n5Ndw3ZbYp97P/9m Zd/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=i5e0voEh; 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 x16si756747edd.387.2021.04.20.19.36.20; Tue, 20 Apr 2021 19:36:20 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=i5e0voEh; 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 S234721AbhDUCgf (ORCPT + 6 others); Tue, 20 Apr 2021 22:36:35 -0400 Received: from mail-eopbgr150059.outbound.protection.outlook.com ([40.107.15.59]:47783 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234695AbhDUCgd (ORCPT ); Tue, 20 Apr 2021 22:36:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i3D0u75vVA8c0U1wGKCRRurV94ZmA1MsJjr3M1SQ9/1o87nns+y7aViN8zDWuUorCBw+naEJI0mWCwN11MgmojBT/gkWGTARBR7HQb4h46uB2vuhu9sLB4noe3qCEwoyDbU99UEsX4ovLs0VNfOH4NoWjupnMTQIWMfv4d68pENzXAM7/EZxjfTvRJPuyYDESTmyTQjyhsF6z/w0J1+T6VNLT1Jov/o1AP+S1+KZSEKMG2Z0U8blI+4xnUhH4sMcGokUUjJcB4xTMD8VLi8O0auGyU/0q8xnOn/atSN2S8i6jXzT99gAwMwh3XIcoGVz6pXpg9GUYrVeHgyfFPFvmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5r2YS1IJ7iZGrBoTfdGtwCXcI68fncREV/Lm1YGhqas=; b=Sn4qZ/MmMbbWzMPXoB5WerTnR61bIhX9jkisRkOqdPASHXeo3imHowZZslEaDdhlT4jmPdRBVO3Hn8oSlk2OvdsKvdQHsZ22HyeAd6OJLRcQ1OGUgsWABN7MhHPKBkmd9w9dmX+CPJV/ocMzp/EIZyf3r2En0hWl4WXUD98PPGs1E+b9GNId3/6deXQWBcZrftT2mtovl1ImPRdsfFULQOXHWdGWBXD3LmGLvXKRxM8fKsOzydtxumEEVW/ZNercP5EjzxpLOXQt3PKD4uPkLoPqAHSQ0crKqN59859yYj2H9Gv0HXb8gpvfPMM6PDB90rEivinN4VqiQryPjIGq2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5r2YS1IJ7iZGrBoTfdGtwCXcI68fncREV/Lm1YGhqas=; b=i5e0voEhmkG+g5tnei2TAIIGEYHA8DJcrny32I3kaGOYws0qA+YGEQy+S11vHoTCGiniu/IoQF2oZWAp7inyQRLdcLPDJ/vKSHuJxhdRtQxaONQdGj/1HHBQyDKBMnyMAuFNN3UkktnzV7a//A/RphvrU6cApDtPI7bzBrnUZrQ= 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 DB9PR04MB8313.eurprd04.prod.outlook.com (2603:10a6:10:241::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Wed, 21 Apr 2021 02:35:59 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4042.020; Wed, 21 Apr 2021 02:35: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 V5 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P Date: Wed, 21 Apr 2021 10:20:17 +0800 Message-Id: <1618971622-30539-4-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> References: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::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 HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4065.20 via Frontend Transport; Wed, 21 Apr 2021 02:35:55 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 71f91437-4829-4a60-74bf-08d9046e3285 X-MS-TrafficTypeDiagnostic: DB9PR04MB8313: 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: lTDG5ai9mUgYOgLPmB/Y/xfWHtvSogZSFvezQx6WH8rRTM/x+kLcjMgw966Y5dVU7xfYcPLQROSeGZgq6VNu0IJp6m2eFXhQExwJfN0/llfgDnwhD7cPYsI+EirKElmukF3vXNKqzvTZRpCKTfzSglYXsoP9Yqy+p3hgNT+H8OcejTB+Kjpjb78Jyri2jGWYb858yDYP1Rbp7l+bRZnmGfUVRmQGbvvWj0DDdXhRsfL8m+5UP/1VH3IGar/2HhdJnEqBCfGU0a0k/iELKUsqUsR+QyG5sT31KjM8Fzagn9OkoQCkk7nIgYceWnMmswmtV08bXVEMLwUEiW7uOygp1c3LRv8cVQKrPG2xkAzPxLNB1qiHzHQVoO9LwHGn1FexYxiuoEsr2Gzmv7w/6b4udhJouGqSIUtI0iesUrtqc/SAwoBo5LeC7M4lrfXotD+DMeBI8FmsIPm44lps682CRSg384xLcUz/5AaqQeRIClSP0d0nKDdB7Ho41VlMKaagBBUoFlsnGZEw5uSTWDK2+yRz77hh/Kq1dDWAFLU1KF9PqcUzPqTIb9udDtLGazqrqpKmAQ8Z3XL9JEFyNSDwgTRqwVIiRGuyOVpu4GjjWe+4KCDvIUsfrOgPZtbpzIQ7xKMNC+tvQ2cudLUX9sRdir5swpTIzhk9QGW4mM0lx1V5TaRI8aN22tXgfjPc0RWm X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(39860400002)(346002)(396003)(38350700002)(26005)(186003)(38100700002)(66556008)(52116002)(5660300002)(956004)(4326008)(8676002)(66946007)(4744005)(8936002)(316002)(86362001)(6666004)(66476007)(7416002)(6506007)(6512007)(2906002)(9686003)(478600001)(2616005)(16526019)(6486002)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: qlkQZzkDUboiV8KZpWjLIdKryefb30aYqsv8mr1c+x3lSblDti4tsuTWyHKnnkdKMaZqx3j/z5mTbIFst5jPahCpRWTQVNsBoW3sfIQYNOevMxAv7t67yQU6DOt6Xelf5y1SGjou/LWp7/8wk74vO8caMG7H4z6GylPEw3l3iiQ4WWjBllseXArmcgsIF9H6cXhPM9rsNm76RUVDfpzQZWj1dw1LXApW5xfa7rT74UccBrP/3r8MUxRgnGven1SZ8oiNg0HMlD4cVy7h9tI8vsa21HswkvIfnJdUoKtRPk5li7hO45AzXvMy+J+/RiAQiiHp6YOtlN/TQbdkfeIXiKYjcm35gKkb+QWu0yTcJ1EoK3u7X7cOlwgD3+m6M4w20+hfrxcEg50v+mnN8IuRhWVqYase25m6d4QfERCM/vFLzJhs1BiKgPX4mOeeB9YLTJPympQumxxi+/l+77CddDoXLInYzDJlOZ0v82DFO5lOsKDd9j5L+KF6KCcr0yIJSd4DCTcKP4QbmmrN/+6GlnctueskjDutx61khSVLsg/NL/itEOHrw+ZqevTZYT9BUxu5PNsf18vuL0IKZ/4lTGqSHtAE3ZILgI48laFktzNmhWDQf+XBKfJjzRcWdyuuNMlfoMJISvM2CRFuo+sHNPG1QMGtQUD+Jmt3xAGkynVKQOG3chHy9BrW4PoAbWiCbVny6n+/tOgyCMF2Grob4h9Cu3IGqYk8kRMJxB3XiERcw50NPnNZx4av62blffNFeboWCpIL0DvQLOWwNLQtmigDJqx9K5NQ960nrQQpW6lOnbmaZCOhYl+j15+Qelpd+gsExJwFjbO/pkbM7REXxR7ePxt9tt5Y1wAP2n1owbd0WxXm2l8vBS7W4i7GNWGnmfZhyDO+cWe+2kWgJo+rIDhu16+HgxKtj7wOq1KHv4N/+lElo9MSVF8PlVxQLtYZ6S5SljLcQURQy1t24DyxEYh9X1QYkjNZIfx8i1+51X5SlRmi/lwHLJvbNT1cRqpnDLT+K7T4vWy7C3WHxC5fvbtNab64X+gFt3kVfa0YzMgQF9XO1Ay32liBsZy2xgbfC9X9gGcaJ3dvB9Sbg3hdOEZM2WcY0LqkpO/bffnif0VCr9gWjcERVXM9FPArqNpm51B+1hFw7qZW3TyiLVTA2z9T1G+h8qf+KSNDdP/hKykUxHZUg/nrxP5Z0stmVDiSnRUMcD51YO9GhyT0gdkceScPMhalvwVj9Nd+UbL/SVW75szqnfGS1rp9Qg4orv20RtwgJEMyUOHcLc1QTsjlS6Rq9u3Kltfprkdqxcfc6iWsF39MitmCQB+DRlnuTbfx X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71f91437-4829-4a60-74bf-08d9046e3285 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 02:35:59.3704 (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: KjEVDE2V/wbQyNziaXgMXsywY5lbbozr1SBxc586UFY2ydj+5AHNqio9ZrXf/tzrTdptN6548axw7xf4wjYkBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8313 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) compatible string Signed-off-by: Peng Fan Acked-by: Rob Herring --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 2 ++ 1 file changed, 2 insertions(+) -- 2.30.0 diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 58bc2a23f97b..1dc34cf5a4ea 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -17,6 +17,8 @@ properties: enum: - fsl,imx8mq-cm4 - fsl,imx8mm-cm4 + - fsl,imx8mn-cm7 + - fsl,imx8mp-cm7 - fsl,imx7d-cm4 - fsl,imx7ulp-cm4 - fsl,imx6sx-cm4 From patchwork Wed Apr 21 02:20:18 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: 425274 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp906102jao; Tue, 20 Apr 2021 19:36:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwglAoLFAUr5XvF6NJGLJ/K79OkyoOhH09P0wV8lTvHe/XXZr9xqdwWRtMmxhgYhszMAiB/ X-Received: by 2002:aa7:cfd3:: with SMTP id r19mr14690886edy.317.1618972581654; Tue, 20 Apr 2021 19:36:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618972581; cv=pass; d=google.com; s=arc-20160816; b=Ma1ClBMgC27kMYWFIw70X5zvG4EPxRi6jTQPVnuabzJTom9ncnHPzQRHHPfeGiNysX uK3lMxu7diRN7x4uzZgi2YsyJ977h6uz73tNozcsv64YEXwCNOQ2OsHcQrsMMjNqF5xK Hq6zJwobDxrJp+QrZeu1lt2LNaI5iCKGhI28v/YryUS7C32V4sILH5hJn2vjU5fKTFE1 oKXyaNLMakpAmUgiGOGAOCQu5SzIdX/SjEFwbhAEFMMeU9Vvgwzt398zTssqZ/xZRvY0 UfOVqj0hq2Bo84tOjdxIKNd5JS63i6EeVE1z9tnp3m2X+VcnI/3GtDKCOoDw/9NKGf37 S9rg== 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=5wDT0/duqjnGCPE6YxdFm3Sn4kEIcN4Q2kRMEQCwybk=; b=FiJ7yWhQuzXcEEaM595mT4FnxzdzWjmaXuAMIvu/JlPey1FytFDiC1QwvQQCfXDZTe enrITw87ckVgEN/zHcPalc0y7fguYgUjEY6BcfZ2EWvDY9PThkcqgnMyFWyjsAc8lpof dp9kOAVITMh50q/5+UeoTuFkepfKSE9rXx2p2yAg2evI2etHzSUt7bB4alFrJH/DAo/v y8ubpP/Mfek5YF6V4DB+4SWfIVZt9lFdBCvzgtGqY0oO49e9GaeNKqLUb0M72u58gK1e rEw1+rXruRQrnF6Ud4kPUprofA0LnlWp25C9TxA8N8K4CVps1RLjAXXp3l8swb/N6d0K n3jg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=VEYy+g3B; 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 x16si756747edd.387.2021.04.20.19.36.21; Tue, 20 Apr 2021 19:36:21 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=VEYy+g3B; 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 S234695AbhDUCgi (ORCPT + 6 others); Tue, 20 Apr 2021 22:36:38 -0400 Received: from mail-eopbgr150070.outbound.protection.outlook.com ([40.107.15.70]:27812 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234706AbhDUCgi (ORCPT ); Tue, 20 Apr 2021 22:36:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BxusbGDBaMbPdyLqYblOwTIE7PEHTplT1cN6YuUi3JQtLAaEKqQn88604vCQJ15OQ2ZSwVWORL3uPX453tXq91fWeh+qo6Lizrz++GHsu6F+5zbQJ96IGqHZeIz88k0sxblOHDd8l2SU+iOkQeNEhQJX4JpfHEy65onyVGhnF4QRocBL/G2ncJ/yjv2BqldVq9ypRzwmemjuTd/Yx2PapPpB95xdLrm+gJv+LXwlaV61L7PzYczhA5ZtzjbjVd3k1OvZ5k72jYBLRiZcjblyKSYNwIwUKLTvXlITAMT0CAkN8g+5w0ayaF7dluaW1tabOQEtgtOru1Bmc5uzJzZl+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=5wDT0/duqjnGCPE6YxdFm3Sn4kEIcN4Q2kRMEQCwybk=; b=ie9CAKqJ5cXrrByFfiseh3H10a9fqta1PVCfs80tWWX45OjijoLH/ZX/Kk7/E7PzV5zfBBqUXdLKU93+YKC8Szo1KGVAoCotAGCHWlWwJJhrD1k6BKjoOCTC5b6ZKsD3mm42+d2yhjiSfIqmdkDX13YCkKb143lQVfTA7kIp/a365Kdfbq56egbm+HTdnoQZ/L7IGyBZ+TlxX4Q1sp4Fma8z04iHkNnCoV06J8kg8f6tJRbuQvwWqL3Bf5L8LpOx8SnbcKtondCCIscy7ctprIDMitHIty0tMkJ7cTIJz1ANGL2BqhZbMu+WRC9XdWPwKUzPv6ehflcfVvsrByXSJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5wDT0/duqjnGCPE6YxdFm3Sn4kEIcN4Q2kRMEQCwybk=; b=VEYy+g3B4BjWcdxHicm6wrRqLgkJGgH9eAevWXQN8UYgxOT2pRjEjgxBC7jWNsyD2DRfB42JH9bQnvzSvUfIJlk34J0xH5FXYT2wwYBjFnf5SKFD05addnNrARQnFT7/kIb59DMBqzppCpJyMqtdWrAVMkHdKTQwsfGURGFWB6k= 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 DB9PR04MB8313.eurprd04.prod.outlook.com (2603:10a6:10:241::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Wed, 21 Apr 2021 02:36:04 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4042.020; Wed, 21 Apr 2021 02:36: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 V5 4/8] remoteproc: imx_rproc: parse fsl,auto-boot Date: Wed, 21 Apr 2021 10:20:18 +0800 Message-Id: <1618971622-30539-5-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> References: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::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 HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4065.20 via Frontend Transport; Wed, 21 Apr 2021 02:35:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df599238-1655-4ef0-42a0-08d9046e354d X-MS-TrafficTypeDiagnostic: DB9PR04MB8313: 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: u5SnXG/UBcvuoVi8tSNFlkkhLG3mEXozCiJbgPBp0GKlImsi7wJ/c/PKJqfur+epiiunrm9MkS7CaJB8mWYu+HpJrQC2VgjyjYWJQM0KQ29P7twTHgw6aAbaliUvkysQFMoQvFaapNvVw6d2YskaVUT5v3tbopBj5Gq6PKArhrs6jA+D3+2pOgvQly1tZ48TIG6bkT2kFt071+ftxRk1g1FbVAqPgAolQldlH53NGYk4CqTo9LuOppNlZxY2uYJBZwM2j/dSpkmyFTG6lAwXrWNz2NyFY4FQpmrwFJ+ALHgnbWjdIUJE+c3cL3j2q3mqK1pGjFBxM9zaf3qr8FIT6kXq1AnDrZ2UgWwnw52w/aJpKtJStr+6h1WJ3WylhQ/Gjwd5jvV5uzTNMd9+zgzLqzYrMQ1CHRRFgWsIFv/qFVaJKTqYkX1aXBiOcT+i4KP4CJfJPpOrzAglsVMg48fMZu8UzquZuhVc6oVVtpo4PhunxGJQRYdvOlhA15TX/xPDmF6vu/G4Bo0KEtOCfnnwMC33X4AxpTWAExHzJ1W1WHlIET/PyU26AKvpRxeZFVxnTVFtuoi4TYsLzehcGhOD0ynzmJjo1md1yzw+Qit+Je+hiuYFiTA/RJxaWuk3Y/3BnwjMh7Ada+PJI6TUOYLGJhiYUM7E+yQhcF7LfkyiUy5kYqTVKfb9V8G9ZqE4LXUH X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(39860400002)(346002)(396003)(38350700002)(26005)(186003)(38100700002)(66556008)(52116002)(5660300002)(956004)(4326008)(8676002)(66946007)(4744005)(8936002)(316002)(86362001)(6666004)(66476007)(7416002)(6506007)(6512007)(2906002)(9686003)(478600001)(2616005)(16526019)(6486002)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: cI1SKCqrBjLsTHtc/PkFUwcA3KVRB/ZcFAOhhUHKr2eFbrqfxNHpV7J/htWR7qywtWwX4wvsH5o9wgATGh7IFk4AMZNQXPV/n9lA/s9mLNKIKe1j5QFVtGs4oZX8JrSepo48b2cs1pzZ/I6TkS3QtkLm6HMVJoXvjUWg5vrQVS8W88t/oFSf1GcLAnscjh/QFMy1XqRclYWaWr/XIgT5uzuLIrhlUrb5N4t2blLDZWtid2NfSZR61T4rdxHyG+dQYHlR7wQ07be0zlvobU/lEbW7p/qVRUBwntWC9/iwRg63s8jgxZxZ4yZzwnbjZpsALFFIf2/s0WOq0SEH5bRXBa3KAEfyg3zChMUizbUCvCcrEbAtpmzrJGc7I2Pg+9shBdngngy4shEA+52a8iMJhxYVY74pfCrnrF8Eb2D9weyxeNWJlyXIixL+jWW+Hmljz4wInPnzSpxFiYKOh01c8m7lwj9YoRGnUbKD+M33kO7Ox/BFSW2vKzOwNR9lbKKcTGwbjq3mM5i9LwrSRLReN41M7VYrUooI2CrNrrGJACmG/9Ee9tfvFXbbHpEyyWnCf04B1oa07HQe8oljrEA3+hVjQnBjdku8mO9xJgi1tu38V5KEz3Hp+qXmBEsMESnFoEqaZbmCTgHD7ntqXXE+aRSb2uNq0xEA7dcdBAwbmup+Mb/Z8OjqidxkW5Q12HHdD6LM2zw3k+20k96mY8YHxlx2+9ZBIOgq2nguk9qaLTaG877VdbqHYboJVrzI9Ib6AiV+mnR2Yy89AJC/JDfeCm3zrwNy10Z7iiAy3z5bNN/32UBVH3r0KUDL0FnDAREtyWD/hNj3ADFbkiOasBGFsxYvt6ogOSmDOe++pWGH6UctSgm54VxDpJPNl82Ztj2xAsN0wE19YafJcJlrisP0j9mgnZiG9fNcePZENl4RNTEtgsjPhTryqDcDBlxwSm+wZ73lsxzBdI5m9coGeOct5LkXdIN1vaaHxz47s8RtAAaa5qrAHNwt3wseEnqxGfYjzkOUgThJhtRkRI1tfr/34TU+7IrQ8ghFLOsc9qI+6FTy8Vk2Bfh/13EpbrDujuNvXai+3khzbIrLvq80fPTb4AKopQKg6Hvgp2YYop/K2PMK0Z+YE+KOzVc+PKphfPZEPIWco+4HKl0rn2aPrMbWkIniifbJ5RtYcS49cEUv1ix57WhT90NnsSBvRuCGmtFANDt9fp5JAcvLInPqthdAGQC+Z2SsL8EFCqjJm2E8KxU2wCVMzzO8eIlto5MlMYRt68dRYi52Ii7js1j39yH38wnNiWJ1gsDUGYGCrkeIjVF6XajXXBb8OCczZ8evp8LU X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: df599238-1655-4ef0-42a0-08d9046e354d X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 02:36:04.0333 (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: jHBIXLncT9BImjxyH61BCE9Gs/66DIuas2bofup4huC1PTYl7jTm7iwO9y+6GYUA4hkJW3W9AgK5eio88jhgpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8313 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 Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index d6338872c6db..06dac92e98e6 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -654,6 +654,9 @@ static int imx_rproc_probe(struct platform_device *pdev) INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); + if (rproc->state != RPROC_DETACHED) + rproc->auto_boot = of_property_read_bool(np, "fsl,auto-boot"); + ret = rproc_add(rproc); if (ret) { dev_err(dev, "rproc_add failed\n"); From patchwork Wed Apr 21 02:20:19 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: 425275 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp906122jao; Tue, 20 Apr 2021 19:36:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8Fk0M0Qd0QcmjzMBAUEqEQN41Zk4di/+OXkCNRcvsH1uMfBV4bUy4PbTHZJIfuzVlrpAa X-Received: by 2002:a17:907:72cc:: with SMTP id du12mr18111484ejc.436.1618972583801; Tue, 20 Apr 2021 19:36:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618972583; cv=pass; d=google.com; s=arc-20160816; b=MoEau7kvHCEwpJRb1pXJrHsMKEF+E9Nx60/O/8nj3bOxMwyojQbEu2kM/Lj3r7zGx6 goRHKWfgvytYfeLR1j0CQAqqyaQfmNN1nNM/7KwW1h5JWjUrZuR8NOrbpkdR6FZyesPl GjV/Sk0/bLlg7KRt1Hg5HcvpOC/i6N63nCoImVGiIzVi5SJXDsknrjoFuc/A5rRRCFz/ fe/EjWQjo/uEOIVEJK894iJpTp2GWg6x8h1JqWHYh65qK52yVDxOz3Ln59BbCC8R9GCj qgSOX6f0fJZmhFuC0pDwIIDkdkEC3SWIjEkVmawH8uEJnGOPWzjR6O3b2bQDgxX+yuOW 0Itw== 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=sS1qPSpCR2+q5Q2NGZhBZ4LMiXU5RaEq5A3dh4Bn1gI=; b=sumT2QESWRewrU9DbHlfplyCPmqdUQcDy1a93NAmv6oyA49mREyIpelrWhBpz/S50c i2oUmhK5rtTa0m3chcwtyLz+KACpC7h8p/nQtVTyOXHniegBto5OrL5YiCogzrSXLbXu yWBMlmAfIdEtZFECp3E2HHn+6qDPN61OzSQQtWdVkO36rTcmY/bmfYWahIx7Xc5upNPg dvof4Q9ppy3QMFb1Iw4BaTl9mC4lKjAQXX+M0qrfIph/FRMTDuPWxaBB5GHk8z1FJDj0 TjpJwOygLDSpE7llGnTPHz71mCeVpr2Z9ODluYNUpejkT0P/LB2O2iy4t+AykN9N2aup 3dSg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=TM8JhSdP; 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 x16si756747edd.387.2021.04.20.19.36.23; Tue, 20 Apr 2021 19:36:23 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=TM8JhSdP; 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 S234742AbhDUCgv (ORCPT + 6 others); Tue, 20 Apr 2021 22:36:51 -0400 Received: from mail-eopbgr150088.outbound.protection.outlook.com ([40.107.15.88]:34783 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234732AbhDUCgt (ORCPT ); Tue, 20 Apr 2021 22:36:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BizIlscu30KvtM+g+kT1V6oAxWPLrj5aJbY9mq8a3uXOU0btLYwXN9xBnDaslch+GCf+ovS16Tpl4G4D9ojq08XY/g0p1e2dmJrbXgf5O9juotmoIZpF+v5wq5mAULx1gp31jD1dX9AqVlDesi+ekHBffp2SChZDJIgNieQmq9IAyOflrMq7afnIn5W8ScXptb5ZGeUyATJxG6XopVzFYmTfpGgewy8dneoXURuVyG97GCrPzJcxY0rpC99Qda/KgafsL0MyFDCNh5jB2NngYu5Q6TY4elTK+j4+F5muv3CDeP1A002PcllWwkVxQUAYeYqqyQojd+6R6lm2uDLMAA== 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=sS1qPSpCR2+q5Q2NGZhBZ4LMiXU5RaEq5A3dh4Bn1gI=; b=TnU0/ycZOwZ+Q2KEP3rX0ejvt+0DCDB42NzQsuAnaya0BprIE4MdTx24EKlOuQpGSDf33LXq/JY35Xn+S0nY4q1tcjZRGUp24h5OJ0/IWSPAKLqqgrsObmtWXc/0AagxsrzT8u6BHNIwX+ZQGPzR01c3Hm2nAvzFA1+zQ0781rk+kFI/ICv/b2nF1txmIH14w7vZjF67DJhqGLEG7zsYss4PKnb6tk04MsOeqKiO0HnM1smRrj9kjsf8z6lOjAu/lZ7HpfzIZ0m6a/hdLmt1J+ahEJOvhu9LFgpjqZXhDATu6a225cVFDeuHOHs2P3bl+y7+RcSg5EsGmew3J2R+Hw== 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=sS1qPSpCR2+q5Q2NGZhBZ4LMiXU5RaEq5A3dh4Bn1gI=; b=TM8JhSdPvtsjlyvtIbzVASLgDPPiUAtJQ1JLaksaxE8SoO6aFvAJ6rhwKRBnOzAoV8iTyu956fsI57r0mmU1IhTPCRInZjlf8J30X4G1WuV3nuNhIcE1YxDKrUvzZZoHYeVjZYmfAMgeU4o3bBYMuxT2EhkWLFJWYUND4439O0I= 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 DB9PR04MB8313.eurprd04.prod.outlook.com (2603:10a6:10:241::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Wed, 21 Apr 2021 02:36:15 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4042.020; Wed, 21 Apr 2021 02:36:14 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V5 5/8] remoteproc: imx_rproc: initial support for mutilple start/stop method Date: Wed, 21 Apr 2021 10:20:19 +0800 Message-Id: <1618971622-30539-6-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> References: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::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 HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4065.20 via Frontend Transport; Wed, 21 Apr 2021 02:36:04 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fcc3924-277e-40cd-b120-08d9046e3813 X-MS-TrafficTypeDiagnostic: DB9PR04MB8313: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:153; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hvzs/RWYkuXuL8QXAb4ldSwb3lEZOGmJotwNOXx4SplArZDksv7rpCKdvXiwvxLKBcbWenMvZW9ppNslF+A8x0sOujuEMZeIK+s2PtS7ATyH4Z+Ptfx8Id8w1yV/WUbo2GBCKSp7NAATbaOUC1yUCE3cRLXoLzntb5glk3FCYotI18T38Of5ZolGkyENnFXVutejDzqL7SeswE6HKKii6gKW1GvJAj+i4pUeOccSHiGxPm51Ya/evyMpvBPL+iYLHuJBJPTp9avr/fFZcX4CHCj4ScrmqHXCB9cyOLyDAvQqmGoLq09EEkQh73izL2SGFezTCgcMqfqdVs5dXHIlL/jrxou3WlNN/zXPprOdoK/H37AmJ7l0L4Db7Typ45ctGlvsqli7oRlC9ky264jilGQsE95wIeYVEG6/TvfPPk6dLA5c7DFlqCXTwZQorz7GbAHV6nDkiBnS0tJTK0MovYkcRYsIh6ZYPBDLh3Yo5Diy4bosGoe+WjSwjCiOM0IDhWSdoSdeL7JiTHwoHHtl9rGmVqqvjRpxfbpDhKma53WB4V/vkftM5iwCULK6iqLGq4L+avsCR2i4O9coM0FoBMcUHsswERApFQcddI53+lBfsFv+StznHZLRsohUz+e6eILcEaxJnr0K5ZekmRlXq/jW7ImM3GzD9CM2pPCSeAHWgVbf0h7IBQkHcS9yGbXW X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(39860400002)(346002)(396003)(38350700002)(26005)(186003)(38100700002)(66556008)(52116002)(5660300002)(956004)(4326008)(8676002)(66946007)(8936002)(316002)(86362001)(6666004)(66476007)(7416002)(6506007)(6512007)(2906002)(9686003)(478600001)(2616005)(16526019)(6486002)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: RcmQbNqZAVw/zCVuJs5zwwcDco28A63/FWc81DHGgmll+sIxR93l5AIgoOXZH+7bZSoHn90qZefb9HlzWxMCmG0ebvvfc6jZPXfZ0ttVgz9ehT2lSpg2t2OeyH7oJZ9DWtSBpx7rv6ZTxlaDd7Oc4T9My82jEUB+KnMecILuAjte74haWk5Fk9I7b4gVqs7vB7USr8jzwm8fmTyTqvHDkGQZZYLcBAl1vglFZMacgTB+kuPAqVZ2/yA2Ju1PFrduBhvBU2ceC3BKJIcU18Y90s2Q/CQ7DjRAsVZ2QpYj0jzLkBFNRafzlsqu65mizHRBbMkv9WNIQVK0+tZ6CiFZHgPsK2dIH/86wpLa+PcKuYiEpGeY1upU2rk+ybXJHpkW6xEUgfoHeyHun+hSG+g12ZmeR8hqFyUMsSPZtHz0IIwLPTqFG0KHDCW54vyzxzPoiL+s3OPx5ln0FZjG29gD6fzG1FPnSIiacSoo4Cq2GwUYvL6rXNrKzpd3z8oEoofBoA/YY8HsR41MzSbOtHblvY8FL5C4C7JjhYMd0ujPxdrZgvbyogVCL1gN0hCKQ9BFXldiY9NYj82LSSvRNTyiqXVCCXOBM42EgD19X70nVSeQZPo7JCidhhIIMucEGgh7pq3xQrYdn4feJ4tDmERHHwaY1RnkeTsPRtBpYqy4DSFv+RGwHLkTIf5qKMz0/ORj3qM48I2Kos7aDSsF3Fya8ebS+0bflIi5YgxguROsB+wLFeB8bjY9kOsulbi3VW4d71FCf/d7stOIeMdcx7V/HTMMNenJ99bbhbT+JVrG7HIXNeMENYyspXL2xAzUCJZreRBCtKn94ecqbEiKvr/Lo8MWPH0SOM19l8DpR+FJ3xckhSsPbxYvnSvy7nT4/ywTJWMTKp5UvquKM0h3+4/0R9PyErTt+0GCl9ZhTooTdAQaAe6Xg62Nr/V1YhJsYp1eut9HlLlyHgXe8lTOM/+y2QOiRV9piYbDTb876K44jMZ5XmQj6Kii/ixRzH2ES956LQCfqKTQC5nWLHY+nPcxDgGV6K6tl5kxhCRohU3YqYnIbnq2xD+swI+MzAfwyN5SGcCmU5CluAoRco3/eATbBqVQNC8Wc3FOK/4wbuy79KY67gG7z5r/h8ZsYGMn0pMs0UkynrEQis3hXkwbFiS9fqGeFwfMPJDsxccvmR1z1Pwb/W9OPzI4xIc1GP2WolZaMl8n4Wkyh+0iJ3VoQKV5yz3BjqFm10ksXYHK4bNjc2KAzgjclN4Xz37iWsGuYTuA2kGWf8vhasf2b89u5W1jDnU/8YyKZF0w1xI8te8e2gmCh0mWUZwDcTYFccAmca3Q X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fcc3924-277e-40cd-b120-08d9046e3813 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 02:36:08.4983 (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: mPqc83FQ1x/p+HcGlg62BmaNfa1xxQjHZKwVsjLMxhtu/UfijM21f9vIQ6D9iVSIdvFVZVyL2dSv8n9FgZpI+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8313 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. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.30.0 Reviewed-by: Mathieu Poirier diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 06dac92e98e6..6289aeae95b6 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -74,6 +74,15 @@ struct imx_rproc_att { int flags; }; +/* Remote core start/stop method */ +enum imx_rproc_method { + IMX_RPROC_NONE, + /* Through syscon regmap */ + IMX_RPROC_MMIO, + /* Through ARM SMCCC */ + IMX_RPROC_SMC, +}; + struct imx_rproc_dcfg { u32 src_reg; u32 src_mask; @@ -81,6 +90,7 @@ struct imx_rproc_dcfg { u32 src_stop; const struct imx_rproc_att *att; size_t att_size; + enum imx_rproc_method method; }; struct imx_rproc { @@ -183,6 +193,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx8mq, .att_size = ARRAY_SIZE(imx_rproc_att_imx8mq), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { @@ -192,6 +203,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx7d, .att_size = ARRAY_SIZE(imx_rproc_att_imx7d), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { @@ -201,6 +213,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { .src_stop = IMX6SX_M4_STOP, .att = imx_rproc_att_imx6sx, .att_size = ARRAY_SIZE(imx_rproc_att_imx6sx), + .method = IMX_RPROC_MMIO, }; static int imx_rproc_start(struct rproc *rproc) From patchwork Wed Apr 21 02:20:20 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: 425276 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp906130jao; Tue, 20 Apr 2021 19:36:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp/RzjsLMJegq+6UHim3guM3fDP0nYdPlaJufJh1qr8UlS/wOo+BLqZcJBxHQ346hsXtTR X-Received: by 2002:a17:906:8303:: with SMTP id j3mr30563130ejx.85.1618972584536; Tue, 20 Apr 2021 19:36:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618972584; cv=pass; d=google.com; s=arc-20160816; b=CnWetkHGixRLzde/oV4DQmpMMIF8kudgQB5q5Ylnm5i43jgiUDujZH7wXGpIAyPVrd YErg9GThDM9rvK2QgUCKFABgP+TlEkQ9/wYndN8DOtdSS4HqtLuIaeBGXD4YH0v6Ayy3 5l91v818iI3Y5aAVVyZS/2qNmxuhdjj2e+UtPIJ6RG3llAg+40bN9lcFXGd0gxyTv3LQ VZn4vggkipRk1kGN9IrH2+hQYS4gKHamp6vxOPpDD8aIPDlVHeT6CnrlzOBZRlIUO9Gd c+KJSl8+5e1Ly9LqjkT9aYLXC7IYx/T43UgN9gCAEypQNAR+Smj7D4BdsZ8KX4yU+M9J 4lmA== 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=UzymBpZ5Ej2sizLxQ5Gkw5D8Y97LziPProGsnKRR5vQ=; b=I5o/70MrX6dUhXlNh2wm1crt5ckGuH2YzuH4QhYSU0n50DQ1VZNaVVMoM4tevJXF9+ AaPaYklIi8lU8fNV5TRTg3HdwEtcMrPU6GTHjOPD9np7A/E56XT91IFfqVqwHI7q7Dld tNl8W8JgeAcNmWpLaZYXXah070kE4hcipDyU3YqM7fjewCEoqiOv5NRf4q080JYzRnpj MTsBF0KluW+9b5Yr7JL+wDMyyqlkhe7mqTRzv3pqb74KPrADu6BjcpOXyHGghgnV5OiI /93L/WjKv2q4K+8OS8Fr/cYF88w8ZqhXLWsAO0vXeRRM82LzoZUeAViAW141Zz4aw4jb 1yiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=NjtNTDKw; 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 x16si756747edd.387.2021.04.20.19.36.24; Tue, 20 Apr 2021 19:36:24 -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=NjtNTDKw; 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 S234752AbhDUCgw (ORCPT + 6 others); Tue, 20 Apr 2021 22:36:52 -0400 Received: from mail-eopbgr150088.outbound.protection.outlook.com ([40.107.15.88]:34783 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234739AbhDUCgv (ORCPT ); Tue, 20 Apr 2021 22:36:51 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oaPAMIW7KvWCBQXp1SAIoM3YiA6Nyc2XwDgG+WaFacZ4d5Se0rLK1f4kOjJ+TSNx2dVF9SobeyPbqp4FlMlVu0Hw+DqjGdyVDJ2x1NnRKEsWXs86YPC+1hhQVuQLx8ahgX9woQdvO6ONiv3654lGHuyYhGlKYjRvdUGVHoa+pHT03ygoZx+Gp7ww9bXtXyh/yCgz7gyWwN8NGZ2tr8wkpQGG2VlSm01MDx8Ll99FiQPAEEZjgMdyl/fpjwq3bfyT1cIcaNoIxx/Z1Dkcsqtexgy/g4fzaoG0oqyyIV2ITGTNvCZeZifjXIfB4ElATTKE61o7j6MSifUr08ewu4W6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UzymBpZ5Ej2sizLxQ5Gkw5D8Y97LziPProGsnKRR5vQ=; b=nK/GDRXW4Q/eKr25KJN/4syrpuN2tMgoxAjPsN94S2vEK1dBimLmfzNcKuPRSr0SEaehi/eYMM0JJESMDcHQC1G1oPqWyBwraOhk7W0D3qyQRkhvQZRQmsDVABC+dPWcon9YLPtpL5wkGJbmr3aboseBh/EzCzLiffZzgsJx34vxrDIW6IWVQTlN83oBegqfHo2YfnNVIwc3xGtgoyX4IiVvzUC6UYPkAqXgKBvs/op5PRe1iy5+SPKkaPBIihKF8MHaj/+w0kfXXI0laZBI+oDvTbh+wS9Q3SbM5oxrzvZVP+qDzGYUUcu4889abQHTaiBs6uxZLu9MZlY/eSduUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UzymBpZ5Ej2sizLxQ5Gkw5D8Y97LziPProGsnKRR5vQ=; b=NjtNTDKwYnALO7OT0rfhwBawpxD88DkuLuFsD/DxJd3NeVIltMu9O3SrAI2aHdjEGLp9hFoXM5wmUVPqhl/6f2BCbyj9G5/TkGHOmqvjROYl48FrzObLCgNNNsJj0S8XAS9P39xDf2nuzjw82sqrwaNR8w8hu6SRXJCNYqIoadY= 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 DB9PR04MB8313.eurprd04.prod.outlook.com (2603:10a6:10:241::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Wed, 21 Apr 2021 02:36:15 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4042.020; Wed, 21 Apr 2021 02:36:15 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V5 6/8] remoteproc: imx_rproc: make clk optional Date: Wed, 21 Apr 2021 10:20:20 +0800 Message-Id: <1618971622-30539-7-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> References: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::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 HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4065.20 via Frontend Transport; Wed, 21 Apr 2021 02:36:09 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8cafafef-dc2a-4276-ed24-08d9046e3ab2 X-MS-TrafficTypeDiagnostic: DB9PR04MB8313: 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: wDkMm3/NqcJnxu7RaHpPuoZaj7p5NE0meAJQd/Tu6jHR2ImBUEGZr+XgOFtXVMoysjdGc70XVLRy2uYRcDKISl24Ca0NQSCcvyzcGX2fG/JS5KzyhQ3l+n3IrtKoDlUEqjft5rDfcB8DklmvTPO36M//OORcWDs0JWWh9Rk+NhStDPDyAcaYqORxuqc3ZlKYA2CnGv+bB28ay7ZUCBur82HvUiF+0uxIGAVVS34Vd8YsHbShrlyGTZSnQ5qWsKHAYAFqgf8hhulJ/qI/1HxXU6Yxn/irMpNw9vE2wSCK4aN+o9YWBxnEl0IXgi/HXkT8Y+02yLZytqBecanc+T+lwdXX3lbe7Clh+zApqCS+0TogdarJ1tfchDRjNiPeYUz9u+vQ/Dh9Vace7sFCa4bKK8PdobG56ZWwCRmhfxzZw5eSn3t+FZe0UPzhmlwlokuedvoXEaBTWxotu4tFBhXYhIt5mWQtMF9PM2n3GHPHv7/ftOwYs+YRIKf0vvQh6tNKhQU9IHL0AghQFM0S1wQSKgpew/PJN9qGTL4QvAtrvDFvgmpuNX779jCWikE24ZRPZsFquZV8tmJ+8AxB5G+Uqfe68mAzI10GVgEh+SJdSTloDMlitSmCyjngGDRch0FDZwXJQvX8Z3TNgaztZrL4m7wcG+vv6ByUPv4rhXpvKb31RFHRA5bP1zEZetLa4M4d X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(39860400002)(346002)(396003)(38350700002)(26005)(186003)(38100700002)(66556008)(52116002)(5660300002)(956004)(4326008)(8676002)(66946007)(8936002)(316002)(86362001)(83380400001)(6666004)(66476007)(7416002)(6506007)(6512007)(2906002)(9686003)(478600001)(2616005)(16526019)(6486002)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: MpBH8tf/9/ZhtAib4Zn2DfHkev56K7ppW16kqeoobJ13h1Umpkdqx+m1RLzKZhnZS7fBzt16KDjhCu+AIO0fvw1Ico2yONkUOPkpUX3r8yvlZkjrIaUyT9Ym5zMj3G/QRXHSj0IC3tseuSNiFg8yMBdT8bMEMwqnNFqkTod+InLMZAFj8FHjeaRk/l9ZYku5DYPLRyq8VD96+62i3YOactsj64xQHvw1aCgk9F8/eZaHeElupHlcUmZSFkehaEyt6Bg6xce9ym0C1E7nBR2uyFXoE8Y00HcIa/JNRu5Jt0FC5IRAmZWsNC1z8YjVoMxxA1hA0OkORPFxLGJasurUB2FeyLV/6ODWg+3Yq0UGpmkN+7dR6etpiuCzlvsxhCdvqe3IMm+ZE8R/v05cHCiPzIDUNxZbX8w6AY9gLprDfGLQSbE4yAd5OPqSQSBvcserBbxhJmdx0CXzRWVMkXmESH3StL/yMpZfYXZ1nuWfgNmNB8sEx8zEFHce2d9d4k0h1dKvVUq/kmpSgkopwxLqbGH5VXhSREwDnehnYB+cSKlMYE44JBVyvs2zhVuQaWA7WSqw0lvaSRZ69mM0gSaOdba9uVwquGors7XSLjpwOtijm3qCdH2gz96yPDbL9ayIhIC1DntJRPkPEuBj2YH0ESy80IlAi1j04seJS8V6U7adepg1Hb7PR5r+DbTPkb//9hU2lvEdsGwNxKsGCQJ7cXVVu+J7+9VFAJwQFnhnphU0RUCq0xl8yfYgVWOJxuwtnJYjoJcgZ2bOBA6jgOnoineqvZFHrePKmZsB4wQMmstjNgk7OPyfAl+bMSB/G/DCTz9JjlTFlrjI/FtEuU4K1x5Mmc1B5IqWzkVubFXVgd/H5wB+FM70YH2By7eWE+RuuB/Dr93NRHWYKTOCnPm23v5lyINWAXsFsKPlPrB2nCY/39ZPo2l1uHyNWC3Lpatt+A/EdQw2L6obHd6oPljj5XCxx5YxCpwEzyqIbXqp09Zxs1sjM8qh/IDKrwFVzKdMDdkqCDXCqHskuYRZd8pMGhU7rkki5wVty7t2W3P+Ho63C75K7YhYUsclvOgqAcThihRpJI4RsAqEpEQ1ktfYtqG/v6++Np1K923jUCkPPIwYLqTdFyZOvkILWBNxzbFVr88yyncDQhBPT0QjAuW8rqYHgcU9A0KsfQzG2PLs1SUM0CCFYqx1/bUhhbQzWmMLAZDl/2uYheq6FP0OV/F4exVuNiF34W85wvWj49npAhC37BgEsBJyILQkL+Ucx+KcbF8Ugp/wmzCaY7pK6HT8YbWB8hBHG+0ZjlVc1YQzv1xhHRuLTQjEJh+MqQxrS6P0 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8cafafef-dc2a-4276-ed24-08d9046e3ab2 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 02:36:13.0552 (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: LLIix+yqbv7ooD4DLWlRsIWSTXVE4wJm+N81tYkX/FjVPshwlbMMudV8Ex+gyJpVkjb/B/VOGfbapPamEiTIoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8313 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 Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 46 +++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 15 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 6289aeae95b6..e9d9860e4fce 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -590,6 +590,35 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) return 0; } +static int imx_rproc_clk_enable(struct imx_rproc *priv) +{ + const struct imx_rproc_dcfg *dcfg = priv->dcfg; + struct device *dev = priv->dev; + int ret; + + /* Remote core is not under control of Linux */ + if (dcfg->method == IMX_RPROC_NONE) + return 0; + + priv->clk = devm_clk_get(dev, NULL); + if (IS_ERR(priv->clk)) { + dev_err(dev, "Failed to get clock\n"); + return PTR_ERR(priv->clk); + } + + /* + * clk for M4 block including memory. Should be + * enabled before .start for FW transfer. + */ + ret = clk_prepare_enable(priv->clk); + if (ret) { + dev_err(dev, "Failed to enable clock\n"); + return ret; + } + + return 0; +} + static int imx_rproc_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -648,22 +677,9 @@ static int imx_rproc_probe(struct platform_device *pdev) if (ret) goto err_put_mbox; - priv->clk = devm_clk_get(dev, NULL); - if (IS_ERR(priv->clk)) { - dev_err(dev, "Failed to get clock\n"); - ret = PTR_ERR(priv->clk); - goto err_put_mbox; - } - - /* - * clk for M4 block including memory. Should be - * enabled before .start for FW transfer. - */ - ret = clk_prepare_enable(priv->clk); - if (ret) { - dev_err(&rproc->dev, "Failed to enable clock\n"); + ret = imx_rproc_clk_enable(priv); + if (ret) goto err_put_mbox; - } INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); From patchwork Wed Apr 21 02:20:21 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: 425277 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp906135jao; Tue, 20 Apr 2021 19:36:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4sNo3YHmP2XxPX5QZSgwol6IR0y5FMxsQN+YYDIbDsDlQTqZ6xInCDk/Vk3WDEkhTQaI+ X-Received: by 2002:a17:906:b156:: with SMTP id bt22mr26574512ejb.181.1618972585736; Tue, 20 Apr 2021 19:36:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618972585; cv=pass; d=google.com; s=arc-20160816; b=MvLslYIfJS7hOzVCFRkMzZOzuJ1JrDAeup6aEaltGDL1i1nOh2qRLNgMfDNfd6zOhx KEqGLiYpM2+XRLdTUZNRMkFXf87wgp1vLXeExZmRV9AdzXClXst3q4DA3MZcTBAse0hT qvJexkhFhgXKyDTSDb4uecwyjR/jMosyjqj+LeeodTtggMttjTh/A9DnIEzTlskrB/th 48QOVeRMiHu398VUxeKvASnqFsmBCq4c7cxEbuUage7DVNyjf8x5+2+E1MXhZKFt4Nwg +6XfYB9H2EJy6I+WzKI335gO5bSpE1vnT69Khd0SyCRW/AeiHypWBqLBo6niv7u3cGwN zPzw== 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=tyC632MAwv39LiQVDogDEQqiXSuIKRXd2m7bNuWYY8Q=; b=sXiK+lOK1GjAddVfeSkec8PrtjPW3gsdNdGicSQ4m1adA2JfcQ5IwGnBzplrYHdsTq 5moFyXiFKlqKqFSlpGByVn4SFgjT7NMR5uiuRTF8dagIYm1XeI/nuqDEEDA+YNPq1eNN YHi2pqCzpab5LwWm+3Em8nXLyUJQL60xh5nLvLhyn54TShDRNH/QTbKPeh7zLmtt7Fxg C5uY4ssc4pX+YO+cJv7dD64LO0aY5XVcehPD3sMFm32MfdlB1um/S+viBbiaPI6fWU5X 58uHG3UpGBeUyI2WCIoVwLqfAHwgaB6msdAgJtEtrAOunVPi/aH3ipAqkP+eolW/5PQn +xJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=k7dJYgzo; 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 x16si756747edd.387.2021.04.20.19.36.25; Tue, 20 Apr 2021 19:36: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=k7dJYgzo; 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 S234756AbhDUCgw (ORCPT + 6 others); Tue, 20 Apr 2021 22:36:52 -0400 Received: from mail-eopbgr150088.outbound.protection.outlook.com ([40.107.15.88]:34783 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234745AbhDUCgw (ORCPT ); Tue, 20 Apr 2021 22:36:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K3/zvzHK6c5pSPtK0nD0l5eSfMOPNDO5ClPxt1YYGUoZCJfP/0YqRqxQ6h9tKZDywsXwO7JhfF4zbhGmnDsx5td0zvZeGgNiOmkYP99gMYjPNOOpz9sOKswkRQxxlIB7pBnykLhaIISyjNPyhMGsTpOqFvqXKPfI4ZP4sOob2GZc1W7BqJFO7+XprO2BGeCL/3CrDCL5YNmgZWZyjNtoOVfDVmd0PNBfQK84Ysr0WQCMuvDyjdrxywlDKoqMsFAOW9CtbHLu0N0Rsrhf8jnEltGjDGRkuDpJ4TQaXY/ettdTG9EA4tQX6KWnxCyQj+37obcgX8Vq/bivRpsjZoWalQ== 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=tyC632MAwv39LiQVDogDEQqiXSuIKRXd2m7bNuWYY8Q=; b=gc+fLAVzxIVqq5VL++rFJpf5LGJ5mbSaPO9YhpcDf0gkjsrKatapiqAL7GXME221cH3CpNfD0hw/yMl3N+gDV7edDuwpL6VFuaczZg+bIYDOnVYLiEfGj6zdMLGOQLjh+5gD9r2d0E+Skn4KqA0O/7PBG1pKMs4Txd0/hN+y7hvpzLoxZfm9V9RFbFt/7T6GTXGIBFX9BllS7XVi0rixizslaLULSX+/K7o8GweSrCozQBhW/beUt4gc3Q44z6skUxi19qMcoh45A3lmPLyTg3EIQNIV44jyg9VsVnycPsUaFU7XqWQgu3+GKk6t1mLcQUQezHLidat3CmPkJv0MtA== 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=tyC632MAwv39LiQVDogDEQqiXSuIKRXd2m7bNuWYY8Q=; b=k7dJYgzo8F7ckbZ386xhpMnzZsZMCq6WkWoI5BkjiuyLnHPGJfnG7KRm6kmcjCzefs/Ci97mh3Dkw3mOI+Eqz5OelbuL9YGe1iytUXYz7DJdt/T5CbofmZuvlcEUXKX32CwxVRZd97stOrSKoernTcAC2ez7Eo+kO2Whdx45oNg= 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 DB9PR04MB8313.eurprd04.prod.outlook.com (2603:10a6:10:241::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Wed, 21 Apr 2021 02:36:17 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4042.020; Wed, 21 Apr 2021 02:36: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 V5 7/8] remoteproc: imx_rproc: support i.MX7ULP Date: Wed, 21 Apr 2021 10:20:21 +0800 Message-Id: <1618971622-30539-8-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> References: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::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 HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4065.20 via Frontend Transport; Wed, 21 Apr 2021 02:36:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: af8c6e34-d858-4875-904f-08d9046e3d6a X-MS-TrafficTypeDiagnostic: DB9PR04MB8313: 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: gozex77vbI8qbUabxXKWMR1wA8y6dgUXUyEkrzgZqtjk/VUK8rOsfbze3DMU9ky0uiDgWBhoTf82hsjMuat+DdYgpgUm3FoadxptLO6FVA1iAM3itjV4d+ZdJ85noXPERhXmUhEh6TeNwEgM1ZujEjTXFpHNQnGNRfO7sNDdU/8gWac6OtRTnxAWGzQ/RGBF6bvSogGw56uA5I7MQYEiKGmBjHQR0fIvK0HyZWwe3eFZj3ljv+Vb3UXAFAl6hzZlCZRlRMdMOgrhEhYoJ+lvpGE/sjRYRHNiCnGdfpFWvHaqy68F4GcgPEIj0EbouSp5QFq0o2r3FJZ9LwpxBT7/+8eeJOxBPG/5CcwaeyFZKkw89Ady/SO48r4uPHkIO8/GIV4tcT0w7s5fnEgVanXyR8BYScGEgxKcKkEpwkFdWmIwn4+5QKvJsjKG4cuK2zU5sDA0D+8gSSh0H5xC7gJbitRGVz9hbypcGFTRUvR0KPE6dJ7RBm2hkkExWfB/2w56l6n7aqQaGn78ZHKWXCATe43iOnQGnHOgoKZ4MBYLuHCgxrICfZfRjzTBQjpPel/UYb2HM+dHQUWMBKRYyRflsdvu29L5OhY8mgtlnA30rioGzBAQvW+JVaigwGafKsb+GrqYFX/ZvuKeXxh+Wv7elOuffDP7RXGDjHT+8XBhjEj0CAZdxGnIru75gsi8p9/J X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(39860400002)(346002)(396003)(38350700002)(26005)(186003)(38100700002)(66556008)(52116002)(5660300002)(956004)(4326008)(8676002)(66946007)(8936002)(316002)(86362001)(83380400001)(6666004)(66476007)(7416002)(6506007)(6512007)(2906002)(9686003)(478600001)(2616005)(16526019)(6486002)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: LpPpq1U19HjZAxE0EMAFAH0OQwBu9Ulhw/hiNYpqNs0MK6oMexPbaAF9W75ivhG2IDS1FH6jQdqzDerQVQUw52pCo8ee4EsTdQohP/zo+A9spWEZx0RmtFCAfIENkc3ALXl+is0KMFuXKsCi2QESAzcXMYxpUNzPJ1N0PQfQtlAxEoNVbjAI5xJCPfs8xuQgu6vRJSJErsxUceF7wnDg+YCQXuz8Jq0L5Me+JKQsBmzccnoVTFEJK/6NvuELUkFEWhkyPXH+pyIRgUu0YkU7fPQ8MJNVIF3/qIK9ye/PWZ9770Pq+W4YGeYoFAzxpv5/hk0yvRfSYugx0zo3VveHcxnLYfscjfqb9e3zTIj+A1wekdNGvYFxki1vfSVLcKhIxFqUz+ZY/1MJNrmWViJnaRtExHGSF3v+cEmIZzK1rKAvh8W5oTVIsaS4rD72sAX5KnT+awWWGRoyQu3sgY2VkCm19WwzI0a4yJv9JShZwbmYchsG05Sv1XtdtEKpOUUWMKrqkGMspTB8bZJ9wjXsZI0F8aNU6RJ4WFfm9pmhsZUv1T/lQl167uKSI/mDmdxKvU3Z78B57xXQFi6TMdfEaLliegqygrXDzdhqBNMqg9tC1kRVqvNLtz4eKcxtdPYmNU/aPnmGb1ZFGQiK0qxzYfW7zbJfpW2H27BRrTuaGLQO4Gm5i94fM+WCwEz5DVsF/rg2+Y3Fl+T2m2XH84MhPs+Zw9/5/Za+kNoGcPl2mc2AWmyscxm2dtY3JXsBbuTiMcX7n6rTCZCUhYLin/NVobT89f39MmD+HZuKnGhoUQNJjNmz8ocoRXyoCNLwyUvNDLewo3gNunLkaqLpUJ8jpuvAvoWyfFVpM+niEbyD8R7+o+ecJkZST5MielYAkJ0STrh/jJR9K1N9K6sD5nqbVuIEON4d8pnkVs6cBGXGYgUcsRHgqJ1A66QaaKwQ29wExezD5z1Ou+UGd2KqDglJXvXaLuIbCq6uI4yRrOPZ23p1XJ9FgFvbTpa378pqf5kyCbTdd5in5UiPqDSFYn54573XnECvZfsiIH1prGPgbcWVKGkxjW05VShM5MgyqXvbQDYugAyb0ny50Jmd0MjcXadaKqWmkAyvDiI/GEUxwdoZQRGk9xFVt/Jesa+UcEeEAzSLPqMX0kETrQqnjDM7mEuwXJqpZkD3ndXhKrxAnrFRQBJa2D2fRez2eosPV0fG13V/ilVBS02HlDidwLkT4EZJ3iAxK1PR0vLA8rbpgAo4r7TgQekTWamdvYqWKaN3WyIJI5R/ijGX9Ay1GvZCDewe6IsYnpLBgiJK3a2EMt/lnvrgLuh6yRtxT1J9eTXn X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: af8c6e34-d858-4875-904f-08d9046e3d6a X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 02:36:17.4652 (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: IGrv9CSM1F87IGnKgbfqfTXY3YCaWtPMH7C8ib8Da3ptL/TZ+05EhPSGXAiw8xF5cQh7ns7UiVoBDOJ0KOG3Iw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8313 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 | 49 ++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 11 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index e9d9860e4fce..d26254609a52 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -136,6 +136,14 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { { 0x40000000, 0x40000000, 0x80000000, 0 }, }; +static const struct imx_rproc_att imx_rproc_att_imx7ulp[] = { + {0x1FFD0000, 0x1FFD0000, 0x30000, ATT_OWN}, + {0x20000000, 0x20000000, 0x10000, ATT_OWN}, + {0x2F000000, 0x2F000000, 0x20000, ATT_OWN}, + {0x2F020000, 0x2F020000, 0x20000, ATT_OWN}, + {0x60000000, 0x60000000, 0x40000000, 0} +}; + static const struct imx_rproc_att imx_rproc_att_imx7d[] = { /* dev addr , sys addr , size , flags */ /* OCRAM_S (M4 Boot code) - alias */ @@ -196,6 +204,12 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .method = IMX_RPROC_MMIO, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx7ulp = { + .att = imx_rproc_att_imx7ulp, + .att_size = ARRAY_SIZE(imx_rproc_att_imx7ulp), + .method = IMX_RPROC_NONE, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_reg = IMX7D_SRC_SCR, .src_mask = IMX7D_M4_RST_MASK, @@ -238,6 +252,9 @@ static int imx_rproc_stop(struct rproc *rproc) struct device *dev = priv->dev; int ret; + if (dcfg->method == IMX_RPROC_NONE) + return -EOPNOTSUPP; + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, dcfg->src_stop); if (ret) @@ -573,12 +590,31 @@ static void imx_rproc_free_mbox(struct rproc *rproc) static int imx_rproc_detect_mode(struct imx_rproc *priv) { + struct regmap_config config = { .name = "imx-rproc" }; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct regmap *regmap; int ret; u32 val; - ret = regmap_read(priv->regmap, dcfg->src_reg, &val); + switch (dcfg->method) { + case IMX_RPROC_NONE: + priv->rproc->state = RPROC_DETACHED; + return 0; + default: + break; + } + + regmap = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); + if (IS_ERR(regmap)) { + dev_err(dev, "failed to find syscon\n"); + return PTR_ERR(regmap); + } + + priv->regmap = regmap; + regmap_attach_dev(dev, regmap, &config); + + ret = regmap_read(regmap, dcfg->src_reg, &val); if (ret) { dev_err(dev, "Failed to read src\n"); return ret; @@ -625,18 +661,9 @@ static int imx_rproc_probe(struct platform_device *pdev) struct device_node *np = dev->of_node; struct imx_rproc *priv; struct rproc *rproc; - struct regmap_config config = { .name = "imx-rproc" }; const struct imx_rproc_dcfg *dcfg; - struct regmap *regmap; int ret; - regmap = syscon_regmap_lookup_by_phandle(np, "syscon"); - if (IS_ERR(regmap)) { - dev_err(dev, "failed to find syscon\n"); - return PTR_ERR(regmap); - } - regmap_attach_dev(dev, regmap, &config); - /* set some other name then imx */ rproc = rproc_alloc(dev, "imx-rproc", &imx_rproc_ops, NULL, sizeof(*priv)); @@ -651,7 +678,6 @@ static int imx_rproc_probe(struct platform_device *pdev) priv = rproc->priv; priv->rproc = rproc; - priv->regmap = regmap; priv->dcfg = dcfg; priv->dev = dev; @@ -720,6 +746,7 @@ static int imx_rproc_remove(struct platform_device *pdev) } static const struct of_device_id imx_rproc_of_match[] = { + { .compatible = "fsl,imx7ulp-cm4", .data = &imx_rproc_cfg_imx7ulp }, { .compatible = "fsl,imx7d-cm4", .data = &imx_rproc_cfg_imx7d }, { .compatible = "fsl,imx6sx-cm4", .data = &imx_rproc_cfg_imx6sx }, { .compatible = "fsl,imx8mq-cm4", .data = &imx_rproc_cfg_imx8mq }, From patchwork Wed Apr 21 02:20:22 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: 425278 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp906154jao; Tue, 20 Apr 2021 19:36:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuWVXkw0JkslKEXykw7NcQSQQGD/IhMK01D7L2rGIWpSnUK3DJ8OFC8TEOHh60vtGtrt5o X-Received: by 2002:aa7:ce91:: with SMTP id y17mr28581672edv.13.1618972588411; Tue, 20 Apr 2021 19:36:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618972588; cv=pass; d=google.com; s=arc-20160816; b=ForMN5LRDJqgnhhm80zVjZkcu+o7kH6P14UejLga8Kot/gMe4q3gvlmI9WyDJ1/XJB nzEo1XHsS1uW2vhRgPC1XGFna3uuPuSLjXwWzdj6EKb3EHwLuCOHSOmMjwzX4+sNK+Cy 8hJ4KVawHneEVVX6hPD1XcMrjqHVTbunbvQ/vaWlLOrL9DcHNlNeNM+jYEzhNMhnUovE D1b477DzSX/kobqMR7ztGa/lIKPDkQ8VjKOTyJ1Qg4V3VaioLmqjP+vOMUMa83x8I85+ gQv+vMVLfwsrgokhyYbgCdnvIa++IZNc6+AUXaLim9Zb+av84rI08KOiDpekXO3zARZe owKQ== 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=OixwFy/wa21b++X4r/qZTxLEQDqzfM6PlpewOGtoI5o=; b=EBVO5IAF3P7cVV5XAfJ9IT7Lg8XibvnK7plZ6fVBd3fPjAJTzFAarPxmybzme2witp 8vCbWoaTMWYbAZxqSxzDts3dC7f6CB9g58ResqCqsR4FuwaDrhVwSSLISXcTn4ad9dvM r8+NoJD//1dd7vQyYpdz4N5UqqGmu6BdaofXrzJ3plQd7g84ps3h8Ht3xJoatvGQ8VhC xOH8OdRHxo0mYTOi+eMYjGrFqYa9VF5PsfFDTvNBf1do7xZK6aIcWKqfU5hyoeYruZXO xEh5kVhzzjRF77uF4KEd8fA1wdUvqF3pQtj67vMhAMweirWw+XKGTjAE1vUlnZA8u03s pjsw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=SEKNcfNH; 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 x16si756747edd.387.2021.04.20.19.36.28; Tue, 20 Apr 2021 19:36:28 -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=SEKNcfNH; 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 S234771AbhDUCg5 (ORCPT + 6 others); Tue, 20 Apr 2021 22:36:57 -0400 Received: from mail-db8eur05on2067.outbound.protection.outlook.com ([40.107.20.67]:30941 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234739AbhDUCg4 (ORCPT ); Tue, 20 Apr 2021 22:36:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kzLUhYMRMkcNnmQHt3RtXrqCVha17AChxQe523yJdeCMrQVhnY3NEMdxrystw97D6eSGn/uZrJWUt5gPi3Zx4CIofrA0Vty9tpIwlJzDyVtTVA2SQ4332uuTSx8Ms4f7ZD/g/BeoBb4PzWJdA2VOlH8LDt49JZGaDLTLOauTB8rCiy2Qg5z9AID9qwFnU5gJmXIPBfkBj7PbTS2Adm3lj36ACiosUhJ8zLM5bL1qzDAMWvCWonwXBG85R/Am8mXVbNZgvoAcsr48Hv10z7MtnfdT1nsjnTRczOAvPhS9kMBGeMvccFHZsVN/ehYmPW/Khp75VmhH2CNC7nIqCsMRyw== 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=OixwFy/wa21b++X4r/qZTxLEQDqzfM6PlpewOGtoI5o=; b=lJzaFTdkHGSc7p/p9gKfCLWQhjm0nAqhPRBhyaOCOgJicRwQaI/qy+QO5PeSAokNbxlOkGeEqh053mq0oozZhYnszpzQ70ryqSvFitlhjPis/LRsZkLbqKqTxO/v21iOIWrcy0p3H4bxxp45sdgdS30uvpwpFc2X96lJmLhNbHMpgdQ8ltup5ig9mJ09mm09uXwR6jUyY1kDmMJLphthh1N/T0UmBTlfEsFoDdGW8usbXcZkHRoi8Iv8Hh244wzCOp9hbM+OX9ooqQWXms+ZvQLL0NvA8uPACc4Z+znhpbynO1hjJpUbInOC8pGSuFtysyU/hoRy3xKZzBxR195+6g== 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=OixwFy/wa21b++X4r/qZTxLEQDqzfM6PlpewOGtoI5o=; b=SEKNcfNHWOsMCYIOKk2+Je9rcqLer2yum184yjlhR0okcY6xPwfEyN1hLJ9x+qni9wl7z6QisTzHKzi6iPaRHWFQvaTq2EU3Spe6fUYtcuR0ENse3Jj7Ft6ZCqjKn/BCILbvMH5ciU/qGaI8sZ4/r80lFZawv9Yhaq0oX4J2poY= 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 DB9PR04MB8313.eurprd04.prod.outlook.com (2603:10a6:10:241::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Wed, 21 Apr 2021 02:36:22 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4042.020; Wed, 21 Apr 2021 02:36: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 V5 8/8] remoteproc: imx_rproc: support i.MX8MN/P Date: Wed, 21 Apr 2021 10:20:22 +0800 Message-Id: <1618971622-30539-9-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> References: <1618971622-30539-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::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 HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4065.20 via Frontend Transport; Wed, 21 Apr 2021 02:36:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d5c2b272-2cb2-44bf-1a0d-08d9046e4013 X-MS-TrafficTypeDiagnostic: DB9PR04MB8313: 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: 9ANvPLCe/Xh/f2k/ts1Nu38M1dzDO/e/1LmDuNx7PkovlZ3YXH+LUgXrfpoBnAiOVJn4eQIKM07Upy88QmX7kM+Bd4QyliPdTNrW7HBiB7b0LjD0B9VoI9tQYn/d5R6IVGB5oejxIqOpKRbqxvGSG5ltOoUn1cjxJwfMKthPiwKPOS4HbnPv08diU+EonFh4wFgDn2yf7yRqOGMPMsGAsrO9u47f1aNw4h/xLSxs45c6mJVKNvYBK+dlgtYJpcrXUef/gHw1nJ+amidk1gkkYGXBDVbrAv8Dz4xQ69gfN/6XyY5xB/NOfADgIPdSqrcTTtvkdtpOu7dzL3tn2J/1dqqlCK9Ii23SJ96rzc1sIRc9itNjlWkIfpZ4xiY3FHJ1VAEH6v67LzG6zfPN59tprX1ksmstq1wAn93lLhV5h6Gd8C/SEkZu+58h1MOdKs9owjxAeDD7HtECwQnHRVg2xpYEuwfhoqbqFysIJ03Ixa8br2y2HCbREl6apHTIjih7tAUhmoo33pnaswSbjBYGpoG3y+/hiQSo0778ToepfbEPT2rmz2SkuR3rHUFxLYB7AatGOu9nFD5xwifl0ACu7+jRBT4UvkOB6sN5By9cHOG6ZJxyOnERhS2nDf8ht2sY+mtEztIBZxIJHgWkBj0/IE615HA6fmJNQq+sCDoCBEiE+T+Zxh3lJtamjuNeNFud X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(39860400002)(346002)(396003)(38350700002)(26005)(186003)(38100700002)(66556008)(52116002)(5660300002)(956004)(4326008)(8676002)(66946007)(8936002)(316002)(86362001)(83380400001)(6666004)(66476007)(7416002)(6506007)(6512007)(2906002)(9686003)(478600001)(2616005)(16526019)(6486002)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: MP+QpeN8QE08ZipcA3rvPUEgDq5Q3fnRVrOy0y+Cd7WM8S5oCVm4EuqnXWCZYsixcWKSMHZoY3YDQCML3lvxCHwm+Fd7CnVDuywxpIxp1XBUXWCEE2093/L7QyVRjh4ktY1OD8+hPU2gs9lJ2vBTo7wwUQltAD244zirB0fSvqJLxQ2F1trJyiX52isktxAaAr9rP4sCqN2bOwIwVZAbNAk1Eq/do4FcVuK8a2gwcQpODSq061q883eHcMMYI+H3iouqRCV0xAeDtctt7xMJqmm+L9xgjT5BV0LHLIC7T1QbpxF6/tPyaSMEchs9fV/Ta2D0ph5i+OgkycvRscNrXFiKPPQMNptzCI1IVlMpBNQ0YMk0hN5jx1crsM6jfjf5dQyVoCOzDEtTaT5Fe/IedJBmEomlchtvreWifGfM9wVFDaLqAaEgBYYQ7VVr7ebcn+QaM0ce72wkNoucD8bkyoyQCvNxpkLaIRCx2HfeKnOsXAfJQTP+fGXtzyWr/HWU+7aLjhY79SiHLOJvLxED3pronf4lFPa+6+aqZTy5Gxpf9HDWlHMlrbWE5Wqsbjuulwi55quoO+G6mrMk28u9qTYlpK3bQyNNl3HrLEna3fpVxvKRsMuXCRsxz1TGE+GVMfDkdDB/LnG1yBVQgPI3SAvfWUrjwXlcCds+lJIBIeG5uu2V9uKS3fvtk0c8XFVXHdrYFyityFlPNEIUCNe7HRyxH34F88GxGxZL94IBllFH6JEXB0Nl/XcdlTC31W/1qQ5pj6t2JBLUdJZsHCcfWVOlaM9YceEztP/zH+fxNPZ4/63yWebr5q1I4iSgQV+z/7+KhktdXKrfkSnvf98/zuthFDHyqUT48ntU6GsEE3dv8CiJZipuPNFonqHwdO+GcASn5I2zBxdsqEq0pgzR9XR4jDd23J8Vje1tfYcQMeuxpD8fsYmDcqHDd8q9fKHDJmlq7LaL5DUbMIxKPFXgKEaYSo8HbMN4TtKt0lNA4cjrgeN60XASqR2/HwML0v/uD3v/ZB+ONNL57Qc60F7PGZdUTqt27gWprduUpu3cMvuDwog9ZmUeCK2D2f/8dAMsEuR7r87wBUHbCQ1GuLYLvrvs/DRyUDX6iehx0OE/FXEAOR7hGG3eO9NU9qGDhLG49J22I+64C9U9aN5UIdPlqVZ2l9KM2nNhgiTgvtjflqUAmTOQGZoIpMCOsNVjEcUoyssx6Jr5MT2lp/zHg4tNlXJ2jYAwPJWiFhBvMXDjyOlshxVkpSlyuCOWZL61o5x3HETQrIiz/kCjuNKdCkIWxyR2GD9dvhuf5TyM/tbgrKXNpgUcQrIwg9g7tkuI+NMU X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5c2b272-2cb2-44bf-1a0d-08d9046e4013 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 02:36:22.1121 (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: mN0EvG9qIE3gnQIALMm75yZQUZPe7IvDLyhK5wZuAnu/UAK4pzFaUU4mrGA/xuEIs8qBhEEeRWXo2rU4a+89+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8313 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.30.0 Reviewed-by: Mathieu Poirier diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index d26254609a52..3cb901c87a7d 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; } @@ -751,6 +822,8 @@ static const struct of_device_id imx_rproc_of_match[] = { { .compatible = "fsl,imx6sx-cm4", .data = &imx_rproc_cfg_imx6sx }, { .compatible = "fsl,imx8mq-cm4", .data = &imx_rproc_cfg_imx8mq }, { .compatible = "fsl,imx8mm-cm4", .data = &imx_rproc_cfg_imx8mq }, + { .compatible = "fsl,imx8mn-cm7", .data = &imx_rproc_cfg_imx8mn }, + { .compatible = "fsl,imx8mp-cm7", .data = &imx_rproc_cfg_imx8mn }, {}, }; MODULE_DEVICE_TABLE(of, imx_rproc_of_match);