Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4263022ybi; Mon, 3 Jun 2019 08:07:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEr2WHbuBZvqTW3yi00lTZUWFPqzh6d/rDrEQ0j5suUTIjoiGdSP3IXHmhFdtQ2EB+/rRE X-Received: by 2002:a63:5457:: with SMTP id e23mr3423985pgm.307.1559574425295; Mon, 03 Jun 2019 08:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559574425; cv=none; d=google.com; s=arc-20160816; b=fOzEnV+os2S0g54AaAaTfa+Pn/0q0EsSyV3hupxmwISW9SAGnorz3XPwiCD7+v69MS EM8yiybcJTOWBn5aBdOoA2GWwJKziCaIXeZJAScU6IIB3VKcg8JbgRJkc43YLNBLccgD odwVkgPt6303xNEihRCR/hWwtbIeg2mclODojJyd46o6g1wHMA8jXi6FykgctLKxr+0L e/gopBXcDYeqLibykAzj+SiXBAzit6fcbnI7aCuzwkS5CYLd5XxqcjQZInsJZEPje6eL Ka8gzoTCOlzTvLFGGu0DDTLpvf5Z4nHfWBNtwRypkWqFFpYnlFKxVw4GSRbweSZgnWIO toXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=r7Bzy3eVdjjDtCE8Oy6lGqdspRJxy0/ZEgTYvrhxti0=; b=RvuFZiXnitcWi7q4l7BGX4mXqY9RIfDdQB2yPtGZ0tiyuq/pD25t+RLmrN7OwfEghY UWZWocAgSYzl2mbi7OFArTBTBrCtjyvH4FLvAjsu6WSVconYlkmduU5MqHk5X3l91noX I0MxjU4QPr+7UwPDu/9ofcDKBzP8umTpYqG7tTFrGnH8GVz9FmywrBa1ksfR/hzZsf1F +MsWCz4ENGnDBOyEei3wnexcan/pI/UTPv9PXn8KT3hx5pth+w2/Kb+Is9YeyM9z8xSN bzpE/457N07khBWZPKWByfTV1V7xhbCtw8dsIxrpudcRTLynTL2LAWKg9ewliW9TK140 rxjw== ARC-Authentication-Results: i=1; mx.google.com; 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 a90si21105334plc.284.2019.06.03.08.06.47; Mon, 03 Jun 2019 08:07:05 -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; 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 S1729262AbfFCPE4 (ORCPT + 99 others); Mon, 3 Jun 2019 11:04:56 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:53873 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729166AbfFCPE4 (ORCPT ); Mon, 3 Jun 2019 11:04:56 -0400 X-Originating-IP: 92.137.69.152 Received: from localhost (alyon-656-1-672-152.w92-137.abo.wanadoo.fr [92.137.69.152]) (Authenticated sender: gregory.clement@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id A018B40008; Mon, 3 Jun 2019 15:04:49 +0000 (UTC) From: Gregory CLEMENT To: Tomasz Maciej Nowak , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Mark Rutland Cc: Ellie Reeves , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: armada-3720-espressobin: correct spi node In-Reply-To: <20190527111614.3694-1-tmn505@gmail.com> References: <20190527111614.3694-1-tmn505@gmail.com> Date: Mon, 03 Jun 2019 17:04:49 +0200 Message-ID: <87h896k8vi.fsf@FE-laptop> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tomasz Maciej Nowak writes: > 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 Applied on mvebu/dt64 Thanks, Gregory > --- > .../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>; > - }; > - }; > }; > }; > > -- > 2.21.0 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com