Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp589999ybd; Sat, 29 Jun 2019 03:31:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqws1o2VR3W725nIyrsYfpQ2NpJ/0f+uau0ULzRDp2lk2JbvKvlbrp2h5RQcSL1Gu7BQxxkK X-Received: by 2002:a17:902:102c:: with SMTP id b41mr16696742pla.204.1561804319307; Sat, 29 Jun 2019 03:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561804319; cv=none; d=google.com; s=arc-20160816; b=uUNB808bfA/EbVqaTIyVgbZPMZ2prB9psACJCr/O3mjffY0dg+Kdi8MJlvXC5vEnZN SG67Uo62uYn2kUBaCZUWjmXiJXdVyYpryReSG6cV9iZBSAP2DVihRjoyxYL6+cdIAtwo iaIEWp1PYNraCTKnJfLaI/NfG89Dlu3rtXscDZpPWjGsQZBHp7OTSoL1aBIjVBp7uCAB VVizLy8ys+Lim7SsPOEfcIDTIfsJqHbtIqM3TzUowTAqim18Mfp5u+upe3a/FABx1+BI lWCmUAnaxaKuaDU3eC4i0br9Ll6KZoOrKtrMpKyWQqwjE2mOCenWSAekVwYWWW5yiN9p 24Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=qxpFGEPfP9APc/cApT2eCeTRfv5Rz2WDhtTQZ65Cobc=; b=G+rp5JK8RLYMWHk/uiQzG8Ie+QpnGEe1ScbxTGFa1yQ5lOD8gmmLcBTc4ul1wMcT6F +KhuBBlZ2++Le5SBGRB1WvW52ZjD+W3AAPtxQU/VxkZV4kD2SzfMALGZpHpjq7BT5akt 6hf6Cbm5LlTmXlxnyUOhK2mhf8ywBQMeYlEAnBY8NlCwvSFA5V392krnUgcpHfoo0eZh LUk7Ek1rpayEqeO/E+4BPmzmNPIMucs9t9VWWWtlF0WC/LQmU9eSmEQQ1zV52BBxLksj DckgqVVhIsy8fqRFMER3/Ll9Q4ziPjyttPn7TMghB/sWneC+Lt4yyzMMPLD5iDXhOEuE dwKQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 x19si3784755pgi.200.2019.06.29.03.31.43; Sat, 29 Jun 2019 03:31:59 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726965AbfF2KbP (ORCPT + 99 others); Sat, 29 Jun 2019 06:31:15 -0400 Received: from inva020.nxp.com ([92.121.34.13]:34926 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726941AbfF2KbN (ORCPT ); Sat, 29 Jun 2019 06:31:13 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 76E101A05B9; Sat, 29 Jun 2019 12:31:11 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A438D1A028A; Sat, 29 Jun 2019 12:31:01 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A94E94030F; Sat, 29 Jun 2019 18:30:49 +0800 (SGT) From: Anson.Huang@nxp.com To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, leonard.crestez@nxp.com, viresh.kumar@linaro.org, ping.bai@nxp.com, daniel.baluta@nxp.com, l.stach@pengutronix.de, abel.vesa@nxp.com, andrew.smirnov@gmail.com, ccaione@baylibre.com, angus@akkea.ca, agx@sigxcpu.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V2 2/2] arm64: dts: imx8mq: Correct OPP table according to latest datasheet Date: Sat, 29 Jun 2019 18:21:57 +0800 Message-Id: <20190629102157.8026-2-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190629102157.8026-1-Anson.Huang@nxp.com> References: <20190629102157.8026-1-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang According to latest datasheet (Rev.1, 10/2018) from below links, in the consumer datasheet, 1.5GHz is mentioned as highest opp but depends on speed grading fuse, and in the industrial datasheet, 1.3GHz is mentioned as highest opp but depends on speed grading fuse. 1.5GHz and 1.3GHz opp use same voltage, so no need for consumer part to support 1.3GHz opp, with same voltage, CPU should run at highest frequency in order to go into idle as quick as possible, this can save power. That means for consumer part, 1GHz/1.5GHz are supported, for industrial part, 800MHz/1.3GHz are supported, and then check the speed grading fuse to limit the highest CPU frequency further. Correct the market segment bits in opp table to make them work according to datasheets. https://www.nxp.com/docs/en/data-sheet/IMX8MDQLQIEC.pdf https://www.nxp.com/docs/en/data-sheet/IMX8MDQLQCEC.pdf Fixes: 12629c5c3749 ("arm64: dts: imx8mq: Add cpu speed grading and all OPPs") Signed-off-by: Anson Huang --- Changes since V1: - remove the comment to avoid any confusion. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 9d99191..477c523 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -169,15 +169,14 @@ opp-1300000000 { opp-hz = /bits/ 64 <1300000000>; opp-microvolt = <1000000>; - opp-supported-hw = <0xc>, <0x7>; + opp-supported-hw = <0xc>, <0x4>; clock-latency-ns = <150000>; }; opp-1500000000 { opp-hz = /bits/ 64 <1500000000>; opp-microvolt = <1000000>; - /* Consumer only but rely on speed grading */ - opp-supported-hw = <0x8>, <0x7>; + opp-supported-hw = <0x8>, <0x3>; clock-latency-ns = <150000>; }; }; -- 2.7.4