Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5635231rwb; Tue, 22 Nov 2022 02:50:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Ur3V4tu8o08R8Xuvie5XiftMNiyAfB+1tXbFXZVWgFpbxH+jCk0VCVIARlQSUPooVE0Qx X-Received: by 2002:a05:6402:882:b0:469:7893:4b5a with SMTP id e2-20020a056402088200b0046978934b5amr9997438edy.328.1669114223987; Tue, 22 Nov 2022 02:50:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669114223; cv=none; d=google.com; s=arc-20160816; b=MdxR44V8xueTjaeX1YOHHX59IeWf8YaGU11VJBaei+LIgsOnRBB5McJxnhFC6K3I8x iO1EC1f0n/lbfdc8jY8zBS0kcV1qVk7Lc+pF1jpymuRyzddMiN7uvi7E/7x5UzBImjCt +zc4EXwtI2q89TwUOIh601D64DUV4MdPRdeZvNiwuqcgBADx9oWIP/YqKMcZAIxXnJTW DEo5X1cYk4zF+e1pK2utYYF4qWjtKmwsAMWMHqKYlFzKa3lQib0fsD1uWwGnEegcK8zL lhmULV6BSzFC59GnVlpprZELhpY3248qlprLPxGbvHUkaKJQcxEVITELW8Y/QOC/C4xm lvvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5zJKgeVGZmLVAXevDGlsNfSshltWSGYw3d8eMnb+lIA=; b=cJW6WRz+GWdc62ZfB+W2tX69iik9y07K4H/GDHvGMiBiZBDxKQ1o/8HFWfn6SmjyMs /gXQ62ooH/hstAcCGHfIhrpcuU0kjQmYsoBABVxDqjnngMHWs6Af3wXSjZ4UxLPqWgE9 tSSjhGJevnJSJjXBktDgbq9JDPXOmunwhvzshqFMpVsvCSCS5fVw5gt50OLDlDvwAN0G 3mdiSjfhsrnupb24Ahz5d1Mt8+wZ9UnXePiooO0qsY5uokSNcBA+BYwiWfv1U5azBHhy 6LgBlJcX1Nvmgg/kTFJTX8zxXDl7irIiif+15tJhxmLqaRY5TTwYGVKoLTrLeSGy/ZDW V7Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=pR0iPF1e; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw18-20020a170906479200b007ae1874c142si13139945ejc.446.2022.11.22.02.50.01; Tue, 22 Nov 2022 02:50:23 -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=@canonical.com header.s=20210705 header.b=pR0iPF1e; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232245AbiKVKmZ (ORCPT + 92 others); Tue, 22 Nov 2022 05:42:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232880AbiKVKk6 (ORCPT ); Tue, 22 Nov 2022 05:40:58 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47D2B17E20 for ; Tue, 22 Nov 2022 02:35:49 -0800 (PST) Received: from mail-yw1-f198.google.com (mail-yw1-f198.google.com [209.85.128.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 027F53F336 for ; Tue, 22 Nov 2022 10:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1669113346; bh=5zJKgeVGZmLVAXevDGlsNfSshltWSGYw3d8eMnb+lIA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pR0iPF1enR7Jq9/RDdOxOf1jYD5l1wvWmsz16U0qqUWVlmHvYzZFC7bX0hqNHpJqU Y/VowcpNaADz6osxPwpWFyfkxgKZGW714yr+ot64/jNj81HUTDOpKSsKR48Bq3W0cZ +yaIh05OJdtTnzF8sPx0D0kOd6aAZHA/5nWHNSB8YVm1KV3TLH2EjYp0r4EIceX/2a HHdAllHgPpSrSmGFISjsk8p47ZiIat+FxcyiMaLbNt3woCGIQfLdto4MfoLr1Y6GUR L7lXKSPfg1z3FQFTX5dWiNNXMvqw3lEt4hK/fqA7e+BHCrMvP1EO5kgCKf25e6qOyP YZVe6IbAZ3F9A== Received: by mail-yw1-f198.google.com with SMTP id 00721157ae682-349423f04dbso137759927b3.13 for ; Tue, 22 Nov 2022 02:35:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5zJKgeVGZmLVAXevDGlsNfSshltWSGYw3d8eMnb+lIA=; b=reEg+qM1RujhW5n6ALi0ppjHORR4gYVqv2/qKTc0dOdSDJK6OBCmwoGrMSQ+g4WpTD xNe1VrmOJuHs0Gd3vG462BMtZ+n2hcFA1M494gneYiojbAQCmXBT7OGtY7rbfJCM6hGF 9U/tgex8IAq4WgRYsU8jtl4w2sNi9sQK7Oyk1cTT7Ht4e8epR0lRjZBpHYHc8sMUm36J IesLKCmbHPB4F0gIFfaXeA44OPBUKm/gI45HOxTf8ubnufYl4SK09k32bWfQqhJUdkG3 U1ZwZ7WDP0D97NlzJUpUwMZAr13mxPwTvmzKQb0YEEQ2WLmwHcu6fDh/++W2ix71RfNj zRUw== X-Gm-Message-State: ANoB5pl9yNvBBuJIkYlbdFyu/fZKY1BjoSsQGikLxn/JHyTRnq7/kRgh islJYZX10VfkkL98oVaa8SmaDWO8GCVWRatXXZ372qVg4lntJ2eqYk5GPBbVyJAqRosIMxKzlA+ Sc4xuXaNw2eGox+ySL7amQO7p59h2gRQIN2/GPngqlNwStS5NMZTGWu+tXg== X-Received: by 2002:a81:4ed0:0:b0:39b:2705:501 with SMTP id c199-20020a814ed0000000b0039b27050501mr6707279ywb.326.1669113344954; Tue, 22 Nov 2022 02:35:44 -0800 (PST) X-Received: by 2002:a81:4ed0:0:b0:39b:2705:501 with SMTP id c199-20020a814ed0000000b0039b27050501mr6707261ywb.326.1669113344732; Tue, 22 Nov 2022 02:35:44 -0800 (PST) MIME-Version: 1.0 References: <20221118011714.70877-1-hal.feng@starfivetech.com> <20221118011714.70877-5-hal.feng@starfivetech.com> <0f9e423e-37c0-a838-bf25-f9b6784a31d0@starfivetech.com> In-Reply-To: From: Emil Renner Berthing Date: Tue, 22 Nov 2022 11:35:28 +0100 Message-ID: Subject: Re: [PATCH v2 4/8] dt-bindings: sifive,ccache0: Support StarFive JH7110 SoC To: Hal Feng Cc: Conor Dooley , 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 , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" 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_NONE,SPF_PASS 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 Tue, 22 Nov 2022 at 11:16, Hal Feng wrote: > > On Tue, 22 Nov 2022 10:01:30 +0000, Conor Dooley wrote: > > 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? > > below > > > > > > > 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 For the record I don't think the line above should be there. The fu7400-c000 is a specific tapeout and pretending the JH7110 is that tapeout is not right. Especially when there is already the "sifive,ccache0" string for the generic IP. > > > - const: cache > > Yeah, this is what I mean. Thanks. > > Best regards, > Hal > > > > > And then the driver needs no changes. >