Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3207985ybe; Sun, 8 Sep 2019 09:14:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsf/0TO2hN8TdQaGNynhbtnEtDURp0YofYnwMTPIQjg8PRDO/ybjqiUe0dMBNb3BF4ujy0 X-Received: by 2002:aa7:c1c5:: with SMTP id d5mr19844856edp.46.1567959265228; Sun, 08 Sep 2019 09:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567959265; cv=none; d=google.com; s=arc-20160816; b=zh/MYNqTQjExVXWYmR+5l8I22E6oVnEay54olhKjv+XKJ2q7P3AxfU3UCMtA/NPxeg fFbqdwThI+SCsMSwbyb8aA62FuvOWokjLzm3eZW47MLdod+2u/1gYS5hvc9Xqs1XijdW chfxcwUb8dVBr0L4YYa7FeTxj584eHWHv48qCv48ct0xJc/cvLU3KHFTUVjFSa4tbQ0c CNmnhTk+WEnJDaYOZqAWeMJAi0P4/uVjdDTSkyV8g8KLMl9ZIAMkH1JLu0/BlclkOkN7 hT5Rgb/j+xMheqzH3hY5ibiv2K9Ero1pOGF+CGZmG8YAffLZkBgJwb6XeWz59mDdfWGv gA4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=GUX1eWsEK1Al1N1ta4hnlkUwJe6XR50RrgXmahK2eDg=; b=aGdQEUjb7YI/joRpZE/vwtv02IqDDnFTSAMRqvKyqkJozpb8mIeY+RpCKTnj4x8kTF 0URY/i1Q07/9rueixVTBaPsBvpwzspuVYiuZuTjmq1b7lN98kfhgDHQLG7NxEPzIf25j x/Mj9ZfzQadTFeRVvpkrtUvBzsxtc5vSlR8JK4h88+aOk4LMfaTLHpqk0wOKVBuOGd+t OTN0Hk74jWyKjT+dLDPTuvL+RO2xtT80S7VU6NnbDqLNb1HToHfg6g6+Pd+ib1SxxPuA MKUIEVOaLXbcwsPATEg1dvy8rgp2mhSfaQTbYQVEUXAtcZedqInz6pftN9TMQP6MMAPP gjew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=dO7tIyh8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si6121908ejh.165.2019.09.08.09.13.18; Sun, 08 Sep 2019 09:14:25 -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; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=dO7tIyh8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406477AbfIGGee (ORCPT + 99 others); Sat, 7 Sep 2019 02:34:34 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.53]:22516 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733303AbfIGGee (ORCPT ); Sat, 7 Sep 2019 02:34:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1567838071; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=GUX1eWsEK1Al1N1ta4hnlkUwJe6XR50RrgXmahK2eDg=; b=dO7tIyh8N0bVjWVWI+hGom1sV6MO9Z1dlKXl/6LIMdq1IqgF5i2oQeICJVimb+sqk0 gtJd/EWtwHvejp18oLzJtWfs+qcQCM8XRxzCIAhVdnGasnRAg4H4tYQse6Kx0FgvGjSB NWvO3PnY+561uTae0WyOHxNRl8Zm2agxK0S11yRHr3oz8fvg4jxCgHY855amMtf1Oz4r q3D6O4kiZwo6XWguIe9yZcMfjwLcow8zutO42mgsdTOGNqMH2zYkgNoLSiSb/12wrU8H 7FfUbNyOzRbDO0LpCRlkkwlVuPjBqxS6TYiRlOBoiwGgjcOPCyggqGn8cIxnKdnxZxKQ Tffg== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj5Qpw97WFDVCaXAwLbA==" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.27.0 DYNA|AUTH) with ESMTPSA id u036f9v876YFqUD (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 7 Sep 2019 08:34:15 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [RFC v2 1/3] cpufreq: ti-cpufreq: add support for omap34xx and omap36xx From: "H. Nikolaus Schaller" In-Reply-To: <1ED2450A-A445-42B8-8956-58A53F15DBE2@goldelico.com> Date: Sat, 7 Sep 2019 08:34:14 +0200 Cc: Mark Rutland , devicetree , linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Linux Kernel Mailing List , Rob Herring , =?utf-8?Q?Andr=C3=A9_Roth?= , =?utf-8?Q?Beno=C3=AEt_Cousson?= , kernel@pyra-handheld.com, Linux-OMAP , Adam Ford , Discussions about the Letux Kernel Content-Transfer-Encoding: quoted-printable Message-Id: <12A8E9DF-3D58-48A7-BC91-898B21536E04@goldelico.com> References: <20190905143226.GW52127@atomide.com> <20190906030158.leuumg7rwsvowwfx@vireshk-i7> <1ED2450A-A445-42B8-8956-58A53F15DBE2@goldelico.com> To: Viresh Kumar , Tony Lindgren X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 06.09.2019 um 22:46 schrieb H. Nikolaus Schaller = : >=20 > Hi, >=20 >> Am 06.09.2019 um 05:01 schrieb Viresh Kumar = : >>=20 >> On 05-09-19, 07:32, Tony Lindgren wrote: >>> * H. Nikolaus Schaller [190904 08:54]: >>>> This adds code and tables to read the silicon revision and >>>> eFuse (speed binned / 720 MHz grade) bits for selecting >>>> opp-v2 table entries. >>>>=20 >>>> Since these bits are not always part of the syscon register >>>> range (like for am33xx, am43, dra7), we add code to directly >>>> read the register values using ioremap() if syscon access fails. >>>=20 >>> This is nice :) Seems to work for me based on a quick test >>> on at least omap36xx. >>>=20 >>> Looks like n900 produces the following though: >>>=20 >>> core: _opp_supported_by_regulators: OPP minuV: 1270000 maxuV: = 1270000, not supported by regulator >>> cpu cpu0: _opp_add: OPP not supported by regulators (550000000) >>=20 >> That's a DT thing I believe where the voltage doesn't fit what the >> regulator can support. >=20 > I can confirm this on BeagleBoard C2: >=20 > root@gta04:~# dmesg|fgrep -i opp > [ 2.347442] core: _opp_supported_by_regulators: OPP minuV: 1270000 = maxuV: 1270000, not supported by regulator > [ 2.359222] cpu cpu0: _opp_add: OPP not supported by regulators = (550000000) > [ 2.580993] omap2_set_init_voltage: unable to find boot up OPP for = vdd_core > root@gta04:~#=20 >=20 >>=20 >>> But presumably that can be further patched. >=20 > Well, the opp-v1 table also has this voltage point: >=20 > /* OMAP343x/OMAP35xx variants OPP1-5 */ > operating-points =3D < > /* kHz uV */ > 125000 975000 > 250000 1075000 > 500000 1200000 > 550000 1270000 > 600000 1350000 > >; >=20 >=20 > This is OPP4 which is recommended by OMAP3530 data sheet to be 1.27V = +/- 5% >=20 > Data sheet of tps65950 says >=20 > =E2=80=A2 VDD1: 1.2-A, buck DC/DC converter (VOUT =3D 0.6 V to = 1.45 V, in steps of 12.5 mV) >=20 > This means 1270 mV is not a "step" and rejected by the twl4030 driver. > Maybe nobody did notice yet because the opp-v1 drivers did not warn... >=20 > The closest value to 1.27V is 0.6V + 54 * 12.5mV is 1.275V >=20 > So let's also change the OPP4 to 1275000 uV in the opp-v2 table. The OPP is now available. Only [ 2.569519] omap2_set_init_voltage: unable to find boot up OPP for = vdd_core remains but this is a different issue (mismatch between U-Boot = clock/vdd_core setup and kernel table). Most likely U-Boot runs with an 300MHz OPP = which is not defined by data sheet or kernel opp tables. BR, Nikolaus=