Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp828174img; Thu, 21 Mar 2019 09:45:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCDiOUXQh4DC0B28OBjF4ISVqWGkLfZAdZ/h28Nb9dV4iRR75GcrMCWQy49VFpSjdClJA0 X-Received: by 2002:a17:902:e90b:: with SMTP id cs11mr4393519plb.197.1553186730932; Thu, 21 Mar 2019 09:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553186730; cv=none; d=google.com; s=arc-20160816; b=WxokZvIXdShE0HHoxAH4oNWcUJwUsubrFsGVxndK8t6eRGU+x1GPsC2hh4hGf80qVu r6HsrtJhfbDTR8FBEdrfIcDm9a+DvsJ+Xd1HL04p2l/G0oFbbq9vzyCO7hK9/mlhnA8N 47kFgQBy7Ia58A+hdG2ZsrFA2oG+kv3b1NzP/7Gl9uXTORU6FPlc0e8IrlKcxbGmNCP2 rQ/O0hGRv5d9GEUnWZPSRTWJQnCXqw7k0AG7rF731TIhBunsoUEjZLyTlv5b0jUB/rzW U5TVVtYoCXSUFLXSSNA0icfVg0hrjJ22nvhUDl6TNcNTcWcIu0E9reHOuKQZshb9A4OO wNtA== 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=c253zTARKFb19mRQCljAnAcD7xr/VEPDG/k7eMQBX5k=; b=GgThuu29RjGAkwEM5qL0eBKXymCj7wHA8lxw+L0KvK623ic1IHDSpVWbZGK+0dJQae fN4H1HNliDGvYniJAsjYjJGUr4aSpEaCS99cvSkh8fctNMsmgWcxusble5VgJIZVMFTK aGJpzzo64no7+Os9nDQyrlS7Ryjx7kLj0FieuYaiC6AxVFYK2wXwObX8mwnirO4QZhSP 0jTfe+HOyC+d3SILJ2dk+Vgjwe2y0Vbs579W2I4LTpBwmd3KytpnBC9JnKUkDID4hMDW VHUZcE7D3kvMLVWlduvdRyKMxwDl2Z3U/P8QQuuhe3mNBGXi23dBFIYQTqkM2PBmZjic iS4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=f4OneVWD; 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 b31si5079026plb.351.2019.03.21.09.45.13; Thu, 21 Mar 2019 09:45:30 -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=f4OneVWD; 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 S1728677AbfCUQoK (ORCPT + 99 others); Thu, 21 Mar 2019 12:44:10 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:41288 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728582AbfCUQoH (ORCPT ); Thu, 21 Mar 2019 12:44:07 -0400 Received: by mail-oi1-f193.google.com with SMTP id v7so5129785oie.8 for ; Thu, 21 Mar 2019 09:44:07 -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=c253zTARKFb19mRQCljAnAcD7xr/VEPDG/k7eMQBX5k=; b=f4OneVWDuc6BYxGskMWuTp1Y6JvuoFFzC7xoEKsuvNPNTTJ4+dvjtWN5NICAdZ/Io7 JpNlu3241T+AKkPZRrfacyKhnsK9ez7TplQjSE2rHD0BbxFpnspS05UhniFtsJRLW0kh SQCXYpjRBuNnsEkZ21QoTZxwtX5zYa4Vjb+E1vyStvoMQkez+OQi3dsXcv+VFn/ycTv5 EA4tvQB6D4TVWck/1SJ/22PFOQFQ4EunO6HPrNlaNMwDtrzb3MkCJo+D2EL1Om0kB7zs VSdAwkO6fQZvgnInSwrq6Jlh5bQ9zqsTeJ3dxg3ptL0vECy/qQM48BsQP5gsOP5PBNf7 UxNw== 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=c253zTARKFb19mRQCljAnAcD7xr/VEPDG/k7eMQBX5k=; b=fKwIbx2z67nxSlBsQmRWeJz1sj7Z6Ptg0bN94cOR96WLYPIu/aYczyOJI0sdTzVWy7 Ea53vP5VKWjl+XR9NMdEsktU9PYgU+XBvxBbz4x2vwSvwqyitVyODaqjn60yTlV/4BxF uQXJV1LhHzXzCfpv8opMFN+PwTknKYilsQbaCSCKELeOAABsGvzA5b+sv6ddZDnGcIKG nk+5vbb42dPPGA8k56AZrb4GO5yITZCAGLlEbh/FIIW8rLD60kJ/6OyVEoEDDxjTv5Wt 5slxy2ZsDBpf+I27n12rPEl8Lw2fp70hWkOUO7z86FVejI2RV3GbXhe7QODprgy7bXqQ HNOg== X-Gm-Message-State: APjAAAWNg8DjHp8D0VRp2DJS0N1pk/sdPztvry+UizfbbAg6a+8/RKHA mpHrNFdFr+Ym5yA+LkMwATfC7DD8wmohs6D6r3i9Hg== X-Received: by 2002:aca:5843:: with SMTP id m64mr165437oib.114.1553186647097; Thu, 21 Mar 2019 09:44:07 -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: From: Bartosz Golaszewski Date: Thu, 21 Mar 2019 17:43:55 +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 17:36 Bartosz Golaszewski napisa=C5=82(a): > > 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 enabl= e > > > 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 missin= g > > 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. > It seems this pmic is defined here[1] and a skeleton included here[2] and then the regulator constraints follow. Bart [1] https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/da850-= evm.dts#L224 [2] https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/da850-= evm.dts#L326 > 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/da85= 0-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"; > > > }; > > > > >