From patchwork Fri Sep 11 03:30:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 249707 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp1304099ilk; Thu, 10 Sep 2020 20:38:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4dirw8DFXhgF3c9qUcLOAzC51mToFk8UkPAiZ16dXw0O+WuogihoqCP9gWIioCsA24D5N X-Received: by 2002:a17:906:1b55:: with SMTP id p21mr106105ejg.457.1599795535430; Thu, 10 Sep 2020 20:38:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599795535; cv=pass; d=google.com; s=arc-20160816; b=0bNFH8iuh7kdw/JZCdHNSuNZenlnRIxLkQN3Mpw2MkPxni+S4guCMp9aAGg0OXhTWP LFnzkEbb42qhy3r87sOq+amNbXb3Y4CPNGuqp5xtG8Hyp1INtyBYfSiaSDt+KaT9PUKF KE/6aHVAPClC86bW1LfPKc/g1nPI/punsBVhhrwcOMcKPK3oid6GHg/WINxykLRMzitb Lrka9GG75IQTMhk5mFpIISb7MvAHtdEwrUfJXbG4Xj4NDQoGByQDvjCJDANG2MaKUOJ8 bdn3zwO4mNRzCtzv8OWG8PdRsRSbKgeagmov4vaTdKh5IMHtAduZh6p0MoCuKI2tLnbZ qO9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=VkqNNX8tGoTJNzu7prVFfRg4yGpsrrdB+3Q1nbWK0E4=; b=K7yvmv/ACAcC/YHidAP1Y+IGkUckGqDfBWrjGJqZFKYD5AQl7gBnqaOYDv+6wEWs9Y i5MA+FoORHXmH5fPFgZEWFcbyNvHitwrXPD6h1tR7T+X0aq2YLRaXg8VjqupvPi7FWrl 6ySr9kzDYurKqmMAiqJwccVAiKsL0CQOaKUkAKAlTEnsS9uEkAYpVKooA6cFk7bkgD9S zdLTH1pK36kDa+34CKcxiV6U7amK6duxtC7Bn2lwmtfoy5i75m4SaIH+DMX0BYU0uRwu Na+6R83MJQB6tNMzQNmkbfFKNO9EMXKw44U8p8zRENIKmHY+stBNodDbs9oiDXpgWQqf hM5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=PDE0DSKr; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (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 z23si448259edx.215.2020.09.10.20.38.55; Thu, 10 Sep 2020 20:38:55 -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=@nxp.com header.s=selector2 header.b=PDE0DSKr; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725550AbgIKDho (ORCPT + 6 others); Thu, 10 Sep 2020 23:37:44 -0400 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:36230 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725372AbgIKDhk (ORCPT ); Thu, 10 Sep 2020 23:37:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PlJJuLepDnXuM92LB/B0YCTvCpOmJPIhvSqpKG9Ka33QJmB5LudHd6aw+xh0gIs6y1L8hvJhBPOUeSofCv1xdRorO9+mXv/16F5fL2NKktAkLwNGGyQ3QnvKDZHkhdz+sVoXxRTlUGh1/DmOghuAJad6N9cmzIst7ZOBmkTX9VpjrfXmRVfbz/GgVORpKltxl1UlKCBAkYLpoQ2SGoZSEfbmTmJpK394CNIhJGDGtlRXv4lBT9w8YsKanfUxcJ/RwaUqm6cDTa1dDauHxlgemS8sLwH6lilR2F3r2aB3B9wdjMp5FEOI3eAxiXHkkzdvfc0fCGkrW19fwHBu1OWvNg== 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=VkqNNX8tGoTJNzu7prVFfRg4yGpsrrdB+3Q1nbWK0E4=; b=b7fEt2bCGCQXgHhm5QfsipEi37FPi0mSW0vyH0sCsS493uNJYyJTrefL1VzOVunivVCwN/dNj7JHiQ0xZbLiiO+Hzce62aP//OxGYD1ON8wXdqdf4EBkz8Rf2qUf/xEmDR/43PULz5KZAJQY1sSilKVRp5juIl8g6VxHBe3FRDvhwAkmg2aINMHaNa58GPdHqNC3tHqlx48dJyjZQKrLznoNilB7nwI96UlfMJpX8qG9itlnCr0tX7YYhC0djn00GwIfVxMvyGkZ0JdYjfMKkREOPQenD7ZyqtMTNWUSUESQdzKsTCsm1FkGC+DrhSKzqd9hMoSXPtXI6K19wkmgOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VkqNNX8tGoTJNzu7prVFfRg4yGpsrrdB+3Q1nbWK0E4=; b=PDE0DSKrzqw9XlxRPCJiHZXMWTTLlHRyT4rdTggqWGHQ73lCZ1RkvGkGb+dTkGWaAYkGFsTzlEfd2FETG6kGsld9CNcb2WcB48EvIEuY9ruALWiFZRqISiIlmI/1PPRDfToXPG5654d4Ag4l4/1IgQSJWhmNaq82GTazLWVmgwE= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB5084.eurprd04.prod.outlook.com (2603:10a6:10:1c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Fri, 11 Sep 2020 03:37:33 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::24d0:f783:3c7d:e232]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::24d0:f783:3c7d:e232%12]) with mapi id 15.20.3348.019; Fri, 11 Sep 2020 03:37:33 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, abel.vesa@nxp.com, robh+dt@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aisheng.dong@nxp.com, devicetree@vger.kernel.org, Peng Fan Subject: [PATCH 1/4] dt-bindings: fsl: add i.MX7ULP PMC binding doc Date: Fri, 11 Sep 2020 11:30:50 +0800 Message-Id: <1599795053-5091-2-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599795053-5091-1-git-send-email-peng.fan@nxp.com> References: <1599795053-5091-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR02CA0070.apcprd02.prod.outlook.com (2603:1096:4:54::34) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.67) by SG2PR02CA0070.apcprd02.prod.outlook.com (2603:1096:4:54::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 03:37:29 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b4dfe1d9-8653-4a46-3b31-08d85604046b X-MS-TrafficTypeDiagnostic: DB7PR04MB5084: 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: 3cg1v7sBId85YFfL74n/MgPDbAzQ3DuUFjv8zV/btsuxba+CafBfRcWv9a9Q1W/owrMZFUs52kNPBEAh+JZ73CN3UH+/HxjIE75KiDs26z4RL8ts3VtojLHwz7t/N+6CRmrBb4UXiRFLJ1H8wpLCsE4LcJhryjIb1u/qc80qE65RQkteQ2DMcJvj51Ux+1/ZUqO4V6NSC7yZH4NM/fvayzkFcJKBQL9DAZDatrYfAbZuRsxLqTCCMexYItQZmKuip9XOtu0VqtIQS7BFP4FEp8w0QG+Mp+yrSZ+V00/5BhmEdtp7nkZVfIUYXoJ2gPNFEzRqqGP60zLSckW/7N/TBNxUSj4mmfu11EQiyvDru+T8uqxjLzHcr0jBzgBGuwq/kaP5fb34O988+dovi6T5Qw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(396003)(376002)(366004)(39860400002)(2906002)(966005)(8936002)(5660300002)(4326008)(66946007)(6486002)(316002)(16576012)(478600001)(66556008)(66476007)(86362001)(36756003)(956004)(2616005)(26005)(16526019)(186003)(8676002)(6666004)(52116002)(9686003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: pgIvcdxCMEcxi/mcx53fN1wlNmknwrmmxG9L2+ykIfmJ+Y3rPZLvI2d/CCG2iTUKbP3IBGs7N0fRwoLm9ZxM3kzUnzy1SLHZFwQIV29a8Mfme79sEK/dK+KqhE8sSKXFUOa3uHODQO8X01TJsrqt1X8BnOWL/AGbBZCw/hfMfgH/NLaT1ylmOVxAA6Bgsy0uaABRX7Y+s7GrhxZIgwSNY6mXSO8feXdbxePG8XIo6RzE0dt/V7Cef39af2h+kuygsPDWg107bI1469uBxFrDmFXd4Ndeedd5IUyO10Qx4rb6Y50Bhbf+XtQmUu7g8GDV7g1SfaFvH/2htgxhqQBYOeYIfQyQZEUhE/sgdh7/u3GPCAbY7bgEaH0/OKvbXeKS3mmUzOI5QSmwzz10wtfXDx8635I+kaI5UuHshG3VdETKcCZXIdtkKxDyWqbQ8Ps9Q4pKQcde7JzePBaOi3lIimeAPh+uTHu7yhUvkMKLfWwPkRpxCBLLY4PUoh6oGXt5OtB3DWfirDogMxJjmbJpH1tA72hkLyc0dSLyE6Y5Cha0cLFjuTgHOxA9lwvEspeuZaEc8Womni/A1dfBiV7JtEYi/eVFg2/V52KA5sn2gJ62mx5wKrWXwrLlhizKFqsQUoyLw71ejbfSsolEKwbqKg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4dfe1d9-8653-4a46-3b31-08d85604046b X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 03:37:33.0977 (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: MWlyjcNHV7RY3NZ+SuOIxuEMG3MgyXkZz6mfXpql3mDI9rz40e1fXTZ0UNNyjcU04H6qWoqnOt4+TdV+vfWjlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5084 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX7ULP Power Management Controller binding doc Signed-off-by: Peng Fan --- .../bindings/arm/freescale/imx7ulp-pmc.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml -- 2.28.0 diff --git a/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml new file mode 100644 index 000000000000..33a31d87dd62 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/freescale/imx7ulp-pmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX7ULP Power Management Controller(PMC) Device Tree Bindings + +maintainers: + - Peng Fan + +properties: + compatible: + items: + - enum: + - fsl,imx7ulp-pmc-m4 + - fsl,imx7ulp-pmc-a7 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pmc0: pmc-m4@410a1000 { + compatible = "fsl,imx7ulp-pmc-m4"; + reg = <0x410a1000 0x1000>; + }; From patchwork Fri Sep 11 03:30:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 249704 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp1303668ilk; Thu, 10 Sep 2020 20:37:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3zXRkM4nWFTlhE3W+FKblGdGYNeuwNPDhoakA7/QYa4mWw7d2L7/3FtMhVboyV9MusYaY X-Received: by 2002:a17:906:7c82:: with SMTP id w2mr116068ejo.87.1599795477590; Thu, 10 Sep 2020 20:37:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599795477; cv=pass; d=google.com; s=arc-20160816; b=JJ6MJIIDcv2GEMpc/zq85OgKu+wZlrxn57wwibnKWdndp5sxj6G7/sR+Wi0x1dJgSX YlRPKf+kdLXMkHulfk5KZNcWphU5fe9O4HMrEas6dqvbH6mrA3Gtk35q0A5ondF/9xx/ +0fEVcsWEwd1O+bjHlAqRtk3aoECErfz//Yoe3ZKea5OMqXebG4pQ5FkmV5R5t/dZ+h4 NpsYEmWDvwoZ6qZxIKQrcbahWS0WYHeKy6kVc2ykI3+T61EfPrUh24B+/j2I29asMhlu 3rKRoIzuLfU3/3n81NCf1o0SKOs0Ja6vWb6WORJNWVHMb0/Gz0UH4jDw662C8Gd9SVjy 9SXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=IBNcstHMiDqXuZzcArjalQZUn400JPEjDaJlZLPGb4w=; b=R/aABMhLJ01zwI7QcJ/Jvy4y6qOJll3YWP5R8lZQFjoTTmPVWZth0q6eydhQ6REJC/ jweBwXh5TJvr7Y8vNq6iZUepOQC9JzqebLiaVhLWlevMSOQp9E4Yremp1bsdVJRMkvfF r995ZS0EMaxJub3OPkLxdegfVCOr+rz8LRwkNbN+v7XG4EVWrxEAeKsJe6FnN8J9Um+g NzkksY82IglZuMsaOAy0gWEzSYD5l4Zq0oNk9T1vfVX7ARV6OsJFXvh/6jjbjXfK9cnV XTb05aGtj1KNa08FrSUmClJX0hYzRHuidZYpaNhOABefDHTfH05IT6xzfhFBmKSJcc0p NUwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=WnWhLyt5; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (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 i21si456959edv.439.2020.09.10.20.37.57; Thu, 10 Sep 2020 20:37:57 -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=@nxp.com header.s=selector2 header.b=WnWhLyt5; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725306AbgIKDh4 (ORCPT + 6 others); Thu, 10 Sep 2020 23:37:56 -0400 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:36230 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725613AbgIKDhr (ORCPT ); Thu, 10 Sep 2020 23:37:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dJ5VImkAKHZuOsfk16BzAUZSckUgDbkYa6jvbLvlRTskduqUfWosAy6m8VXUzIOr+wbhOvlirQt+G2D2RwI+iw68ydvxjBWRCu/uAJN0di0NxRdfaUhhSdtD+FVqWcbwQ0gbxNCxkX6EFn4TqQhE/yLzTK9E2l+ygh9SxqT577AM3BhcZUUOK5CF9asaVOG4eGboONthm7id6Ccqkqft570eslmFnCQhPUT8V6ZJykz3MAr3nHFY96a01Gti4pGiOsTetrfzdBNoI6a505wLRfhZnJ9knb0aysxXdXgnU58w2qHLc17Q3wqgVE0V7lYs36o45lZZdpqKBiQu6RiQyQ== 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=IBNcstHMiDqXuZzcArjalQZUn400JPEjDaJlZLPGb4w=; b=hXM5J160Z30+iLCMpq8dj1yPqhgMetGHB/P1rONMw5DphTX/DaPtZ/51ni59NcbHeOYgAeDOyEuSfN5uG6SoJoBADebmnn2wBbQOhWWV4163GaPCsU0KYHHbxNj5AkcAMYiWWutNMYXYmxT0IAyWYSkmtyq3beJh1sBzk48vof0eXdyXW6pVZsGarruR6vhvlnkKJkEeEjt4Ejqwl5leBj7ShiEBgq9dsSUgKaJBDwpjjPXNkAiA92uToRcdP8zgyvBa31rg/G00FerzW5hLobZa0to+PWkSf4G4ahn7+qeDn6bL8VMt5m/iE0Pl3c79c64Zy7wd53IgTT5jJII83A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IBNcstHMiDqXuZzcArjalQZUn400JPEjDaJlZLPGb4w=; b=WnWhLyt5cESneDJFLJE4LY8WLE9M3s9SZJiE3bhiEKt4EakqFLzeaXl9mLNNE/aGJ/hpDJ4FE9KWwmYBQ68nhgwmxd4KCDWTrF5+T2OklyaHzLeL09HeAIKQUuuQdZ8Y6KUdtuh0MjKd1qfXH+2pnLHWwzyy2ZXCguKCcmifeOc= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB5084.eurprd04.prod.outlook.com (2603:10a6:10:1c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Fri, 11 Sep 2020 03:37:37 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::24d0:f783:3c7d:e232]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::24d0:f783:3c7d:e232%12]) with mapi id 15.20.3348.019; Fri, 11 Sep 2020 03:37:37 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, abel.vesa@nxp.com, robh+dt@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aisheng.dong@nxp.com, devicetree@vger.kernel.org, Peng Fan Subject: [PATCH 2/4] ARM: dts: imx7ulp: add pmc node Date: Fri, 11 Sep 2020 11:30:51 +0800 Message-Id: <1599795053-5091-3-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599795053-5091-1-git-send-email-peng.fan@nxp.com> References: <1599795053-5091-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR02CA0070.apcprd02.prod.outlook.com (2603:1096:4:54::34) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.67) by SG2PR02CA0070.apcprd02.prod.outlook.com (2603:1096:4:54::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 03:37:33 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b2f46cf1-e5d3-491e-c3f4-08d8560406e8 X-MS-TrafficTypeDiagnostic: DB7PR04MB5084: 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: 1A+w9zlkThpwXc1/3yVtcZo8wUANsYXeeIodoX7Sg7XhDT8Rlr0KZhjnE3OJJbjBaISOMWfi427SrB2KTOc4epoBN/CntrfAT02wIMQUkhrSH1O3qVOP36twA30VAfYq6XYo7xwFkjspSFZ6fLOuQhY/D97d/tFjj+l0VxoILOpcpxYU8QnC5ViOscCnqxoWjgXp85550Eqe+lV9VjxmGO/b2tv3Ki2g/q4GDZO/ld9Malu1IqInl9oqiEgtDSM80nvUjBEnLWDusQsfeSnbxIVJGntyNnikgFoQlYsrrKdZ49Ay72aEb3ZySrHmT/v+qHPTNVoquVCd//547f+hFg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(396003)(376002)(366004)(39860400002)(2906002)(8936002)(5660300002)(4744005)(4326008)(66946007)(6486002)(316002)(16576012)(478600001)(66556008)(66476007)(86362001)(36756003)(83380400001)(956004)(2616005)(26005)(16526019)(186003)(8676002)(6666004)(52116002)(9686003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 4j6y9inY9bP+Q5OMRceKx4x9vJWG4G3l6SE/ksvpDtSJWabnXqWSJEWWTx5x5UN4y4ji3u/VcVfrq6CC8ry6McJn9kY8Saoctep9m6jfYCy61oUDHZArnAVviBhbbKLbX8NtI9p5ben86FS0XxA72En/wRl9tpO4nWRCClZTf+i9YvmwKaPmSiY5544l86FrRq9PxMaoVENHHr1ePjqSXjW4hh5NnH8OLEb1ULoboshoq0+bB4VMqlNJFOWDMFuHB2dGy9BaZo9YKJ/ubUkm0CHpmlxQEwM2ufchbkxXrJwnB2X4+NY3nb9UjXBW9GE8E7lVvs2sqARXehB1ebrkD1Em54LEky10HJtGsKQveU7iF5N9o9mWR7YMqr7xwzuMV/l75plcbTkmBR9fNmPamKhooATsCGv+ccUhbvX6/y+xizVDGm+Nk/quTKcIA8EW4umshS/2Scy1wWujwRnEM4S64C8Iv4ZWqA6pNHEuewsFA+QeRKJtd5mRGTG0dIHhAYZKWpCnECPTNVm4+2gzZjgL5Abd32YXmtXWWXx/aa0BE3+sE7UXcKotDuXaMrasCHECzX5ZzBsWjjnBuqK49nKgKce7uHOPCcFnrPvayVYC7EGMSuwLxk6STkX6vmnBJdlNLK/Mp5uQnzfGTJA6kg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2f46cf1-e5d3-491e-c3f4-08d8560406e8 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 03:37:37.2459 (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: 1PmzPQJTsUr6/Rjr/TlQ9x4dydU+LgGS9hxDGqGVewGmeRaF8H8CC80/vflYCuf0ShdJGXsRlwQ8oICaDDM47Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5084 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX7ULP pmc node for m4 and a7. Signed-off-by: Peng Fan --- arch/arm/boot/dts/imx7ulp.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.28.0 diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index b7ea37ad4e55..d5d67e3db123 100644 --- a/arch/arm/boot/dts/imx7ulp.dtsi +++ b/arch/arm/boot/dts/imx7ulp.dtsi @@ -286,6 +286,11 @@ pcc2: clock-controller@403f0000 { assigned-clock-parents = <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>; }; + pmc1: pmc-a7@40400000 { + compatible = "fsl,imx7ulp-pmc-a7"; + reg = <0x40400000 0x1000>; + }; + smc1: clock-controller@40410000 { compatible = "fsl,imx7ulp-smc1"; reg = <0x40410000 0x1000>; @@ -447,6 +452,11 @@ m4aips1: bus@41080000 { reg = <0x41080000 0x80000>; ranges; + pmc0: pmc-m4@410a1000 { + compatible = "fsl,imx7ulp-pmc-m4"; + reg = <0x410a1000 0x1000>; + }; + sim: sim@410a3000 { compatible = "fsl,imx7ulp-sim", "syscon"; reg = <0x410a3000 0x1000>; From patchwork Fri Sep 11 03:30:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 249706 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp1303970ilk; Thu, 10 Sep 2020 20:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhxSv6pNhuoHVJvl2ie3Mg5FeMHqLDsSvj92jXQbocpVLZhuWCfK8aBaxCxMhbwt1KZVAg X-Received: by 2002:a05:6402:3192:: with SMTP id di18mr12793516edb.116.1599795517119; Thu, 10 Sep 2020 20:38:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599795517; cv=pass; d=google.com; s=arc-20160816; b=p2Jh08qUAeGd6Z50KRo3C/arkjxtggIDJVjBB6CbxyCqGzDLXiQg8potSOLyinUvfO 3wk+D2BGygzDYj0JzYByEmVHhNYLCHQ3H3bMEkSEQxEM36JnWluh9pF4TRZ5awbpywOK d+Q4jZtIznyZMmcXwJx8DmF3+JLEwkwXYD+Rsutv9LNY8BlvBvmr5SewCTlSpjaYHWPI 6mvOaBdUCRzJDAGZCVmHw3SikMjBm4otzUjdIExUs5zlHan6Kug+XiXJdEV5xqPn3LzX e7V5c1wkXeRz0LTJ8hxcVbOHqFC6uv2obM0aO0bE6qU/mY8qDYfNP3ZIKcK5sM+Tp/Rz +rEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=qcttnVBSK6XVWdIAzncorlxnBlk/3LRc8dfbGrywN74=; b=ZUOCtZGL5yrDyA6swoOrV2BDesmdJRcGi1SFYjrKN8l9VAJxZX1rZssMF29GXz8Cv5 OUkiWNUdMUlC3ANnt2+AMSAJrFetXI0CePfkWe84fYUc2DAVdI9SJhYQgH7210UH7Xhs KGgLg1vz5msKWAwDmfoGklSLV/AnmPOy3o1tWmyHlkg6W5MsSF1QvynOwf+PtFpM28Lq 1UiVeqU0hpAxhaiLjvs4Aob1MYDXUAKEajAvemaCQ148Qelv0j0jZYK7wJLO+W3KzXKc 1qsdA/IBU6fXEXOnPb9ajBfwype05pcgOsTTM1ec9yHnVKlDHunTLzeFlOVkpWVDnO67 8WfQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=QY2iJKmF; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (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 t7si440648ejx.194.2020.09.10.20.38.36; Thu, 10 Sep 2020 20:38:37 -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=@nxp.com header.s=selector2 header.b=QY2iJKmF; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725730AbgIKDie (ORCPT + 6 others); Thu, 10 Sep 2020 23:38:34 -0400 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:36230 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725778AbgIKDh6 (ORCPT ); Thu, 10 Sep 2020 23:37:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CA9GRp7Tew3ixJdxkVD/DEutQMkjHyt915G6UCbYETbN/ekrZuHYF25DQmkO1Ailn2NX/3esiGAErF/jcgCMcfiLcugox62nIqRkMhP+0WlxFksG2mF6kjie68pg1nHzQg00WR2dnZeK6DnuH4urvNK/+CsVGyxSIKINEz9kcKkCHNsYbjzqODLvpqvPBTp88t+GOi6NBbsi0GAvVKbfAEvutimnb73GIPn7UVA1OniNw8R6SVON/3CUgk5Myc2jpScpZJy5LjQObKxwbqf193HGAzIO9fVn+4FrjAlFrwPcTjWiQ9zvSmcHE6gasdPn0yG15//95VH+k349hHeJ9g== 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=qcttnVBSK6XVWdIAzncorlxnBlk/3LRc8dfbGrywN74=; b=mTkZWpC+EOtP802DKGcZENN8v8kq0NVVjSFBqcGumAzZvlCDofTx8+5kWAz1TK/LUAZggtiPRoq3/iYGbGm+3WTA9CuH4K5Podh3GLmql7m0in5S4xVExnHVOIPY2WIFu/s5Vh8EkV7mScYwSRPZdbw3msz+a4YG4oxhNeD3iLx/GkkNU+DRWrQf/YAYODg9AvOEkb/oG/3YOvnUN3LJENGxvsOj45cAxEWrXlcgJQrc2fakDUtK7lFLqQNcMjPKjBlGqyuZlp15fVYQ/SzWP6TxfomQX64pMtl1ONkywqVVf2P4clB1CJ3WFu4+EeIFdC75zjoMXxMUoYJ39Bv1JQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qcttnVBSK6XVWdIAzncorlxnBlk/3LRc8dfbGrywN74=; b=QY2iJKmFCEh7+h8yMsemauPh04N+79F7TmG6E42vrmI6yoxE+va8x1pSLXNP+oZoH5dh87jxz6cV7vOn3Ns2VR9HXrL9Gkzt7CPeZCMbIUxyzjUAu9xO56yEbHnLMrNCa5j3n74wvVt2+CPTgpZrxMceNKbXiDVfiP9aa0qK7u8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB5084.eurprd04.prod.outlook.com (2603:10a6:10:1c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Fri, 11 Sep 2020 03:37:41 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::24d0:f783:3c7d:e232]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::24d0:f783:3c7d:e232%12]) with mapi id 15.20.3348.019; Fri, 11 Sep 2020 03:37:41 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, abel.vesa@nxp.com, robh+dt@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aisheng.dong@nxp.com, devicetree@vger.kernel.org, Peng Fan Subject: [PATCH 3/4] ARM: imx: imx7ulp: support HSRUN mode Date: Fri, 11 Sep 2020 11:30:52 +0800 Message-Id: <1599795053-5091-4-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599795053-5091-1-git-send-email-peng.fan@nxp.com> References: <1599795053-5091-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR02CA0070.apcprd02.prod.outlook.com (2603:1096:4:54::34) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.67) by SG2PR02CA0070.apcprd02.prod.outlook.com (2603:1096:4:54::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 03:37:37 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5f3414ed-d81a-4441-b8ff-08d85604096a X-MS-TrafficTypeDiagnostic: DB7PR04MB5084: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1265; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 17MI2A95cK1JcPtK5k1anLdzmSh9iOYxigBrMpjpxxxqNFFNLIQFIHR/RF6IZR+sCrpE3YChxZKYNFChwoeBgYuZ8yN/9FHmg1+368zpQ1V6OCezyTUWQJLue41pShE+cy8tPJR2Al5uHYMsORLkpP0xYfBRUb8qL1dV+FUI9CmZJg1USJ4hQ9nQyW4/BBgp/+Dfptz67mqhVnDVwx9hCDRcT4jysZcL/PnPBAUShE6anhUojtsbJ/Y+tA3zcS25e0xR0uaOajTBrapLa/lURZwJnZGeMCRXR+EOC30LH3ZagV8jxz9iSt+g4GLAByfAwH5KRr+NVgfJVhc2j/5+zQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(396003)(376002)(366004)(39860400002)(2906002)(8936002)(5660300002)(4326008)(66946007)(6486002)(316002)(16576012)(478600001)(66556008)(66476007)(86362001)(36756003)(956004)(2616005)(26005)(16526019)(186003)(8676002)(6666004)(52116002)(9686003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: vh7bHQ1n/LWXjYtGWaDxlFiT54B/iNYi5PHpHupGWhp2lrmLbvXYzQ6XeKUp63rwz5ZFUA5RdOFy6xIn6w5+RTI0UzOcCSR5azJY2rwy5HlftxrCO9yrjSUp1JvWK8ldR+BSV02AizpQjKZzHjJ//xcXV0NYncDgEUgXLFMwzgtGPj520mqswqRki53jfY3OgXx3NhVM6UQiT8DveJ6aPIUmkF4WauDVFSbWMOM6FhP18W3Bmlz27JhOxH24Ti5wujKSno2/b/6c5I1dQYpmVU/AALhREajqAX8iwo1JqH5LbJ+lVyp48LaVxYQSx0IvsIaVkjV7pHCvP5ufOcXsRqvu7e9wlw+Fj6C444QXPobmwHNK1YD5t8GHRMGDEMmEKJ+5DCCVSw7pFCydGz8qzimAYjmd9TI3SuCp1K3Xb7RL9LxlFgEyH/2aJ5VQYA3G2AH4qwgBuPsBVS8tjPDvvmm5E5y3Xo4fRe/bxqCva+bOoSuXuqYqr6zpgXSKfPMu0eOBocOPm5aRbnr3u73oW1rE011e2LGJq3+6P0agTSNpTYB4SlBGsq75hw3m8BGcR1zMLKczW6VZeVSdKJgHjgRH/r4FbIJOlVWeB5frITsNmY6BwU6lGMz/yQtdRJUbAOHNxi9EHcZF66X6PTyQvw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f3414ed-d81a-4441-b8ff-08d85604096a X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 03:37:41.2831 (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: pHiKbSvo/tNUo5S5AvetJ+cVfC7/PsBuUYNGsuzzo9F+O5SeWYsp5R1Ifos3SJg2rV71K/qeNN6YH1rx21UCHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5084 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Configure PMPROT to let ARM core could run into HSRUN mode. In LDO-enabled mode, HSRUN mode is not allowed, so add a check before configure PMPROT. Signed-off-by: Peng Fan --- arch/arm/mach-imx/pm-imx7ulp.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.28.0 diff --git a/arch/arm/mach-imx/pm-imx7ulp.c b/arch/arm/mach-imx/pm-imx7ulp.c index 2e756d8191fa..543ac69f5f70 100644 --- a/arch/arm/mach-imx/pm-imx7ulp.c +++ b/arch/arm/mach-imx/pm-imx7ulp.c @@ -11,6 +11,10 @@ #include "common.h" +#define PMC0_CTRL 0x28 +#define BM_CTRL_LDOEN BIT(31) + +#define SMC_PMPROT 0x8 #define SMC_PMCTRL 0x10 #define BP_PMCTRL_PSTOPO 16 #define PSTOPO_PSTOP3 0x3 @@ -25,7 +29,10 @@ #define BM_PMCTRL_RUNM (3 << BP_PMCTRL_RUNM) #define BM_PMCTRL_STOPM (7 << BP_PMCTRL_STOPM) +#define BM_PMPROT_AHSRUN BIT(7) + static void __iomem *smc1_base; +static void __iomem *pmc0_base; int imx7ulp_set_lpm(enum ulp_cpu_pwr_mode mode) { @@ -65,5 +72,13 @@ void __init imx7ulp_pm_init(void) of_node_put(np); WARN_ON(!smc1_base); + np = of_find_compatible_node(NULL, NULL, "fsl,imx7ulp-pmc-m4"); + pmc0_base = of_iomap(np, 0); + WARN_ON(!pmc0_base); + of_node_put(np); + + if (!(readl_relaxed(pmc0_base + PMC0_CTRL) & BM_CTRL_LDOEN)) + writel_relaxed(BM_PMPROT_AHSRUN, smc1_base + SMC_PMPROT); + imx7ulp_set_lpm(ULP_PM_RUN); } From patchwork Fri Sep 11 03:30:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 249705 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp1303889ilk; Thu, 10 Sep 2020 20:38:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvfcGsn0Zh949DyUOw5E0FonvktFAaKkLK9nvYOJJo0UvHJQI5EZD4S9Cl6tKMTUSJRq4W X-Received: by 2002:a17:906:35d5:: with SMTP id p21mr139794ejb.194.1599795506173; Thu, 10 Sep 2020 20:38:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599795506; cv=pass; d=google.com; s=arc-20160816; b=sqfPQfBfbxjbWwyPWNPzv8h44VJCKJb59jhf4XbJnNt4V+A2UuVKw3+o6qOW49ss5x J0FtZpItaWJUdA+KsWkmdmVUfZhCpFjX0FFK1ULoHKW+/j/AuPl4Twk4OOa2aqPA36GE diVMqnPejutGMJn7uN1Aunn/9RpGs1KOcNfSAbtuTxPjAGpX12azHrAAkD1K62BLsX2k sfbAwLsIKL7eRmsxu5wrvhqCAqFgv71Yz0gVgX1M4HIDpmBoc5I5sacMYmgccWYUc7gg oRF2NGRqrXXG3JJbuh+Wqe00nxiTAg+A0GrazourCl0uFZszLtktNQd5Hmoiu+1CK6DS c43A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=IKJSe/PA46LdbLJDeZgA2CkRgSQKlIWylm5bM7qK/wQ=; b=KzwSubAsOikcYqRKtW++qMVoTPS1OlDRyEDWBy5POXt672nQ3CA02IZMkht0CM76bV 8Z5p/vfJmJ1blCyZuByAV3xuh262YQE2BXCqxCuk0bAKsP5SlxDieA4+QXerPHwg737u Vp1CADCvuyO8tlVb6S1P0QzCFRBGYN3JRhqwVueNtdtsplr/7rPVs4KRKVGA1U7qVuaS uWLOOxB/pE6XwcEYj9uAW1lGVHbgTEP3HDEQaknha0h/H1BZ0bIaI6JuVVyEMcvYGI2x 9vEJNwiW7UALPXf8VvkQN0ZVDu8DJdIY5enLRkxpSS3v8NlSL0/BhWqXWZ3FSoxPFqXF tG9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Mi/zLTJW"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (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 d12si484744ejj.237.2020.09.10.20.38.26; Thu, 10 Sep 2020 20:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Mi/zLTJW"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725809AbgIKDiU (ORCPT + 6 others); Thu, 10 Sep 2020 23:38:20 -0400 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:36230 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725795AbgIKDiN (ORCPT ); Thu, 10 Sep 2020 23:38:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b32gPsQxW5IIOqhZRjQ1OmCktn8XjUO5r3YjPHQbLMFgrmZGOsmML0DLfKmZWnXk+zjskJ7Nv5uDD+8QI7mG5VFgjBQ2jwS3/43NMYULM82+hzaBGfzmQnQ2w4cSm6j014S37+HheM9B7ntoVsjL7c9f6w3ZJMZykn/ZlKUepJgvG/v2IdBGyfH/cWZ7KVFKcOSN+L522bef3HSi7ZIcKkP7dECUuS/p42C8mpqvKHnNrSXQMuN2XkYF5zuApMgjuwIdGfhXBXpvzNquEiHy12dvkEFD9Wyww6bd+Q3ZPvZRUzrSEh68YOr1LZGAYUVnVF6hS7AFSQckjFpukVRrHQ== 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=IKJSe/PA46LdbLJDeZgA2CkRgSQKlIWylm5bM7qK/wQ=; b=K9WWyiPS+cx3AGGpr6awUm1g6OklsTU1G3amdexvu/v/HpFq8r69+l7KgMzshWc6TW3reULSgRNF6s769wfEBlooC2udwOwbYbuaIOE100RH8yDpebIpjGfmO3UBPbC+M4/bEvpO54p0HafxVL+Uxs0zsnEXg8C82RGDOulXMO+8JFGloSpePaggNYoqSBIE7BhJHPA8y4TXeoIwTwwCwFgQQWl9ciOxzEw3JNtSN3VBl1ysU5beQD4dx9oWYKAbJ5Fdf/PDFAg94Tj9Ws8qKzjHQx8j377KLtAy4P9VuX3tde9mM4XHSciayo7DHYzsr6rOCtgLqYKIKfnscnu+mA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IKJSe/PA46LdbLJDeZgA2CkRgSQKlIWylm5bM7qK/wQ=; b=Mi/zLTJWHz0cpbjPG3eSAYejJYFZ1kMw/Z6XQAcwTi642TCakpveJcXbymHkMS/z0q1Mu5hIB1FUSWoyHsvulVutKS+Bsq3bgV4+h1PyyCndgbeAniiMZ1g3Ma2rFQaEtUBLfXEZ5hHZIPSkGBPoYKB65RwzbQ5+znb9DuTrWgg= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB5084.eurprd04.prod.outlook.com (2603:10a6:10:1c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Fri, 11 Sep 2020 03:37:45 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::24d0:f783:3c7d:e232]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::24d0:f783:3c7d:e232%12]) with mapi id 15.20.3348.019; Fri, 11 Sep 2020 03:37:45 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, abel.vesa@nxp.com, robh+dt@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aisheng.dong@nxp.com, devicetree@vger.kernel.org, Peng Fan Subject: [PATCH 4/4] ARM: imx: cpuidle-imx7ulp: Stop mode disallowed when HSRUN Date: Fri, 11 Sep 2020 11:30:53 +0800 Message-Id: <1599795053-5091-5-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599795053-5091-1-git-send-email-peng.fan@nxp.com> References: <1599795053-5091-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR02CA0070.apcprd02.prod.outlook.com (2603:1096:4:54::34) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.67) by SG2PR02CA0070.apcprd02.prod.outlook.com (2603:1096:4:54::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 03:37:41 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3295791b-9f9a-417b-a228-08d856040bce X-MS-TrafficTypeDiagnostic: DB7PR04MB5084: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:64; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bvEj6lEEXIyreeq4ox1a3suxK7KZzdALn64b/fPmwwhOkfmiqIo5CmHN9EntjjxYs/pPqssZMfGmpbWcwAGLPVgdRcYvCAG7PsU4JqvuiJD45TRsVW9m+wEaGFJWV936DvGE7M0oRHSiezr7LBWLx9oy8kq/T0TuNH7hPlkfeNXypXGGmhFiLqkz41822EgsQNTcrVTshmWiYzHEfTilsA0L3hPtTQ3hxb3UdNYXi0rg9AnTPSIwRgAKFprTCa2MfLr/FkRE94KtBXcQRZ/qmj5LDQn1ZPTcwYCLUVSkpJtHp40WcIZv6p47EBy+NMOk19x7g24hdT5BljqvdDXkjg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(396003)(376002)(366004)(39860400002)(2906002)(8936002)(5660300002)(4326008)(66946007)(6486002)(316002)(16576012)(478600001)(66556008)(66476007)(86362001)(36756003)(83380400001)(956004)(2616005)(26005)(16526019)(186003)(8676002)(6666004)(52116002)(9686003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: lvJpmosTRWEwpJfiE30hyVZWUuf3bQGDHJgj4B2SwIAWCjiI8hjK+xfUTPd8Chrhdd2yuAThtDcq7BEvKFCdCJj4rQ3aR8ib2zn1yz905jn1ByG9W+hPH3/xNibEbW63zMK5emkfe0BQLx1UP0VjAEF2oPc6tM++3yCAv5IF+xEBnk3d6IfyABXz0Mym6Fx0wQPerwxX1n87slYCMC0hubM6QwKUKI3z3n3d0N4RIaoFy0fsmV4Bd2UWwV/mIsdCoN4/5gPAq0bDIYHIijsN4iJGq4NbBEbukENgx41yPXdeQwzgrwezpQAxTcRI99mtvgGnsY7SBDaJu3QlCoKYEJ2N/kmmKXyVSugAic6V7+ZiYm4QCN1rJDa31Y4yEesTi4pIifS1qxgZUk7sz4a3k9zmkoOrREv4fXMGb4Wl1sOGIGmrBqhYnt+iyyRIyTFfT+cf5lAr+FnQ+wbIW4EzSVvulRDCXAxilfSkVCRGl4EEkB3/eJXiJ9McjtNnIpVgCvJ5R0n2TYVcc+kud/OSPSauGTG7iGE2u69AYsiXeH7CUEqwvIWjH6ENYsOiAO3YsQ1FVOIllu9jUxxStJr1OP5QidtuEtXncEDBzABgBXy5NXAu2kKLg89EGYNoa8KnOdwDjJgX+IYnen61TB2/aA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3295791b-9f9a-417b-a228-08d856040bce X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 03:37:45.3113 (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: 9Ua4gp47zYdvk+J1avTht6+qyv8FXg+2Tk6NgMerJZ2BulEwK0qfSIYEWMfXM9uZWkRJOS32+3gnIQgUZW+Pmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5084 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan When cpu runs in HSRUN mode, cpuidle is not allowed to run into Stop mode. So add imx7ulp_get_mode to get thr cpu run mode, and use WAIT mode instead, when cpu in HSRUN mode. Signed-off-by: Peng Fan --- arch/arm/mach-imx/common.h | 1 + arch/arm/mach-imx/cpuidle-imx7ulp.c | 14 +++++++++++--- arch/arm/mach-imx/pm-imx7ulp.c | 10 ++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) -- 2.28.0 diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 72c3fcc32910..707ac650f1c2 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h @@ -103,6 +103,7 @@ void imx6_set_int_mem_clk_lpm(bool enable); void imx6sl_set_wait_clk(bool enter); int imx_mmdc_get_ddr_type(void); int imx7ulp_set_lpm(enum ulp_cpu_pwr_mode mode); +u32 imx7ulp_get_mode(void); void imx_cpu_die(unsigned int cpu); int imx_cpu_kill(unsigned int cpu); diff --git a/arch/arm/mach-imx/cpuidle-imx7ulp.c b/arch/arm/mach-imx/cpuidle-imx7ulp.c index ca86c967d19e..e7009d10b331 100644 --- a/arch/arm/mach-imx/cpuidle-imx7ulp.c +++ b/arch/arm/mach-imx/cpuidle-imx7ulp.c @@ -15,10 +15,18 @@ static int imx7ulp_enter_wait(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) { - if (index == 1) + u32 mode; + + if (index == 1) { imx7ulp_set_lpm(ULP_PM_WAIT); - else - imx7ulp_set_lpm(ULP_PM_STOP); + } else { + mode = imx7ulp_get_mode(); + + if (mode == 3) + imx7ulp_set_lpm(ULP_PM_WAIT); + else + imx7ulp_set_lpm(ULP_PM_STOP); + } cpu_do_idle(); diff --git a/arch/arm/mach-imx/pm-imx7ulp.c b/arch/arm/mach-imx/pm-imx7ulp.c index 543ac69f5f70..eb1578f0bfa5 100644 --- a/arch/arm/mach-imx/pm-imx7ulp.c +++ b/arch/arm/mach-imx/pm-imx7ulp.c @@ -63,6 +63,16 @@ int imx7ulp_set_lpm(enum ulp_cpu_pwr_mode mode) return 0; } +u32 imx7ulp_get_mode(void) +{ + u32 mode; + + mode = readl_relaxed(smc1_base + SMC_PMCTRL) & BM_PMCTRL_RUNM; + mode >>= BP_PMCTRL_RUNM; + + return mode; +} + void __init imx7ulp_pm_init(void) { struct device_node *np;