Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp628859imm; Wed, 23 May 2018 02:57:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrugylmCPUpXGOspE4KvhDVyUp7W14hyWZFMURZZSwnKqpFf8xOD6JvdxzY3R9wxTsiHkEe X-Received: by 2002:a17:902:6e08:: with SMTP id u8-v6mr2254678plk.96.1527069475036; Wed, 23 May 2018 02:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527069475; cv=none; d=google.com; s=arc-20160816; b=FDYNczIuXLy6D2XYpA6/EUFukk78Vk1mYcFOfFpZD1EB3pBNXZ8fIfWKO+F/9Q1hKt 53cGOwq0Eg2lLlOmQrULGl2eErEHRz4wDbbw4R5dFgtCb6DcUoFk84/9AD5pjheNNfIo jBedwp21jmq+j47S3cbjG0PN6jxXbu/29vEfEUzBB8/+OKO8bo8hCw2D+yBCyhDR9Uvo ICAHkKSn94SY8KLyb9Xtx/LV+UcSqkRx2h4/9OmK4DbRqWJH6djxzblJXJ6L6ifhw1KT hYnJD1Fd2rcoWx1AJtndf5dzrRineb0OUWE9TdKloqTWGW9Z+JB1M0Jb9steG8vUl0e6 XB1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=+IiKiZEfhxIKmYFCMx5pb5dlU2LPaibxSddINLcLM5Y=; b=lYV87gtN2J0TCVjZqnPwWgk5kNTUd9J31fmOqRTnxNd8QC/rwpQwrz1ee4xvm06rka jetDRt2vZFF9incz3XBXs8FrEZpKjSTdqep/toI/5CuUfa0dLoVrir5zIxCkU02CxQ5Y jW0qBm/rQAJg64SskqkdpP9zWFrEfuvVsg+fnwYyddQBZgdvt4RIOSKCtUHXl2EmySjP GS/E+XZjdOKGH30f305qCsZKtrIeGnKhXXNZmLQlP8TemNaH3zbzMbf2oytP2IXLmuUD 4KlmxVqgU11OIPH2iCWwR4I743MjCIJZvWOus/fR8wgPI5Wj7rXivI3HDac3i1w+2Jab JOMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ei0JojOq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s23-v6si18850459plr.458.2018.05.23.02.57.40; Wed, 23 May 2018 02:57:55 -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=@kernel.org header.s=default header.b=Ei0JojOq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932438AbeEWJ5K (ORCPT + 99 others); Wed, 23 May 2018 05:57:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:33906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932402AbeEWJ5F (ORCPT ); Wed, 23 May 2018 05:57:05 -0400 Received: from PC-kkoz.proceq.com (unknown [213.160.61.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8E4EF2087C; Wed, 23 May 2018 09:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527069424; bh=DUmVP5k5JYzU+xtspdERBiGTjbZ78EB2WbvTaDe1tyg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ei0JojOq6fnLQ+WwygRnaJrG2R7tkzprrIzhV4AcYjrFjGEMc2uV8k5ChPvr2XOGo 5gv+uI0cmrXNm68D6JCgf+j2ZC7KZA0QwuixyXh9uWiWTyy4M09lfd3F53akZ/jLT1 UKrY+yRoAYp5U5hylIl7R1JzdhnMrY1tOKenK2ug= From: Krzysztof Kozlowski To: Rob Herring , Mark Rutland , Thierry Reding , Jonathan Hunter , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marcel Ziswiler , Stefan Agner , Lucas Stach , Krzysztof Kozlowski Subject: [PATCH v6 4/4] ARM: dts: tegra: Work safely with 256 MB Colibri-T20 modules Date: Wed, 23 May 2018 11:56:46 +0200 Message-Id: <1527069406-6359-4-git-send-email-krzk@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527069406-6359-1-git-send-email-krzk@kernel.org> References: <1527069406-6359-1-git-send-email-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v5: 1. Add "colibri" suffix to iris DTS (suggested by Stefan). Changes since v4: 1. Drop the 512 suffix from file names (suggested by Stefan). 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/Makefile | 2 +- .../boot/dts/{tegra20-iris-512.dts => tegra20-colibri-iris.dts} | 4 ++-- .../boot/dts/{tegra20-colibri-512.dtsi => tegra20-colibri.dtsi} | 9 +++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) rename arch/arm/boot/dts/{tegra20-iris-512.dts => tegra20-colibri-iris.dts} (95%) rename arch/arm/boot/dts/{tegra20-colibri-512.dtsi => tegra20-colibri.dtsi} (98%) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index ec2024ea8b1e..1c8bb55c0948 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1030,7 +1030,7 @@ dtb-$(CONFIG_ARCH_TANGO) += \ tango4-vantage-1172.dtb dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += \ tegra20-harmony.dtb \ - tegra20-iris-512.dtb \ + tegra20-colibri-iris.dtb \ tegra20-medcom-wide.dtb \ tegra20-paz00.dtb \ tegra20-plutux.dtb \ diff --git a/arch/arm/boot/dts/tegra20-iris-512.dts b/arch/arm/boot/dts/tegra20-colibri-iris.dts similarity index 95% rename from arch/arm/boot/dts/tegra20-iris-512.dts rename to arch/arm/boot/dts/tegra20-colibri-iris.dts index 40126388946d..57f16c0e9917 100644 --- a/arch/arm/boot/dts/tegra20-iris-512.dts +++ b/arch/arm/boot/dts/tegra20-colibri-iris.dts @@ -1,10 +1,10 @@ // SPDX-License-Identifier: GPL-2.0 /dts-v1/; -#include "tegra20-colibri-512.dtsi" +#include "tegra20-colibri.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 { diff --git a/arch/arm/boot/dts/tegra20-colibri-512.dtsi b/arch/arm/boot/dts/tegra20-colibri.dtsi similarity index 98% rename from arch/arm/boot/dts/tegra20-colibri-512.dtsi rename to arch/arm/boot/dts/tegra20-colibri.dtsi index 5623ff8d128c..dc06b23183e1 100644 --- a/arch/arm/boot/dts/tegra20-colibri-512.dtsi +++ b/arch/arm/boot/dts/tegra20-colibri.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 { @@ -11,7 +11,12 @@ }; memory@0 { - 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 { -- 2.7.4