From patchwork Thu Apr 18 03:42:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ran Wang X-Patchwork-Id: 10906445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1FDBF922 for ; Thu, 18 Apr 2019 03:42:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0061228AAC for ; Thu, 18 Apr 2019 03:42:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E46B228BE5; Thu, 18 Apr 2019 03:42:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6464928AAC for ; Thu, 18 Apr 2019 03:42:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zJt09sIQURjeg8ZPfwQm94Dyz7Ev7BfKmeLLk/BkoFI=; b=pvV2pNSPo5WNZY ZXObCBbmqiLNafgz0kQyJiwyqhJWYaMxtQaeuUEN+dMJuwRLSaB2gNLAQO05692JeeEjYH9NIrqKl Gh7ow5/qMw9YlTAgPGmPxIEZPrz/is8yoD9IxSclYoadpGvxynJZbUuaMAN4VXw+Wfvhqhj5zFkra v+L60FkAQ3G7yg7ZmohNaWE/WZSNMMZt9tU/BBajoccAO77XXHFPU10BMsB7oyP67Rij0IjGEV+9s AGxxK0bkGtBSEhsOWr7KGmQ/cq69eKGTGhBOl4rn1SGLFoePCziIOnh4by+HT7Q4dFCM4SMik7kRP PkmtkPWLdnzxla1XbAJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGxwX-00076Y-IH; Thu, 18 Apr 2019 03:42:33 +0000 Received: from mail-db3eur04on0615.outbound.protection.outlook.com ([2a01:111:f400:fe0c::615] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGxwU-00075d-MW for linux-arm-kernel@lists.infradead.org; Thu, 18 Apr 2019 03:42:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AdAiI0A1RB9j71Ek46AlVCou0vgROKLKo5+VjTL5cmM=; b=h734a1BcyljkraGQ9Rtu90wY8TXd2VlY9GidcncHHoaXcFyEU690oH+UOiHhejyQE73NacdHRKBcUv5d5l7w06l+DreUKxUh8THJbODJ1uRUEAwi2cFVQ7NuXLWH1xcC6WJqqw0mSypEdQrpeh9guzvqhP3qusFwpF0kZIwBPlI= Received: from AM5PR0402MB2865.eurprd04.prod.outlook.com (10.175.41.148) by AM5PR0402MB2739.eurprd04.prod.outlook.com (10.175.40.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 18 Apr 2019 03:42:25 +0000 Received: from AM5PR0402MB2865.eurprd04.prod.outlook.com ([fe80::dd22:eb7e:4dd8:e247]) by AM5PR0402MB2865.eurprd04.prod.outlook.com ([fe80::dd22:eb7e:4dd8:e247%4]) with mapi id 15.20.1813.011; Thu, 18 Apr 2019 03:42:25 +0000 From: Ran Wang To: Shawn Guo Subject: [PATCH] arm64: dts: lx2160a: add cpu idle support Thread-Topic: [PATCH] arm64: dts: lx2160a: add cpu idle support Thread-Index: AQHU9Zi8cngNa+O1oU2NiJ6tfBC9CA== Date: Thu, 18 Apr 2019 03:42:25 +0000 Message-ID: <20190418034401.26480-1-ran.wang_1@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR02CA0134.apcprd02.prod.outlook.com (2603:1096:202:16::18) To AM5PR0402MB2865.eurprd04.prod.outlook.com (2603:10a6:203:99::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=ran.wang_1@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4e3d0dc1-479d-406d-c934-08d6c3afdf25 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600141)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:AM5PR0402MB2739; x-ms-traffictypediagnostic: AM5PR0402MB2739: x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(376002)(366004)(396003)(39850400004)(189003)(199004)(305945005)(99286004)(486006)(81156014)(386003)(6116002)(54906003)(2616005)(86362001)(102836004)(6506007)(52116002)(3846002)(97736004)(8676002)(81166006)(1076003)(25786009)(6436002)(4326008)(6486002)(26005)(68736007)(256004)(478600001)(66066001)(36756003)(316002)(7736002)(53936002)(14444005)(5660300002)(50226002)(186003)(14454004)(71200400001)(71190400001)(2906002)(8936002)(476003)(6916009)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0402MB2739; H:AM5PR0402MB2865.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: XkjPJbUkIRU5uUAMzelxUJW6vF1+eWcCtZRnRIjt4AfsvzqkAaopb1UCa3/1Nm8+u7YjTMW5CAw/EIAq/krxML9gDyZyg1YVayUiCkezfqhx9+/mnaeWXqqQwqQvpP2OqGiNtcLcskPaDwlNFRx5MDIb6D69Y2sYbiQyVi/KD1Lr4Maf3l5cL7aq/nazfr4K4dEzX1bxRw0aH4WHzjYMmcxtjEHGKsa8xYkn/E9mzKVaP6ka68kIRjW2cLgpmZu5UwtT61Xd0gKo3y4Iij4/m+BEcoKYu0dQh69w3k1rvi0wGrxb9SpOcqEMTzltjmUW6eFVwMmAWhmwBONi5elhvpdkvhZGhTJKKlE0CXDbljuU4RATfvaTBOnFXZR/18zTiSALPmdpS9ZmPGYyqlCIxCT02r5WnDsCqqDrbQtrpKc= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e3d0dc1-479d-406d-c934-08d6c3afdf25 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 03:42:25.2764 (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-Transport-CrossTenantHeadersStamped: AM5PR0402MB2739 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190417_204230_791470_CB86AD29 X-CRM114-Status: GOOD ( 11.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Leo Li , Rob Herring , Ran Wang , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP lx2160a supports pw20 which could help save more power during cpu is dile. It needs system firmware support via PSCI. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 25 ++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index fe87204..1e07155 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -33,6 +33,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster0_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@1 { @@ -48,6 +49,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster0_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@100 { @@ -63,6 +65,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster1_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@101 { @@ -78,6 +81,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster1_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@200 { @@ -93,6 +97,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster2_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@201 { @@ -108,6 +113,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster2_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@300 { @@ -123,6 +129,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster3_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@301 { @@ -138,6 +145,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster3_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@400 { @@ -153,6 +161,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster4_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@401 { @@ -168,6 +177,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster4_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@500 { @@ -183,6 +193,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster5_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@501 { @@ -198,6 +209,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster5_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@600 { @@ -213,6 +225,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster6_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@601 { @@ -228,6 +241,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster6_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@700 { @@ -243,6 +257,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster7_l2>; + cpu-idle-states = <&cpu_pw20>; }; cpu@701 { @@ -258,6 +273,7 @@ i-cache-line-size = <64>; i-cache-sets = <192>; next-level-cache = <&cluster7_l2>; + cpu-idle-states = <&cpu_pw20>; }; cluster0_l2: l2-cache0 { @@ -323,6 +339,15 @@ cache-sets = <1024>; cache-level = <2>; }; + + cpu_pw20: cpu-pw20 { + compatible = "arm,idle-state"; + idle-state-name = "PW20"; + arm,psci-suspend-param = <0x0>; + entry-latency-us = <2000>; + exit-latency-us = <2000>; + min-residency-us = <6000>; + }; }; gic: interrupt-controller@6000000 {