From patchwork Tue May 30 14:48:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 100922 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2241717vqr; Tue, 30 May 2023 07:57:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4cK6SmEUiKGfIFAxYDeg9cA0kgQ9DU+gg7qcbIYxf6l5nyZeOdnX1FdUMBFqkjlzGQTM83 X-Received: by 2002:a17:902:a98c:b0:1a6:b971:faf6 with SMTP id bh12-20020a170902a98c00b001a6b971faf6mr2082961plb.35.1685458671358; Tue, 30 May 2023 07:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685458671; cv=none; d=google.com; s=arc-20160816; b=CmrXdT+3OhKEORhGetv0QhYi7WD8sETe9lL3SzhEy8zoH5PJe6zJdUa3FA9wdjseNS ap2R5eUMQhrz9bmri30XN97Hqcrv9Mhdrsn6YbmpSYqo2xoTrIzHsUxyOiw3LCWS3DYc dHv2Y17Jy6Yq6OhFf0kZ8ahJDZVOGjvB+bIFGbXziXtaPp/gjEF72Y0ogc3a0UD5VAA8 eRJLf2To+cOje65atZzNjbDZyzGqI3Rtw2IMl1JRe6I7vhTYPwvNx9dY8+W22AviETim VppN4gm9rHbuVTWeaSPiWSfwef5voqP65zpHqqvPqjuWuv8yML8fAanPEF/524QAItTX 5oGw== 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=IYFfkWfA3QoQgVvoKYaWNHgXlyKDc3MLd+zuCLSKJyA=; b=NZ9AAjnXDxUQNZ3Qu3kYOUqFpVLVJXpLO8E66xG2nLMyn2k3OOh+UVahGIw5BqaoKr 0BqqGbLJiIbSrDW4WkTTOOLzz0+eg4GqMnPidLNBMef6h/vA+GgFdCp6z1a46LhZkXko uLQNfDw+GzVGjwfWPvjzHEp4qmGnTRGDEpOXigrhpF77HcyBelzzZAz+hHibkB7PJkab MDmrHWcyYJYmXwxCAapByUBX98v+nyiDcWZPzxgCH1K0nnB/tqHyqwaV0qzPJCCPE7VX vSezX7UV71qDT7exRt1BGHW7Sjh47G01kTedWRx4rFzxjG6OGDrEaYVild51PA54urdl 2aug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cNmu0nPg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020a170902aa9500b001aaccc51d45si6770494plr.398.2023.05.30.07.57.36; Tue, 30 May 2023 07:57:51 -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=@linaro.org header.s=google header.b=cNmu0nPg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232795AbjE3OtP (ORCPT + 99 others); Tue, 30 May 2023 10:49:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232665AbjE3OtJ (ORCPT ); Tue, 30 May 2023 10:49:09 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C07C9A7 for ; Tue, 30 May 2023 07:49:06 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2af2ef0d0daso46807481fa.2 for ; Tue, 30 May 2023 07:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685458145; x=1688050145; 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=IYFfkWfA3QoQgVvoKYaWNHgXlyKDc3MLd+zuCLSKJyA=; b=cNmu0nPgKOyLJPsM0EDcisLnunATo7htMuua8fjjb2dhKb/bdEMfj0asRSzmGsuh7P 44j7Vq1bzp6YWznZJLTZKq9bX9Z3Y91EY6efqTnbDcYlS+17WXOfAJyDYBBeO0P2PLpY Ew5/3U+6ptw6SD59IJt1h2M8GgCyLrFIuSdA0ZRwApWRnnHYfCd3qwfbTFeLjA8jUcob zagphslihs9ef2gj/4YWtdblbVQEHcZE+ZmFnDSeLxgPfiZfYLR2qh68RjdNaRYaKsgo ydoZ+VXgm0D+DG+h+FoHCLSaTTFTZyv5Wjgaee+3q2hGOMaZfSi14hWdrFXBSP52xi4+ P6YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685458145; x=1688050145; 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=IYFfkWfA3QoQgVvoKYaWNHgXlyKDc3MLd+zuCLSKJyA=; b=QLMkRIzLpyW8VxQpC3PbNBUCzBlfE/j1Dca+EBQPkrz9+A/tIw1hiRcAn4dVmJp97Y PBq6hVy8STdA6/Xqmf7kyC+6Ky0RB1J7Zk9Uu+bWN/c7P049HrQco8qDOeNlR/rLEAmG mtmi1APK6893qzXG0wwbBWoaCzRT/7UYInnMJoaxltTG02CF5TvyyQPhDcpyduoEV9Ti 4Jff42Y6tKcVb4TcLdAmOLvELDDb3KLqErLeuOeO9k9u1Pa+JUQ7/8GF3YNLWbaJ4qbG TPftHE74TcCKUCJ3e71oSh+gjf0qSOeHJp1ItTTckYR8EeSYQM9Ou7kpGnXU/ysBcZpJ HJPA== X-Gm-Message-State: AC+VfDz1BeALq5IMqZi5mIbILULy9L+4tYU5i6N1lwr3GNvauTVs2w5N 10G5aNs1uV2qvq/49Vb+6XYkeA== X-Received: by 2002:a05:651c:87:b0:2af:1fd4:9011 with SMTP id 7-20020a05651c008700b002af1fd49011mr906793ljq.34.1685458144944; Tue, 30 May 2023 07:49:04 -0700 (PDT) Received: from krzk-bin.. ([178.197.199.204]) by smtp.gmail.com with ESMTPSA id q21-20020aa7cc15000000b00514b2717ec6sm631283edt.28.2023.05.30.07.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 07:49:04 -0700 (PDT) From: Krzysztof Kozlowski To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Alessandro Zummo , Alexandre Belloni , Srinivas Kandagatla , Mark Brown , Dipen Patel , Wim Van Sebroeck , Guenter Roeck , Dilip Kota , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-rtc@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, timestamp@lists.linux.dev, linux-watchdog@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring , Tony Lindgren , Oleksij Rempel Subject: [PATCH 3/7] dt-bindings: rtc: restrict node name suffixes Date: Tue, 30 May 2023 16:48:47 +0200 Message-Id: <20230530144851.92059-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230530144851.92059-1-krzysztof.kozlowski@linaro.org> References: <20230530144851.92059-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767331511696217219?= X-GMAIL-MSGID: =?utf-8?q?1767331511696217219?= Make the pattern matching node names a bit stricter to improve DTS consistency. The pattern is restricted to: 1. Only one unit address or one -N suffix, 2. -N suffixes to decimal numbers. Suggested-by: Rob Herring Signed-off-by: Krzysztof Kozlowski Reviewed-by: Tony Lindgren --- Cc: Tony Lindgren Cc: Oleksij Rempel --- Documentation/devicetree/bindings/rtc/rtc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/rtc/rtc.yaml b/Documentation/devicetree/bindings/rtc/rtc.yaml index c6fff5486fe6..efb66df82782 100644 --- a/Documentation/devicetree/bindings/rtc/rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/rtc.yaml @@ -15,7 +15,7 @@ description: | properties: $nodename: - pattern: "^rtc(@.*|-[0-9a-f])*$" + pattern: "^rtc(@.*|-([0-9]|[1-9][0-9]+))?$" aux-voltage-chargeable: $ref: /schemas/types.yaml#/definitions/uint32