From patchwork Tue Mar 11 07:34:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pinkesh Vaghela X-Patchwork-Id: 14011235 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BEE45C35FF2 for ; Tue, 11 Mar 2025 07:36:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YM+OY+xCA+30tXh9W+OXOWhD/khYumKyONWkZdYrH50=; b=a55T/JhDefpxa2 SfoVescleLorye+V5BYlEbmz2lZw6yfkci4VcDk0J6XL/oS2dUKnpir0EGqDUkO9ewfQqzeo/C8Vx 5GbNyo9QXnK6p6y9CPnbFlSpwBiQAQfBBV6v6Iprcgk+rrhom2VaFrb8gOyyUN5gLjKZsuFRhX+PQ qJrQcwvkA3dI5PtWdMRoycZkwJvWpCZB3qN+oibViQxvw+rsOW73ibTOHlsxZVj29zNU3POjlHFhR 2vCIdnQHa17h7ZRPTy7nWihK+Z/ScfJyVxov/AKY5TkhPMbuddATiDcCr53T/gBGZHzx0t2jloFT7 YDW88a+o5fpp4JO6GdAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tru9e-00000004r1E-3aXt; Tue, 11 Mar 2025 07:35:58 +0000 Received: from naesa03.arrow.com ([216.150.161.23]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tru8P-00000004qe0-1AHK for linux-riscv@lists.infradead.org; Tue, 11 Mar 2025 07:34:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=einfochips.com; i=@einfochips.com; l=2230; q=dns/txt; s=NAESA-Selector1; t=1741678481; x=1773214481; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aR5wXVzzwCMTGciJgNgFTZx8tZMYxM5ueduU4KTlfJI=; b=BKhwvEPoejqtq2SUFSBw2cprhvWCJ6XZdLeZVP/D3D+nSq8R1aoLz5Ys 8IMagC+hOvWB8T1Rz+qod3bfILYVKz2BSNxgwi4D4+2GFHtdo5gK77LQ8 oM01Z3RLXsz0kL/qzZAuS9NQN2VFIcwzApNJIA6ycIFRWwgiRcAVIncTq gTL//mTIPUNPMNmI5W/r/TLbhOiD3cFghGrkC39QKHv/icD2TtMC7+CUp b36hMANYMAaKsGBLxCZRCQZdHESp+cyOkIyyctGktxSPmO3uN7yKz6pSe 6UsWhU67SN0ddzB82vyG/FifN1msQU6ZRt7mCCG18DKj5hQy7rUU7a2kn w==; X-CSE-ConnectionGUID: XFRAnE3ISCqV4y7xuRX2yA== X-CSE-MsgGUID: Yr/fukYTSpKQgGQUn/OEWA== X-IronPort-AV: E=Sophos;i="6.14,238,1736838000"; d="scan'208";a="79624731" Received: from unknown (HELO eicahmirelay01.einfochips.com) ([10.100.49.50]) by naesa03out.arrow.com with ESMTP; 11 Mar 2025 01:34:40 -0600 Received: from AHMCPU1888.ap.corp.arrow.com ([172.25.5.100]) by eicahmirelay01.einfochips.com with Microsoft SMTPSVC(10.0.14393.4169); Tue, 11 Mar 2025 13:04:33 +0530 From: Pinkesh Vaghela To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Thomas Gleixner Cc: Paul Walmsley , Samuel Holland , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Min Lin , Pinkesh Vaghela , Pritesh Patel , Yangyu Chen , Lad Prabhakar , Yu Chien Peter Lin , Charlie Jenkins , Kanak Shilledar , Darshan Prajapati , Neil Armstrong , Heiko Stuebner , Aradhya Bhatia , rafal@milecki.pl, Anup Patel , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/10] dt-bindings: cache: sifive,ccache0: Add ESWIN EIC7700 SoC compatibility Date: Tue, 11 Mar 2025 13:04:27 +0530 Message-Id: <20250311073432.4068512-6-pinkesh.vaghela@einfochips.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250311073432.4068512-1-pinkesh.vaghela@einfochips.com> References: <20250311073432.4068512-1-pinkesh.vaghela@einfochips.com> MIME-Version: 1.0 X-OriginalArrivalTime: 11 Mar 2025 07:34:33.0003 (UTC) FILETIME=[0834FFB0:01DB9258] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250311_003441_377920_575E76F7 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Pritesh Patel This cache controller is also used on the ESWIN EIC7700 SoC. However, it have 256KB private L2 Cache and shared L3 Cache of 4MB. So add dedicated compatible string for it. Signed-off-by: Pritesh Patel Reviewed-by: Samuel Holland Signed-off-by: Pinkesh Vaghela --- .../bindings/cache/sifive,ccache0.yaml | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml b/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml index 7e8cebe21584..11e9df2cd153 100644 --- a/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml +++ b/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml @@ -39,6 +39,7 @@ properties: - const: cache - items: - enum: + - eswin,eic7700-l3-cache - starfive,jh7100-ccache - starfive,jh7110-ccache - const: sifive,ccache0 @@ -55,10 +56,10 @@ properties: enum: [2, 3] cache-sets: - enum: [1024, 2048] + enum: [1024, 2048, 4096] cache-size: - const: 2097152 + enum: [2097152, 4194304] cache-unified: true @@ -89,6 +90,7 @@ allOf: compatible: contains: enum: + - eswin,eic7700-l3-cache - sifive,fu740-c000-ccache - starfive,jh7100-ccache - starfive,jh7110-ccache @@ -122,11 +124,31 @@ allOf: cache-sets: const: 2048 - else: + - if: + properties: + compatible: + contains: + enum: + - microchip,mpfs-ccache + - sifive,fu540-c000-ccache + + then: properties: cache-sets: const: 1024 + - if: + properties: + compatible: + contains: + enum: + - eswin,eic7700-l3-cache + + then: + properties: + cache-sets: + const: 4096 + - if: properties: compatible: