From mboxrd@z Thu Jan 1 00:00:00 1970 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 F120EC4332F for ; Mon, 21 Nov 2022 14:59:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231561AbiKUO7F (ORCPT ); Mon, 21 Nov 2022 09:59:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232196AbiKUO5g (ORCPT ); Mon, 21 Nov 2022 09:57:36 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0BE81D14FD; Mon, 21 Nov 2022 06:48:32 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 1B95D80A7; Mon, 21 Nov 2022 14:38:19 +0000 (UTC) Date: Mon, 21 Nov 2022 16:48:29 +0200 From: Tony Lindgren To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Thierry Reding , Krzysztof Kozlowski , Nishanth Menon , Vignesh Raghavendra Subject: Re: [PATCH v2 1/2] dt-bindings: pwm: Allow decimal format in addition to hex format Message-ID: References: <20221121115525.36362-1-tony@atomide.com> <20221121144000.7weeyfbbulltfxmd@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221121144000.7weeyfbbulltfxmd@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org * Uwe Kleine-König [221121 14:30]: > On Mon, Nov 21, 2022 at 01:55:24PM +0200, Tony Lindgren wrote: > > Let's allow node numbering in decimal format too. > > > > Simple human-readable increments/IDs are usually decimal, hex is only for > > addresses as noted by Krzysztof Kozlowski . > > > > Cc: Thierry Reding > > Cc: Uwe Kleine-König > > Suggested-by: Krzysztof Kozlowski > > Signed-off-by: Tony Lindgren > > --- > > Documentation/devicetree/bindings/pwm/pwm.yaml | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/pwm/pwm.yaml b/Documentation/devicetree/bindings/pwm/pwm.yaml > > --- a/Documentation/devicetree/bindings/pwm/pwm.yaml > > +++ b/Documentation/devicetree/bindings/pwm/pwm.yaml > > @@ -13,7 +13,7 @@ select: false > > > > properties: > > $nodename: > > - pattern: "^pwm(@.*|-[0-9a-f])*$" > > + pattern: "^pwm(@.*|-([0-9a-f]|1[0-5]))*$" > > I wonder why you don't make this: > > + pattern: "^pwm(@.*|-[0-9a-f]*)$" Hmm but I think this would also pass for node names like pwm-a-foo? I just used the following to look for similar examples FYI: $ find Documentation/devicetree/bindings/ -name \*.yaml | \ xargs grep pattern: | grep '1\[0-' > Is there a use case to match > > pwm-1-2-3-4-5 I don't think so. Regards, Tony