Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1576200ybg; Thu, 4 Jun 2020 13:20:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwpqcFXF82jZ7fNXiLKnsMZJQF83gxwASdaMTP93emXl60w87Ynv4CK8wur5H+wHrnLUl5 X-Received: by 2002:a50:9b13:: with SMTP id o19mr5959959edi.143.1591302029020; Thu, 04 Jun 2020 13:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591302029; cv=none; d=google.com; s=arc-20160816; b=HZ0uczBXEeb+Vu1zYqj3HNyPyT83JexpyP8Q+k/N6Wg9MCDv5DPPD2GyAPWDyGzTUl cFkdhF0fm6gzKP4yVLJ4Dnloa5umTave4VpdCEcPBXc7pTpZjE1IATpB4XuEzcuNtdls 28lPifOHJWMudwjeuezlhbQL+9bn2mJyWonFfzrMLxdXnpJBc5nugeEh3oyWht6cJrHx IIWmIdsGRtU6/up8ESgKPOWakshw6F6963AYb4HkIlqARc7Yrsss36bk0JkJC4ef2Le1 873Py3cpdCwpVxn1ZaXxWdAybY8TsvbvQK1/XBsYszNqHZ0UFfmwYRnaE+CeCQ5Y/1Ec TVJw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=XU0sQ4AkY1li005iXLFGPT/yJrACPsD+D0QUcwKxbto=; b=0wUPVNEaObXw8qfrVXDtKqPcVI2aWV+v/ZVjTOHAqPjxGno/HULyeS7Lsgum9dFbMa XbUfakO3qW74TR+RXzJZvqvUKSKdhKh0+ct6ApEa7SXq6HD+zjN1+4iv4JKWLXoRDVa1 ESqVoUWwwFEPK+F5XAFc2KM9GFauyJmjdP1kBgxwjJLGSQfRZmUwCMZ/Emf85Nw9Q2oA IYJldWpWRjzOcpEVgUY2Ml3oI2sWrmCtoWDgPjP3zUCHwqBzh3R1a4ajY2dgPcGzh2kr N1GvS+4QoYMcTI/GtYjrX6org3VkXZ3vCoW3A6lV085eP6hC0R6r9I4xXwdAS4IIiMnR vjcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ofK7eD8B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si2337365eds.250.2020.06.04.13.20.05; Thu, 04 Jun 2020 13:20:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ofK7eD8B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729348AbgFDUL1 (ORCPT + 99 others); Thu, 4 Jun 2020 16:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbgFDUL0 (ORCPT ); Thu, 4 Jun 2020 16:11:26 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB6E3C08C5C0; Thu, 4 Jun 2020 13:11:25 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id n23so8927645ljh.7; Thu, 04 Jun 2020 13:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XU0sQ4AkY1li005iXLFGPT/yJrACPsD+D0QUcwKxbto=; b=ofK7eD8B1/9BSCaSgojRaCOmwx01Ttt6nsbP4g8v2aLHAkH8xvErsn+Td7xlEDLlUN MBl3OUUJDhmzTCWBpdPLbeh4Y+oX5fZuZaJHgkU1SaZ9F2msGWYkEewBtG+fOTmUX4gE RSuLeFyxSKShmRKWomc4bC7nYahl5KUJIMHV/5A2aGTxZsYKSmO3tLhJFrGZk80okEyV CO0zEe+puJNnWbGo7uP2SLGbRR89p65GVVfEFaTrLEPksbLXcGgq23TBBLTsQ5D/jIVF EoKyy+YfwXcASnsw02P0PSozsMqB4OB4Q6Jo5lIGJHkfIVAj06UggOCS74xPVi5JdkSx X3Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XU0sQ4AkY1li005iXLFGPT/yJrACPsD+D0QUcwKxbto=; b=VR/azh3wI5y5ixQbSQyq9bNDyyExx356vaJEgdaTqtdFPl/RVTuLIQrjE18uZ4Vboo 1Uof8jDohjRhwPsNg+UQp4I/IcKFTBvzYC3VJNUTbtOGDWviMpzh34MoXqy3oZreTLZK v2PWiIbyMat85wuDbANmCnV8H382PJlefRHhtZ4xAePUN6y4uaoh9ineVXLpo9n3VV4z 279ksccnASJ/PuqHHEYbqJ3kAOS94PaTPolDe9ZBT2ZW3QWd+rslGgxkI+7LQ8qq9qP3 l2kKE6bwZSwklgbRjokaGRRgO16xE5ObaB6E2LbzHuqjwv+wh57eiUs2mzf+0jiC+ZJT o73Q== X-Gm-Message-State: AOAM531b8IuiC+MPBaddxq3Ic7KvofDcPANE4IujLxd7Wm+wijQlxH+0 Z73taC3il29qDrJJ8ClAWarbrcoL X-Received: by 2002:a2e:2e08:: with SMTP id u8mr2814161lju.132.1591301483156; Thu, 04 Jun 2020 13:11:23 -0700 (PDT) Received: from [192.168.2.145] (109-252-173-94.dynamic.spd-mgts.ru. [109.252.173.94]) by smtp.googlemail.com with ESMTPSA id c4sm113241lja.56.2020.06.04.13.11.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jun 2020 13:11:19 -0700 (PDT) Subject: Re: [PATCH v8 2/6] ARM: tegra: Add device-tree for ASUS Google Nexus 7 From: Dmitry Osipenko To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Rob Herring , Thierry Reding , Jonathan Hunter , David Heidelberg , Peter Geis , Stephen Warren , Nicolas Chauvet , =?UTF-8?Q?Pedro_=c3=82ngelo?= , Matt Merhar , Zack Pearsall , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200514213654.12834-1-digetx@gmail.com> <20200514213654.12834-3-digetx@gmail.com> <20200515181847.GA13860@qmqm.qmqm.pl> Message-ID: <16146336-e853-0130-3d07-d5352546453b@gmail.com> Date: Thu, 4 Jun 2020 23:11:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 16.05.2020 15:01, Dmitry Osipenko пишет: > 15.05.2020 21:18, Michał Mirosław пишет: >> On Fri, May 15, 2020 at 12:36:50AM +0300, Dmitry Osipenko wrote: >>> There are few hardware variants of NVIDIA Tegra30-based Nexus 7 device: >>> >>> 1. WiFi-only (named Grouper) >>> 2. GSM (named Tilapia) >>> 3. Using Maxim PMIC (E1565 board ID) >>> 4. Using Ti PMIC (PM269 board ID) >> >> Hi, >> >> I've briefly looked at the PM269 devicetree (PMIC part) and it looks very >> similar, if not the same, to what I deduced from the TF300T kernel. > > Hello Michał, > > Definitely there are board parts that are reused by different devices. > This is not surprising since most of the boards are designed by the same > company. > >> Those devices don't look to differ much from original Cardhu tablet >> devkit, so maybe the trees can base off of that? > > I don't think it's really possible in a case of Nexus 7 because in > overall the used hardware components differ a bit too much. It shouldn't > worth the effort, IMO. > >> I would also guess that because of this 'ram-code', memory timings would >> be duplicated between devices. I can see small differences between >> ram-code=1 timings of Grouper and TF300T, though they look like arbiter >> tuning differences. I'll have to test if my TF300T works with Grouper's >> settings. In case they work, could you split the memory timings to another >> dtsi file? > > Yes, perhaps this could be done. The memory timings on Grouper and > Tilapia are pretty much the same as well. As you noticed, there are some > tuning differences of TF300T in comparison to the Nexus 7, the same > applies to the Grouper and Tilapia variants. > >> BTW, shouldn't EMC timing set match MC? I see more frequencies listed in >> MC than EMC nodes. > > The MC timings are exactly the same on Grouper and Tilapia, but EMC > timings have a very minor differences, and thus, the common.dtsi misses > these differentiating EMC timings, they are defined in grouper.dtsi and > tilapia.dts. > > I guess we indeed could try to select the lowest common denominator > timing and re-use it. I'll consider this change for v9, thank you very > much for the suggestion. Hello Michał, I tried to investigate whether we could unify the memory timings and it's hard to tell. The values are mostly off by one in most cases for one or two registers, in others cases a memory-chip feature is enabled or disabled for the same memory module. It certainly feels like we could safely ignore all those minor differences, but I don't have enough expertise in order to decide firmly. In my opinion it should be better to leave the memory timings as-is for the starter, we could always get back to the unification later on.