Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5603497rwb; Tue, 22 Nov 2022 02:15:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LOXHZM/lNpg61EVGZo9RwI4Lw9xjUNFLr2htyxpGYNa3tDwyDJwbj1CIkGlkQ2GiviV35 X-Received: by 2002:a17:902:6505:b0:189:30f:64d8 with SMTP id b5-20020a170902650500b00189030f64d8mr6278688plk.39.1669112156954; Tue, 22 Nov 2022 02:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112156; cv=none; d=google.com; s=arc-20160816; b=tOM59JiZ8p+7ohJwfeCxQyDLpTgfFS4Kxp4EJ7hQWAoXzfCkKjvyrCHhZy5EKQlcRi 3dmjwzh0MZHa6NXKKPvMc62sQss/9o8r3GKVBwn3MZQHkKhBeUhq/crIPMyBxu6jIxQA mtiEBMH6Yuz9Wb2n02no9yAZ44+/k91pp1zJflnQpFu/+bbHarV57fnjPLes6npvkpUC gZBSn1EhbydkT1JFDzngXfiHtP1yjlWCXqJb8j85ZP5mTY5x5A3An43ArLwDAdqjt2EN acFVTC183fuf4QFV953ykRSRWnWkyqDAgB9Nb3hgl40BxwA6d+lVoOiLiE/B740k5V8j 6jcg== 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=ySP86K/dm1S7F048FXqM6MiB5eu5+sQd2+4Y7cwb1mA=; b=CQNb8mG1a2IwcmwL6Eg0Qww9Ju+GJBwv3YmT6oH0a09SE74Hzs8JHGKfpJ1SVWLo8x fDMEk2BnMB2BSKEWhf0VMvQnBU2Zi+HoN1g6+2ZNJHUGxNlMvO2hqggmUl0W7t61vvWS BoRjtTlOXu3Oz83RnQzlbpJO+EX4pjzdwltp4o1g+TCXkKHmJ/uhzfoke5j3kM/STcgq uGQk9DX1REOccrMgEFX7DPaRgcBUCNO8sT6sP6WZi3IPxMA7jlObvNrf6s3e/dUMR98Q oGIdx/4Ci88aBKleub63Zmv77PLaJR+JbWKem225nrMZUEGtVfkmS5jjPs8CKnxj/sy5 fwJQ== 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 e15-20020a63db0f000000b00476ea7b91dfsi13528020pgg.586.2022.11.22.02.15.44; Tue, 22 Nov 2022 02:15:56 -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 S232342AbiKVJ4S (ORCPT + 91 others); Tue, 22 Nov 2022 04:56:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiKVJ4P (ORCPT ); Tue, 22 Nov 2022 04:56:15 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E8D248747; Tue, 22 Nov 2022 01:56:13 -0800 (PST) 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 66B6324E30E; Tue, 22 Nov 2022 17:56:12 +0800 (CST) Received: from EXMBX072.cuchost.com (172.16.6.82) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 22 Nov 2022 17:56:12 +0800 Received: from [192.168.125.106] (113.72.144.23) by EXMBX072.cuchost.com (172.16.6.82) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 22 Nov 2022 17:56:11 +0800 Message-ID: <0f9e423e-37c0-a838-bf25-f9b6784a31d0@starfivetech.com> Date: Tue, 22 Nov 2022 17:55:57 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v2 4/8] dt-bindings: sifive,ccache0: Support StarFive JH7110 SoC Content-Language: en-US To: Conor Dooley CC: Conor Dooley , "linux-riscv@lists.infradead.org" , "devicetree@vger.kernel.org" , Palmer Dabbelt , "Rob Herring" , Krzysztof Kozlowski , Paul Walmsley , Albert Ou , Ben Dooks , Thomas Gleixner , Marc Zyngier , Stephen Boyd , Michael Turquette , Philipp Zabel , "Linus Walleij" , Emil Renner Berthing , "linux-kernel@vger.kernel.org" References: <20221118011714.70877-1-hal.feng@starfivetech.com> <20221118011714.70877-5-hal.feng@starfivetech.com> From: Hal Feng In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.144.23] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX072.cuchost.com (172.16.6.82) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 Tue, 22 Nov 2022 09:07:26 +0000, Conor Dooley wrote: > On Tue, Nov 22, 2022 at 04:40:23PM +0800, Hal Feng wrote: > > On Fri, 18 Nov 2022 19:39:52 +0800, Conor Dooley wrote: > > > On Fri, Nov 18, 2022 at 11:37:50AM +0000, Conor Dooley wrote: > > > > On Fri, Nov 18, 2022 at 09:17:10AM +0800, Hal Feng wrote: > > > > > From: Emil Renner Berthing > > > > > > > > > > This cache controller is also used on the StarFive JH7110 SoC. > > > > > > > > "... and configured identically to that of the FU740"? > > > > Anyways, > > > > Reviewed-by: Conor Dooley > > > > > > Actually, after looking at the next patch - why can you not fall back to > > > the fu740 one since you appear to have the same configuration as it? > > > > Right, I will drop this patch and use "sifive,fu740-c000-ccache" as > > compatible in dts. > > Uh, that's not quite what I was suggesting. Rather than using that one > in isolation, you can do the following in your dt: > "starfive,jh7110-ccache", "sifive,fu740-c000-ccache" > > And then in the driver we need to make no changes - unless down the line > we find some sort of issue that requires special handling etc. There's > no harm in having a "starfive,jh7110-ccache" IMO. Just like what microchip did as blow? Documentation/devicetree/bindings/riscv/sifive,ccache0.yaml: properties: compatible: oneOf: - items: - enum: - sifive,ccache0 - sifive,fu540-c000-ccache - sifive,fu740-c000-ccache - starfive,jh7110-ccache - const: cache - items: - const: microchip,mpfs-ccache - const: sifive,fu540-c000-ccache - const: cache Best regards, Hal