Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp9674imb; Thu, 28 Feb 2019 14:19:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IbTvMUe0Y1DCNu1QTTN11tQSKtaIHUpDiNgs4Vs1BanBWh7dB9Vmv2uyP67QjZ5+VF/bk4+ X-Received: by 2002:a62:ee0e:: with SMTP id e14mr1953634pfi.201.1551392347429; Thu, 28 Feb 2019 14:19:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551392347; cv=none; d=google.com; s=arc-20160816; b=NJQ0Ie5pi8abvVnchcdw4FtFy7CnrhtbSfz8T3iYWuZ7hV2ibKOIHMytvcwjU+vKg/ Jlb2tDG1KNOsfmohjYaInM8QASn1HztiykC0vPh4LO0gww+5YG80iYwGdGPx+nDWLFZR Vcd+oRfjzfZAfPv3bdet5rGdMIsrEeY9bdubDsH3bGxbwxoi0XPlliW5nj/gJQU19oF3 /ySTFYJMhadx2hxVXi6B93/Tl83Mwkx+pg+hl9sWs9YK5dcShru3oMm32Fw+ijkMtLaq VevW2RrRg3igiJQxv8m3psn5XTx/JcSESXLHIg5vyLI/gwzbaTe4gCk3WwqJqNtWE3gX CHSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Sp514eg/OX8V6QNVIzJ1xpZwpJ1syOsO+tfxVG8b5c8=; b=qW74ZIb0fPaLn2Fs6oohc9XXikIA4gQtF8rlMWjAuY1awR45hIIn3i7hNFLUTKxORc L0n0KF9UwnOxCHTq2rpJMZIynN7SLvVX0McIWmrzkck7yDkBitk8/f7h3Mf+RhNDOB8u oN/cw9nVSJDsY8oe9Ubko4nsQu4EE73yaurR9Eo2WlsD512MONeOK+ApesWrhkB7CaL9 3mJnxFtzrN2MYP03wyjoTyXLxwbdr+jf1mGROvPy+ULZ37xOpgCpgA7aphoiMf0P9YCi 18V5vqAxjvvOglpxWGBigW7M4NRcvafnA6eeCBnvwtBvmzOlviZjKG6D8yn25rOzvnF0 BYiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Pl09S2AV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id u1si17951686pgn.158.2019.02.28.14.18.52; Thu, 28 Feb 2019 14:19:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Pl09S2AV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1732982AbfB1VnD (ORCPT + 99 others); Thu, 28 Feb 2019 16:43:03 -0500 Received: from mail-eopbgr20081.outbound.protection.outlook.com ([40.107.2.81]:35150 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731040AbfB1VnA (ORCPT ); Thu, 28 Feb 2019 16:43:00 -0500 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=Sp514eg/OX8V6QNVIzJ1xpZwpJ1syOsO+tfxVG8b5c8=; b=Pl09S2AVWKXvA2gKQ8pBlzpWkfSFM+ou4+hLL1YBocgNlzmYmHFbOSkIGLn+tu0D4ZlmCnM7jNMC1MzVBcakU1SaByhxBYOoCKBoHAds6apJyoic8IFPhAAAXLKlqJ8nw7sAM4ZYBZ8eLH/zK85INRsSmrRj73X/1zBIuuKcqsA= Received: from AM0PR04MB5779.eurprd04.prod.outlook.com (20.178.202.151) by AM0PR04MB5795.eurprd04.prod.outlook.com (20.178.118.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.18; Thu, 28 Feb 2019 21:42:46 +0000 Received: from AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c]) by AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c%3]) with mapi id 15.20.1643.022; Thu, 28 Feb 2019 21:42:46 +0000 From: Abel Vesa To: Rob Herring , Stephen Boyd , Mark Rutland , Mike Turquette , Shawn Guo , Sascha Hauer , Lucas Stach , Angus Ainslie , Anson Huang CC: dl-linux-imx , Linux Kernel Mailing List , "linux-arm-kernel@lists.infradead.org" , "linux-clk@vger.kernel.org" , "devicetree@vger.kernel.org" , Abel Vesa Subject: [PATCH v3 3/3] arm64: dts: imx8mq: Add the opp table and cores opp properties Thread-Topic: [PATCH v3 3/3] arm64: dts: imx8mq: Add the opp table and cores opp properties Thread-Index: AQHUz66Lx4DeyzncSkqi9Xd25tZqeA== Date: Thu, 28 Feb 2019 21:42:46 +0000 Message-ID: <1551390149-15443-4-git-send-email-abel.vesa@nxp.com> References: <1551390149-15443-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: <1551390149-15443-1-git-send-email-abel.vesa@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5P194CA0012.EURP194.PROD.OUTLOOK.COM (2603:10a6:203:8f::22) To AM0PR04MB5779.eurprd04.prod.outlook.com (2603:10a6:208:131::23) x-originating-ip: [95.76.156.53] authentication-results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 760854c0-30e1-4982-e4b7-08d69dc5ad5a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB5795; x-ms-traffictypediagnostic: AM0PR04MB5795: x-ms-exchange-purlcount: 1 x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;AM0PR04MB5795;23:4dD0tNWggSm+7YZwwsIaVMfdaQbmO6aFSwAq4po?= =?iso-8859-1?Q?iqwlZRzZiZLfhhikuc+g6zniFd2sNtC7zyVvWeUDGt/8N5Ju1Pcxp7O7W4?= =?iso-8859-1?Q?0BisSJOmeuJhTzk93yWXQTN6lg17EDHnXiE7ZMpjQKpvo+Svwnc5ncS3//?= =?iso-8859-1?Q?Gm9/7FwZ4UDrnNWTa1niWJj2tCKlkDozsimE2tRVaXjNuvSyHEKNDlz1Yn?= =?iso-8859-1?Q?XWgXbnSH8i+U2hw7WY6fQxXu3e4jMhwp/GpdDFGvT8GEH5kk8ryffMuDIn?= =?iso-8859-1?Q?MEuVOoIC5M8la0QXSb9yoiRtpLYDPvGmxLNvHlTcc8zRut0TusozYzKn22?= =?iso-8859-1?Q?ZlzUXRpQdF9CLzhvoRoze+OWRUZKpABxIQkOsyGtXI4AZrfYlwXFrcBeuR?= =?iso-8859-1?Q?9jOeXvVszbKkOm3ze1KhVuNzXT4MPf0GEXio7583659NrDHfdvqq1+hsc5?= =?iso-8859-1?Q?1R+9fa/blHF5TuLCZzWdK4t4eTBHXflVbIIvcWSARnryrEm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Su77yY=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0962D394D2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(136003)(366004)(346002)(376002)(189003)(199004)(25786009)(316002)(446003)(3846002)(2616005)(476003)(6436002)(110136005)(486006)(54906003)(44832011)(76176011)(106356001)(11346002)(99286004)(6486002)(105586002)(14454004)(102836004)(8936002)(68736007)(186003)(66066001)(966005)(6306002)(26005)(36756003)(71190400001)(71200400001)(6512007)(5660300002)(50226002)(305945005)(53936002)(8676002)(7416002)(81166006)(81156014)(6116002)(2906002)(256004)(14444005)(478600001)(386003)(7736002)(52116002)(86362001)(97736004)(6506007)(6636002)(4326008)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5795;H:AM0PR04MB5779.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: XF2qOHvwKE9UlfZhx1iH+tWICltGKWWJC0zeGIaDRMFnp49AuWEQzrpZnHnPrAwztl50kMsQZUpFtPRw7KvB7LsVTHp5neekcxgY07ojWAE55nCXQAPJdlCmAMfjqO1j8QMCZRSZVIrbDONfp0hCwQIlYPgts12JWE+GDXu1WjfDz/rm+mqmnQEJVOT9a5myd1X+Y6IBrfhIxEsUSil9ax26zS6SX+AYlczRLxt8KxK6480Aix3/Iy5hRmn753kzTG14ceWjhn7ZYbzFxZbs00J4LicuA+BCkUxK8/oSYS53w5wxbXZppC8FsarERqJJnhDTf0t8yx6uC5Ay8UvpcpCVZ5xUAmJINQxAlkJ4zlMRmUjGSULpHPnbwHgpm3Gsp2LEayKjHJt1wtz3szEG7kX2FNCCrMa+OY/WqOOxhQw= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 760854c0-30e1-4982-e4b7-08d69dc5ad5a X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2019 21:42:45.5082 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5795 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the 0.8GHz and 1GHz opps. According to the datasheet: https://www.nxp.com/docs/en/data-sheet/IMX8MDQLQIEC.pdf section 3.1.3 Operating ranges. The 0.8GHz opp runs in nominal mode with the regulator set to 0.9V. The 1GHz runs in overdrive mode with the regulator set to 1V. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dt= s/freescale/imx8mq.dtsi index 1a89062..306e3e2 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -91,6 +91,7 @@ clocks =3D <&clk IMX8MQ_CLK_ARM>; enable-method =3D "psci"; next-level-cache =3D <&A53_L2>; + operating-points-v2 =3D <&a53_opp_table>; }; =20 A53_1: cpu@1 { @@ -101,6 +102,7 @@ clocks =3D <&clk IMX8MQ_CLK_ARM>; enable-method =3D "psci"; next-level-cache =3D <&A53_L2>; + operating-points-v2 =3D <&a53_opp_table>; }; =20 A53_2: cpu@2 { @@ -111,6 +113,7 @@ clocks =3D <&clk IMX8MQ_CLK_ARM>; enable-method =3D "psci"; next-level-cache =3D <&A53_L2>; + operating-points-v2 =3D <&a53_opp_table>; }; =20 A53_3: cpu@3 { @@ -121,6 +124,7 @@ clocks =3D <&clk IMX8MQ_CLK_ARM>; enable-method =3D "psci"; next-level-cache =3D <&A53_L2>; + operating-points-v2 =3D <&a53_opp_table>; }; =20 A53_L2: l2-cache0 { @@ -666,6 +670,25 @@ status =3D "disabled"; }; =20 + + a53_opp_table: opp-table { + compatible =3D "operating-points-v2"; + opp-shared; + + opp-800000000 { + opp-hz =3D /bits/ 64 <800000000>; + opp-microvolt =3D <900000>; + clock-latency-ns =3D <150000>; + }; + + opp-1000000000 { + opp-hz =3D /bits/ 64 <1000000000>; + opp-microvolt =3D <1000000>; + clock-latency-ns =3D <150000>; + opp-suspend; + }; + }; + gic: interrupt-controller@38800000 { compatible =3D "arm,gic-v3"; reg =3D <0x38800000 0x10000>, /* GIC Dist */ --=20 2.7.4