Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp377319rwd; Wed, 7 Jun 2023 00:52:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76D86xv4CTJjRlVB1Cn19pPVOfngGnyj9It1o6WSpXxA52Fq1LcD3DBA/oASO/mscEpY3n X-Received: by 2002:a17:90a:e387:b0:255:5d65:3a86 with SMTP id b7-20020a17090ae38700b002555d653a86mr4437628pjz.8.1686124371604; Wed, 07 Jun 2023 00:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686124371; cv=none; d=google.com; s=arc-20160816; b=xlVPdghPzGHShL/UmnLs4pX30PBum4o2gJ7eC9TQdhu8KAVucyN6cIZJM6IAemNDYk rwKElwO+DQzOukGnlncZoWVL8MefLFEnxEU10oSwa+SuayRDW1mLYurW5uhhSj4A6H2Q GiAM1DbpzV9CbTgfBuIbDlvIlSsSc1X6PxMSFoIcUT5TJPDC2uQOUB/Yc+QQuuY4u/rf UvHbSLPuNcGK5p1CTk+VWSCazaNR9OMPJBs+UuE3tLvd27MJ2Y6hPDPsOeTWnuACpoE0 7GvAALExqhQp5Ef2VNQqlW9ubTRmJjRNeCrsjUAfWHNkN+tsLMyVbjUeSreRjd/6MuxG Y30Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8d7BUqjecp+dZwMUn7bxqgnE9r0xuEc0SEhONVskz0c=; b=Q3k6QH1OSLwuDvSSeHxZlTtFTIDvHBgVvFhooKuEqWvt/0wgLISIcmxKA1Rh61INLr 604hOWNvXLDvHCKg1f5lrSYmp9P5NV+8pR0NrhyEbE9+jkjZrmTZPPvjdg/nM9GybQ43 6TRigYkGVjWMvaFE74o8wWVJrRLG6+wLSkPCiIynpeQ9xxvuY4zEoYGkYrNGMnBASfNh 4jCw6TQh7O5HX9B8u6hZo5sjnf81zd6wULqd4ljHGtTa3Cs32fVq9D+ulYMykXlp0Nup pJ/ofHrfJTQkmo14r13Qumi6zSnzLOSyj0RW26VW+wpeJntLYMe4kzwozOTdOBEn35ip wKfA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s77-20020a632c50000000b00545273315a4si272629pgs.560.2023.06.07.00.52.37; Wed, 07 Jun 2023 00:52: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238374AbjFGHkE (ORCPT + 99 others); Wed, 7 Jun 2023 03:40:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238191AbjFGHj3 (ORCPT ); Wed, 7 Jun 2023 03:39:29 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ECB12123 for ; Wed, 7 Jun 2023 00:37:33 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6niy-0003Fq-Gk; Wed, 07 Jun 2023 09:36:56 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q6niv-005gu6-Dy; Wed, 07 Jun 2023 09:36:53 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1q6niu-00BwY7-5i; Wed, 07 Jun 2023 09:36:52 +0200 Date: Wed, 7 Jun 2023 09:36:52 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Krzysztof Kozlowski Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , 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, Rob Herring , Tony Lindgren , Oleksij Rempel Subject: Re: [PATCH 2/7] dt-bindings: pwm: restrict node name suffixes Message-ID: <20230607073652.hoyrernfcuoryrqs@pengutronix.de> References: <20230530144851.92059-1-krzysztof.kozlowski@linaro.org> <20230530144851.92059-3-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="53ce3yyaolwya5ci" Content-Disposition: inline In-Reply-To: <20230530144851.92059-3-krzysztof.kozlowski@linaro.org> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 --53ce3yyaolwya5ci Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 30, 2023 at 04:48:46PM +0200, Krzysztof Kozlowski wrote: > 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. >=20 > Suggested-by: Rob Herring > Signed-off-by: Krzysztof Kozlowski >=20 > --- >=20 > Cc: Tony Lindgren > Cc: Oleksij Rempel > --- > Documentation/devicetree/bindings/pwm/pwm.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/Documentation/devicetree/bindings/pwm/pwm.yaml b/Documentati= on/devicetree/bindings/pwm/pwm.yaml > index 3c01f85029e5..abd9fa873354 100644 > --- a/Documentation/devicetree/bindings/pwm/pwm.yaml > +++ b/Documentation/devicetree/bindings/pwm/pwm.yaml > @@ -13,7 +13,7 @@ select: false > =20 > properties: > $nodename: > - pattern: "^pwm(@.*|-[0-9a-f])*$" > + pattern: "^pwm(@.*|-([0-9]|[1-9][0-9]+))?$" With this patch we forbid now the following patterns: pwm-[0-9a-f][@-].* pwm-0[0-9a-f]+ pwm-[a-f]([@-].*)? Checking for such names: $ git grep -oP '\bpwm-([0-9a-f][@-].*|0[0-9a-f]+|[0-9]*[a-f][0-9a-f]*)(*pl= a:\s*\{)' arch/*/boot/dts arch/arm/boot/dts/meson8.dtsi:pwm-f-ao arch/arm/boot/dts/meson8.dtsi:pwm-e arch/arm/boot/dts/meson8b.dtsi:pwm-d arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-a arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-b-x7 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-b-x19 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-c-c arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-c-x5 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-c-x8 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-d-x3 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-d-x6 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-e arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-f-z arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-f-a arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-f-x arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-f-h arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-a-e These are all pinmux-settings and no pwm nodes, so the change is fine. (But arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi isn't properly sorted alphabetically.) Reviewed-by: Uwe Kleine-K=F6nig Best regards and Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --53ce3yyaolwya5ci Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmSAM5MACgkQj4D7WH0S /k7r5ggApZ2+XCI0I3PKhfnhGNckF4ZiCto9+JLH90d1BNst1xY7hWlJ167vUCbC mTgPD2HQHlKyPJoKmhRbTRF2ZYtdxN7fkJSqpz5RIhZwpuQjmaC7sfWcLSun07v+ 1XzaZA4WQTsuvIw7mKZD0juHmlOK+kNRYLKyIgnN10uB8CGGHzv2zbG+WUJHxOhG vNVwYz4TD1ScNmj9YJm+isi2OOrmsoXW6XeAQO1wxqP6iMUr6fjKcI7dxvirIXm4 diVZ7dr/5OY+vG0Y9bZKpp43GswLtmqCowdrBtxHr5EYhjR5BUfWMPvwCj4s2JK0 ta30Rl7GObRgiuLVYr2pbDMZPuVqOw== =fGeW -----END PGP SIGNATURE----- --53ce3yyaolwya5ci--