From patchwork Tue Jul 26 17:07:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 593639 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52FE9C3F6B0 for ; Tue, 26 Jul 2022 17:08:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230406AbiGZRIE (ORCPT ); Tue, 26 Jul 2022 13:08:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231896AbiGZRID (ORCPT ); Tue, 26 Jul 2022 13:08:03 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D59811D0D8 for ; Tue, 26 Jul 2022 10:07:59 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id d8so20940750wrp.6 for ; Tue, 26 Jul 2022 10:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bYJZAGYDWBMT6g6cijNnHNizMWzKxFhdHEezep+ZyM8=; b=JFg1dFPc3aCGDcZqQP/YmQ+ORnEAFxNTUqKD4xP2JSkkRiCAG7wPPGNJAY9a7T0Bi5 lbT/nHrUl9oxPbeYHYpArtD2weheB51Uynj4CrewODHCh4i/2Fn9ytSZ23BEYUXqy6qn eg0vfOgO/RE5D7Usial/oeuuleip50PkC49Ec6N0l9dz2uDVhG/aVF4Qfz18lKfssm2v A2VLmR9zMqkYfvbi0YSM9GkRvjtywJXAMiKfL+GlhwZJ4qbs7Op8Vhk7m/gZNPpSoOaa F3XPF71x+fEpaw/A9zR/1beKiAGNW5WzymfAnnemm878U3duUOjbYW1EGVmaefthEAes diiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bYJZAGYDWBMT6g6cijNnHNizMWzKxFhdHEezep+ZyM8=; b=LLh796GFBY9jWUab8HpwMYhPb3Yc2UPyn+pBhZHHusj8LHv5oEyEm2e17PVGAPXWzh xsLM+TZDQF5ZGETFY7RLHGFqzBa+oskptwnB672Wp5l3pZu57QaG4COD0LlwegYJ27vu hgvq2302//tlYuJ7rpC/lq6tNs6iZ1y2DLz1bUsi/f4+QvRjVkHICaon+gsZoKo4kbdV u9Uv3kEF9+QyKsrorIjvfkIi0UDzd6+irKlrKAFZCxz97d90IjXuHsLMWYV/Px7MZfFI tRBy30VHBK5hPm3N+XZq/pMY2raQdidjLDemIptomxmzAXMxTj6Jh9p6sKOX1PC6VypE V2yw== X-Gm-Message-State: AJIora/NZpRKIXxRJQ19fojOjUygnJXO6jxM7MZYq2MkhXTKWxL2FV+a BZlKxnCCOLGfWyqN2rxrAtuB/Q== X-Google-Smtp-Source: AGRyM1s6BYK8WW9ORA/vI2Ql3Ij0kc9HdxUUm/7aljKXohKq8ulI7JwqqnPKXbr0u5sk9KEbkVlC7A== X-Received: by 2002:a5d:5986:0:b0:21e:811c:f688 with SMTP id n6-20020a5d5986000000b0021e811cf688mr8824688wri.8.1658855278124; Tue, 26 Jul 2022 10:07:58 -0700 (PDT) Received: from henark71.. ([109.76.124.168]) by smtp.gmail.com with ESMTPSA id r17-20020a5d52d1000000b0021d68a504cbsm14859618wrv.94.2022.07.26.10.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 10:07:57 -0700 (PDT) From: Conor Dooley To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Albert Ou , Conor Dooley , Atul Khare , Sagar Kadam Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: sifive: add cache-set value of 2048 Date: Tue, 26 Jul 2022 18:07:25 +0100 Message-Id: <20220726170725.3245278-2-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220726170725.3245278-1-mail@conchuod.ie> References: <20220726170725.3245278-1-mail@conchuod.ie> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Atul Khare Fixes Running device tree schema validation error messages like '... cache-sets:0:0: 1024 was expected'. The existing bindings had a single enumerated value of 1024, which trips up the dt-schema checks. The ISA permits any arbitrary power of two for the cache-sets value, but we decided to add the single additional value of 2048 because we couldn't spot an obvious way to express the constraint in the schema. Signed-off-by: Atul Khare Signed-off-by: Conor Dooley --- Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml index e2d330bd4608..ab6043d9cdbe 100644 --- a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml +++ b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml @@ -46,7 +46,7 @@ properties: const: 2 cache-sets: - const: 1024 + enum: [1024, 2048] cache-size: const: 2097152