Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15747004rwd; Mon, 26 Jun 2023 00:17:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ480z79Nt2wTnDatWWv81zz36rzMcKmjSn4R1NRWp2CsekMusZRDepn9eQMbsRWwtySG17q X-Received: by 2002:aa7:cf19:0:b0:514:9e3c:d82e with SMTP id a25-20020aa7cf19000000b005149e3cd82emr21344079edy.14.1687763867130; Mon, 26 Jun 2023 00:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687763867; cv=none; d=google.com; s=arc-20160816; b=QSqXfZU52Ipky/1G1V4u5VOCmgYVLa+KSNqSId5MmeeNjm/1NQ8IjD2T0DeI0ud4EL k5KV7wRI0E5qMM7DPfVvqk2i7mustIoVsCw5L+LBZC41SXHDi2B0c/Wcs51ZDS2lNHhG eMJ64tgAsGmR4rvJGnx559pyuWcHORotPEHt8+QwWOx4DEKw6xxSvIp4KCpeYPQi3PKj V4S99H4yNaq9NzMtIOlNUpWIQR99CG1menjzPRQHEtGvemYFg5HlScFEdn3mrgC/O5zT ykwlG3UBO0glq50EJ5HTxi5+7XEucMhdXCXDwX+095HRJrPcbIsBNxBnih6TDxK/w1Zf 4N7g== 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=4pmC8wZXtYNTW6/LxLrgQoLPpYTxup5SGOO3PUWoNQs=; fh=79yohKBpOzwuSqN5d2N5jAIRuJl4GEw7HQmE9Qb/2/w=; b=w2Z3ArpkVUi7zOb917wzbXtbnkB5hd9rxQUvDRDUcrfFQq885e6Zsuoah/9L3+KjYi M9b5wof2mR7xPzKuNkL9qWgNjZoPr9XsDLeGeLqqcv2bNa2niAPNqtFpcKYgLqAPvExf E/5wAnPUHMcWDDZz7iKmwEiWHw8CctcMi/Qz2bSvVBqmohYk7Gaz0byLfMVx7OogQAbm +tdR9x6AmSWdmDSRumx1d6xpf7g4nnyefxOKGs8LznMPEJpLAuZN4VueTl3tAPlGV1Kn TXP5EVtP9BYVtQqUNiJi0UqIlN7x8tWDHmjBsnqqlbCNGXiS23mLqgXDU4xnl8xUMIZn VqDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rlW+Zt77; 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 y2-20020a50eb02000000b00519ebe84231si2363359edp.163.2023.06.26.00.17.21; Mon, 26 Jun 2023 00:17:47 -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=rlW+Zt77; 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 S229523AbjFZGTf (ORCPT + 99 others); Mon, 26 Jun 2023 02:19:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjFZGTd (ORCPT ); Mon, 26 Jun 2023 02:19:33 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB89102 for ; Sun, 25 Jun 2023 23:19:32 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9741caaf9d4so218952366b.0 for ; Sun, 25 Jun 2023 23:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687760370; x=1690352370; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4pmC8wZXtYNTW6/LxLrgQoLPpYTxup5SGOO3PUWoNQs=; b=rlW+Zt77COA20cJdXuNuF7ggNubDMstIwA5vm5NECHqd3WDi7xRuzeHwzUmy4YLa2S TxPFb7pd2Nl/KKPBzP68mwqCxu9wMUmN8jnGdc2sCy+1Pak9GqU0ClHlZ7DBJ6/gPd0w OacU+K+OM7ksc0tUIu7YpXQwNqD+SfZETIYoQ5JGBmMC8S2pFbQQ0PiMpTuTRRDbyJQj 3wzmgokWicYOrTNQ7wzQY2RXCbL/ed20OsC5Lw8moQRlQN0M2+wXaDMBKMF81RZi09PG 5Ja6YA+ClqLl2DWFQncTY3Z9tz7pJYsCKFr2fos2SEpvQqt5pipxXFlD3xNJbTcBdIV0 Evjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687760370; x=1690352370; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4pmC8wZXtYNTW6/LxLrgQoLPpYTxup5SGOO3PUWoNQs=; b=Wkn6IX70V89F9vX/w0sC4Foz8vhneJ2EZc/cCXV4t6dsQQeOD5VrlBfYfflj3Go1Wd OlJSg3C4awviKfq9VkpfCmlmDqr2/EIrZ+BKifpYwomNGsqErn41Vcwr2AnxLsCzcGDr McdiffXdE3F9Wdd5Itq7DW9DvFGRpu72vtu68W4Zc35IW7pzjvr7nT5j5S7ez8G8PEmN L7E/ZrgmgY0plU05c0dziOlkAdI9mbuZ/FWlkfruPUy0eP8gI/IbIqomgtA6rkbzS/0a P2gsyQq7t3ZxPoKboTx8U7SgJf0KPDvs+iKmLh1+1GqMHJjAH9C+dT57/Von/NPBBmgu Jl1A== X-Gm-Message-State: AC+VfDxknE+iA+nNSGMzjUXGOgkFKlpjSaT/WXWk+SEPtfjicMtrSvon U32gm6NhfEJCVg4PnB1+gVfhYScWxSEsbobE1fs= X-Received: by 2002:a17:907:9305:b0:96f:8666:5fc4 with SMTP id bu5-20020a170907930500b0096f86665fc4mr25221452ejc.50.1687760370474; Sun, 25 Jun 2023 23:19:30 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id i4-20020a170906a28400b00991e849dbd1sm104735ejz.63.2023.06.25.23.19.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Jun 2023 23:19:29 -0700 (PDT) Message-ID: <8c9ed2d4-83ab-ecc0-a300-e6bc8e2047b6@linaro.org> Date: Mon, 26 Jun 2023 08:19:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 3/3] dt-bindings: riscv: sifive: Add SiFive Private L2 cache controller Content-Language: en-US To: Eric Lin Cc: conor@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, maz@kernel.org, chenhuacai@kernel.org, baolu.lu@linux.intel.com, will@kernel.org, kan.liang@linux.intel.com, nnac123@linux.ibm.com, pierre.gondois@arm.com, jgross@suse.com, chao.gao@intel.com, maobibo@loongson.cn, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dslin1010@gmail.com, Zong Li , Nick Hu , Greentime Hu References: <20230616063210.19063-1-eric.lin@sifive.com> <20230616063210.19063-4-eric.lin@sifive.com> <2437bda9-bbdb-ad80-7201-1e16e1388890@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 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=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 26/06/2023 05:26, Eric Lin wrote: > Hi Krzysztof, > > On Fri, Jun 16, 2023 at 6:45 PM Krzysztof Kozlowski > wrote: >> >> On 16/06/2023 08:32, Eric Lin wrote: >>> This add YAML DT binding documentation for SiFive Private L2 >>> cache controller >>> >>> Signed-off-by: Eric Lin >>> Reviewed-by: Zong Li >>> Reviewed-by: Nick Hu >>> --- >>> .../bindings/riscv/sifive,pL2Cache0.yaml | 81 +++++++++++++++++++ >>> 1 file changed, 81 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml b/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml >>> new file mode 100644 >>> index 000000000000..b5d8d4a39dde >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml >>> @@ -0,0 +1,81 @@ >>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>> +# Copyright (C) 2023 SiFive, Inc. >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/riscv/sifive,pL2Cache0.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: SiFive Private L2 Cache Controller >>> + >>> +maintainers: >>> + - Greentime Hu >>> + - Eric Lin >>> + >>> +description: >>> + The SiFive Private L2 Cache Controller is per hart and communicates with both the upstream >>> + L1 caches and downstream L3 cache or memory, enabling a high-performance cache subsystem. >>> + All the properties in ePAPR/DeviceTree specification applies for this platform. >> >> Drop the last sentence. Why specification would not apply? >> > OK, I'll drop it in v2. > >>> + >>> +allOf: >>> + - $ref: /schemas/cache-controller.yaml# >>> + >>> +select: >>> + properties: >>> + compatible: >>> + contains: >>> + enum: >>> + - sifive,pL2Cache0 >>> + - sifive,pL2Cache >>> + >>> + required: >>> + - compatible >>> + >>> +properties: >>> + compatible: >>> + items: >> >> >> You have only one item, so no need for items... unless you just missed >> proper fallback. > > OK, I'll fix it in v2. > >> >>> + - enum: >>> + - sifive,pL2Cache0 >>> + - sifive,pL2Cache1 >> >> What is "0" and "1" here? What do these compatibles represent? Why they >> do not have any SoC related part? > > The pL2Cache1 has minor changes in hardware, but it can use the same > pl2 cache driver. Then why aren't they compatible? > May I ask, what do you mean about the SoC-related part? Thanks. This is part of a SoC, right? We expect SoC blocks to have compatible based on the SoC. Best regards, Krzysztof