Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2557782ybe; Sat, 7 Sep 2019 18:53:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyo1j+xkty0dI3OPL1AlUcshRYA76B/1s7YUbuDAHSSWl0kgRWKxPyaHkQAYVOwnLqUoR+t X-Received: by 2002:a62:87c8:: with SMTP id i191mr19725980pfe.133.1567907598104; Sat, 07 Sep 2019 18:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567907598; cv=none; d=google.com; s=arc-20160816; b=fqzkx9+hqeBLV/KxXWme+4SrZ0jScsRfNh8BwGMcGY88nAihawA3u3tmGtkTxwovXI OvGK1VhhK3njHX+HsxsPEFrYDXEpKjdUcxXz1BDrosOK/t2WOPUY75mNvfzMo0B6TrIb 7bfGQAuDpyT+nTM96UZdEUXKN67QLzkxnUNTAmtHA9xMZ7coRB/wfJk29+a8xw0DkA3+ 9hnLjw8I9X8OLwFL726d4RCMP2UtxOrXBV8T0nEGmhFOygOCfRME1OTE8HtC6GYDsU6O 8hsvCe3QNBIW1hIFd/yCabkg+MRJTfyPeeWpSmbeYS4SL3nuONa5ngh294a5Snj//0iY Nxpw== 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=GekG4DGQmZmxyopgQNgSk7xa93ZINLYsz3ZXcUkShOA=; b=PNSBoNbSolr1s/aZTWKs3NgNWK2nlzTc5g5r6t97jS2EZD5xD6ka3MgnJRklUue3FD M9snmt6NxCv5Q1Lk0j2YfdjwcqMkUoHFi0/PJ+xhq90dsdiZ+la/lK3TSKbCRPieicMI NU63MtuNFYpDTysZFK1zNn0SEtyehWU48u8OP7neYO4pavPncCZnK1dU/VWeWmZzrNcr y8EAkLGxirpdzkj1XxRTBT+lB9FFA81w/Rl9vbBsrt+gnhBuSLqQXiNIX+R/pLlwGNv0 3u3pJB6gvesrRSKlPzUaLQxOiPUaOcpBO9GAUF5raxOWHnY8+jMIHBWgcbBHDmnIhSq0 XxHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=AaHsJK7M; 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 x8si8740170pll.271.2019.09.07.18.53.02; Sat, 07 Sep 2019 18:53:18 -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=AaHsJK7M; 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 S2392386AbfIFUrB (ORCPT + 99 others); Fri, 6 Sep 2019 16:47:01 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.51]:15204 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392301AbfIFUrB (ORCPT ); Fri, 6 Sep 2019 16:47:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1567802818; 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=GekG4DGQmZmxyopgQNgSk7xa93ZINLYsz3ZXcUkShOA=; b=AaHsJK7M2oEsxvV8by86+YlP+5EJ7qPAvzbdBcfG1kaQY720t1ZfMzJ3Y8IgXDPNkp 0KEBvH3wmW7au12WCbZq9gCWQaeg+Q9pNlcbBXk7jgFga2XZocmzc7leLRF37TkwxidK HOyh9cGi+E55umZJPC4u6XkEDGwWxSgJxW9FnlKCdTvbuJmDKDJa5IxDKHnt1C4qlBjl m88jgCM5yzyETQ0iMzFouf1B+FB/w6v9NNbBDSzrs/bNB43mXKmuSnanN9rtDmnQLM9N euhKrEwJDvNZYw7zZE7bVsbyDQ/KTTZXZ+Bj5XdB9E7iVWrSgIxVx16Vt7LrMZB6tfes vqGA== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7wpz8NMGH/PqwDqp5w==" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.27.0 DYNA|AUTH) with ESMTPSA id u036f9v86Kknpyo (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 6 Sep 2019 22:46:49 +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: <20190906030158.leuumg7rwsvowwfx@vireshk-i7> Date: Fri, 6 Sep 2019 22:46:49 +0200 Cc: =?utf-8?Q?Beno=C3=AEt_Cousson?= , Rob Herring , Adam Ford , =?utf-8?Q?Andr=C3=A9_Roth?= , Mark Rutland , "Rafael J. Wysocki" , Linux-OMAP , devicetree , Linux Kernel Mailing List , linux-pm@vger.kernel.org, Discussions about the Letux Kernel , kernel@pyra-handheld.com Content-Transfer-Encoding: quoted-printable Message-Id: <1ED2450A-A445-42B8-8956-58A53F15DBE2@goldelico.com> References: <20190905143226.GW52127@atomide.com> <20190906030158.leuumg7rwsvowwfx@vireshk-i7> 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 Hi, > 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. I can confirm this on BeagleBoard C2: 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 >> But presumably that can be further patched. Well, the opp-v1 table also has this voltage point: /* OMAP343x/OMAP35xx variants OPP1-5 */ operating-points =3D < /* kHz uV */ 125000 975000 250000 1075000 500000 1200000 550000 1270000 600000 1350000 >; This is OPP4 which is recommended by OMAP3530 data sheet to be 1.27V +/- = 5% Data sheet of tps65950 says =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) 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... The closest value to 1.27V is 0.6V + 54 * 12.5mV is 1.275V So let's also change the OPP4 to 1275000 uV in the opp-v2 table. BR and thanks, Nikolaus=