From patchwork Tue Jan 9 08:25:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 186263 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp1516268dyq; Tue, 9 Jan 2024 00:36:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEceFJ0FMOtgJBGAvpRutI+YznmSZDT6wDRCe1sMmFJ8O3ZhSpHwfNtaDOvJE3wJDrFBFij X-Received: by 2002:a05:6358:3202:b0:172:cf9c:882a with SMTP id a2-20020a056358320200b00172cf9c882amr3935922rwe.32.1704789399287; Tue, 09 Jan 2024 00:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704789399; cv=none; d=google.com; s=arc-20160816; b=KBNBher1cfNzb3ZFDBeql4If2o/JNAgVFZzl8lCUpHaXLmZ9OZ6PLGxs+QgdcuN1LK UoROk9hYMBQscUz6EFruAUCQILtIucY+GAwhCvQyhlgIuLMSgNdO/6Gx87XtuW50ksfH 2B3wiBORiricYJo5S/R3uEuiZzXSSBk4/M5cHK8yViLCWStaTWOvoOvEt3MUuDIi3OOT 6wLQhHGtS7oXlZXO3AHjJQbFT63XTHcKmzHaP4K6y0NdYvjitNlRQ+E+ccplN99fzhk6 Llw0AQEYKDhzwHvtx9D2ek95w5VGrqSsXmiWxagTH+bPyFFpbBztLDnbrWkqh+/GZbBP +BOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=bF0e2DswE8UKYjFIoLXFl1yZqY+5X+76YD12d4yPwPI=; fh=eJEJjxHFvoHhne05pWrAtY348WVkQmDBucn6k7gyOYo=; b=0PZMKGV2itUpqOAeO0bxNYTgtUx4jPpU8efxzBXMvwHOYk2gZrmW/890DGbtTkUsZT 93lbHCYRBaeguH+blgvMSGPEGHRcDIPaHMwlyYrHoULj6bYFm432TUDhQ9j9Uf4F5WMm j8RW5myvyqgGkpKmZKfwXFftKRx7y/LYFeMuDA3OnvhucPV+QkzGzw2q+VKhS4JgVftf opgk13HhywfpOlB+bld4AEjOB7E3lqvvPHhIXugrXhClqyI+rPGIAljXPB8gotPbDLEa sVPQdCpqTFNFNeWp0EtEwlNxMb76qk1SrP2Bn5T7mZcfPugkbubtDHUkxeDSoCn7FpYh C4cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jne6Vmfs; spf=pass (google.com: domain of linux-kernel+bounces-20580-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20580-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fh2-20020a056a00390200b006daa8095833si1135706pfb.189.2024.01.09.00.36.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 00:36:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20580-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jne6Vmfs; spf=pass (google.com: domain of linux-kernel+bounces-20580-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20580-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0DF352865DF for ; Tue, 9 Jan 2024 08:36:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04CB132C67; Tue, 9 Jan 2024 08:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jne6Vmfs" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E384913ACF for ; Tue, 9 Jan 2024 08:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2cca8eb0509so28296691fa.3 for ; Tue, 09 Jan 2024 00:25:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704788727; x=1705393527; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bF0e2DswE8UKYjFIoLXFl1yZqY+5X+76YD12d4yPwPI=; b=jne6VmfsWnglhZ5hZ/AtzN71O5CFi51tqwOts0LgrWcxhj/8Aq4tHuwIjPQEEMfF9k jkf3HdDJdS4DNQcByP3yF7Xcd1/jO9Dhrl2U5EH5llr2E5sLf9U6SY7iUt6tlBbYNLFq xjseQ52UXLjrmy/dxdaNI+gwDbxGporC+hHrIXJzOcVxeORXCGFssybElXlOBv+gWJHW Y6lskTYWIy0JAxcQjrDHdZlal7Sis/Q8TD80DAapNA7zdsU8cJ2b9gg2NXe41YNSyDYS wSdK1RCoRJL1g2lY+LitfSBMSaDNSfHUGY3E3SnZWn3WoH5eZ20sYDdORhlGMLm4X0+M 3vVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704788727; x=1705393527; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bF0e2DswE8UKYjFIoLXFl1yZqY+5X+76YD12d4yPwPI=; b=KCbvlBbOBppEIVbOgwJTY5nhw+KI2MrQYD52HQmdWOX34W1Z0JAT9MuED5U/FQfZng FFUj0zFPocqVQS+rawykaXzEQsizm05bDC20TkxDTyTRFNR2ZxftmYFnUHbrKP4Uos37 NEKkwy/7jIBYgX6OGUa1Z4rNyEplW5vNPDGIGwq3L8ublaN3YZ6uIRQigNekI6y/k0Sz YNsqC/tTV9AgGm6ZGAcapTPTz8QJ7oaH5E1HE+AeHfHSXkPGSv/qtlSc9eAA5PbSN0Pi zc2Wi9u9dublR41AeQcYfuEWNhCA6hoTF/yEhVbWwY2b2hXe1DUJKxYuz+yclqCBa3BG mX3A== X-Gm-Message-State: AOJu0Yz6v0zoaes2RvOcQszz24tZvv7qhqeCKIUgFOdzzY+EGpGbeBeu oMwxOT8ULqIAD8LQn8XKgIzT8KJYglMvmg== X-Received: by 2002:a19:f507:0:b0:50e:7c70:fdf0 with SMTP id j7-20020a19f507000000b0050e7c70fdf0mr1673226lfb.85.1704788727037; Tue, 09 Jan 2024 00:25:27 -0800 (PST) Received: from krzk-bin.. ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id f2-20020a056402150200b0055732bd1fc0sm683275edw.82.2024.01.09.00.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 00:25:26 -0800 (PST) From: Krzysztof Kozlowski To: Peter Rosin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH] dt-bindings: mux: restrict node name suffixes Date: Tue, 9 Jan 2024 09:25:11 +0100 Message-Id: <20240109082511.15278-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787601248988926084 X-GMAIL-MSGID: 1787601248988926084 Make the pattern matching node names a bit stricter to improve DTS consistency. The pattern is restricted to -N suffixes to decimal numbers. Suggested-by: Rob Herring Signed-off-by: Krzysztof Kozlowski Acked-by: Peter Rosin --- Some time ago I did such change treewide, but mux was left out: https://lore.kernel.org/all/20230530144851.92059-1-krzysztof.kozlowski@linaro.org/ --- Documentation/devicetree/bindings/mux/mux-controller.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mux/mux-controller.yaml b/Documentation/devicetree/bindings/mux/mux-controller.yaml index 8b943082a241..571ad9e13ecf 100644 --- a/Documentation/devicetree/bindings/mux/mux-controller.yaml +++ b/Documentation/devicetree/bindings/mux/mux-controller.yaml @@ -74,7 +74,7 @@ select: properties: $nodename: - pattern: '^mux-controller(@.*|-[0-9a-f]+)?$' + pattern: '^mux-controller(@.*|-([0-9]|[1-9][0-9]+))?$' '#mux-control-cells': enum: [ 0, 1 ]