Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp690126imm; Tue, 15 May 2018 07:47:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqIo6BdLgF9iiBLxGfHuH7JhzMdhS57gb+eEcNfhXhom5/hTyvHCeTVqN2kscj/rwSA8ZT3 X-Received: by 2002:a63:7453:: with SMTP id e19-v6mr12090343pgn.87.1526395620572; Tue, 15 May 2018 07:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526395620; cv=none; d=google.com; s=arc-20160816; b=PUU7q4qShJsGaHJhAbpzbaXflHHhdygV2B1KTi+grEcBGFGA8lyQFzelWPe2xjY9CD 9u3RKyQdL4aKreLaQ62q8xqFIP+73lNfsIOXf5jbl/9i6W3tV8EsUqcTKujJ2YSCZF+J x+hUvnXlI08+bfPHxJJ+cKCW9Ue/3LEjLgh+NiQC1u1PzgJyabi1xQAA9I2Wb2aFrf8P 2uF0vKFhTXZBj5qdOdMrVoBoAYfDrmKBWxDT3zi4iNuPmcBtxJHKF4V2db+4OrR8dhDU FOeCjqgtv8ahbDfO86TC45cWLkB2CltL3UUXaMTgAf2vIxxtNAI9TkBwnfaSePU/m89p nWxw== 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=xZ7VpzNT25BgGdAVoIm1nO6IeM4hj5f9u+5pasAmd3s=; b=ljwBmHptDHwhkBLaCFQ3S86pS39hQCyf/UIQPdNhhMCQsTnabdWYp3ivs742zVNfXO iONnsmTX1Y0drZldj5GHHy4SKWJs0oDm0pI4MEJoOHXXN/ezzzJ+/5nOT/AOhO8fKN3Q qigRtaCMoxPJc4XWkQCP3qrF7wXH8CBXrWLcK7yuDNvskbX/G0vikGzaGjUBb8HYOM2T CmAKmQa+RB2du8WHUXoRXxOs00EnkPYEBkbtCd56+MGJ2xmJ6rKisKSO3DdS38MirHrx rq4mfB4bqZBuC2eg2iCbKsYYSbNDhxD9+z7eNybo69NEd/jTwIW5zan8Ey9vtFKEiaB+ dv3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A7Z2DiG2; 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 a90-v6si179931plc.329.2018.05.15.07.46.32; Tue, 15 May 2018 07:47:00 -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=A7Z2DiG2; 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 S1754058AbeEOOlq (ORCPT + 99 others); Tue, 15 May 2018 10:41:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:53670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753285AbeEOOlm (ORCPT ); Tue, 15 May 2018 10:41:42 -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 EB6CE2176F; Tue, 15 May 2018 14:41:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526395301; bh=Id1aZIr46lKqshw8TRIS/ozPZxsQGdgAh13AB5NvJyg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A7Z2DiG2UdLF3NcpGQ63xYxZ1wQ9LX+5/q2V0k/GQEbjaC1t2W5WDAn1izJ2MUSe9 FtNYZepUOjiO8Ziz3BEr8QqTU88XnSyDO7qTD7wHTzaDygFE6E9/+Vq5GFbgHHY/zm rqVfZr26ekmmVaewQT3U5LLGkF2KUf93SmGpBndI= 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 v4 3/3] ARM: dts: tegra: Work safely with 256 MB Colibri-T20 modules Date: Tue, 15 May 2018 16:41:25 +0200 Message-Id: <1526395285-19006-4-git-send-email-krzk@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526395285-19006-1-git-send-email-krzk@kernel.org> References: <1526395285-19006-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 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 +- 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 { -- 2.7.4