From patchwork Wed Apr 24 07:58:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Yeong X-Patchwork-Id: 13641477 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 12C03C18E72 for ; Wed, 24 Apr 2024 07:59:42 +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=umyjsTQMtFBckOXUQlM0aiSlEfiB/JgTw8ZxKAj/Bj8=; b=ieuQNBt9FM2gEn GGbMPyQL9SCOP1UfRImW9myjQUjq9o4esFdapMRrNmG+yte0KgCZy2lAw5xVTjl9iPCUzYy+osOiu cCFn1PEykgjFjS81Y5jHuknQFIjFxyiC8fpU5/RUKrwwCbSUNsBsuT4lh1YCagJvR12LkwrXUnK8p TW9oM5aDKKgg54mUoZbBZpnJVgW0Eb1G+JnD05W0DgSLdtFeMbQZzHkoG+DkHfKoK5XicQhXa1RM5 TdCT0pJ5o0dfDRNNTaHQcj2QelJIkHnn7EzDU+IyLCr6IJdKvHFjHpLkldxq8TKvimMiyUegqlWTF 0FN5XZGjk03W6qDQhhHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzXXW-00000003Bcm-2N2y; Wed, 24 Apr 2024 07:59:38 +0000 Received: from mail-sh0chn02on20700.outbound.protection.partner.outlook.cn ([2406:e500:4420:2::700] helo=CHN02-SH0-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzXXP-00000003BVH-3AHE for linux-riscv@lists.infradead.org; Wed, 24 Apr 2024 07:59:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N3Kn6fBCeMWR0n7fV/Uf9LVqTJjPCTO9iKv7AKKVtMV/4IaSEgIZlCmLDNGTO3vJf9gLANbZbolHLa0dgIgdhnI7ugG3jl9s18Y7g2Ezjw88ZjawFsOJUlzd+2RIGv4Nunckv/fl9QmFIMgaKW/w+Zp9j0w0hnzpZAdT+G5b2XK8tc3diYayzPg+lDb5e7p+jdkMtC63Wn0rMeQbfpzI1ybCbCZAggf1tBYt183wjet89nEBla6b7DyxUfTiio3opjfXM+Ic5quOmLI5SQR8HoG1DdZMnyAHTTVQVadkLwdpPOg36ZQJYk8lFp4gcd12kqVpL9nOHJ/Ge2w3+8ElBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UR6JvOax0G0YID2cOXh0FKMYs57WEA34jlTT5teKN64=; b=hptbKkh79xxYdSbxmHmj+pONw2lSKcy1FIYQbLvI49eJNldmvTYkHBg8Zpwaz8tqOJ79xKEOqbwN5CbB52BZ1g1VramBMwHoj8yE+xRFvJWB1qXFsYjG7l2d3RP/O2JBIMer7zBrFzxaBxtDqZxsuvLskB+yw8Pp6XENmmgmMmalYliMJtqSIJNwvFdovWhgA6WxkoDZHQGb2CsvjUZS+B/tl0a5khaZLQGTGlAO4zHMJY+wbTn0ymWkR30/ewaI9lwLmBWgSxhhDs2ztN6g5onXaqx3EVlfb5oTnwnhfVpZX8sAPOPVx67KVfpBFlOFz9XXXl+28c54L5S7Fxj5yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from SH0PR01MB0841.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:20::14) by SH0PR01MB0460.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.33; Wed, 24 Apr 2024 07:59:25 +0000 Received: from SH0PR01MB0841.CHNPR01.prod.partner.outlook.cn ([fe80::e0a:f88a:cad1:dc1c]) by SH0PR01MB0841.CHNPR01.prod.partner.outlook.cn ([fe80::e0a:f88a:cad1:dc1c%7]) with mapi id 15.20.7472.044; Wed, 24 Apr 2024 07:59:25 +0000 From: Joshua Yeong To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, conor@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, joshua.yeong@starfivetech.com, leyfoon.tan@starfivetech.com, jeeheng.sia@starfivetech.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v3 2/2] dt-bindings: cache: Add docs for StarFive Starlink cache controller Date: Wed, 24 Apr 2024 15:58:56 +0800 Message-Id: <20240424075856.145850-3-joshua.yeong@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240424075856.145850-1-joshua.yeong@starfivetech.com> References: <20240424075856.145850-1-joshua.yeong@starfivetech.com> X-ClientProxiedBy: BJXPR01CA0048.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:12::15) To SH0PR01MB0841.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:20::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SH0PR01MB0841:EE_|SH0PR01MB0460:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f6bdcc4-cb93-4e7e-ace3-08dc64347592 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FnStteJ3arhRaxj1TjzUGu6noHj/2TvqzNo2CIBu02oks6vKxBrf8dGc2Rc0nPWjvKU8xkO2OHMUdMn3v+X5wFJlWJLujKS8NXZ83B8qmQ9O6Dcz8k/+oIAdmLjiSorBSH/Mo0qEIgmTckC34hZOpEBGgxF6kK6d05MtsxyHIn4HYlMsXylFr6GBY/rEkJQoCIARzX0Ca6r/pEq5D5NRSiQKg5zYThqEHpPcncKDfRhlWMxjnmfCrJ9ImGKxCu0/9xPeVWQ1FIeYSMyKsE+mLfud1DBeXdBLteXnz9Q28b6AHptlSgPm6J9CFWnQjlzmsMga2dfapA33/4YmhsxmzSDOkDAHUIz0hlZPk0xyeiGZi3p3LdOOO5eCzKbO73z9wvp0R/rGZYNUUTRWqd/qM4WVTlxSwEVb0J10w6B4rwNVML9qI2J8fPn5YB0gVq0sS0BQE3PfFMCOc362vVLaEITME/B0d1g0cBWw514qNaQPPYmMbEjkYkK//hG5KjSfYZoawWid5FlldmPODb/P3atU+99ssSQtYWagBzzN8AUjzYYz2oRvIs6u1CE4cHEXQIV+pHo0Fmq4QOKmTjwJEUHbVc1dEj3uEQ57TpUP46Oav4q/RQ0kAK05g+Awpv+xGn2Fr85GfBUvpqHqleLfvw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SH0PR01MB0841.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(366007)(52116005)(7416005)(41320700004)(1800799015)(921011)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m/FluHBccmZjwm/eLAzbQ8kHihT061BA72YiOS0zGYuaaAOvb3WhO9Xe/Gy0FTx1Doy/xHhZTu3HZVSpTyrVkpaYI7kvs12gcRWMPbgaVenkZCmSQrbukhbGwbnCzK74HW0lTIhfCdCN6l5OgIQU3t1ZmXLoeLnK1MvgqBlQos0Qq+t+Gt0jZpDlVtedhcPeqy2IbGZoRO3HUq5KVZaUXOeI7Fxw3jSRVxDCoQCjzO+dXivZijCqx5lebFyC+XhWQxUeUEMLC5393iFRHIsj4mragR7WHapBMrsJps3vXPR4jch7fB4A9qXGpHY/Ev1LvuTV2ZVeZsstJKmXRgsPRT8ePii57zGgCrg6OEsWjbb1KJS2JeQCuDpbPg4zXcB0VjWtt3zXLmBvdD7OhEbQ/lc4PCcl+CN+cVD+nmWxDIDWlOCPUQCfD/foOFeGji2Cuz83ovzHLPb462yFJnfPUQuh2ps7XBnlV78NLLQybUF2LsGyQj8M1ZoWb18Wq63GGJzXsbN6rQ9B9sIsCje9c7lcxJ9Pp8yOBgzb9oTF76nYmxCJpQ5HizekaRAaz3IqMIJ75PfhQ6hFy0ajN27FNWDj86ndFYGXlldku4YPAr0hLK1q7cnB2hJP0zKALOe1YwiEQRDFgxxYR+Y= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f6bdcc4-cb93-4e7e-ace3-08dc64347592 X-MS-Exchange-CrossTenant-AuthSource: SH0PR01MB0841.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 07:59:25.6194 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +uOilfcSRANc591JY4yvfRq/SYFLFfMICxy81M/C/8v70TixVG6xtIqbp9HEe4XRaeG4tQz7rj3zdKeUesYm76W28+nyqqVYfsQp8f0UtXk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SH0PR01MB0460 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240424_005931_948899_D30AD4F2 X-CRM114-Status: GOOD ( 10.90 ) 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 Add DT binding documentation used by StarFive's JH8100 SoC Starlink cache controller. Signed-off-by: Joshua Yeong Reviewed-by: Rob Herring (Arm) --- .../cache/starfive,jh8100-starlink-cache.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/cache/starfive,jh8100-starlink-cache.yaml diff --git a/Documentation/devicetree/bindings/cache/starfive,jh8100-starlink-cache.yaml b/Documentation/devicetree/bindings/cache/starfive,jh8100-starlink-cache.yaml new file mode 100644 index 000000000000..6d61098e388b --- /dev/null +++ b/Documentation/devicetree/bindings/cache/starfive,jh8100-starlink-cache.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cache/starfive,jh8100-starlink-cache.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive StarLink Cache Controller + +maintainers: + - Joshua Yeong + +description: + StarFive's StarLink Cache Controller manages the L3 cache shared between + clusters of CPU cores. The cache driver enables RISC-V non-standard cache + management as an alternative to instructions in the RISC-V Zicbom extension. + +allOf: + - $ref: /schemas/cache-controller.yaml# + +# We need a select here so we don't match all nodes with 'cache' +select: + properties: + compatible: + contains: + enum: + - starfive,jh8100-starlink-cache + + required: + - compatible + +properties: + compatible: + items: + - const: starfive,jh8100-starlink-cache + - const: cache + + reg: + maxItems: 1 + +unevaluatedProperties: false + +required: + - compatible + - reg + - cache-block-size + - cache-level + - cache-sets + - cache-size + - cache-unified + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + cache-controller@15000000 { + compatible = "starfive,jh8100-starlink-cache", "cache"; + reg = <0x0 0x15000000 0x0 0x278>; + cache-block-size = <64>; + cache-level = <3>; + cache-sets = <8192>; + cache-size = <0x400000>; + cache-unified; + }; + };