Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp106443rwr; Wed, 19 Apr 2023 04:12:30 -0700 (PDT) X-Google-Smtp-Source: AKy350aZlLAjc0LqHKsKx5Ghy32kbqUDQjQFdLfQwJ719ApQ0q0zT9VVPAfiXJNdgjh1rTVmD/eF X-Received: by 2002:a05:6a20:7f87:b0:f0:e2eb:64e7 with SMTP id d7-20020a056a207f8700b000f0e2eb64e7mr3173430pzj.50.1681902750454; Wed, 19 Apr 2023 04:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681902750; cv=none; d=google.com; s=arc-20160816; b=Ubv2s7g9oKrNHDyyVkvw+sJDPAmW1TucVo7fDxp3x5bdV+lRSMlblXHradWISlcuy5 Xs/yj0sv9soQPSC39xKPlfQlNtKtBeoYrTEvLD1W8umoIhJXGIPu3kfSCkhSDboCuq1v eutaP1YVcsk/mh7B0R7adnD76GBU4h2RguE6zGSV8JbuDkl5+guYxHGZ8XdzYX0bNODd oN35RZegT9n1qavswiL6eeVZ8iWixQXyl9qrjDCtQg1T3urrJuL/m/kGwni5/2Qin3L9 aYlcVc+IJ0HEX6md28rym2ropdxIdyg3EymTSHXVtqF0KjJBI9BIcfwxQMaU/UDi2DNJ 61iA== 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=hTUdiTLb+sfXCVtetWlAgKKAKfkEOw5o717LduaEZcE=; b=aB+2t6iqG+89rPiVCmPc86Vpkc32f6CX4t59DuP9feAAoChskaGroVwEn7qaPNfVqW kp+LsJKQBxGVa5l67qPq+4iHKpZ0S8a+5szAGeiy29O9QEgIXlmFOLD7BkWx1tad3IW5 Z9lLTJ8f7JhRcfdz5SsXyyRmLmAwTQb1bNP2TJas0KWOAfCxr5nVz/PuiZSEITuh4+lZ YvInZQyKArCyOytWru+BOC0g0e8aCBqPHQuyq+arHYRfUFl4xSumrp5Ly5KGxVImKaHU aF4/9z4m1JG9Kf3/Xfc22awKYBK68G1a1atyLlRqG/OrbpUkO3qM9RdTN0B/ZNUiKJvv kWdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=xsELkwof; 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 z22-20020a634c16000000b00513234112a7si16407709pga.883.2023.04.19.04.12.19; Wed, 19 Apr 2023 04:12:30 -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=xsELkwof; 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 S233082AbjDSLMC (ORCPT + 99 others); Wed, 19 Apr 2023 07:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232953AbjDSLLV (ORCPT ); Wed, 19 Apr 2023 07:11:21 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70E6E13FAD for ; Wed, 19 Apr 2023 04:10:40 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1a52667955dso35501915ad.1 for ; Wed, 19 Apr 2023 04:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1681902632; x=1684494632; 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=hTUdiTLb+sfXCVtetWlAgKKAKfkEOw5o717LduaEZcE=; b=xsELkwofXkO/cQsRhRzGSc4LNBA8d5ZwB4JnQLYCH4ZaGVuBP+nbM8feALhCz/sIMz MyuAV7iJQoGOCditkX7ry8YYdS0Nawh0XkuVc25RdlnISTlsepB5DEmsSviF6P1Gq8W4 sluFvFa7S6qFMHylgIRnoWU+6wHZRBJBUaeX7Sg9yxxQWXO1Q99it5uMYgycZZad/mrL L8gpu72e7D0hEFnYS3yPVgIo9Q/KR5HvUJJ8GoySwWCZyTXYyPT6AAPNupIgcX6fR6M5 jjYX2ppBNUoKa7qiG/Pd8D5X9175xTqsx/8xUD1d+dBmEDXhg71wkyYYTOIWDsckkHdb 50sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681902632; x=1684494632; 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=hTUdiTLb+sfXCVtetWlAgKKAKfkEOw5o717LduaEZcE=; b=k6ZKBUWBof64kBxTSyCMk/O3cG4vjLI0OU3i/zOKExiIgQQW3TRGX3sNTJJ7rylBN2 GbsOfqGNpyKvlb7syq9j9eh+KlNB8bf34SndEjNeEQLrPH+uxA+H7bg2zD9fOUVtTkcY yD/7u9RVWM0MDi70lOfK7fZXsShz+ZzFvSCzLwCZZ6ll3zLx1rG5v0BVLVdvGYuvrS4J BShHm70AcY+yeoHFvsOilZC8hzpMU0MEtudrQKe0F08WvUCWYU1xRfLpxvuamZ8KlocV YPFGgTSt7dJks43X4p1qw8zKTNBTDf1Cawk//h2ftwZyf92kkuXboesGvfjBwAorOau5 +iOQ== X-Gm-Message-State: AAQBX9cMxrkE4c6TnSlgdOFhcSkaUm0uvAqEa90P/U0k1rk2GH/DXyaB qEtXrEXDFkrgBdNILyKOB+H98YHQZWrn7z9iEQM= X-Received: by 2002:a17:902:b60a:b0:1a5:5e7:a1cc with SMTP id b10-20020a170902b60a00b001a505e7a1ccmr4412371pls.58.1681902631792; Wed, 19 Apr 2023 04:10:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 04:10:31 -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 15/21] DO_NOT_MERGE dt-bindings: soc: add Foobar SoC memory controller Date: Wed, 19 Apr 2023 04:11:05 -0700 Message-Id: <20230419111111.477118-16-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 memory controller that implements CBQRI. Co-developed-by: Adrien Ricciardi Signed-off-by: Adrien Ricciardi Signed-off-by: Drew Fustini --- .../soc/foobar/foobar,memory-controller.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/foobar/foobar,memory-controller.yaml diff --git a/Documentation/devicetree/bindings/soc/foobar/foobar,memory-controller.yaml b/Documentation/devicetree/bindings/soc/foobar/foobar,memory-controller.yaml new file mode 100644 index 000000000000..859ee52680d5 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/foobar/foobar,memory-controller.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/foobar/foobar,memory-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Foobar SoC Memory Controller + +maintainers: + - Drew Fustini + +description: + Foobar SoC memory controller implements the RISC-V CBQRI interface for + capacity allocaiton and usage monitoring. + +allOf: + - $ref: /schemas/riscv/riscv,cbqri.yaml# + +properties: + compatible: + items: + - const: foobar,memory-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: + - | + + memory-controller@fff12000 { + compatible = "foobar,memory-controller"; + reg = <0xfff12000 0x2000>; + riscv,cbqri-rcid = <64>; + riscv,cbqri-mcid = <256>; + }; + +... -- 2.34.1