Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp603632pxm; Thu, 3 Mar 2022 00:22:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxihZ3OyIi98u/HUW5gIJcDkt9J0LN4GHaYpbFC8wDsEHFMo8gSoKp4T74dd048LihqBvpl X-Received: by 2002:a05:6402:3593:b0:412:53e6:431 with SMTP id y19-20020a056402359300b0041253e60431mr33133734edc.8.1646295761295; Thu, 03 Mar 2022 00:22:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646295761; cv=none; d=google.com; s=arc-20160816; b=i82qCNwO2DifpHtBF5iuESdXaBljBHcnhvbfPzu3fQZQ+ajSYfttwUlh+Imy6fBNSF rRNiVBqQuq4HnoABNL3J/gxw09yxY0eFw5F2JwjnTf7TT3Eg62HS44PgiyExdqYJ795h lUaQZrkxvusMbCKRMfu3Pbg8jUUDSjcdxl0RlVzGR97tCJnI4er4YTqYTFNJY3tIQB13 taUImiM3zap8OmHQ8ZKghmUY2NMJ3VIr73aMlaqm2nlI5SiLYwq3LhjhQpfsciszirKs SgsBtN5DKmoDWbtBJiR1TDkHajFShQJ+rRmFDMJ9wfnOv16S3CQnC0tTU+NhJeF6MPpd jlqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=kjqVHUCGon4AKdrIctXlGGnmwZbjk/hpUNikGds3nvI=; b=Svg9jSzMPW2wyshhjwJrG8GJywsAk75sPe2HOtJgXbtvLpSBt1+JgwzXNTjL10ALaK RCII1aFv7e8qAGqU75+T7zeKtWb8JPVksMaC4YlgolV2+4qPpExoDG9jdb8ekvcDgggb lyJaxzejYO+MffRW3GTeY8gWIBOq5JdgYstwURFA2tnpP/9reQbJ8CsjzerbmQQVTfB5 HSkoZOp8eG6WoyaB37SuPVRsBvgz0YzXO1kkMoc9PUCmha1wHz84GpEKKzDyzOBAkxIc RyZ++yF9uz5o/Ez4Vsu8sK4G7PuLEH3mU89A8NHtwRc1jrZG5707xoIJXFToRPql01aZ AzJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v14-20020a1709063bce00b006cf61b28252si796487ejf.820.2022.03.03.00.22.18; Thu, 03 Mar 2022 00:22:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbiCCINq (ORCPT + 99 others); Thu, 3 Mar 2022 03:13:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbiCCINo (ORCPT ); Thu, 3 Mar 2022 03:13:44 -0500 X-Greylist: delayed 922 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 03 Mar 2022 00:12:59 PST Received: from smtpout2.mo529.mail-out.ovh.net (smtpout2.mo529.mail-out.ovh.net [79.137.123.220]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2403F2C12A for ; Thu, 3 Mar 2022 00:12:58 -0800 (PST) Received: from mxplan5.mail.ovh.net (unknown [10.108.4.25]) by mo529.mail-out.ovh.net (Postfix) with ESMTPS id 2446DE58E32F; Thu, 3 Mar 2022 08:57:30 +0100 (CET) Received: from kaod.org (37.59.142.107) by DAG4EX1.mxp5.local (172.16.2.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 3 Mar 2022 08:57:28 +0100 Authentication-Results: garm.ovh; auth=pass (GARM-107S0011b51f2f7-e82d-49ee-9801-eb43e836e213, A0610A17E77809494FE20D2F959CCE2A9331EACD) smtp.auth=clg@kaod.org X-OVh-ClientIp: 82.64.250.170 Message-ID: <88d86ba1-65ba-0c95-6d46-c064eaa62856@kaod.org> Date: Thu, 3 Mar 2022 08:57:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 10/10] ARM: dts: aspeed: Enable Dual SPI RX transfers Content-Language: en-US To: Joel Stanley CC: , linux-mtd , Mark Brown , Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-aspeed , Andrew Jeffery , Chin-Ting Kuo , devicetree , Rob Herring , Linux ARM , Linux Kernel Mailing List References: <20220302173114.927476-1-clg@kaod.org> <20220302173114.927476-11-clg@kaod.org> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [37.59.142.107] X-ClientProxiedBy: DAG7EX2.mxp5.local (172.16.2.62) To DAG4EX1.mxp5.local (172.16.2.31) X-Ovh-Tracer-GUID: e05de279-3f2e-408a-be31-93ae24799af8 X-Ovh-Tracer-Id: 8424546055071435652 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddruddthedgudduhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgihesthekredttdefjeenucfhrhhomhepveorughrihgtpgfnvggpifhorghtvghruceotghlgheskhgrohgurdhorhhgqeenucggtffrrghtthgvrhhnpeeigedvffekgeeftedutddttdevudeihfegudffkeeitdekkeetkefhffelveelleenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddruddtjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepmhigphhlrghnhedrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/2/22 23:48, Joel Stanley wrote: > On Wed, 2 Mar 2022 at 22:45, Joel Stanley wrote: >> >> On Wed, 2 Mar 2022 at 17:31, Cédric Le Goater wrote: >>> >>> All these controllers support at least Dual SPI. Update the DTs. >>> >>> Reviewed-by: Joel Stanley >>> Signed-off-by: Cédric Le Goater >> >> Thanks. I'll apply this to the aspeed tree now. >> >> Did you also have a patch to add a second flash chip to the AST2400 FMC? > > That was a reference to the discussion on the openbmc list with Tao. I > was mistaken; the flash chips are there, but they lack the > spi-max-frequency property. Yes. I will include a patch in v3 for the second flash chip of the AST2400 FMC. Thanks, C. > >> >>> --- >>> arch/arm/boot/dts/aspeed-g4.dtsi | 6 ++++++ >>> arch/arm/boot/dts/aspeed-g5.dtsi | 7 +++++++ >>> arch/arm/boot/dts/aspeed-g6.dtsi | 8 ++++++++ >>> 3 files changed, 21 insertions(+) >>> >>> diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi >>> index 9ae67e83cf60..31e6569db97e 100644 >>> --- a/arch/arm/boot/dts/aspeed-g4.dtsi >>> +++ b/arch/arm/boot/dts/aspeed-g4.dtsi >>> @@ -64,27 +64,32 @@ fmc: spi@1e620000 { >>> flash@0 { >>> reg = < 0 >; >>> compatible = "jedec,spi-nor"; >>> + spi-rx-bus-width = <2>; >>> spi-max-frequency = <50000000>; >>> status = "disabled"; >>> }; >>> flash@1 { >>> reg = < 1 >; >>> compatible = "jedec,spi-nor"; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@2 { >>> reg = < 2 >; >>> compatible = "jedec,spi-nor"; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@3 { >>> reg = < 3 >; >>> compatible = "jedec,spi-nor"; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@4 { >>> reg = < 4 >; >>> compatible = "jedec,spi-nor"; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> }; >>> @@ -100,6 +105,7 @@ flash@0 { >>> reg = < 0 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> }; >>> diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi >>> index c3e0a8e13c8a..29bf017899b6 100644 >>> --- a/arch/arm/boot/dts/aspeed-g5.dtsi >>> +++ b/arch/arm/boot/dts/aspeed-g5.dtsi >>> @@ -66,18 +66,21 @@ flash@0 { >>> reg = < 0 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@1 { >>> reg = < 1 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@2 { >>> reg = < 2 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> }; >>> @@ -93,12 +96,14 @@ flash@0 { >>> reg = < 0 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@1 { >>> reg = < 1 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> }; >>> @@ -114,12 +119,14 @@ flash@0 { >>> reg = < 0 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@1 { >>> reg = < 1 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> }; >>> diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi >>> index 1ad05dde19d2..ce93c56a21a7 100644 >>> --- a/arch/arm/boot/dts/aspeed-g6.dtsi >>> +++ b/arch/arm/boot/dts/aspeed-g6.dtsi >>> @@ -106,18 +106,21 @@ flash@0 { >>> reg = < 0 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@1 { >>> reg = < 1 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@2 { >>> reg = < 2 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> }; >>> @@ -133,12 +136,14 @@ flash@0 { >>> reg = < 0 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@1 { >>> reg = < 1 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> }; >>> @@ -154,18 +159,21 @@ flash@0 { >>> reg = < 0 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@1 { >>> reg = < 1 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> flash@2 { >>> reg = < 2 >; >>> compatible = "jedec,spi-nor"; >>> spi-max-frequency = <50000000>; >>> + spi-rx-bus-width = <2>; >>> status = "disabled"; >>> }; >>> }; >>> -- >>> 2.34.1 >>>