From patchwork Wed May 16 04:48:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10402567 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 99F55602C2 for ; Wed, 16 May 2018 04:52:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8797A2873D for ; Wed, 16 May 2018 04:52:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BE7528740; Wed, 16 May 2018 04:52:31 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI 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 ED1832873D for ; Wed, 16 May 2018 04:52:30 +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=oryuGhkLoURJjZnDBjoYFYjoYYzX/JcN2ar/il51V+Q=; b=Z94GibnHcn7tkT kN+S8ezH/nS6/wC6Qr6fTA4gek77lUi5va4XNu4QcJgo/O703F8UbCczkUoam+eUQWC8e5pwIFuWu QIRePCnZsUX5jCjvZb8qtQlm4qCpJPBC+IoL+wcbteaSQq934gRh1bY6iUixanCzyuaPaVuKVxchN Xc1ewJ0SHj5DxLmlkVI/GpIsPG2afgXKHSsnQplsO7xBYd2oZWkdOUgTh8lEEwWFVIdCYSSVWv1Qn Mn0E5wwkzpBPdmX43NvYhCoepiz4MTcKvzZfPetOE8HrEY1Mk/0dS25DFkq1j72UJx0eduq00Ojdt vzO69PqnFE6ku1YgoXPQ==; 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 1fIoQH-0001Bl-7I; Wed, 16 May 2018 04:52:21 +0000 Received: from mail-am5eur03on0601.outbound.protection.outlook.com ([2a01:111:f400:fe08::601] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIoQD-0000zr-1q for linux-arm-kernel@lists.infradead.org; Wed, 16 May 2018 04:52:18 +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=hzlzn7JpfruhqwJdXEI5wqho1xElvUZzsu0yuimeAds=; b=T/FDzeusH6fL7rLdoXiGEQ66H6cLqBevsxrlceVnzo0zTpWJ3wnyJr/xaQkzKB1r7pUXbSa+OFe5Ll7f/BCCAUWMYBJVRXrxEQhMrU9WgabzZbG+f5tjaJKxBIysldZdtKW+0CtL/HxTCt+ZvFusy2IYJ9/lDxHZLdb95LmQxSU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by AM3PR04MB1315.eurprd04.prod.outlook.com (2a01:111:e400:586e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.776.11; Wed, 16 May 2018 04:51:54 +0000 From: Anson Huang To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH] ARM: dts: imx7d: use operating-points-v2 for cpu Date: Wed, 16 May 2018 12:48:17 +0800 Message-Id: <1526446097-7111-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: TYXPR01CA0066.jpnprd01.prod.outlook.com (2603:1096:403:a::36) To AM3PR04MB1315.eurprd04.prod.outlook.com (2a01:111:e400:586e::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM3PR04MB1315; X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1315; 3:guRwWzKBjhho7IZeSen7JUZfGUIAlWCBiotXmmcAovo/r5gFolhnLjqgtrHSPSrpynm/w2gbuvp/RRMGkb+mDgfnErmWyG4h/0DRqYNr2scx2YiQj1cJgPCfGQy9v6MdfYgJozxtbm7nqwRg++gNkHFxUeJoWMq7K7SKi6B9S2WEMAOaDRCZyJs/d9cM1dQ6xLajU7trjlIatnEg80iI1zsWeyvrOCP4aUWPKGA5ITSrcHcHhIaZ+V19jp1l3z9r; 25:6FfNYw9Yv5twmWmHk1VwiiSd26OEcKtufxeDmhMiUlzYrFv+s7xgGrrc74nPEIN2ItZvt0xnyXYLPJmYis2qZX3FXBE2QG23lr7lK9Rl/aMhIzbzI7N+lT3uvcvbL5XnsFSSU7sp59MXphuY3Py0FafSnSSIPzMzU7f7EVh27JWepB1WijuzNbPAB/Xa0A5xwzVXgrmTDKBrmszgIZ468Wj0S9uPz4//Ptw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WTaJQYATyoQimQhc+VUuTfn8zKmrgG3AQvPRgPw34Mpgti2UErhmzFvsCEZDDMpoNApPYwgmdF4My9eZNnOGDQ1p5/npbXfa6LfUCoxDcLao2vVLjxYrnJ9Hdpx0WIsMOlId3uCuwGKjHj7xcxN1KxnOQwdpbBy5vf7pV2518sbuCz2YRIRTSyjpTqRzUSkpMbGnV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM3PR04MB1315; BCL:0; PCL:0; RULEID:; SRVR:AM3PR04MB1315; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(39860400002)(396003)(376002)(346002)(199004)(189003)(186003)(81156014)(26005)(81166006)(6486002)(6506007)(97736004)(8676002)(16526019)(68736007)(478600001)(386003)(1857600001)(59450400001)(25786009)(36756003)(6666003)(48376002)(2616005)(956004)(6116002)(476003)(3846002)(66066001)(6512007)(8936002)(50226002)(486006)(16586007)(316002)(51416003)(7736002)(52116002)(106356001)(305945005)(86362001)(4326008)(5660300001)(50466002)(47776003)(2906002)(105586002)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR04MB1315; H:anson-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM3PR04MB1315; 23:i+dLa8KMqwQIAlJrT6svBRbVXF0nvAA9eSGqgx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RbqtIhvY8CtM9aQdBmS94hFQzU6407YhNXQRQRhJEMeOwUmFP7miA3/t+iL3pLYRfc6uztqI5C8aK7EWMZQSeDkV2uCvH2Do53V9Noo72xWE2tG3bJhZ8APNYn73K1eJIzyQqe3gp6VSUc=; 24:wz5jJbosuJ5HTEBVZdwyYG6sNRi8pCwB/e1mviVp797VaQg4rOaIHc0cRSOhnuXBi2YtvtuqUr3QlA/vEE2qRcJi0WbOGZEnDdSX/wAeDfM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1315; 7:poYzsTtpHTQ2QhCuwu3tBpV+LK6bmhl/vjo4pMloMswqbYcbGAqoAdiI45fcixRG+MtRSZrQ268QSpbvdnvw13qNhV4nRZO6S5CulAOQwSBoUOgIRsb7UsOi/AY9QO9GY6zfc7Psw3ooVx7krhLVjqwYrzPcBMwnbcVrvqcbgSeP4anGAV2zYpcORPuzxfynbeIsxxrvLWPAmWeqnUZ77zZdCOSiRT5ujAPlz1EMPD9wFk0hqQ4/q2IT5MqSkBJa X-MS-Office365-Filtering-Correlation-Id: 6b491942-4ffe-4bc8-cb3c-08d5bae8c29c X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 04:51:54.7523 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b491942-4ffe-4bc8-cb3c-08d5bae8c29c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR04MB1315 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180515_215217_268748_03DD4A2F X-CRM114-Status: GOOD ( 11.96 ) 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-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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 This patch uses "operating-points-v2" instead of "operating-points" to be more fit with cpufreq-dt driver. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d.dtsi | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index 4c9877e..28980c8 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm/boot/dts/imx7d.dtsi @@ -9,12 +9,8 @@ / { cpus { cpu0: cpu@0 { - operating-points = < - /* KHz uV */ - 996000 1075000 - 792000 975000 - >; clock-frequency = <996000000>; + operating-points-v2 = <&cpu0_opp_table>; }; cpu1: cpu@1 { @@ -22,6 +18,24 @@ device_type = "cpu"; reg = <1>; clock-frequency = <996000000>; + operating-points-v2 = <&cpu0_opp_table>; + }; + }; + + cpu0_opp_table: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-792000000 { + opp-hz = /bits/ 64 <792000000>; + opp-microvolt = <975000>; + clock-latency-ns = <150000>; + }; + opp-996000000 { + opp-hz = /bits/ 64 <996000000>; + opp-microvolt = <1075000>; + clock-latency-ns = <150000>; + opp-suspend; }; };