Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3357374yba; Tue, 23 Apr 2019 02:18:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqksVTCr6OlzjTgL/PiWx78Cs/5E1jq9yQU5DoUUG4IkjTMwzI7D103fgzjZN/SMA13lEU X-Received: by 2002:a17:902:b210:: with SMTP id t16mr25016588plr.84.1556011133669; Tue, 23 Apr 2019 02:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556011133; cv=none; d=google.com; s=arc-20160816; b=bWlMDePV7yR/gMUvfCrKsbnJpUosSWXY4d+Z09ObjPrIQBmidVJE8t/oG2fo0Ea0Jr oV+pqKQEREiWCJgRTTmliYTc4rUFI/wIKjxvojCbFb+I+jNXNEBtz/x5ZJwq+noj5iha CdNafczlM/47gcpSV8vHMaqJcqzDYDmibr5bpVh20R0rFG3Ecsdc8ZG+R1+JTXK1yctF va7eb6EcXBnTFhhXY2ipskCdIqb+djcNqcBkQFuRs/dNuDYT5ahUSYbDNIYRJauwXRvo YstTSkCJSGB3Vu9MQbWA5tPAYg5xo4RUiQPelf+a/ycCUyqkSAj+PU5ZqkEIIjzaUkYJ XAxg== 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=4HFxuYAKK5yY7ojgbXd1utMoT44UFgcVd8qOu2984A4=; b=xqOkUtCG2mVQrsqeq/Vlc6YriIvmlhCd6PBspQPbW3CaLg1gQNAimvleg+6oNqE+BT 4Pei/7zEwnpRmq+X5A/GJhxqrPIbSnEh1sMq6iDktjvjhaYLTux0Zy8o/jTurpiYgRtZ f1eOd5G0kEJ1Ip3GzVYCnPRjjSolAAo2nr3aHH9cH+kfAFpa+Uk+yugcbO6hTZvB2C01 6Ctj3qmxlD2bpR8QcHM0bKB8T4173fC1Udqd5I7qOLyCEynTZ1pKLLaVoEDQAWezno1q mkIIMkjl59BsLPLOURAmTTWTI9fz6ZyCLCmJuYHIrbX/GbAyJVCAF4J+2MS1nKEYpfe1 hvnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XdmKegJH; 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 y6si15303151plp.201.2019.04.23.02.18.38; Tue, 23 Apr 2019 02:18:53 -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=XdmKegJH; 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 S1727316AbfDWJPo (ORCPT + 99 others); Tue, 23 Apr 2019 05:15:44 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36620 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726553AbfDWJPo (ORCPT ); Tue, 23 Apr 2019 05:15:44 -0400 Received: by mail-oi1-f196.google.com with SMTP id l203so10706853oia.3 for ; Tue, 23 Apr 2019 02:15:43 -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=4HFxuYAKK5yY7ojgbXd1utMoT44UFgcVd8qOu2984A4=; b=XdmKegJHDZ4IpCpK6fXehJKzJYMEOKlsi0Jol0xs+OYkFyzd62gfI7sOgd4GCpnqSK 4PVTqaAHSOlQtEhuKYbjVJijib7ZU7SHjTbNF7iAuE6uq5O3xhvP+KwyEOq8r2AF5FGh GQpVJlwqKV2YjtOHev+Hf4mUAQFSHvSKTDGfNHy95Ef0yRjZSj4y6UF1Y9eI6yMEqWUn lmENgHHEsjuC5fNbEyCyRmfS06R3+WQDJxdKUV+AKGNKC2ku82cPd3zImBQnaVt0C65t AVIkhXAp2I1/GeNlCombJ/d2MzKNmjp0YkA0d0LwHZkI1WQX+NhaDYfAb1MUYDlQtFHv W0wQ== 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=4HFxuYAKK5yY7ojgbXd1utMoT44UFgcVd8qOu2984A4=; b=Iqjz5DcKitBn+/hOEW8tHKGl3kVKCQO8PAWa7w/7FyC4WhMzZnlsiv0aXlGPi5Ou4F J7UG7WAkFSGH/L4iFx5+7fgG+sAyaX3vrbwnz9/dDeAF3uuBJXbK42tSe12n2BxLryxv 3n0u6a3/2yrVELHk7+6Zx0BTGhc53pgfpNv82QYSH9YVkBRXveEDJtLCncLYlyooukl/ Vt99GVtOb6Y1/SLSXHGHy03Q7Af0Zp58vKtsqulST+6rXLrXn2ffuysIRmPwoviQCnp2 pHAh5pxGHcHw+sgFQXVWRZEu1IdGzma2/vb+8les+6xeIZXAgDQwWMi22xHmK1f8dvHz xURA== X-Gm-Message-State: APjAAAUBd+V+84tm7gPn5pVWYwODR6V9JADd0px8ZxaXQFMrIDviBjhy UVJnCWSaCsJZ+bTgENdsD2HWKWIMjD0yWGBTv7MbFeFkyuU= X-Received: by 2002:aca:b8d5:: with SMTP id i204mr303030oif.175.1556010943163; Tue, 23 Apr 2019 02:15:43 -0700 (PDT) MIME-Version: 1.0 References: <20190417152701.23391-1-brgl@bgdev.pl> <20190417152701.23391-5-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 23 Apr 2019 11:15:32 +0200 Message-ID: Subject: Re: [PATCH v5 4/5] ARM: dts: da850-evm: enable cpufreq To: Adam Ford Cc: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Rob Herring , Mark Rutland , David Lechner , arm-soc , devicetree , Linux Kernel Mailing List 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 =C5=9Br., 17 kwi 2019 o 19:09 Adam Ford napisa=C5=82(a= ): > > On Wed, Apr 17, 2019 at 10:27 AM Bartosz Golaszewski wrot= e: > > > > From: Bartosz Golaszewski > > > > Enable cpufreq-dt support for da850-evm. The cvdd is supplied by the > > tps65070 pmic with configurable output voltage. By default da850-evm > > boards support frequencies up to 375MHz so enable this operating > > point. > > Have you done any testing with the LCD on any of the devices you have? > > I enabled the ondemand governor, and I got a bunch of splat from the > LCD controller: > > tilcdc 1e13000.display: effective pixel clock rate (50000000Hz) > differs from the calculated rate (54000000Hz) > tilcdc 1e13000.display: tilcdc_crtc_irq(0x00000161): FIFO underflow > tilcdc 1e13000.display: tilcdc_crtc_irq(0x00000161): FIFO underflow > ... [ snip] > tilcdc 1e13000.display: effective pixel clock rate (50000000Hz) > differs from the calculated rate (54000000Hz) > tilcdc 1e13000.display: effective pixel clock rate (50000000Hz) > differs from the calculated rate (54000000Hz) > tilcdc 1e13000.display: tilcdc_crtc_irq(0x00000161): FIFO underflow > > It appears to go on forever. I don't necessarily want to hold it up, > but I don't know the clocking system well enough to know where to go > investigate it. I can certainly live without ondemand. Using > userspace as the default governor is fine for me for now. > > adam Hi Adam, I did test the tilcdc on da850-lcdk. The only message I'm getting during transitions is a single: tilcdc : tilcdc_crtc_irq(
): FIFO underflow but this is fairly normal - we also get this during modeset and it doesn't affect the display. The problem with the pixel clock may come from the bootloader - are you using a recent version of u-boot? Bart > > > > Signed-off-by: Bartosz Golaszewski > > Reviewed-by: Adam Ford > > --- > > arch/arm/boot/dts/da850-evm.dts | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > > > diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-= evm.dts > > index f04bc3e15332..f94bb38fdad9 100644 > > --- a/arch/arm/boot/dts/da850-evm.dts > > +++ b/arch/arm/boot/dts/da850-evm.dts > > @@ -191,6 +191,19 @@ > > }; > > }; > > > > +&cpu { > > + cpu-supply =3D <&vdcdc3_reg>; > > +}; > > + > > +/* > > + * The standard da850-evm kits and SOM's are 375MHz so enable this ope= rating > > + * point by default. Higher frequencies must be enabled for custom boa= rds with > > + * other variants of the SoC. > > + */ > > +&opp_375 { > > + status =3D "okay"; > > +}; > > + > > &sata { > > status =3D "okay"; > > }; > > -- > > 2.21.0 > >