Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp823047img; Thu, 21 Mar 2019 09:38:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlDtvMzwxiSiY1Ic2MJNmEDX+m5grRicwup5Lp3kXk07DvVul9FLpLs2L+f1LbOQ/5qMob X-Received: by 2002:a65:4547:: with SMTP id x7mr4067899pgr.350.1553186335044; Thu, 21 Mar 2019 09:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553186335; cv=none; d=google.com; s=arc-20160816; b=zBtGyIlfg8c8RZAoDxSmruD60RyQFsZkZ+NFcmrf/MWwMtGnrnvp4NQt6qpWUVAQAM 0+lM46qRJg8LPJ+0d7i7H8w5CaY2J3CNI1kUWTo9mA7P4aP2B2/TyWK6P4MkTgGz3Zhh hzzm4xYtAXKTTCBbyIz+QS1RMj7b5mchykKQ7py0g54f53uJW3tIqptYb1aU07nMdzrm CrIwtdXsuBqM8vWQyWSVLzA/R0NSUv4aJ6AS0YGNLW718fLcMESuqlfAjODzFTK6Pe17 WN4nHo29coacKqyuZtrzz72KfA+M0tSrpV9ef/yIin5cEiycahD5okejODLWiLtqHIhg 3YZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=31a6JzuULDRek2GS3CNpr43zGA6fpbqhLQMwKfTtdgQ=; b=gil6OPCzfGey1hWdg5lXX/ssMM8Q9dtJj+t5Rgu1tOh+eLKfz+m5CswyZTVJ4fA2x8 5JiwT1NhggFbWuvE7a3dlrChk5drSyYyxp6VFektrNBK80FKl68xu0nTfpeA977EdMX1 rJ8GZFN/ucLx8jw9Hrpmz9T6RfL4JfQhq2aTFx6Rx3WtupyYikro6hYQnDxU/PNLIzk5 fP/oJa12U5UxFVoqyXuf77nuNQVl0lwmPkUh2c102bCBHM3s2i1BG2pkqGMEF8OMBv2h LjSlg1FIpnveFxcD44EnDuyh9dKH/lz/aRxWaR3v5V5HS71Wa6DOHz5YNveMAd3HfrBx 7OKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=zElWdr6i; 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 w16si4786016ply.103.2019.03.21.09.38.37; Thu, 21 Mar 2019 09:38:55 -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=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=zElWdr6i; 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 S1728566AbfCUQgR (ORCPT + 99 others); Thu, 21 Mar 2019 12:36:17 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:41648 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727922AbfCUQgR (ORCPT ); Thu, 21 Mar 2019 12:36:17 -0400 Received: by mail-ot1-f68.google.com with SMTP id 64so1409120otb.8 for ; Thu, 21 Mar 2019 09:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=31a6JzuULDRek2GS3CNpr43zGA6fpbqhLQMwKfTtdgQ=; b=zElWdr6iGPRTrvZjoN9Qk3Fw52DEgMC0f3PGs+aM9belyghek/o0Xl9u9riz7MaHd5 tP2KJizvEq7i7DT72iffM5UWq+sDvyiZ7S2tsSgnRQHVRz0U1W1FvledIJDDhYGF1/q8 tt5N6ZgWPnQvMg11KZWcj3DjZp7cPv+zPqjociMUIv24QqlZvM3ePYZLq/DdSs2Hfv4i VgPtDCmbQCIvrCcg+7xQk77VdTfwsUXoW8uX+re+nObFub2FsdZCM/zm0Oa1PiPfh9Zh KFFRXxWT+dA/Gd460bjOD0DgVaRQRCQtCwubk21/0nHt4IHjk55kMBxMBCJsRnssg3Al /1Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=31a6JzuULDRek2GS3CNpr43zGA6fpbqhLQMwKfTtdgQ=; b=oZEEGtabTUNKxVRuMcq9w9D3wpd9bMKzoAbUOlUPjzTZrhu/l+oO+rPc00yATR5kOj Iq22AveYy4AW1fpVkZWhd+eWAFa0K6tCufVd4Er4c6w1iWvHf7JN1xXs1WOpIEhxVFjo b+UtMQNUvu5zbxU6WEM/CZ++4ujCjKYBxR6V22Jl7aDKIGAwJkkty5i03ONg9QJ+2DIm 2YwPMfygFL950ZEk+lflUsli/Qhxa0nswN/BKTH2XihAhTFlg3nQ+L1ffdlZcL2hcRSn uIKc7SoaL2cS4cbw7h3u6LX1dg+H1KCltiUu3htuGYMT4zll3RbFaDRJuE8MWok2yz2k ejLw== X-Gm-Message-State: APjAAAXpCi6hasXol9m7TsowXIi5yhwPYum79xVb99l+W20F/DL4grlC HFpJdewJ198tVWx6YsTQuLt9rtN9k46IEMuHMUt6hA== X-Received: by 2002:a9d:3635:: with SMTP id w50mr2962378otb.301.1553186176691; Thu, 21 Mar 2019 09:36:16 -0700 (PDT) MIME-Version: 1.0 References: <20190321141010.19612-1-brgl@bgdev.pl> <20190321141010.19612-4-brgl@bgdev.pl> <06c6fe16-eb33-960c-909a-635e70c3b976@lechnology.com> In-Reply-To: <06c6fe16-eb33-960c-909a-635e70c3b976@lechnology.com> From: Bartosz Golaszewski Date: Thu, 21 Mar 2019 17:36:05 +0100 Message-ID: Subject: Re: [PATCH 3/4] ARM: dts: da850-evm: enable cpufreq To: David Lechner Cc: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Rob Herring , Mark Rutland , arm-soc , linux-devicetree , LKML , Adam Ford Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 21 mar 2019 o 16:53 David Lechner napisa=C5=82= (a): > > On 3/21/19 9:10 AM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Enable cpufreq-dt support for da850-evm. The cvdd regulator is fixed > > at 1.2V on this board so disable the lower operating points and enable > > the 375MHz opp. > > > The board-da850-evm.c file seems to indicate that this regulator is > variable and comes from the tps65070. This regulator seems to be missing > from the device tree though, even though it has device tree bindings. > Oh snap, you're right. I glanced over the 1.2V comment and thought it's the same as other boards, but actually it specifies: .min_uV =3D 950000, .max_uV =3D 1350000, so all the operating points should work on that one. Bart > Cc: Adam Ford > > > > > > Signed-off-by: Bartosz Golaszewski > > --- > > arch/arm/boot/dts/da850-evm.dts | 30 ++++++++++++++++++++++++++++++ > > 1 file changed, 30 insertions(+) > > > > diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-= evm.dts > > index f04bc3e15332..f63867692da4 100644 > > --- a/arch/arm/boot/dts/da850-evm.dts > > +++ b/arch/arm/boot/dts/da850-evm.dts > > @@ -151,6 +151,15 @@ > > system-clock-frequency =3D <24576000>; > > }; > > }; > > + > > + cvdd: regulator0 { > > + compatible =3D "regulator-fixed"; > > + regulator-name =3D "cvdd"; > > + regulator-min-microvolt =3D <1200000>; > > + regulator-max-microvolt =3D <1200000>; > > + regulator-always-on; > > + regulator-boot-on; > > + }; > > }; > > > > &ecap2 { > > @@ -191,6 +200,27 @@ > > }; > > }; > > > > +&cpu { > > + cpu-supply =3D <&cvdd>; > > +}; > > + > > +/* > > + * DA850-EVM has a fixed CVDD of 1.2V - we cannot go below 300MHz or > > + * above 375MHz. > > + */ > > + > > +&opp_100 { > > + status =3D "disabled"; > > +}; > > + > > +&opp_200 { > > + status =3D "disabled"; > > +}; > > + > > +&opp_375 { > > + status =3D "okay"; > > +}; > > + > > &sata { > > status =3D "okay"; > > }; > > >