Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp377196imm; Fri, 1 Jun 2018 02:28:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK5wLCxUb1xlzU4Jjn9PE3nLeAmcvHqLR9izlt2AJILgAhtv6Dx4qp8ZNgj4zkj9rdAkikY X-Received: by 2002:a17:902:781:: with SMTP id 1-v6mr10444411plj.150.1527845337133; Fri, 01 Jun 2018 02:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527845337; cv=none; d=google.com; s=arc-20160816; b=yYxKcupup/kL8u3Rjj6+pKz5QCA6R/4ewpKv8/wfcspgZ3yZyflc5G67LSNJSOyEDI 9ECn7c5Sf02s8tbc5y4sb1Dj+Oo6R4LYN4L7P+sigtRqtMEHkYCi0B+/DElvwVZhWDpc BU3yFOAmE2tJ1t4GV1LIj8lBFQuReD5qu85bfR3XGa8KoLECG0TA+IBAQP5Cv8sLO5lw Atq/hsrHg01QZTDcaO84LNf28ppYMCUJmmyfSlFS/uFQgF82AdavbFylulF6xiGmw9sz EdPfkMf1PXehjbGne2CWskwh8iBoxdfh4T7pMvwhRGfl2aAJcZZilER+HYmwuevukoKo J3hQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=OSOxNFMbx57knscANmr+XAoiv5f6Q9ZYPzer8fvs4No=; b=Bjm9mfG0nUoXbNLZEU31N9GEXh5BMcMKGaVVphoxEzonGrqlCyuuR8gZwhSFSgUxOJ 7FHwGiVdsB4mp0N3SMRo+NTT9AzX9yCaIQn6GL9ujgXPbuEkeivUvvx477N5fFBbPVfO NoD2obW+WIPZKxNLVRjD6sUQ/Ad2oC8VBajj6hJ+J+MMkh77NCJiooa4GVHMXf9lkSFJ Yli2Vlnf9D47NH+ud0Mh/p/bMayxIQABef3hq+w+3wBuujsKw2ud+oOCXPJZeHjO/M1n Ey6aT+K2UMzdnyNtSAqy8fX/pwKxk0WVYMW2TziieAbb+vjm0x64y1DfIIWKeIgVAXUR X3ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@as-electronics.de header.s=strato-dkim-0002 header.b=VC/6yruX; 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 j6-v6si31058381pgp.534.2018.06.01.02.28.42; Fri, 01 Jun 2018 02:28:57 -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=fail header.i=@as-electronics.de header.s=strato-dkim-0002 header.b=VC/6yruX; 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 S1751000AbeFAJ2K (ORCPT + 99 others); Fri, 1 Jun 2018 05:28:10 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.133]:8499 "EHLO mo4-p05-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbeFAJ2F (ORCPT ); Fri, 1 Jun 2018 05:28:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1527845284; s=strato-dkim-0002; d=as-electronics.de; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=OSOxNFMbx57knscANmr+XAoiv5f6Q9ZYPzer8fvs4No=; b=VC/6yruXiXPq1b/3psW2i778h8/vbpH2fQDBonRcGYW7VeWCHmjeJ9B5j0vKZN7e9o vAgJKQW1Px1qHOCH+rObOLdnLab8rJW2711JHhqefQw2b29NiACuHr/ZfahQFyOPiBfe jgssGM4bLvw5U4TVTcaD2AlYg/VL8MDw0OrHTJYSS1/rVZwlml311CrjYKukDdSNVZdu ratyBhj5xogVoJDikWUMRs4mVIN9EGORfmpmmcS+Jenk7/uG0ck3JH9d1N9VQkmyFqKN thCri/cZJSW2pcYsKn2hUx5BIpIBDargMMxGUkXoX8CyVAkZB5qYdYEF/SpLPbCMBI1U BzQw== X-RZG-AUTH: ":LX8JdEmkW/4tAFwMkcNJIloh1hrA5u3owhPk7bdT5Fx2zAOrX/r2ZbrrxoyOl37jyAS87PDYc9ZbLQuBYnGyPFydOVsjnssucaVzia+6/AK6" X-RZG-CLASS-ID: mo05 Received: from [IPv6:2001:16b8:2486:cf00:8d88:d49a:2b7c:a333] by smtp.strato.de (RZmta 43.9 AUTH) with ESMTPSA id g0147au519REAPi (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 1 Jun 2018 11:27:14 +0200 (CEST) Subject: Re: [PATCH 05/11] ARM: dts: Reflect change of FSL QSPI driver and remove unused properties To: Boris Brezillon Cc: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, richard@nod.at, miquel.raynal@bootlin.com, broonie@kernel.org, david.wolfe@nxp.com, fabio.estevam@nxp.com, prabhakar.kushwaha@nxp.com, yogeshnarayan.gaur@nxp.com, han.xu@nxp.com, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1527686082-15142-1-git-send-email-frieder.schrempf@exceet.de> <1527686082-15142-6-git-send-email-frieder.schrempf@exceet.de> <20180530171057.39f1a2be@bbrezillon> From: Frieder Schrempf Message-ID: Date: Fri, 1 Jun 2018 11:27:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180530171057.39f1a2be@bbrezillon> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, On 30.05.2018 17:10, Boris Brezillon wrote: > On Wed, 30 May 2018 15:14:34 +0200 > Frieder Schrempf wrote: > >> The FSL QSPI driver was moved to the SPI framework and it now >> acts as a SPI controller. Therefore the subnodes need to set >> spi-[rx/tx]-bus-width = <4>, so quad mode is used just as before. > > We should try to keep the current behavior even when > spi-[rx/tx]-bus-width are not defined. How about considering > spi-[rx/tx]-bus-width as board constraints and then let the core pick > the best mode based on these constraints plus the SPI NOR chip > limitations. Ok, I'll try to adjust this, so we can leave spi-[rx/tx]-bus-width undefined and still get quad mode as default if possible. > >> >> Also the properties 'bus-num', 'fsl,spi-num-chipselects' and >> 'fsl,spi-flash-chipselects' were never read by the driver and >> can be removed. >> >> The 'reg' properties are adjusted to reflect the what bus and >> chipselect the flash is connected to, as the new driver needs >> this information. >> >> The property 'fsl,qspi-has-second-chip' is not needed anymore >> and will be removed after the old driver was disabled to avoid >> breaking ls1021a-moxa-uc-8410a.dts. >> >> Signed-off-by: Frieder Schrempf >> --- >> arch/arm/boot/dts/imx6sx-sdb-reva.dts | 8 ++++++-- >> arch/arm/boot/dts/imx6sx-sdb.dts | 8 ++++++-- >> arch/arm/boot/dts/imx6ul-14x14-evk.dtsi | 2 ++ >> arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts | 5 ++--- >> 4 files changed, 16 insertions(+), 7 deletions(-) >> >> diff --git a/arch/arm/boot/dts/imx6sx-sdb-reva.dts b/arch/arm/boot/dts/imx6sx-sdb-reva.dts >> index e3533e7..1a6f680 100644 >> --- a/arch/arm/boot/dts/imx6sx-sdb-reva.dts >> +++ b/arch/arm/boot/dts/imx6sx-sdb-reva.dts >> @@ -131,13 +131,17 @@ >> #size-cells = <1>; >> compatible = "spansion,s25fl128s", "jedec,spi-nor"; >> spi-max-frequency = <66000000>; >> + spi-rx-bus-width = <4>; >> + spi-tx-bus-width = <4>; >> }; >> >> - flash1: s25fl128s@1 { >> - reg = <1>; >> + flash1: s25fl128s@2 { >> + reg = <2>; > > Hm, you're breaking backward compat here. Can we try to re-use the > old numbering scheme instead of patching all DTs? Unfortunately in the current setup, the definitions for the reg property are already broken. For example imx6sx-sdb.dts seems to have one chip connected on bus A, CS0 and one on bus B, CS0. It has reg set to 0 for the first and 1 for the second chip. While fsl-ls208xa-qds.dtsi uses the same hw setup, but has reg set to 0 and 2. So either way we need to change the reg property at some place. So the best approach in my opinion is to fix the definitions to use a single scheme and while at it also remove the fsl,qspi-has-second-chip property, that is not needed if a single consistent scheme for the reg properties is used. Regards, Frieder