Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5628513rwb; Tue, 9 Aug 2022 00:59:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR4NvhA1fd0qL2qrUUcblPgBBWsiR1TxPVhOhJqPKKxrY9CSVqlH2bES+DJfQ1Nekgje9wQi X-Received: by 2002:a17:903:2303:b0:16d:c555:9b2 with SMTP id d3-20020a170903230300b0016dc55509b2mr22364073plh.46.1660031995412; Tue, 09 Aug 2022 00:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660031995; cv=none; d=google.com; s=arc-20160816; b=GOF6ymbJt8Zc8kpknaZslPFKCskmJ/TptXLLHtNz1j/kxSFKXr2DpEnvqdiDV3svR5 w/rXVmeGjMC6dfwMs2PIqcSeyRaW3KxxwS9HVyOxF4uhTGJufr+BmdAI1j2XkMPpdaux 73yRU98VE+IaDvJlls7MyqBf6D3T4tsVMEpkoCMG8O6qh7N7BRpr4B3SM0XZFFtZlhon XyhS4XE848qjcdKdaPwC8ZBtd/WKckRuWeYRr1ru4Su7wVqVKjgZg2WbvaceWvkimmIU +rvY0tARPKrCeJdBrpUTs/LcrLjTlxiqZybssDkNurSPyEli24s7P1XnaMW426dBbYtk 8QQg== 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:dkim-signature; bh=3IBr6p2z3wSW6g3+vDFQa8eI3JKD+eigRgAZZ154fsc=; b=ylktNEOkdBk05ee1z3mPAeg68wGENNwukR0n+6NKlsA+Rc1Wk+8vgJz9XpcTfyfghI 0QdIC8K8UmwUAKHNXf3WJC0LRc95C6XASgK6ZX2hOGRDgfR1hzasj4Y3XpmS/94T82m7 4jdUk5l4m6fJyqN5Jb9jU1o6K60FvPfk6AHek26usUPchlc16VUYykRJHNHKroB+1Z11 n3MGX0rl6AIMkV1Q5/9Gt487gvtli3OPQ6bNLnCPjPj4pV4MiGNiMtvpO9EBvdb9D2Ix fuYDl0tcX8KzpJsPjGV6qu+KHtvyIKRxEs3EEYVk0Qm2Kgl0EzXBIsxxQeHW5lAbli43 l84Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OsfPSzU8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r6-20020a655086000000b0041c5b90f8cbsi1706651pgp.850.2022.08.09.00.59.38; Tue, 09 Aug 2022 00:59:55 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=OsfPSzU8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232412AbiHIH5K (ORCPT + 99 others); Tue, 9 Aug 2022 03:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbiHIH5I (ORCPT ); Tue, 9 Aug 2022 03:57:08 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F19318B30 for ; Tue, 9 Aug 2022 00:57:06 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id z25so15963355lfr.2 for ; Tue, 09 Aug 2022 00:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=3IBr6p2z3wSW6g3+vDFQa8eI3JKD+eigRgAZZ154fsc=; b=OsfPSzU8rvxsPXrV05RL3FkpVd82/zImhAUX6Xd4ggg3JlaegSPktLRpkogqwhoqvB KdN9OAHcSE1SNKv8vkQyZnUcdls+vVJykmXw3I/J2ZEzABCWRqiienx8+3lUG5TDnc+u 5mHoB9n2sP0xwFLxgWH5g5p/9hd7Q0KOhVA5XWpubH7ViWjmTS2jxPr7TYlVtP9dJ6Qm Z8zFmZB7ppkLhWO5eQPrjnGF2IbarOMpZWJhQ5fy0iUooqfQ5ktZ7/7nWtmbflhkRzEU 93I0kCPZW3QBm899M8Qs2RDN6rTBzYuz3fdripUToWlh2tL4DHwgA5deKvGPtHcCpt4X 0KlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=3IBr6p2z3wSW6g3+vDFQa8eI3JKD+eigRgAZZ154fsc=; b=llEj2wCMvceWbL76nGcxuJVERPBsEP3svxnj0v6dcIe7P42RdBhS8UVrknQZOloewo Oeg3Fxfp6248/TV2+Xxs7ntUJ3V4zrGtwKOie+uoWp6BG6123ahN9LQDYpHk/mhdWAv9 Ed3nXIQKv8i+lq2q0iwtE863egKBj3ZaaVTUEebuiDhNPmxlt7NOmTZInbplfnEqvEip r1lo9dDLeHUCodfmS0c7NGqpdmyopPHfWCd6tCWYeGy806KMZgaSizyC5b2rWcqZTBlA FFEEW9pOuXZNFIngTKjYcuLk6gWifABV3njFjikyJh8++KFQwaeeKyOICLtLL04iUHaw QYug== X-Gm-Message-State: ACgBeo0U3gwHTW3cRZCLPqExBBQonlAdOne/5w6D9Ll/zrIu8xfT/DeL zLAGo3/BmhboHZJ+3MKnTnrz7A== X-Received: by 2002:ac2:43d4:0:b0:48a:f6bf:1185 with SMTP id u20-20020ac243d4000000b0048af6bf1185mr7731172lfl.197.1660031824540; Tue, 09 Aug 2022 00:57:04 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id e15-20020a05651236cf00b0048a85bd4429sm1672101lfs.126.2022.08.09.00.57.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Aug 2022 00:57:04 -0700 (PDT) Message-ID: <0765cae5-1d07-cbaa-83bf-5553f3f8b242@linaro.org> Date: Tue, 9 Aug 2022 10:57:03 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 1/3] dt-bindings: spi: stm32: Add st,dual-flash property in st,stm32-qspi.yaml Content-Language: en-US To: Patrice CHOTARD , Mark Brown , Alexandre Torgue , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, christophe.kerello@foss.st.com, devicetree@vger.kernel.org References: <20220808074051.44736-1-patrice.chotard@foss.st.com> <20220808074051.44736-2-patrice.chotard@foss.st.com> <9ad4b4a8-988e-f185-f80c-6f15f341ce8c@linaro.org> <79fd7e19-ceef-14fb-5a83-603740735f8f@foss.st.com> <38c3977a-0196-1832-ff94-317064cbc439@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 09/08/2022 10:52, Patrice CHOTARD wrote: > Hi Krzystof > > On 8/9/22 07:29, Krzysztof Kozlowski wrote: >> On 09/08/2022 07:18, Krzysztof Kozlowski wrote: >>> On 08/08/2022 19:08, Patrice CHOTARD wrote: >>>> Hi Krzystof >>>> >>>> On 8/8/22 11:01, Krzysztof Kozlowski wrote: >>>>> On 08/08/2022 10:40, patrice.chotard@foss.st.com wrote: >>>>>> From: Patrice Chotard >>>>>> >>>>>> Add new property st,dual-flash which allows to use the QSPI interface as a >>>>>> communication channel using up to 8 qspi line. >>>>>> This mode can only be used if cs-gpios property is defined. >>>>>> >>>>>> Signed-off-by: Patrice Chotard >>>>>> --- >>>>>> Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml | 8 ++++++++ >>>>>> 1 file changed, 8 insertions(+) >>>>>> >>>>>> diff --git a/Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml b/Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml >>>>>> index 6ec6f556182f..5e4f9109799e 100644 >>>>>> --- a/Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml >>>>>> +++ b/Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml >>>>>> @@ -46,6 +46,14 @@ properties: >>>>>> - const: tx >>>>>> - const: rx >>>>>> >>>>>> + st,dual-flash: >>>>>> + type: boolean >>>>>> + description: >>>>>> + Allows to use 8 data lines in case cs-gpios property is defined. >>>>> >>>>> It's named dual-flash, but what if you want to use QSPI to connect for >>>>> example to FPGA? >>>>> >>>>> Also how is this related to parallel-memories property? >>>> >>>> I called it "dual-flash" simply because it enable the dual flash feature of the QSPI block (bit CR_DFM : Dual Flash Mode) >>>> which allows to use the 8 lines simultaneously of our dual QSPI block. >>> >>> And how is it related to existing parallel-memories property? >> >> Maybe I was not specific enough, so let me rephrase - we have already >> parallel-memories property. How this one is different (to justify the >> new property)? Is just one memory connected in your case to QSPI over 8 >> data lines? > > Our QSPI block is a dual Quad-SPI memory interface, it can managed 2 QSPI flashes independently. > There is a specific mode, dual flash mode, where the 2 QSPI flashes can be accessed simultaneously > using 8 data lines. In this case, both throughput and capacity are two fold with this mode. > > To illustrate, you can have a look at STM32MP157 reference manual (chapter 27.3.1 figure 172) available here: > https://www.st.com/resource/en/reference_manual/rm0436-stm32mp157-advanced-armbased-32bit-mpus-stmicroelectronics.pdf > > As you mentioned above, the goal is to connect a FPGA to this 8 lines bus. > > Hope it clarifies enough ;-) Only partially. Based on the explanation above, it looks like you want to use existing parallel-memories property. Please use that one, instead of adding a new property for the same feature. Best regards, Krzysztof