From patchwork Wed Jun 8 23:39:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atul Khare X-Patchwork-Id: 12874708 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 484FFC43334 for ; Wed, 8 Jun 2022 23:40:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233901AbiFHXj7 (ORCPT ); Wed, 8 Jun 2022 19:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233790AbiFHXj5 (ORCPT ); Wed, 8 Jun 2022 19:39:57 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB7EF16B2D0 for ; Wed, 8 Jun 2022 16:39:43 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id d128so8824874qkg.8 for ; Wed, 08 Jun 2022 16:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=4bA3l8NMW5sqINO1r/1lERkOkDyuT51+2Y6gy5uYSqQ=; b=mXaDkRe8akpJUduhvftHXEgn4sTGP0eEV2OaV+blJVeqoLJU1FEsR+FaDtaokIeTFo 2lK9ZQ4Btqss0RkOkxW3x432KfPG90WprbHJVWggfQXq/JRB2Eq9KakDyq54PxapLUsb hc6YdA++zF2yvpOYXxd4kGmXlP5tGj74azeYSpCXzSP0+1Vit7dY6IoOTH7fSQqlIj1s yee9YeuMp2V1s6EzXiZugIO5erzHwONKUBaKeFuAOfghBQjn4RHqP8EMP8KRQjpuqLhj j/JyfzkL+nHfEYgjqoadJF0gmOwtxWmOPdx8NHbKw5rZr5qqyAIjW29A8Wlv2ZY5Mo2g 8Bzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=4bA3l8NMW5sqINO1r/1lERkOkDyuT51+2Y6gy5uYSqQ=; b=ZGU82jOnulmmpo3VDL1k8VDHtm/moZzEl6KmiNkuWVTP9yTePB5gDHpKmBZ4dMh13H n5w03SrOanJU/gwm4US+JCDQGIsiHna+2/xPXboyGML10YVN9GvfMZ4o8nhFCcosfp09 dNQWuW3i2tSyTEsLMqk01hNNoBjFoKIu4q2Flvwlz1JeJ4ZWtPMuJU2rU2LcTJAkdPcC 5ToDow1a7xgs9LyQNxhNljNCZOXQy1aSlRf8yc+pHbQ1FDtHT0pzsehRUaxDGC566H1E 6UmWKaD1HxM5L6f0G/6c0gxEHZvZxTKVrSEeax/I7a5aOc32GV0mzjFSaaSIYI3IapLH +EiQ== X-Gm-Message-State: AOAM530PFIMZeVMlU4upjTxnFPbNv5tbRpnyx0Cp5J7q9BmELz9eAvyU BWfAxlBEXnm+6OxV8BiNT5Wi0dtQW+a5E4yrjwIuDA== X-Google-Smtp-Source: ABdhPJwxVJsLtov+PvfiuEXEacNmD+Ogc8ArgM4bwUX+jOqXRNefAAAkqXzWVsoVgFJ+AB4KhEa/eKHzBy+/FzxL2p0= X-Received: by 2002:a37:9b09:0:b0:6a6:b23e:8534 with SMTP id d9-20020a379b09000000b006a6b23e8534mr14825420qke.214.1654731582051; Wed, 08 Jun 2022 16:39:42 -0700 (PDT) MIME-Version: 1.0 From: Atul Khare Date: Wed, 8 Jun 2022 16:39:31 -0700 Message-ID: Subject: [PATCH v2 1/2] dt-bindings: sifive: add cache-set value of 2048 To: Palmer Dabbelt , Conor Dooley , Atul Khare Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-riscv@lists.infradead.org, Rob Herring Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org 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 --- Changes since v1 [1]: Rebased on latest version [1]: https://tinyurl.com/yvdvmsjd --- --- Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) const: 2097152 -- 2.34.1 diff --git a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml index e2d330bd4608..309517b78e84 100644 --- a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml +++ b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml @@ -46,7 +46,9 @@ properties: const: 2 cache-sets: - const: 1024 + # Note: Technically this can be any power of 2, but we didn't see an obvious way + # to express the constraint in Yaml + enum: [1024, 2048] cache-size: From patchwork Wed Jun 8 23:39:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atul Khare X-Patchwork-Id: 12874709 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 3604BCCA47A for ; Wed, 8 Jun 2022 23:40:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234310AbiFHXkI (ORCPT ); Wed, 8 Jun 2022 19:40:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232972AbiFHXj6 (ORCPT ); Wed, 8 Jun 2022 19:39:58 -0400 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5CEE16B2E8 for ; Wed, 8 Jun 2022 16:39:50 -0700 (PDT) Received: by mail-qt1-x82d.google.com with SMTP id 2so16098298qtw.0 for ; Wed, 08 Jun 2022 16:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=qQ2RizqshOjzvB3iH/wwzC+NVOLya1wNYtoVU7GxDvM=; b=UAUcZUkiV3VZQTR71Swi9iSLP2iNUgDgdZHzGDfJ1q/EFyU2zOn3EEmie/e/d8eyrk BCOb4HzXqzi46EUby2v8egnyivPyJ7IOpkpbUgurwodmXHMd2jq472sLIjoalYSwQxJO 4YxfrIRcr9xYU16fuugZ8uiVRNZdTkZQ5gpERziLKwu4cAfIa2ye+Iq/EB/Upc+nwD/b Qr8CG2/CjIe6vW19WYbiVvTvibQB/Nc9ON1c0nmBWGmLiB5d0N8DNXHJeZLE4sJmxDqx uOIBbgt+OPOL5bndMn27FUTwT/Qh0ZyJHEztS4IoOPqfcby1uaM4OWWT+HBGl4wCGOtN ReaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=qQ2RizqshOjzvB3iH/wwzC+NVOLya1wNYtoVU7GxDvM=; b=JO8InGGNAdpFeaEDx8/GGGNa/A5oEVDE1gY+b3ocdsqiWef+nmuT530Y1DYzAmlz9L TBdC6Ote78UYZtMzngEhK71dFxainpaP/AqfIIM/2sLlVTsBlDfqOlY7/RubZvTEAUTo P2YPhFEtd8nKYc9RCWX2fAQghMmCpNWoTXech/Af2ws4HF4VzSoRYAR4lRnssn/uD4l4 uFHKPgQdgDD8PNHLPghXCcDNgWVaZiDzg9f0IPzXQugTbGkc4O+Fwo0jebYpJjUCCEtP 4pWZO6JWJ42nI9jqm2j3cr/8hWoJKjfvNSZdR0LofiOMeIRuKAJMOw9LvnSdCpNZG5G/ CbIA== X-Gm-Message-State: AOAM532EFiuTcFDPOLVTtrw3qcxIJp16Ejdy/yFXIMcKAToTHvLKGvCE QYxOzrChsclVme+rLB5hs/22YLWHkcej3BmGHTEAOQ== X-Google-Smtp-Source: ABdhPJwtH2lhtilN1G9Xw/rEf0VpiHf/XCVrIWgDPfCF0plfDp6bJ/WTYHxyxCYLxZFEeB0dzqn7AnVcRfYOD7c28rY= X-Received: by 2002:a05:622a:5ce:b0:304:c37f:e7c5 with SMTP id d14-20020a05622a05ce00b00304c37fe7c5mr29342704qtb.398.1654731589495; Wed, 08 Jun 2022 16:39:49 -0700 (PDT) MIME-Version: 1.0 From: Atul Khare Date: Wed, 8 Jun 2022 16:39:39 -0700 Message-ID: Subject: [PATCH v2 2/2] dt-bindings: sifive: add gpio-line-names To: Palmer Dabbelt , Atul Khare Cc: Conor Dooley , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-riscv@lists.infradead.org, Rob Herring Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Fixes device tree schema validation messages like 'gpio-line-names' does not match any of the regexes: 'pinctrl-[0-9]+' From schema: ... sifive,gpio.yaml'. The bindings were missing the gpio-line-names element, which was causing the dt-schema checker to trip-up. Signed-off-by: Atul Khare --- Changes since v1 [1]: Rebased on latest version [1]: https://tinyurl.com/yvdvmsjd --- --- Documentation/devicetree/bindings/gpio/sifive,gpio.yaml | 3 +++ 1 file changed, 3 insertions(+) -- 2.34.1 diff --git a/Documentation/devicetree/bindings/gpio/sifive,gpio.yaml b/Documentation/devicetree/bindings/gpio/sifive,gpio.yaml index 939e31c48081..787ce7300118 100644 --- a/Documentation/devicetree/bindings/gpio/sifive,gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/sifive,gpio.yaml @@ -47,6 +47,9 @@ properties: default: 16 gpio-controller: true + gpio-line-names: + minItems: 1 + maxItems: 32 required: - compatible