Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp124369yba; Wed, 3 Apr 2019 05:51:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxOqjpIGdeOW64YNyqsl9pQFlBIdPN5G5WmxSyLOb0sGCcl1JNxgST9bfHuPevsVWlWeWS X-Received: by 2002:a63:4b21:: with SMTP id y33mr20107782pga.37.1554295884724; Wed, 03 Apr 2019 05:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554295884; cv=none; d=google.com; s=arc-20160816; b=MwZlR+ClTzUbvZcSu/0dYEVrjkC0+VOcQWbIj/TL2VXif96OiyPxIr9XA+EX7QPIzi 9cCG9ktCGyHAPQoqM464BU5D9PHmLWFUeV8AniZjRli8UUHPlHzF1tMnwx0NcSIjmHYI Yikj0umJacz6sDBK1C2fq4Yemo01U4f2AqjPWVDfz/yBMPap0T3P54GgQrv67ZqGRN0y fhoV8i6AldcjsmgCKlZyZwqGBnRix1G29/zxmN3BdVkXZtqqT3aRNIU2Kj0TayVKyvP7 MXuNmMl247eduZ/vgfbvVCfaODzvfm+d6K/PCqIhjDRrNTKJKK/bxIF9LLdCaxvCgGWt DWFA== 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=eBNtlZLQadO9S2XT/iY4Mfivp7agUEzDErrrS64Pf7w=; b=cOzyFUAWJnEP5CFwOkXo/Ni3kl5VYQNpYBFD3kK1DEKsxOEOowLYpP/IZYLKmxU9RA aj3rBKsRt5bH0ZQtGCPEawFFu5hEf9i2x3d6gOu91njBKgckBH5g9Lo262+lXsgnDvJc 6TYJruxE9z01D5vInRBMJZYgb6JpMDMmp84t4ddrfEdV2AksXLRvIZGeyZtc0ilpg+BW Tdx4s3LGZ9BRswxpxxKLYNEI+ADDj9QkCEPKGZKNKlBOD/IhLJMuy2+7NKnIL4Wi4SK0 Z9fmg8DcLciMCuvtCPk3s3Um7kR1tN7XaiJbAS2fREupbudwjN64awT5DYkjsWddJ0Sl hEdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=bXJJZJw7; 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 b23si11696697pgm.517.2019.04.03.05.51.09; Wed, 03 Apr 2019 05:51:24 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=bXJJZJw7; 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 S1726409AbfDCMuf (ORCPT + 99 others); Wed, 3 Apr 2019 08:50:35 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:34606 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbfDCMuf (ORCPT ); Wed, 3 Apr 2019 08:50:35 -0400 Received: by mail-io1-f65.google.com with SMTP id n11so13950137ioh.1 for ; Wed, 03 Apr 2019 05:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=eBNtlZLQadO9S2XT/iY4Mfivp7agUEzDErrrS64Pf7w=; b=bXJJZJw7nZuNdH4El+6DCIKrwEq7uAW0H4I3tBJcuf9lX6zvLOMnhZqoCEbbujJSov x+C5C3C4fEkO6BRb6IAFK/+TrepqHk9DROAxYqZjd+VY5DVd9k2MCX1XKq6BoOTrEM/9 zISXNd4uSY6yxiu6w92ri6ZyFt74yMiNoSMFPZPiKmcldciC77fsPIAVZA6shse5SJr1 qnZI+Wkz4IkcOE3tLZ8h0Z38bxJLKbAZqf5Hhn0CUyj0Hi37nvhxluIE9Y3hEPzRDWRU /cyoWU88so6plfMyRVVHM8R8o6H7Ic7maFA6931nvHhJBXWkj5XAdjuQ1udszpD3xu9y QEBg== 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=eBNtlZLQadO9S2XT/iY4Mfivp7agUEzDErrrS64Pf7w=; b=AO5+JxjYU+k4OBn0hGJtLeOLXmh54O0pQIEGV5smXENrDwVwz+7rE9Ifk6rtvXnra3 0cMI/oRv32C7CCz5bvhuCQd+EBRnvbtghOfvIEVBRtBZsqpZdFKeSXEpguygSNgDJomI gp3Y4wTrC4MzRiJEhlNWdhDJjZvJqRU97MEWceQohKc9DdvygeIYWeC2YpUYIxwPHqKV t7aW3VykYtMtnxZp+8lL1WUAhAE3KraNtkC4QNohyZqwoGR+muiePH7g4Lnwc64Ht3xM elAJDa5AqJcu7T2u1MjAEl9JTDJT2GF1sfr7lVxJwJ1g7BpXsckvlq7FRYrcLoxe4S6M rrSg== X-Gm-Message-State: APjAAAWF7PTZw97E5S2VhhUPCGvmXMdfSjr/5cmkHZVZCgnBrEZWxO25 gmQRSxjFcKzD/WawC+OWpnh0F5X5YqwVz5MTPsfsGw== X-Received: by 2002:a6b:3b43:: with SMTP id i64mr10868653ioa.121.1554295834459; Wed, 03 Apr 2019 05:50:34 -0700 (PDT) MIME-Version: 1.0 References: <20190322133105.5945-1-brgl@bgdev.pl> <20190322133105.5945-2-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 3 Apr 2019 14:50:23 +0200 Message-ID: Subject: Re: [PATCH v2 1/4] ARM: davinci: fix cpufreq registration on da850-evm To: Sekhar Nori Cc: Bartosz Golaszewski , Adam Ford , Kevin Hilman , Rob Herring , Mark Rutland , David Lechner , devicetree , Linux Kernel Mailing List , arm-soc 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., 27 mar 2019 o 12:14 Sekhar Nori napisa=C5=82(a): > > Hi Bart, > > On 26/03/19 11:21 PM, Bartosz Golaszewski wrote: > > wt., 26 mar 2019 o 15:00 Adam Ford napisa=C5=82(a)= : > >> > >> On Fri, Mar 22, 2019 at 8:31 AM Bartosz Golaszewski wr= ote: > >>> > >>> From: Bartosz Golaszewski > >>> > >>> The system_rev variable is never set on davinci and is always 0, so > >>> we're using the default max operating point of 300MHz. The cvdd suppl= y > >>> comes from the tps6507 pmic and the voltage can go all the way to 1.3= V > >>> so the maximum supported rate should be 456MHz. > >> > >> My understanding is that only certain revisions of the silicon can go > >> to 456MHz. The L138's Datasheet lists both a 456 and 375 version. I > >> cannot find a way to read a register to determine which version of the > >> silicon is available. Maybe Sekhar can confirm. > >> > > > > Commit 28bd2c341120 ("davinci: am18x/da850/omap-l138 evm: add support > > for higher speed grades") mentions the following: > > > > --- > > U-Boot on the EVM sets up ATAG_REVISION to inform the OS > > regarding the speed grade supported by the silicon. We use > > this information to pass on the speed grade information to > > the SoC code. > > --- > > > > Should the system_rev somehow reflect that revision? Any way I can chec= k it? > > Can you check if the procedure in doc/README.davinci in U-Boot sources > still works? > > Environment Variables > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > The DA850 EVM allows the user to specify the maximum cpu clock allowed by= the > silicon, in Hz, via an environment variable "maxcpuclk". > > The maximum clock rate allowed depends on the silicon populated on the EV= M. > Please make sure you understand the restrictions placed on this clock in = the > device specific datasheet before setting up this variable. This informati= on is > passed to the Linux kernel using the ATAG_REVISION atag. > > If "maxcpuclk" is not defined, the configuration CONFIG_DA850_EVM_MAX_CPU= _CLK > is used to obtain this information. > > Thanks, > Sekhar Hi Sekhar, I built the current upstream u-boot and the get_board_rev() function for da850-evm doesn't seem to be called at all. For instance the lego-ev3 platform does this: ./lego/ev3/legoev3.c:108: board_rev =3D get_board_rev(); but in davinci this function seems to be unused and I don't see it called from any other core u-boot component. I don't see any commit that would mention this function but there are a lot of commits removing get_board_rev() for other boards in git log. Is it possible it stopped being used at some point? Bart