Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6833657ybi; Wed, 29 May 2019 14:04:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWBfKNAN29a5kDZHtNLNiJ8FxfmdqbTrt1XdVYUdO+dWMWDX/MctbvG661hwEy60LEvMsu X-Received: by 2002:a17:90a:f48f:: with SMTP id bx15mr14900778pjb.85.1559163877968; Wed, 29 May 2019 14:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559163877; cv=none; d=google.com; s=arc-20160816; b=fKg9unnXUvusbQT7DZBFt2D86oaBryfY0jdtT8N/mPMCMpu1drMeBmYXXhgxAjli3C cznu3FJ6xR1lD2CEq2oija+l+CcBmENJF0IJpTwBFqBClj/RwmpVpOfyRscB5Mfri91i 1yEe7nz6QYpuhPU3nvsPo5RZUBLhDyXfVM6c/aDB18w6NrslmrF5cES4yEKLlPGCCrQo SSLZTtSMpUiVsSrQ8yxEFQp+gVwn8QPMMu00Q31FzsALEoTSMVmogxLBWywBM81yRAkf G/fR3lIXL2fYFCl79bon9RwICQSCfYDqa2T2TX2brEtWh51IwQmAhnmB0R+sGnPsdw2Y YqwA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=IqFTu1LTscqVcgDNBc6n7nyvkiZAcoSFBwufVwMCfYA=; b=oanqLk/zJ8SUI0JrGEXjlG0dA4VeApldQVqmRZbXjdkYJD7gM6hZtplMZSqyDMDxyJ HSNq8mnsEkFrCaVfCjeCJofqkwEb2u+XqxTeUIZaiQjAvNRKdJj0Z5zlWB3e8xB7xnAI ru3p5yKhro8LU0eaxSMSPAuuynPOphp1X1ezqR5RuAWmw7kXl+w3bUP0lIdUY5GZlf2i rXNDbTdt1Er0shvwjCGnMoKpmNPz6nlS9xB4Hj1Uhvlgx4NPH5c4jYJtEpF1nInMR0eI 7pWUqa3zGSvEg62jwypBX5oOXTsbGVsaBsHI9KcSvaNETeAtRPxPcEuvODOtN1bvDB2+ 7A8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eGarFcfC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si862725pla.406.2019.05.29.14.04.21; Wed, 29 May 2019 14:04:37 -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=@gmail.com header.s=20161025 header.b=eGarFcfC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726604AbfE2VBe (ORCPT + 99 others); Wed, 29 May 2019 17:01:34 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:35441 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbfE2VBd (ORCPT ); Wed, 29 May 2019 17:01:33 -0400 Received: by mail-qt1-f196.google.com with SMTP id w1so4391102qts.2; Wed, 29 May 2019 14:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=IqFTu1LTscqVcgDNBc6n7nyvkiZAcoSFBwufVwMCfYA=; b=eGarFcfCrXvNTDu5JN2TfWGZ3WiqhLAJLXCMADnnuIqD4K/GX2/VyfTo2QclV37Sl1 uZol26oPFrEH42Dy4su9z9wTBH9a1EQnsp69Xgp9rK6f5glScC7QJfekJEmJYfgALxbl t4XWucS0p8oeTVOSOl/rAbZ2Qcc5ypgCdgLevdQ4w6rSSLe5NjcBluTYDrRd8NXy3AZu uHz6V/hKNwSKZVpCWbF6z49cCc+ArS7s8eNN5vGvkHpWskaHGVoSudALVfEAdXg537Ar 5F6ckyV5PPqc/3FrJb4UQjEPmDGnIX/NxPbURGxXeHTkJjG8PpXVZ/DyOs/2fR6ycm3g pQaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=IqFTu1LTscqVcgDNBc6n7nyvkiZAcoSFBwufVwMCfYA=; b=abN59aVJLymp/ZUU0J5EkPncM7K6HHFezzlTYaWf/xx6nz9lVRxN+RkEv9migLAb32 wd1QPissbU4t37MveVr1/a3c6rQV8u5dRwaQUeP/zaJzcmvCAPzaJkgOQ3Lj25O9oSIz hzQydS9Ydhv4TIXwut7pxEucuyKyi6nZbosE7teOCg618LKl7QB2Ghjw5h7wqPf22Gii 1V+ohTOAJwAd8dhunTE2Ll+fmMkIFOlQXVjbxPJZKZod0X/Rt6oU0QZnvGPe5oHmh4bo a71L7iSJ7ZPxNh+fbLnht1GbebEJQ0DTZnNdgyoYeClNDAXmjRg/HTcihrLemTEHjRAQ fyow== X-Gm-Message-State: APjAAAUbdGnm3R4LgXhDQgS+Uggh5ezxOBxopffwD7MrzMI/B4ts/Q2x Tr2fz5gtI4YYy6CWPXgluMUm1umN X-Received: by 2002:a0c:d604:: with SMTP id c4mr74851qvj.27.1559163692354; Wed, 29 May 2019 14:01:32 -0700 (PDT) Received: from ?IPv6:2001:470:1d:7b6::245? (dragonstone.xogium.me. [2001:470:1d:7b6::245]) by smtp.googlemail.com with ESMTPSA id y18sm320524qtc.90.2019.05.29.14.01.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 14:01:31 -0700 (PDT) Subject: Re: [PATCH] arm64: dts: armada-3720-espressobin: correct spi node To: Tomasz Maciej Nowak , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Mark Rutland Cc: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190527111614.3694-1-tmn505@gmail.com> From: Ellie Reeves Message-ID: Date: Wed, 29 May 2019 17:01:30 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: <20190527111614.3694-1-tmn505@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, yes, I agree on this personally. I meant to correct this myself or at least try to, but I didn't have time, as I was the one that found out how they did their partition layout previously, this used to be good so I asked Uwe Kleine-König if he could get this patch upstreamed, but as it is I myself upgraded U-Boot and cannot make use of it anymore. Thanks Tomasz Maciej Nowak a écrit : > The manufacturer of this board, ships it with various SPI NOR chips and > increments U-Boot bootloader version along the time. There is no way to > tell which is placed on the board since no revision bump takes place. > This creates two issues. > > The first, cosmetic. Since the NOR chip may differ, there's message on > boot stating that kernel expected w25q32dw and found different one. To > correct this, remove optional device-specific compatible string. Being > here lets replace bogus "spi-flash" compatible string with proper one. > > The second is linked to partitions layout, it changed after commit: > 81e7251252 ("arm64: mvebu: config: move env to the end of the 4MB boot > device") in Marvells downstream U-Boot fork [1], shifting environment > location to the end of boot device. Since the new boards will have U-Boot > with this change, it'll lead to improper results writing or reading from > these partitions. We can't tell if users will update bootloader to recent > version provided on manufacturer website, so lets drop partitons layout. > > 1. https://github.com/MarvellEmbeddedProcessors/u-boot-marvell.git > > Signed-off-by: Tomasz Maciej Nowak > --- > .../dts/marvell/armada-3720-espressobin.dts | 18 +----------------- > 1 file changed, 1 insertion(+), 17 deletions(-) > > diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts > index 6be019e1888e..fbcf03f86c96 100644 > --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts > +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts > @@ -95,25 +95,9 @@ > > flash@0 { > reg = <0>; > - compatible = "winbond,w25q32dw", "jedec,spi-flash"; > + compatible = "jedec,spi-nor"; > spi-max-frequency = <104000000>; > m25p,fast-read; > - > - partitions { > - compatible = "fixed-partitions"; > - #address-cells = <1>; > - #size-cells = <1>; > - > - partition@0 { > - label = "uboot"; > - reg = <0 0x180000>; > - }; > - > - partition@180000 { > - label = "ubootenv"; > - reg = <0x180000 0x10000>; > - }; > - }; > }; > }; > >