From: Tony Lindgren <tony@atomide.com>
To: Rob Herring <robh@kernel.org>
Cc: "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-omap@vger.kernel.org, linux-pwm@vger.kernel.org,
"Thierry Reding" <thierry.reding@gmail.com>,
"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Nishanth Menon" <nm@ti.com>,
"Vignesh Raghavendra" <vigneshr@ti.com>
Subject: Re: [PATCH v3 1/2] dt-bindings: pwm: Allow decimal format in addition to hex format
Date: Fri, 13 Jan 2023 09:06:06 +0200 [thread overview]
Message-ID: <Y8EC3jB2317ohUIB@atomide.com> (raw)
In-Reply-To: <20221127182232.GA128974-robh@kernel.org>
Hi Rob,
* Rob Herring <robh@kernel.org> [221127 18:22]:
> On Wed, Nov 23, 2022 at 08:58:54AM +0200, Tony Lindgren wrote:
> > * Rob Herring <robh@kernel.org> [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 <nodename>-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
WARNING: multiple messages have this Message-ID (diff)
From: Tony Lindgren <tony@atomide.com>
To: Rob Herring <robh@kernel.org>
Cc: "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-omap@vger.kernel.org, linux-pwm@vger.kernel.org,
"Thierry Reding" <thierry.reding@gmail.com>,
"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Nishanth Menon" <nm@ti.com>,
"Vignesh Raghavendra" <vigneshr@ti.com>
Subject: Re: [PATCH v3 1/2] dt-bindings: pwm: Allow decimal format in addition to hex format
Date: Fri, 13 Jan 2023 09:06:06 +0200 [thread overview]
Message-ID: <Y8EC3jB2317ohUIB@atomide.com> (raw)
In-Reply-To: <20221127182232.GA128974-robh@kernel.org>
Hi Rob,
* Rob Herring <robh@kernel.org> [221127 18:22]:
> On Wed, Nov 23, 2022 at 08:58:54AM +0200, Tony Lindgren wrote:
> > * Rob Herring <robh@kernel.org> [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 <nodename>-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
next prev parent reply other threads:[~2023-01-13 7:21 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-22 12:32 [PATCH v3 1/2] dt-bindings: pwm: Allow decimal format in addition to hex format Tony Lindgren
2022-11-22 12:32 ` Tony Lindgren
2022-11-22 12:32 ` [PATCH v3 2/2] dt-bindings: pwm: ti,pwm-omap-dmtimer: Update binding for yaml Tony Lindgren
2022-11-22 12:32 ` Tony Lindgren
2022-11-22 12:49 ` [PATCH v3 1/2] dt-bindings: pwm: Allow decimal format in addition to hex format Krzysztof Kozlowski
2022-11-22 12:49 ` Krzysztof Kozlowski
2022-11-22 13:38 ` Uwe Kleine-König
2022-11-22 13:38 ` Uwe Kleine-König
2022-11-22 13:41 ` Tony Lindgren
2022-11-22 13:41 ` Tony Lindgren
2022-11-22 20:26 ` Uwe Kleine-König
2022-11-22 20:26 ` Uwe Kleine-König
2022-11-23 2:38 ` Rob Herring
2022-11-23 2:38 ` Rob Herring
2022-11-23 2:41 ` Rob Herring
2022-11-23 2:41 ` Rob Herring
2022-11-23 6:58 ` Tony Lindgren
2022-11-23 6:58 ` Tony Lindgren
2022-11-27 18:22 ` Rob Herring
2022-11-27 18:22 ` Rob Herring
2023-01-13 7:06 ` Tony Lindgren [this message]
2023-01-13 7:06 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y8EC3jB2317ohUIB@atomide.com \
--to=tony@atomide.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=nm@ti.com \
--cc=robh@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.