From patchwork Tue May 30 14:48:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 100916 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2237503vqr; Tue, 30 May 2023 07:50:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4aD1tBbBxL8rODZkX02at2i2uF25wYJTYEfM2xrcQTcxn5afrAlClZ0CWotwpSgppVz4Vi X-Received: by 2002:a05:6a21:2c97:b0:10e:d4fb:b031 with SMTP id ua23-20020a056a212c9700b0010ed4fbb031mr2101542pzb.61.1685458239635; Tue, 30 May 2023 07:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685458239; cv=none; d=google.com; s=arc-20160816; b=S4oxQld6x6DBmqaYTmm9YUO2tZNghJRQh6W6mDjMP6q86A8/UyO1vnwbUXaqnYgMEG ZpX8xupr1kNCi0MDU6XkQrWaN0jdltXZXCOCNQNz+XpJ1QmvBermYWNgLYqawnJYT+Ny Z8TBpE2q3Z4GpVNAocB4SGgUrMOQfjFBJFjllOPDYaulOSMXNDuiE7VTrolCzPCU4/s8 vJVcskXEQm+TMaaBuNxmfsSQPYgyAIp8v+xxIqF5keLkmpVDd+ucmZyCR1xBx474MdwV 4U/U2t3RLWfMR9KDJaqn20uOpFfMMmIZuNYI+C25XoS0IA5SEXxdd7F00LvFutJa0nYO 8UFg== 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=W1z7LKWFPOmfXdAKBPrDZn05nG/m3OsiksUdI+BUoo8=; b=sK+1rfMJotrkzQChDZHubT5/ItG6UgaIU4KvERHnwU3qGJcbN7YGXlvX/SlK2f66hO Ky6dHsH0xJywTnBROqiRwemzYa3tMHoZr5rLsThZnmdYoIgKZHZr7j6lWAXdO1GGlx3v MLaJHpy/JOpQK1QRXjbB+pieXlkZmxjibKIVr15HLdZ9vGMaKoJld/Ri5PjTkWnLJpj5 VDXsJ8lNuHmJ4e8VYKwfUFHjKYSeFgTg8Vj6aqD4ucBEGXRs3eYmlKmB/jKwJqCxXl7R V3CrW2Iwav/E4KL7oWubXkGgvntvJfIzzOfZa1fdMKPdG7vVsXbAzORty1dT4ZXgDJ8C mmGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=au3kKg8W; 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 p14-20020a17090a2c4e00b002566f56e9aesi4512092pjm.105.2023.05.30.07.50.20; Tue, 30 May 2023 07:50:39 -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=au3kKg8W; 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 S232996AbjE3Ota (ORCPT + 99 others); Tue, 30 May 2023 10:49:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232822AbjE3OtQ (ORCPT ); Tue, 30 May 2023 10:49:16 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91157107 for ; Tue, 30 May 2023 07:49:12 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2af2b74d258so49133281fa.3 for ; Tue, 30 May 2023 07:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685458150; x=1688050150; 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=W1z7LKWFPOmfXdAKBPrDZn05nG/m3OsiksUdI+BUoo8=; b=au3kKg8W7QqZlM184Mf3plRAjYuxNOiScsb1NkoNQrKhB+QKk+18S6EtrPRE58o5Rs Q1/3o2Mjj9eY0FEkE53VAKcNAbApZFdG5q9x7+IyOwzMudLNMFi+sq4W0TzNG2QkGwHO YnGuPKIwQhukjOLKYlXmRBvdNvqokIHxeYfj7hwnQ4hepXuizdGpVCLTdZusUyau/TGP 3Vj4v3F4Sg6f3/X2GB+44fSqmHH9eyb+nkIEeJFVpK5Ifb5peDRxxdT/JHpLmKDfKEph /287kJIavDJMaiQ4wsKVKTqboEp2XQfs7llNgs/6FY4YQQ0C6Fz2iGXVoBHlZ2Iep6Ah ZkVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685458150; x=1688050150; 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=W1z7LKWFPOmfXdAKBPrDZn05nG/m3OsiksUdI+BUoo8=; b=l9m/KrwI5Cm1Hn6nfrAZ/7CQ+TuWLEPWGrjRN4kr83WiCCWDRbd8CZ+y+9eMEg12I6 a2Nte3AbGx3DyFMZUZAne/1R6XQ7ATOIpYlxSHNIr6WgNlUyrRekSxylVM6WDJmgajmQ zBLf0iHbkgXszSsM3yf1tHPu+sZdtoLQ7pN3znlb0jhXzlla4VlnBw4N002iORJjxEGd wX5f+QO2R79kT/rPicJ2QGNjfl4l7Tg49wy8rB8zDyODy5JYFE0Rk0XEMxup8HvOE4QL vmo1KCQajbGnekISl8dQ7ajUHhbkunns0Zyfmsql5K5Vg6UMDBfR7a/uMEuLnUFIP+4D qieQ== X-Gm-Message-State: AC+VfDxCSLtUVIAMe0WJwhfDXrP/jctpaOb9Z6sUhDw4Uw6U8mbhMAv1 8lGIW5A2WffHp+bBJRth3Rxkpg== X-Received: by 2002:a2e:8382:0:b0:2ad:a12d:e458 with SMTP id x2-20020a2e8382000000b002ada12de458mr1016018ljg.41.1685458150736; Tue, 30 May 2023 07:49:10 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 07:49:10 -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 5/7] spi: dt-bindings: restrict node name suffixes Date: Tue, 30 May 2023 16:48:49 +0200 Message-Id: <20230530144851.92059-6-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?1767331059261721784?= X-GMAIL-MSGID: =?utf-8?q?1767331059261721784?= 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/spi/spi-controller.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/spi-controller.yaml b/Documentation/devicetree/bindings/spi/spi-controller.yaml index 90945f59b7e8..524f6fe8c27b 100644 --- a/Documentation/devicetree/bindings/spi/spi-controller.yaml +++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml @@ -17,7 +17,7 @@ description: | properties: $nodename: - pattern: "^spi(@.*|-[0-9a-f])*$" + pattern: "^spi(@.*|-([0-9]|[1-9][0-9]+))?$" "#address-cells": enum: [0, 1]