Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5652366rwb; Tue, 22 Nov 2022 03:07:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4rqBFE5nlWdNSZunxeRrCVCRx5wjd9WfOIxdTIEpD04rhHcB2kXurTem84rFirWdHC0moX X-Received: by 2002:a62:36c7:0:b0:563:8011:e9e4 with SMTP id d190-20020a6236c7000000b005638011e9e4mr25173549pfa.76.1669115251209; Tue, 22 Nov 2022 03:07:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669115251; cv=none; d=google.com; s=arc-20160816; b=R9SIZGVMweQC/R+fblYDyvMZsR8Yfhg95IpLtXJjkML5ZadDxWksXxTTifZTeY0GOI A5ZnFXXPM1dWm7CV7a1mxptDCjL5Pl6FeVcQhiJH1FO/KcTBKL+llPDoD3u6Pq7sokl2 nDjGyd6F60y82LwYF8+czA2j5iUh5uZgfdMrbW8Itw7P8XbmsDZ4rhYm2nJMLyh4WY22 fHVVefgIRqvureQz2HIq+8Aho4kbPcH0JreN5w0WuwJpJ5ImSSw99tKlnkFpEGPtb6UO Eg8cf6SfZg2dLgTMoTKamRZ1RDh/LSYi6tSj8mAKWRxj14WhPBvNaU87kldZVWjqiz7f /xKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GxMwqbFRiyk8oRDIRSk694ty6bI+sPOyrPo4j0HT5Wg=; b=lKfLeIK+2s8LSNsPVj0RN9rgBjipzX3QRyFd8bwryR/UgFjVCtPJKRBsT8UItZ5eIG 7HhsLgInkXfJJFsIlUHva10YtrdaH7icBbZdtw4N4FzDbMJuUjgaynaKBh55I5+tScZH KfRfljwGHXUjZ3lGHRGkJXK+ko0uzFnIe6H94EJy9KP5IB4u0wFH+HUUQC9eRuKorLU0 +x7Fkw7WPIoxoqHte/pUYi15hYeG8TL188J0j3NUE6kGq41u/gs/BhDK+RcCQE+J4ZbX QA5w1KE8XTLDlUQpRzye1dpD6DGm+PlmCMAFzbxRP1Rhwc7aDdIV017iSSxctSBStBTd Ebzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=q4hHsfcW; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nn18-20020a17090b38d200b002131bb4043asi19275303pjb.177.2022.11.22.03.07.18; Tue, 22 Nov 2022 03:07:31 -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; dkim=pass header.i=@microchip.com header.s=mchp header.b=q4hHsfcW; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232455AbiKVKCF (ORCPT + 91 others); Tue, 22 Nov 2022 05:02:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbiKVKCA (ORCPT ); Tue, 22 Nov 2022 05:02:00 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90A012DA8E; Tue, 22 Nov 2022 02:01:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1669111315; x=1700647315; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nI5iY1nxbWlYz33Yi+nw014DiITr3L9p7axhfuv7szo=; b=q4hHsfcWcmDNgaEdR0kGoTN0NV3LfJmssCr9536wRP83qfcI8mQxtQL9 Nj/ds2zh/SRZ2nrQ0XGKOe3vVljYeCqj8Mtta7NKCFKltg1j+2wVcg9ao PAXuaXwAty0+r8KMuwoLyYTY26i7iEPlRljj/+0aFkVqNFx/vwFvvIoEj WpIckktAUPwAgMU+ZwGwEYrbShEk6umxA4lgwuBZhY4AxspaA1ieUbSQZ yH9IrL7rCsnI+N2GhpKS8dqqjNPEm/KqHgkPqeEIb+y4+PjH6ODcEUDbV B745OLsDL1C8IbDSoxPyZE0sFITaCAgY4ZlXlOM8ZTYanDWbDBhznsagS g==; X-IronPort-AV: E=Sophos;i="5.96,183,1665471600"; d="scan'208";a="184644758" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 22 Nov 2022 03:01:54 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 22 Nov 2022 03:01:51 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12 via Frontend Transport; Tue, 22 Nov 2022 03:01:48 -0700 Date: Tue, 22 Nov 2022 10:01:30 +0000 From: Conor Dooley To: Hal Feng 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" Subject: Re: [PATCH v2 4/8] dt-bindings: sifive,ccache0: Support StarFive JH7110 SoC Message-ID: References: <20221118011714.70877-1-hal.feng@starfivetech.com> <20221118011714.70877-5-hal.feng@starfivetech.com> <0f9e423e-37c0-a838-bf25-f9b6784a31d0@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <0f9e423e-37c0-a838-bf25-f9b6784a31d0@starfivetech.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,T_SPF_TEMPERROR 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, Nov 22, 2022 at 05:55:57PM +0800, Hal Feng wrote: > 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 No, I don't think this is correct either. You'd do something like: > - items: > - const: starfive,jh7110-ccache > - const: sifive,fu740-c000-ccache > - const: cache And then the driver needs no changes. Thanks, Conor.