From patchwork Wed Sep 16 02:48:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312066 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp85300ilg; Tue, 15 Sep 2020 19:55:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBNB1sEkjdku45BX3rQv1pPFFBGspJZFmfaeqFK1xHAv6evAbEbFMXuliUvJLOpjCy6ibF X-Received: by 2002:aa7:dd01:: with SMTP id i1mr25759742edv.121.1600224949345; Tue, 15 Sep 2020 19:55:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600224949; cv=pass; d=google.com; s=arc-20160816; b=gMejbg2Yo1Mvck7pJvmqaw7aiQQz4W5ubET2crrx6r/mlRozdXD5rfhWwridmM2RJJ 7KwhODYi/hnrU/6Dzlhhytabyni3LoJbHUgs8GGZvu5CbJ/ny21YyJ1m8OUiZD8050iO N5jKHMgerlN9TNvR693FDimeMN7KN5+yykZrHWmXrXGvkd4THMOJXGI5AcH9G3cAnSSo y6pt9uEipABeNOmKVQLG3unCWfLqtb+WrtC1h6YmAVFa2/bZVCuxVOmNqb78kWu9DS4e iMkA06AIpoQyOz50sB4qbZ+wyde9t+Wb02YEAk28IS++apX8snwYrmDX27dqHYB60L/g 72qQ== 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=r5KeC3uLI52UlSoH2elWBMIO8smbIF+NLWaESjlxhT4=; b=y63xGbJj07RBHQVzxOuYK3D10ADdovXrDql14hfkeug0ctQEUX8/AqKbyErz8DPqcs I/DDRg2HawJbxRY4KZ9FStq9abzXznpiArCANBf+aWocm/uKNNOygjb1TYyIGrT0vuPg UVUrEznGiIaFvVy6NwVWI+cwWU1YEt7NTNpZ7XvYrqiUq2FRoRvJL4MZSvztyQfjIq3L tLQjpHOKQPf32CVcvWghWYkmXd1RcGXSxe41yZ1yfwueoa/rY5VzracqU/d+a7BSf2g8 NHIc+jP0cflH+cZICPs6OJrYYIktnsF66ZImUM82Ep/2nQA15gaYSxo+o0bZ9hcOPspB 2srA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=mNrGG4y7; 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 b14si10643475ejj.36.2020.09.15.19.55.49; Tue, 15 Sep 2020 19:55:49 -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=mNrGG4y7; 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 S1726343AbgIPCzr (ORCPT + 6 others); Tue, 15 Sep 2020 22:55:47 -0400 Received: from mail-db8eur05on2079.outbound.protection.outlook.com ([40.107.20.79]:23584 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726156AbgIPCzl (ORCPT ); Tue, 15 Sep 2020 22:55:41 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Udi11AsMiTpDoyC9YyiyKDXCrwOSgKuk9hMv5KWw+CwcBaFwdw0s1auSlG8XXYZAA/XxBgnq22HYv6iJKpsOH1ibdes5IhWjFLr4V2FLMBInm0f+PDLsi3hxbsYeduCUU2EsxHqkqxoD/X63Jx+mfXEfU6uJFV1hXN3x2zBQcGUK9y314rpCU8vdLiqCI+P02c4EXzZtSoGRmLqiblHeHSkYtczyE1eGzEhPX0DW9RxRSecXWr9Z9atj7uHqC7FpJiApLVgk9AXaCkkTt37ZQTdSJI5C8OCNv1Cd10aC641Aul377CAN4jH6DywNRSKuh1JrjuXKQmR0QXMbY9XeIw== 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=r5KeC3uLI52UlSoH2elWBMIO8smbIF+NLWaESjlxhT4=; b=gluWMxOCBhZm6qKV05W94Dq8Q+kBFxO0Ig3/szubbfO6IQFUA5wmKSsnW+vYYXOztkQkRdYhSU37/98Zm6gNMS4+ZXK2p/HSNbxyo/niGQ9WHHiinnRJCJ4JhSJpNlrbjZfqTTnpbtNf1SqBp2qKQiaDwKv99GI+w4F3CaJxwVcDp/L0cS9EvkldU9bfRELnKWad1IaPNcydZ53UW1GPN5Ae0q7FXMHsUt5pymSMYte1+b6OV21528gYOSuRxA0UiHAh88bh/hxBNhc9Nw8MmDJBGOFia16YV1siEuPKDcBBdEimFjdnbsAFiZg6kvpRuCP3BsceqUouAlDw9+bWcA== 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=r5KeC3uLI52UlSoH2elWBMIO8smbIF+NLWaESjlxhT4=; b=mNrGG4y7/CvnyCbpozOxWwYt4krCh8OvzrtlOYIMO9Ule0LKg+RBuBNTHwNFsUNav3ePO3XF1DYYksLcIsjfMuVkOfh+to4Ans/CAbG3ZdfRhr0qov2lSKFZKnuBVACveE1zxG+FOrgG3JPS1pgAsAsLU5S63T0Bffbmk1+ZAj0= 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 DB8PR04MB7177.eurprd04.prod.outlook.com (2603:10a6:10:127::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Wed, 16 Sep 2020 02:55:38 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 02:55:38 +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 V2 1/4] dt-bindings: fsl: add i.MX7ULP PMC Date: Wed, 16 Sep 2020 10:48:34 +0800 Message-Id: <1600224517-31465-2-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600224517-31465-1-git-send-email-peng.fan@nxp.com> References: <1600224517-31465-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) 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 SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 02:55: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: 276110db-8821-4560-f25c-08d859ebfd98 X-MS-TrafficTypeDiagnostic: DB8PR04MB7177: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:361; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G4WtghxApFeEeQaFhEn/qwRFu8Mr6ewFlqMmvxjXv297PJcxIHz8mBiehGXRnbXJuJgV7KqdtQqd3WDO6yKz2YyumIxCfvnc35CuB8Fo5DUdtCm6snIlpwEttJ19P+Z2PoDPJUdsIdifYVTuC25NoYQvtJ4wog4NMYeXt54v1DDfwDA2NvrsCh8fDJcHw7WRf/jmAi/RpklG3fO5aczJPJZJV4gozk0E7xmWVGKe1ZDiT/7svBTtg3d3fQXVDCYTA8GQU3GxoLUu8YOoaUyQtt3b8d8Lis4DDk62f0L3++iClsUKkWekwFgvgPA2JQLr9sWRmvos1+A6jq6gjeOe7mVDdceMJwk5YDRvn//WJWnH3q/ymyrQzfp0SbvOMChK X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(376002)(346002)(136003)(39860400002)(4326008)(8676002)(66946007)(36756003)(16576012)(316002)(86362001)(8936002)(9686003)(16526019)(186003)(5660300002)(26005)(66476007)(66556008)(478600001)(52116002)(6486002)(2906002)(83380400001)(956004)(4744005)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: +Y3fQbTQqxfnk1SUmgjCpvMdYQ5ERCGC52PNRC/868q+SwIbH4mpG4v/8I5kGz4Mn+Nn27FrLO8PWnvGrLJ6XsR/FXRZd3RE1aCs+GeQfRGW5EZIQ48YSvuiyftW7HvxkufmSyo6073Xm8BSqlSwY9va5RvLrITWW4v507MIgrrvttzrJLKD563ykadxNUdTYa1efBHKzJYIP1cQD2vReuvqa92DvXy82JXXp08NyohWDzYX9qaEjO/iSuLkwhWlBPCIz2EgGpNTv6by5fSp/uJKx1u4kGdMvscHFAuKnCPdngw1zwAJDdf5VJinRiMvDlGXurALfopUcF2ZsDw1Hyl9A0dtrmYnJtKMHjZN6A9D8BV2Quc8Vh3A+vvJMhQZcExxhqkpGVd/mGZH6DZ0KRGZ1k6QzF5+Az1sJZVQJ6ApiGL1UKHcvP6ZfogxNoiix5LykenV74ZzTKb/wvtoDcIMoCJ1/AmE+bFHMWEia2uJTjnmBHspvHXk7V5+0vtAjK/FW99E54o0rsMfXw2xNKRnh1jTm7V/59pFt2ginn+pZ4ei/DqwqwxS39slEWo0sJGuIKbwA3eZNEmbQlT+rO/vI4TOvnk9ptSkQ7GAkpHWL22W9KEQaM5KhJUN6HwTqfBcSnXyjkAK1PB8ONpXtQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 276110db-8821-4560-f25c-08d859ebfd98 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 02:55:38.3269 (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: NPl2URhF2ceLIJALrVJlGOwsYUIGzxSTNSpQiqE6DEyHnIMSlAl0U3yCfb4g3uYavUa64w25FpjKbAk5qI8Oog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7177 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Update fsl,imx7ulp-pm.yaml to include pmc Signed-off-by: Peng Fan --- .../devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.yaml b/Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.yaml index 3b26040f8f18..28ebaa8b1d1e 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.yaml +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.yaml @@ -23,7 +23,11 @@ description: | properties: compatible: - const: fsl,imx7ulp-smc1 + items: + - enum: + - fsl,imx7ulp-smc1 + - fsl,imx7ulp-pmc0 + - fsl,imx7ulp-pmc1 reg: maxItems: 1 From patchwork Wed Sep 16 02:48:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312068 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp85341ilg; Tue, 15 Sep 2020 19:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFaEXbAovodsUhV+gG4s33lqgZZtiEh9e3ytlFBNIl+rPqmzKLA2nAQr3rInbNyDKLRV2h X-Received: by 2002:a17:906:ae45:: with SMTP id lf5mr22527155ejb.339.1600224955234; Tue, 15 Sep 2020 19:55:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600224955; cv=pass; d=google.com; s=arc-20160816; b=YKPvH2cGCzlHzQFZh9leCO1QUR2wQlYGzuylwMLvhlCmsncPGYpPofCLPg21+/4bdF /u1ghbtXBHjgGCo4I8xEoSoSJCYZgRQ6zfBtMXUqehuptmw+kCvyToktb+FsqFf0qDLU +yU3bMY0jsj6VdPmIJZ2jOMV5oeEgD/9n7uQw7hJGiq2PIhos/BkRxbA9hRaQIBPcy1i uOmhtUFm8ZG67Hb5jqPwSEp1BgbB/duo3K2CdIcxyCwrxrXhr/G67QwOgFas/JTsogaF /x/gYufUtzOEFx+vvG0qL76WsTl43DBgN3tJhJj+Dw14L4JCkEiQITJreh8qHHShbRcM gjjg== 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=KqJJS1xNStWS5y3sRFc0WpYHvh+5NBAOXBJ/0Fi/Ho4=; b=m99CBAphVkE7I0R96qa16VIEOZIEodTpTdDpKlUwKN0ijfpnDwiRX2nbUlro+pVLwu g9ld9WXz2TgtNXAX0b9NhKSBPhjkzmL+1DWtOTreszQstaUanIEkWDEDf6Q0W7teGcg6 9UZBUxWu1vhFTZS6ikyTi95pub1dPaLSi/Dgkm1a7/7b6ny1iADumGpZAlqIMMXOdxwN 6QwFqrgmGH+oMEc5cPCQPIN8iKrZNBh7oeWNLFAtvhA3/UBcq/SGVkAk9IxugN/K4ssn YZbffiGXM6XLBRsGGSKAvaaIyvSWGvtbSFmkHLTWhIE0TeaaXrNZCsBlPSIdXT3mCBgb 1rYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=W+aQvmSq; 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 n25si10970906edt.464.2020.09.15.19.55.55; Tue, 15 Sep 2020 19:55: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=W+aQvmSq; 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 S1726376AbgIPCzv (ORCPT + 6 others); Tue, 15 Sep 2020 22:55:51 -0400 Received: from mail-db8eur05on2079.outbound.protection.outlook.com ([40.107.20.79]:23584 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726341AbgIPCzs (ORCPT ); Tue, 15 Sep 2020 22:55:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KsJdqhTMFVO/0/luIDEzVREXUUSzQRH2+dBZoJPxoqYuTnusXCDQIQeP5sWPkkS4X4a9aDT2vEmA9RxwmaAdrSsWtwU5nVRcFg1+0uRvxb7GQwzTJFv/vqqvF1y/1bVY/6cVXp6V8FeUJEz7Ff2xNsadAzg9Eimw2hAhjT7eb2/4lcoxCZpbec8mJjL6hEQG2Z0oezZ8nGed9Z2tKwWhxs5KUe55DblTtHi0BqqNIKJ3XoL0FrbBrr67DuusqGH3y3D5KnB2FED0T0LRVHquUfJ9EX91ZHxQMy2mYVpkvFyW6+ESaUCvsmrpqGurtIU9i1T4VNIY+PDwP5SAviTDZQ== 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=KqJJS1xNStWS5y3sRFc0WpYHvh+5NBAOXBJ/0Fi/Ho4=; b=iwFy8kh8pJHto+qgK8UT7RNUswn3R/MQrXoGJpT6wGRoOomJHQS7hV4ut9/dALin0H+teSpIgQ0QuE9/sMmcIFeR4ey+QcOobaYHHGfNI6OBhISNn5GAfKOsKmx1neklvKxjKd1pGEGCNl9ze6g20/KppS7jD3iZ7jqPdW0jPDOxg81V9Pc6GZdAxJoCuwpSa2Fy18mjNEWBy5fLa0dYslMgOj9NMvo6vZsUQY5J/W4BT87MLPjQ3Ii8g+ndS1Np6QoJF0VfcEsQ2I3qRpw2pj+aUCjkFQ6zN757sNvkG1FjoN8Vs/h4CEluL/8PcAc572+idyhrZ2qeFTl3085+/w== 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=KqJJS1xNStWS5y3sRFc0WpYHvh+5NBAOXBJ/0Fi/Ho4=; b=W+aQvmSq6K8jsnKzR8v24YIvSIL4gYWVcjI/9yhDrZXe95nervwlioNaavVvxRRrA/E16tC8JUH0Jv+vRAgLvzUj4wF5LMfpVHQswZqJZ9hkh5P5Ey0Ppwi8qjneEjA76buBnsOikPhDJ6giFktybzQZJksgEw9TNI4lxjFrkbE= 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 DB8PR04MB7177.eurprd04.prod.outlook.com (2603:10a6:10:127::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Wed, 16 Sep 2020 02:55:44 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 02:55:44 +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 V2 2/4] ARM: dts: imx7ulp: add pmc node Date: Wed, 16 Sep 2020 10:48:35 +0800 Message-Id: <1600224517-31465-3-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600224517-31465-1-git-send-email-peng.fan@nxp.com> References: <1600224517-31465-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) 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 SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 02:55:38 +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: 46acb51a-64b2-46b5-ffb1-08d859ec00fd X-MS-TrafficTypeDiagnostic: DB8PR04MB7177: 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: p6M8s14A9H6cxo6ufxUne4WlSorxJdbxgTTM09Ut2JeMycMpkV6ZY0F0DjRXDLiwF0toltQBaWXcYL/crVOm4WoLuj5WLRd3vziQLqPMZP4OKJJsw97rK44+E8dQgO/JqcF96gJYIeyfSL7UjbOYlL+iZ9rAYn/a98JkpCdL6BS5Jwp13i0yTnhf/x/Voom2JHD/xnRhFFwaUME3LxRf+BSPu8sw4yGU/zQUW/t4CjicvgjpI5ruNIDX/Xred6wwKZXok/fYOEe9fIlVFzpyLTilIgAFQt+b3OPsaWq/mJFRP4FpjQhVfYXdvMUX/uCXAu/r6PHvV3ftYSUqQs87QPzDA6nNzCsSQZbwyi5HBz610SJHKjhey2plyDupqtZp X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(376002)(346002)(136003)(39860400002)(4326008)(8676002)(66946007)(36756003)(16576012)(316002)(86362001)(8936002)(9686003)(16526019)(186003)(5660300002)(6666004)(26005)(66476007)(66556008)(478600001)(52116002)(6486002)(2906002)(83380400001)(956004)(4744005)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: aOnxHw952+6EmHcNWWS6fd3CZohwP2IYe50sZPYRzUmjCJe8qpbmZWbokj6/Lzf+e7Ao1IkOkl7fLlsBK10f1Ih8H1cQFbvBO+9tEqrUBYGicsB6b7RNKdmELIOERiZ96ENaS3//FUlncWg5Fc2zYH5ExxHQHlZF48x6UvPPmi8BbiT5ZHpS164r8rrZTL+1H5wZfQbOiLXYK8tVGrTzhPkoA0eB3ZXFoG5t8LLJJWYV2Wb1UAMniAIf2TDYCmb8Ba7qTMlWEgqIvc5SwUN3kFD8H6qmxBW+MyVE0Uj1UC1auVQ3KhIQs2DoOw5NLl6Ie7x0C50ThOjm7jLxPNZB+YDHJNBkm2r5anJ+ruMzD6y4ZxUHFLDuTrPAFCWnnxAzOb3/SEL3qVmyflCVJjvMWaDZT0plKJrJipxx9n6uW+OeussVh5DCF1gwNoGiVI9qx332AoRkyDlxFYcZG5fYtvMoRnckmm2haoEffCaluj5Zw/GANqtl0G4eC8RwVg/MiEXM4Am4oLWzqR/QImOIXCUdhEeTsjDzLmab+2fOTo59no/Dv3AM91f7eQh/RUd0qzpbZwIFR1uis41XaFSsMIHN/E52QrssN5Ct3kLTgaal2KIJdeSoRxnU4c9UYG8yEKNZzjzfDUnWmqL6GOjBww== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46acb51a-64b2-46b5-ffb1-08d859ec00fd X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 02:55:44.0283 (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: eu4nI7iuH5yP0WnVWX7ym7PyHFjDPA9PY9wa31kmtcxg74CxtdafPytSLA92LUmbGXZ4go1pkUbLtN7+k8ETiA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7177 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..b02dc4c97fb8 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: pmc1@40400000 { + compatible = "fsl,imx7ulp-pmc1"; + 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: pmc0@410a1000 { + compatible = "fsl,imx7ulp-pmc0"; + reg = <0x410a1000 0x1000>; + }; + sim: sim@410a3000 { compatible = "fsl,imx7ulp-sim", "syscon"; reg = <0x410a3000 0x1000>; From patchwork Wed Sep 16 02:48:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312069 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp85409ilg; Tue, 15 Sep 2020 19:56:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc7vVPlZpym8T0fRUYYVstHyMTV0f1uog4Ee2nc5PVOR2bi59SzS6LgKkuQTpEIfYBmDAh X-Received: by 2002:a17:906:ae8f:: with SMTP id md15mr22237582ejb.131.1600224962813; Tue, 15 Sep 2020 19:56:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600224962; cv=pass; d=google.com; s=arc-20160816; b=CJtu/zHk7/Hli1IQo4+kYBc2ccAoAQiq7Io7BfhdwRJlSBod2XDOTKMzCz1v4kAVxN iA+Js6huYmRJdCLLDovQzVeJht63UQzGIhyq7onMqBqwGVZylebO8inEYIbAqD9WPP1O gokKWApiDZFBJnq4YvlTBnoNKL8+q5VKxoc9HpOQFv9jqNooUkRENJhLw6VUF6jQTI4t C25zTd+t117fQ0pReBr2m4xwLnBV6xCIdwdk2kJuWyMOcY3vIcBV7gPszjlINAqO/YQt GX5m6fDljs8HROC5AtCC0wipycB92g74s4blxk5aGUuvp8GNhi0ehVdBlSDKHFDvC3W2 M+qg== 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=nKZH0/mBvr3NUzlpnWt25MgUCsw8ZS+FS22rHg2+nd8=; b=UisvK8HQ5rvdpPSrv8rRLbN4jrR+MbPO0e58jikrUhmsZo1b7KkCxK2E9K48PxDRuD o20ebNlFtWPp4+uF1GraqGhYO8Dcj+rS0hhaF8gVAvEDj+p1WsuwmYSvuHUx9Tt8aEBh UTB6g8H3UgnFlDwtE+8gcMlXN3hIG3ViVWpNXBl6/qyggKy6izS8g9cJGd5hyLYscYd+ ITBtZZm+fchKs8iZayH0ShGuh0wc8zK1/MJSg/82J+bCKN+5a7Opd/nJ/5v7uf3LUVfT 2JM67MpXwUoHKUMCmyV0c2Xk3qDeTYD0spaM+t0UsrDjThkW/zydz7gJdMho/a5AzwTU SxXg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=mROZ1hJZ; 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 u17si10631778ejk.29.2020.09.15.19.56.02; Tue, 15 Sep 2020 19:56:02 -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=mROZ1hJZ; 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 S1726395AbgIPC4A (ORCPT + 6 others); Tue, 15 Sep 2020 22:56:00 -0400 Received: from mail-db8eur05on2067.outbound.protection.outlook.com ([40.107.20.67]:51073 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726377AbgIPCz4 (ORCPT ); Tue, 15 Sep 2020 22:55:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KOF5iRhb/x+V+XuW5eHCp8OM8pVBVm5ssnj2heaBNWqkcNPcStUefdI7p+JiO3HeJ9wZMXOk7AGx23U5oaibMz2YK2oTH16f25rtL/hR9W4ohEQmX66YfJmTNkC9/7A1a8Rj3zvx+XzQrO1WzzubgLqYL2w8J0rkPqklssckAzyeI6daaqEmjsK+HDtvVMHrmpU1v4BLCJBwfKtBTh/svuzqRNvifh17EzsRR6us9xDvVyR8T5wMmIUF39CNb2/KTcetS+aH7fmzpa4/MvDzlvKJ9KPCL9/vd0AA2OEKi3jSHbpma+XyXzYZwfyxWXn07pJejp+/AVqnIWc6mGGYdQ== 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=nKZH0/mBvr3NUzlpnWt25MgUCsw8ZS+FS22rHg2+nd8=; b=B9rci/qvji7LdhJSN3o+fyZ3P+FrpZpKqj+7nFAReVDroezivDzc26w1aqHDqILZng+6EWIT35KDh/RcUSfoF3VzarJkMTzPZpTho5vr8NgTzxdiRaCv/7nQhnMAfv7q5yYL7B3eONv5qfYi8oRCWfeEb1KpNK90kc4PKNQSueZG32QOV/oK9kQqkyihsjNCOVZLaFuoLcAhr8REfQvWN2WRPYEM2EvSzGwbxUXnQ/cSvSCq1OwEeGWlI/dDEgGUOB/m44DCtPdA7YucYi5rEjapU8nweBaHQi3EpuaDd6Zzky1cRGeeYwZ134UhjhyRljnwOoOvo1oVTSMW8ho3Kw== 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=nKZH0/mBvr3NUzlpnWt25MgUCsw8ZS+FS22rHg2+nd8=; b=mROZ1hJZazZOZevZCOQvxvpXem9LFMOb7QtGsnwsGG5yoOGAF7NApDbeXGxcnstRMwBnuMyvn+gSbIjsCNfIE8jJhLgCKa1LiIiICiFwc/2pupsNtq4ruK+4DvUjOu7PT7PliXtwCAqQ2H+UrW6fop+mqyTImsFX35J4P9+Wwuc= 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 DB8PR04MB7177.eurprd04.prod.outlook.com (2603:10a6:10:127::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Wed, 16 Sep 2020 02:55:49 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 02:55:49 +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 V2 3/4] ARM: imx: imx7ulp: support HSRUN mode Date: Wed, 16 Sep 2020 10:48:36 +0800 Message-Id: <1600224517-31465-4-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600224517-31465-1-git-send-email-peng.fan@nxp.com> References: <1600224517-31465-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) 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 SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 02:55:44 +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: 776c5198-6a65-434e-828b-08d859ec045a X-MS-TrafficTypeDiagnostic: DB8PR04MB7177: 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: siO4AYxvQyjRXzuY1MGRem4XrkzamYXcPVFXaMAjDb4tjUoOAJnN5RAFcOtJavG9GixIK0Ly+a9k1iL4L1G/OTjIxq1QWaSaAp+CNuXXuRlXROVS79wmIGLBa6K9VbHXQC5MOFRYRQ1ovjPDA7iCkJvJE4DdeTJTn+NDN9kXw1H3i4IVA+9fTexxUpYVQ6WpOtOfgND7AheMk0AL5w6r3yC8JLYNEg/tRm/o4hCSoW6oyPqnLh2GHL+6B4nKPcPK07DxMkvXKYtW706HgbElMhT88H7zG+PydyENr46LHH7NxBr04N7F8eipBqsBzFuhy6wgCZeEEP1q7Mkyfoj6A9+uIZTzgDvC3JcS/QhKGEuJLFIwcStgyAfdzhEJBDYO X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(376002)(346002)(136003)(39860400002)(4326008)(8676002)(66946007)(36756003)(16576012)(316002)(86362001)(8936002)(9686003)(16526019)(186003)(5660300002)(6666004)(26005)(66476007)(66556008)(478600001)(52116002)(6486002)(2906002)(956004)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 9bxrCF0AKejYeGU1JiHkniVshh4ObMvKm0bKI7OZ7FINuIpK0+pY84e++C/XDwPCIi2OOUqn3jNxixvvE7ZL2TuLUupwx/HN2BrgudI1wh0WDHNyPpeuvenQrh44fKxGWylns2oT07RjgUHsXcgNVRjwRYOw/sTFdvUkwltijW1S3h4Y3DsfjDsYvjIFtBO2QsbJ+VkV9qAidh8MqSFFAdu8fcAuuNgdHBpoBVO+QkjnHDCPgHmu2WRqOp5ZIvyIv111A8EzkndlS3i9wCoFPKbxsjS5aDQnJY4BUgrCNxKOd4cHxBTQ558m2VBHzkjlrVw0cIBALqhZbkBDDSf4nNAlToTHT58CfPm4efzvqkRNvZwgTL7uCKd47fQsuQnPJCpx8u0jxSRff1ymEehAVnzUGdIYitrvddU2tGO+kiWiAvQYSCrEnMweCEfX9nzKBU5EAeOfCzS6kOMQlDZHucac5Ti0ImwpU64NTlPL62OmfnXyj7pU3BRR0Fj1mYcVO1jRdIdQpIZ1cYAZoSLknWYdipWOBH2BP+xY6TVlViVi1tIUjQLOJ1p547lUfe7OwhHK6Wfm/cqeLN/9YgBcgJK+oGrWf/ywM90tgOSajGajgimRSMzN04S2OlHWWVnwoCfqfpvE1OB6RhSlAmpG3g== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 776c5198-6a65-434e-828b-08d859ec045a X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 02:55:49.6158 (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: uuLySBIkdqG2sQwQhNDarJoEBnmNGd9pmzR2RVqe8AsjDkxcKFxMsei2AdVY8T1fJFXpf68Ui+dj7XxsuGLvig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7177 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..393faf1e8382 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-pmc0"); + 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 Wed Sep 16 02:48:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312070 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp85444ilg; Tue, 15 Sep 2020 19:56:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfyRNkwp8T8khvpzQzBI4SSHkN0xGAHJkFKnJEK1TeFHKNZ+5w9RSc0gS6tfh+YRDM0v4k X-Received: by 2002:a50:e78f:: with SMTP id b15mr25802753edn.104.1600224969521; Tue, 15 Sep 2020 19:56:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600224969; cv=pass; d=google.com; s=arc-20160816; b=a4bHCYr3TvjBF5+nyBkSO/V41bjG0h1tP6pSH48Bhh4g/HZdV1HuIWjsXLcko2Cccq Y5i78d8OpkSktF9TlKX2jVzBDfVQkGwFZZsl/ifFKRCGCN9OmcOZLykbisEM0ckqNhvd AwQNQ/QpXesgkhr/wJaYJ0ROLYwFbN6Vb4G0wGBn1HRWcnWFrobaxvemIwd0ah77F4r8 NVbZsRXnoWkeqEOs387uoBWDa5vIykKaDLvF2DsK2FV2ZBqUB9TvneANowaPAwkp0nEG EfpYv8rMzFXwWXdoQI1Feo1HeCSXhNMgzAVmv22Ac18isoyj7ZA1nEHbyqmvp3PRsTU2 gDLg== 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=tQGEwU6mhVXJnZUNK2mGmKwMpV43P3jw6Cc6Ob7/2lA=; b=eLp0OGeruGO7RRSupWN0GLCN2yRjWQgt8rpqJ/bEIrH9k7bBfcfEXvA8MzVAR4jvWz nEzB0KN1apzlw8HGnt4LYZdUDTStoyxt0aGleiLo7U8TeBFQek6+EAf9RfZ39Qh1Wym/ VzZ3VtfO0f+LmmmgKyi3uVXtPQmsoInJDrysbRFfa1aOgYtgx0AdjOlGBMbUzwoXzSuI fLFsHh5PpHvX0ebY5Bbbs+sBJMBamq8IK8duLKlefZSiLqZ784pzOYFcvGt8juZfiPg2 wll6A60cY2AdwaNswTPhGIipYMjff6f2PdvKS7Mfy8SoZbkoN3DrKafVREvd6G98Ai9t kD5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="aXvx/mVN"; 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 i10si11216074edu.323.2020.09.15.19.56.09; Tue, 15 Sep 2020 19:56:09 -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="aXvx/mVN"; 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 S1726377AbgIPC4H (ORCPT + 6 others); Tue, 15 Sep 2020 22:56:07 -0400 Received: from mail-db8eur05on2067.outbound.protection.outlook.com ([40.107.20.67]:51073 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726341AbgIPC4A (ORCPT ); Tue, 15 Sep 2020 22:56:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VBuBXQBJmeYp56C7YRjfyFlh6+tqJ6sWiWGG2L5K3w6Zt90fgDaHf1FuQanxoxXR4v8U0gpXC2mPqOsV3X5aP3G0QnJC4u1dnTISAZ4ERYEniWy2xj+ODfdTGJlxhZUteWHBW63hIFTcSxCxthLDRF68fbiGlK/Hxbpnka9/4F5FvKCRRK/i39hH5hztin/UGGvpBaUb72TpvVu9G0wCA6U0QlSpwYbp6G+Z5ExoQoGmFHZ8uzHT4HAEzreHuX0I4oh15+Tpy3ZfttVsQwiSnHu2F7kR79qa8OqmfZDs+k2kiNNLVkLOcTjKh5hDI7Sun/EfOpUbwZJU8I3qWh/Zlg== 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=tQGEwU6mhVXJnZUNK2mGmKwMpV43P3jw6Cc6Ob7/2lA=; b=R6yhotRP2OzlTW5T46WHUnu0v/hTAKDvXcO09A32j6Baj1hJdQymYDJnBV08b4eaMw57wBmr5XeAS0t3iLSBmDu6eeBqKTOjIvQ+Q+59yYldEaIVxTnMtLLRXBN4/y1ex9x6HOewR5RpSi4GPGooUzIgpvIr2H5hTnipBkfILB+lPmuDuitVUElAUkP6us/eDfBL7SXS9V0VIZWKeaxQC79IbLa0nE67wTT/oc2otZ6cdHzNRxZwgfzYGlAUHpv/CaogVcMDIYm8jRIB/jf9qstY8tWx7TGgbRJirNRjY7noTxEbMdF/FYSMMmj8x/+sXOWNVKvQUZkDjgs/U5X/6A== 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=tQGEwU6mhVXJnZUNK2mGmKwMpV43P3jw6Cc6Ob7/2lA=; b=aXvx/mVNnXANmwdiBsOz5WHLte54+i0nVNRAGBFTuoYuNtozduA6FDug908s+HRzdZRgfetoyLb/v+506nDYSZdJ1UUjB28ZCC2xYt12XQSyYikuNJvuJEJlsnNlB8CaO2qttFbr+aE5oMOvKOHdEW8oyhwa4Zw/JoW43GL257s= 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 DB8PR04MB7177.eurprd04.prod.outlook.com (2603:10a6:10:127::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Wed, 16 Sep 2020 02:55:54 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 02:55:54 +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 V2 4/4] ARM: imx: cpuidle-imx7ulp: Stop mode disallowed when HSRUN Date: Wed, 16 Sep 2020 10:48:37 +0800 Message-Id: <1600224517-31465-5-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600224517-31465-1-git-send-email-peng.fan@nxp.com> References: <1600224517-31465-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) 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 SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 02:55:49 +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: 33d56087-e325-42a1-b60a-08d859ec0767 X-MS-TrafficTypeDiagnostic: DB8PR04MB7177: 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: pghf5VcVGytp0wfZ85czEUDHerJAOoR9UjQ2t75n9+lh8LoU/OR+CYSTxtoVDCtL19YRKi/kWX0j6YiYwC+LEZfIJ/VJOFC91X9pJ+M86ffc6hbmul9HewNAvXN03q7Nkc+prrtS50JA12WdHGWcGsDT/ZaJ9j/lvnyeNPTTxyridIqgjjOVcXWWaczdh8ZOsYmOxtEd1IDk+f2/5AbKVlBQywwZybfw/azp5VAgnos2YSnOUsdA51Vr6g7nZ2MO+9KFdLkJmRpU2ErzNeFqtDXKebki08Tjx1CSPEAzAICt3jrR9xo9NebQ1EC5RgpjDx9cJPsIRhsrVyrMKnrAXEZ6jvx3cd5xyZuFioFOphu2APv1NmeISg+Hra45KU1Q X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(52116002)(498600001)(2616005)(2906002)(6486002)(956004)(83380400001)(16576012)(36756003)(86362001)(8676002)(4326008)(66946007)(26005)(66476007)(66556008)(16526019)(186003)(9686003)(6666004)(8936002)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1i2jgOI3hyNVnOvljJwfslQWZgMsQ4PByssPqHIAk2LQdCPWq7sEbVGg6aNGZkc2b65oaEX5WTS8BleSf1myzZnNW19agKNDJzIUr7mIO+2g/Eaf2zLZZRMWn6fRqKpZLjqh2vUljDteQmzrPQW43pHuavzMvjDhk+oSpJhT5QpiA63R17rZK2tkrpp8YZYRAmKwmu7GvsCJxkvM0KcJcHe7IdwsTlopspMapu5jpGOMZTcW0fDXoLcdP8soEh5bn0BwjEVYf1xK2KvzoVnx1wEvNzacUYLmW3h6pmhL5EVH5zJwBfAGFqVal8jtKv/by1PrZ+u8HWkxKsFNl1sc3gl2O2Zj9ePbceSsGTy1dahbyG58pl689lT7grpCJCu0U0hEcGmWvSyAJIzhg+hhn4qkpr9f0++WtWZQunpXS0NeVUcURVKGxv4Y/EXn2GEpdL8H/gQ23IVehW4S274qhxPYKuaG707Oe2YSUKgsP78AB5N9OmjsREV+SHiWtV2GXcrQpVkRX8rFfAxqOZMnrFzavtX3OMLpLbO2K73bgCFGo3V/Q5SJ4BAch+dMMUD9+9MLZhtYBFr3KC6qTPuQZOAbPEUcMwXGcDxC5GylxYwtVvp8QkmT1n3zxQCkAqTAraqx8wpDuB2AEvYybABZ+A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33d56087-e325-42a1-b60a-08d859ec0767 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 02:55:54.6715 (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: FORMuXKh1AI5rT3p+OLWwhdgmFKYj8lBBpQX4C8eBBfKEuhOGS/cii0xL4Luj++fWk+uJRwq9fI7qrMuIQ2C5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7177 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 Reviewed-by: Dong Aisheng 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 393faf1e8382..1410ccfc71bd 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;