Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6431281rwp; Mon, 17 Jul 2023 23:29:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDRYmS3MNnU4ocGM2EHqy7XANCVdN/iXuebGnNeF08wVLLYSoPZ2mYFhfK5TfrYLLDBS1S X-Received: by 2002:a17:902:b592:b0:1b8:77ec:60c5 with SMTP id a18-20020a170902b59200b001b877ec60c5mr10731067pls.14.1689661782212; Mon, 17 Jul 2023 23:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689661782; cv=none; d=google.com; s=arc-20160816; b=EfMZCJAmP6lc3tdtVhg+G5+cK2g5I8ANc+bWVkakVr8DioPQ/DZoSvI+ex7B1ulNEi 93rs8eIppyNsvcc6e0qoCYKOMtxR5eULXftUNguF3+9Vlw3fjoe13A8RqBDVmhInO7TP b2pa4JTJHO3kOuUI/XhX22tweA78PCiMEuRTIQW6rI6GaD+GzhZigkDRJ+1lPAGureak lpQwI/fUdIDzgXiG4K9w602HzjLm2A7np8le1PNIDVqeD2QPBiVS10irawV0VUu3EDw/ eUsOrriSIvezkhvOt9PUWqgaHCzFd2t4h2Z3JFjmvlgt6mIm82w+1zDOQcmNtWsA65bL Q+Fw== 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:to:content-language:subject:user-agent:mime-version:date :message-id; bh=MGfyKlxwa/IgNGjXxR0ConBvE6/7Yq6sVk+gfmAXb9Y=; fh=zSqMxHpe9mHWa+feHG4G3epxZvDP8tFBVCxOXKMGYjY=; b=gVRPZU4oZ/xtmUIdJXdd2QyNvPegkbZKo3wgea6A0CdvqHNElvmZpVI9mDHcqBLQ0u H8BS4C12sA7+gM5lkGuicAzBLgL1bWXi/a4OS5bj239Nqfk9967/Oyi9XgiNz8T6f2vV Ca7YwWiFwUajn1qLhLq7M9wApeqqm0Hw5agfs75tOtTLbZ4VwBIBEqgiFiIMDKZofPG7 lg2kTVjWTuCY0FrfYiwpAr6MCnaLHs6IiybXURiS2XVLkpREK9NkAPwaHA5NbG/M5AQN 1aac33saPnpcGTx+5qc8NoeMJ2v+GkIdTenlSGpw0c8FYmWbewbfvFZ0JlJaPi68fcqw 1Lyg== 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 x2-20020a170902a38200b001b8955938ccsi1129874pla.331.2023.07.17.23.29.30; Mon, 17 Jul 2023 23:29:42 -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; 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 S231499AbjGRGOp (ORCPT + 99 others); Tue, 18 Jul 2023 02:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231448AbjGRGOX (ORCPT ); Tue, 18 Jul 2023 02:14:23 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 078CB2139; Mon, 17 Jul 2023 23:13:24 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id E33CF24E22F; Tue, 18 Jul 2023 14:12:41 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 18 Jul 2023 14:12:41 +0800 Received: from [192.168.120.57] (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 18 Jul 2023 14:12:41 +0800 Message-ID: <018b8bd3-ede0-d6ad-d50e-b4c959ac1660@starfivetech.com> Date: Tue, 18 Jul 2023 14:12:40 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v4 3/3] riscv: dts: starfive: Add QSPI controller node for StarFive JH7110 SoC Content-Language: en-US To: , , , , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Emil Renner Berthing" , Ziv Xu References: <20230704090453.83980-1-william.qiu@starfivetech.com> <20230704090453.83980-4-william.qiu@starfivetech.com> From: William Qiu In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 2023/7/18 1:13, Aurelien Jarno wrote: > Hi, > > On 2023-07-04 17:04, William Qiu wrote: >> Add the quad spi controller node for the StarFive JH7110 SoC. >> >> Co-developed-by: Ziv Xu >> Signed-off-by: Ziv Xu >> Signed-off-by: William Qiu >> Reviewed-by: Hal Feng >> --- >> .../jh7110-starfive-visionfive-2.dtsi | 32 +++++++++++++++++++ >> arch/riscv/boot/dts/starfive/jh7110.dtsi | 18 +++++++++++ >> 2 files changed, 50 insertions(+) >> >> diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi >> index 2a6d81609284..983b683e2f27 100644 >> --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi >> +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi >> @@ -126,6 +126,38 @@ &i2c6 { >> status = "okay"; >> }; >> >> +&qspi { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + nor_flash: flash@0 { >> + compatible = "jedec,spi-nor"; >> + reg = <0>; >> + cdns,read-delay = <5>; >> + spi-max-frequency = <12000000>; >> + cdns,tshsl-ns = <1>; >> + cdns,tsd2d-ns = <1>; >> + cdns,tchsh-ns = <1>; >> + cdns,tslch-ns = <1>; >> + >> + partitions { >> + compatible = "fixed-partitions"; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + >> + spl@0 { >> + reg = <0x0 0x20000>; >> + }; >> + uboot@100000 { >> + reg = <0x100000 0x300000>; >> + }; >> + data@f00000 { >> + reg = <0xf00000 0x100000>; >> + }; > > It appears that this uses the old layout for the SPI flash. The new > layout is described there: > > https://doc-en.rvspace.org/VisionFive2/Boot_UG/JH7110_SDK/boot_address_allocation.html > > Regards > Aurelien > I'll take a look, and use it then. Thanks for your comments. Best regards, William