Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp106307rwr; Wed, 19 Apr 2023 04:12:22 -0700 (PDT) X-Google-Smtp-Source: AKy350aqacdVjHwlDPPi2HLaoyL0lQamsT4gpl+BZi+VXChym4E5wPKTHCPMsb3QUcUqrsQpMbDr X-Received: by 2002:a05:6a00:2306:b0:63d:481f:8e88 with SMTP id h6-20020a056a00230600b0063d481f8e88mr3014803pfh.6.1681902742153; Wed, 19 Apr 2023 04:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681902742; cv=none; d=google.com; s=arc-20160816; b=MOjsROxAllFjJWLaAyb7613vHsHMcJnyMIO25oRI7Ne9TkpcQ9dYVWrXV3AVMJ0V9n dqzcaNPjwrTcFfpJ8PXGvGTbesaomjUUnskIxqbhZ9XdDOcv/dk3d7eAW/BjFCyPMcxj xTo+U0UhnRRTNqSAQXDfdRLvxFYNwsvZcstaCsopfB276hp/l4ng6W7+s7PukB1YJvSS QjgofarG1RmetfbQav2q+WmSFDdbJ8Z72CNrjlo+pK4h9IfeuvN/TU/L1lc0DxmoUbD2 +sCAFVsb1WvQnn2llQDqWfLFyfq7CsobsKfAaQi1QKzSqIZFlFmylVOuu+qLcSatprXr 1qqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z6zQom7c9ZPxaL0AlvEMhKoZ47HVwA0KXR3RYZHyFgk=; b=qtIi1Ll06IsZEY2O3ujhY/N8IL9MCOH83l14E7TgwlI+2c1i9XtvTfTy/cgjtTK0d8 lXAGY8YdluxG5v914ZwNsYBDgpGfVpXt4idmg6+KceF1sw1mt5F/z1UjenmRVQpI6C20 ERszC4pDmXUcdi160pk6WmKN0HQNwJ6ZibBZEkwOkMTSBSGIXGrH5PhMdKhcSLOqfYZm mJg5xg001MroT2bpcr5ihCC4gIK1kTOxUTluwpYs2M0a3Au6wDwyfhrhd8JIxM8rd1k4 +xWDSU7cix8LLNUp2dtUrcganBGXuTvWNteNPAE1rRxNiDVRGopVPFnLzbEKUQ/KUyDh MqJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=way4ScdI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020aa79812000000b0063d2d6912d6si5284723pfl.245.2023.04.19.04.12.10; Wed, 19 Apr 2023 04:12:22 -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=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=way4ScdI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233059AbjDSLLy (ORCPT + 99 others); Wed, 19 Apr 2023 07:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232949AbjDSLLU (ORCPT ); Wed, 19 Apr 2023 07:11:20 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6193B13F9F for ; Wed, 19 Apr 2023 04:10:38 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-63b73203e0aso15253989b3a.1 for ; Wed, 19 Apr 2023 04:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1681902630; x=1684494630; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z6zQom7c9ZPxaL0AlvEMhKoZ47HVwA0KXR3RYZHyFgk=; b=way4ScdIS96YRKdHcgBpyse+tOSSXOie7JmzQ3ruykWd+bvImdobFO37hhT77+L3/U kaqojTkCN3wGLtbhwA90MgVOAgFVGf4Dedela1TNzHBvJRZjXQSXWFwPwduhVj6TPdzX GIc+Nuk7F+h6MKBmdyl2qvDlk02/j2I47Ppo5mo1ZpuQIvpD572EFN7U+sOSUY8XSxOw WOi4FCrreEQEdHwpWijIg+JK2+Lnl3ALjpm7l3mTxtaHBsOCVR7Bn5fo01aFxF/GJUow MnGtG2IiDAagEyhqLKjTxyj+uGdYLVG4BA2My74jN6jA7ZYKA/Gg5Wy1kJphb7t+NVe8 GiJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681902630; x=1684494630; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z6zQom7c9ZPxaL0AlvEMhKoZ47HVwA0KXR3RYZHyFgk=; b=Fw6yQt10IeI7NtFy+ZHFZSQ3V6hWjQpRbrL/3ftJRYBKF0BGxeZzGpbx9L3l1zKc5a r79WBkjbVPppV0tCtcRQm/qGiPS35/8TmPqlPT8efRJMYGvtL+6NZM2pNh1IaY1EEQSP a1UrNUD52AnH/gw7m6s107Tl+WBRc+sz8sXS6/b6iwmgR2EEBXRTMaJINUCp0cgSiv9U 7N638RPC/l+kbgQRHi97hCuLfP9AcLR+FAZR7UeEW1b8hHGwDuMh2+a/0cHMaiJ6Epd4 EnsGm+rGLle0UrcRlDSK6VjUnXCVvHz1RwtW0KlLNwn+MpfpIHVcZlr8E0Qv//4vLuX3 hcSQ== X-Gm-Message-State: AAQBX9frQqR6Y8662fCT5ZaCPk1aXUm7yW3pet4rBFhn8GAeU8dwGKYF j2qtgUERXCGaipORU5yy9IGmlQ== X-Received: by 2002:a17:902:dad0:b0:1a2:a904:c42e with SMTP id q16-20020a170902dad000b001a2a904c42emr1574829plx.24.1681902630432; Wed, 19 Apr 2023 04:10:30 -0700 (PDT) Received: from x1.hsd1.or.comcast.net ([2601:1c2:1800:f680:eaf2:1d7a:7338:16cb]) by smtp.gmail.com with ESMTPSA id g12-20020a1709026b4c00b001a24cded097sm11180774plt.236.2023.04.19.04.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 04:10:29 -0700 (PDT) From: Drew Fustini To: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Conor Dooley , Ved Shanbhogue , =?UTF-8?q?Kornel=20Dul=C4=99ba?= , Adrien Ricciardi , Nicolas Pitre , Fenghua Yu , Reinette Chatre , Babu Moger , Peter Newman , x86@kernel.org, Rob Herring , James Morse Cc: Drew Fustini Subject: [RFC PATCH 14/21] DO_NOT_MERGE dt-bindings: soc: add Foobar SoC cache controller Date: Wed, 19 Apr 2023 04:11:04 -0700 Message-Id: <20230419111111.477118-15-dfustini@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230419111111.477118-1-dfustini@baylibre.com> References: <20230419111111.477118-1-dfustini@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Add bindings for an example SoC cache controller that implements CBQRI. Co-developed-by: Adrien Ricciardi Signed-off-by: Adrien Ricciardi Signed-off-by: Drew Fustini --- .../soc/foobar/foobar,cache-controller.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/foobar/foobar,cache-controller.yaml diff --git a/Documentation/devicetree/bindings/soc/foobar/foobar,cache-controller.yaml b/Documentation/devicetree/bindings/soc/foobar/foobar,cache-controller.yaml new file mode 100644 index 000000000000..6348483bbe09 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/foobar/foobar,cache-controller.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/foobar/foobar,cache-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Foobar SoC Cache Controller + +maintainers: + - Drew Fustini + +description: + Foobar SoC cache controller implements the RISC-V CBQRI interface for + capacity allocaiton and usage monitoring. + +allOf: + - $ref: /schemas/cache-controller.yaml# + - $ref: /schemas/riscv/riscv,cbqri.yaml# + +properties: + compatible: + items: + - const: foobar,cache-controller + reg: + maxItems: 1 + description: A memory region containing registers as defined in CBQRI spec + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + + cache-controller@fff12000 { + compatible = "foobar,cache-controller"; + reg = <0xfff12000 0x2000>; + cache-level = <2>; + riscv,cbqri-rcid = <64>; + riscv,cbqri-mcid = <256>; + }; + +... -- 2.34.1