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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C41BC54EBD for ; Fri, 13 Jan 2023 07:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aY/M5iqVVBAQNlnShkQNhZD2X682VkIUvH+BBGhAPz4=; b=CzoLLAUdg+G+ix uF2RSf4p/5rB9PxeE31tx3/4uyg1kfeIDqG2jJuMVL63fZmBAS+KU1FpHtWpgT7pDYbVUhFOTSsnP I209FsnooIpO6U68jF2kKpj0yaffIUKMVlFHGyrXbhVU3Y2TN5QxiS1vE9Q33YpK9t4lxzRCbc7iu 1vK4PQt9HEf/LeVgsY92lhAv7II5BW/9mnMZ3rtpB/od696f6w+0z+iUMJpgQ7+5xTA2ZAhd3/C/9 dwOZ5ZGHIx95C9ljzzzR8UFBZ++qxKjWOSatJgRrsvqOcHoVPrU44ZwhM161+PycImCyxeeF2lk7P k6AVjabg6uU1Ib/JzGuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGE8k-000vTV-HF; Fri, 13 Jan 2023 07:06:14 +0000 Received: from muru.com ([72.249.23.125]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGE8g-000vS1-Vs for linux-arm-kernel@lists.infradead.org; Fri, 13 Jan 2023 07:06:12 +0000 Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 5E21E80FA; Fri, 13 Jan 2023 07:06:07 +0000 (UTC) Date: Fri, 13 Jan 2023 09:06:06 +0200 From: Tony Lindgren To: Rob Herring Cc: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-pwm@vger.kernel.org, Thierry Reding , Krzysztof Kozlowski , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Nishanth Menon , Vignesh Raghavendra Subject: Re: [PATCH v3 1/2] dt-bindings: pwm: Allow decimal format in addition to hex format Message-ID: References: <20221122123225.59106-1-tony@atomide.com> <20221123024153.GB1026269-robh@kernel.org> <20221127182232.GA128974-robh@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221127182232.GA128974-robh@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230112_230611_085044_97496E92 X-CRM114-Status: GOOD ( 18.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Rob, * Rob Herring [221127 18:22]: > On Wed, Nov 23, 2022 at 08:58:54AM +0200, Tony Lindgren wrote: > > * Rob Herring [221123 02:31]: > > > On Tue, Nov 22, 2022 at 02:32:24PM +0200, Tony Lindgren wrote: > > > > --- 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]+)?$" > > > > > > So now pwm-10 could be either? > > > > Yes. > > > > > I'm fine with decimal, but can we do that everywhere we do this -N > > > naming? > > > > Do you mean the '[0-9a-f]' users that don't use '[0-9af]+'? > > No, I mean for all cases of -N, can be we consistent. Either > we use hex or we use decimal. > > > > > These can be found with: > > > > $ find Documentation/devicetree/bindings/ -name \*.yaml | \ > > xargs grep pattern: | grep '\[0-9a-f\]' | grep -v '\[0-9a-f\]+' > > Not quite. It's just cases of '-N': > > $ find Documentation/devicetree/bindings/ -name \*.yaml | xargs grep pattern: | grep '\-\[0-9a-f\]' | grep -v '\[0-9a-f\]+' > Documentation/devicetree/bindings/phy/intel,combo-phy.yaml: pattern: "combophy(@.*|-[0-9a-f])*$" > Documentation/devicetree/bindings/pwm/pwm.yaml: pattern: "^pwm(@.*|-[0-9a-f])*$" > Documentation/devicetree/bindings/timestamp/hardware-timestamps-common.yaml: pattern: "^timestamp(@.*|-[0-9a-f])?$" > Documentation/devicetree/bindings/watchdog/watchdog.yaml: pattern: "^watchdog(@.*|-[0-9a-f])?$" > Documentation/devicetree/bindings/spi/spi-controller.yaml: pattern: "^spi(@.*|-[0-9a-f])*$" > Documentation/devicetree/bindings/rtc/rtc.yaml: pattern: "^rtc(@.*|-[0-9a-f])*$" > > > And there's probably some more in dtschema. Looking at this again, not exactly sure still what you want.. Can you please post some initial patch maybe, verbal patches are a bit tricky :) Regards, Tony _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel