Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1132351imm; Tue, 15 May 2018 14:22:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqzLNNcbw8Ti14yWayx3V4BL6g+5MMFyPTM0joCEtMEspWcRVOa42e/yily6Hen5gV6sWEp X-Received: by 2002:a17:902:d909:: with SMTP id c9-v6mr15777370plz.293.1526419355894; Tue, 15 May 2018 14:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526419355; cv=none; d=google.com; s=arc-20160816; b=w2slOGMegsBEoI8CFppTiy2ejsrtnbczINsBF0QjtsAI+bvPfiaFdTeYzcZBZuhXUm q05/2lbPlnZQaXasLarm4+3dToP/e/DS2Ks3obmqTODzUznRzG54ruaKXTKxtpdoPNRR DXBfKAQMpC9bnaMMnG41NmQLCzM0MCJxvVcLlLCppEHUkV895xa8hPU6NpXolIS+1Vb0 844+SNWd6vPaInjrXPIROwMi7Dq46C5S/eF30TQOa+qKLAxv8IgOTE8zZMEagNjGf9gO cuVp8lH8sVNF4+sCBavU0rhNmPWQpEdoQeD0I65/j2iWpOWfBbt1KDDaHmMehKdjQ5b2 VB9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=95fdyeCjLQOXypMqTEa9k8Xp70QWfUA/TzYmYU1OqSo=; b=XQRLMsTQRWv0LyMBZg2jWv1WRsu6LzIYtVR13jNGQRjv7VJ4tgu3wjyUR3Xf7vcqCZ 1C+Bmx16EqqzMFrQUgrF51xBVpJCE9eLrtZoq5k4SV0SyUWuGkXoHgDUej8CNGv16f5p WMESq4pgLHDYpqWPJK4mPv1Q/RuEl/Is1SaZukRT4Ac7VQvRpsMUxnBk1vFOirBnY2vS hngQbIPs9A4SVOvTfVKD0m9+djtaowznMIVz8vGWwptIPDJhq1/8DDOT6VlBs+szNmCt p61qPsAaXzwNZQT3CWXLfGsGL7W7h8+CtuKBJmsCuMg5jrvACa+d254nLFZV4DB5piHu oP5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=QS6N3AUj; 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 e14-v6si713775pgv.516.2018.05.15.14.22.20; Tue, 15 May 2018 14:22:35 -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=@agner.ch header.s=dkim header.b=QS6N3AUj; 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 S1752688AbeEOVUv (ORCPT + 99 others); Tue, 15 May 2018 17:20:51 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:55918 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752483AbeEOVUt (ORCPT ); Tue, 15 May 2018 17:20:49 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id ACB415C037F; Tue, 15 May 2018 23:20:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1526419247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=95fdyeCjLQOXypMqTEa9k8Xp70QWfUA/TzYmYU1OqSo=; b=QS6N3AUj3+ez3J+6DF9paLidkNUPzJjLpgQnFnkyX52f/fjH5OJqPXrrgRTVtFKY7Q5jpx lllltr7sW8YtFVM5T62GASlreiT590+s2efl/Ctw/3z0NeBRdmSW6WeXF9lAnbqRsf0pLQ 7UsmOZLAEAevfqBjppbTF5dZHpgURjk= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Tue, 15 May 2018 23:20:46 +0200 From: Stefan Agner To: Krzysztof Kozlowski Cc: Rob Herring , Mark Rutland , Thierry Reding , Jonathan Hunter , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Marcel Ziswiler , Lucas Stach Subject: Re: [PATCH v4 3/3] ARM: dts: tegra: Work safely with 256 MB Colibri-T20 modules In-Reply-To: <1526395285-19006-4-git-send-email-krzk@kernel.org> References: <1526395285-19006-1-git-send-email-krzk@kernel.org> <1526395285-19006-4-git-send-email-krzk@kernel.org> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 X-Spamd-Result: default: False [-3.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_SEVEN(0.00)[10]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.05.2018 16:41, Krzysztof Kozlowski wrote: > Colibri-T20 can come in 256 MB RAM (with 512 MB NAND) or 512 MB RAM > (with 1024 MB NAND) flavors. Both of them will use the same DTSI > expecting the bootloader to do the fixup of /memory node. However in > case it does not happen, let's stay on safe side by limiting the memory > to 256 MB for both versions of Colibri-T20. > > Signed-off-by: Krzysztof Kozlowski > > --- > > RFT: > Not tested on 512 MB module as I have only the 256 MB one. > > Changes since v3: > 1. Reduce the memory in existing DTSI instead of creating a new one > (suggested by Marcel). > > Changes since v2: > 1. Do not add new compatible but use everywhere existing > "toradex,colibri_t20-512" (suggested by Rob). > > Changes since v1: > 1. Fix memory size in tegra20-colibri-256.dtsi (was working fine because > my bootloader uses mem= argument). > --- > arch/arm/boot/dts/tegra20-colibri-512.dtsi | 9 +++++++-- > arch/arm/boot/dts/tegra20-iris-512.dts | 2 +- I don't like this variant too much. Can we not just drop the 512? And while at it, I would prefer to see the usual $soc-$module-$carrier schema, as we use with all the other modules of the Colibri and Apalis family. e.g. tegra20-colibri-512.dtsi -> tegra20-colibri.dtsi tegra20-iris-512.dts -> tegra20-colibri-iris.dts Yes, it is somewhat churn, but I would prefer it for the sake of clarity and consistency... -- Stefan > 2 files changed, 8 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/boot/dts/tegra20-colibri-512.dtsi > b/arch/arm/boot/dts/tegra20-colibri-512.dtsi > index 305efb275b48..b9387c540450 100644 > --- a/arch/arm/boot/dts/tegra20-colibri-512.dtsi > +++ b/arch/arm/boot/dts/tegra20-colibri-512.dtsi > @@ -2,7 +2,7 @@ > #include "tegra20.dtsi" > > / { > - model = "Toradex Colibri T20 512MB"; > + model = "Toradex Colibri T20 256/512 MB"; > compatible = "toradex,colibri_t20-512", "nvidia,tegra20"; > > aliases { > @@ -12,7 +12,12 @@ > > memory@0 { > device_type = "memory"; > - reg = <0x00000000 0x20000000>; > + /* > + * Set memory to 256 MB to be safe as this could be used on > + * 256 or 512 MB module. It is expected from bootloader > + * to fix this up for 512 MB version. > + */ > + reg = <0x00000000 0x10000000>; > }; > > host1x@50000000 { > diff --git a/arch/arm/boot/dts/tegra20-iris-512.dts > b/arch/arm/boot/dts/tegra20-iris-512.dts > index 40126388946d..efaa96228722 100644 > --- a/arch/arm/boot/dts/tegra20-iris-512.dts > +++ b/arch/arm/boot/dts/tegra20-iris-512.dts > @@ -4,7 +4,7 @@ > #include "tegra20-colibri-512.dtsi" > > / { > - model = "Toradex Colibri T20 512MB on Iris"; > + model = "Toradex Colibri T20 256/512 MB on Iris"; > compatible = "toradex,iris", "toradex,colibri_t20-512", "nvidia,tegra20"; > > aliases {