From: Krzysztof Kozlowski <krzk@kernel.org>
To: linux-aspeed@lists.ozlabs.org
Subject: [PATCH 1/3] dt-bindings: Add bindings for aspeed pwm-tach.
Date: Thu, 3 Nov 2022 11:27:09 -0400 [thread overview]
Message-ID: <576c42c4-1256-304d-3513-7bf02cddb220@kernel.org> (raw)
In-Reply-To: <2508B515-E153-42C2-B013-2A64A110BCF2@aspeedtech.com>
On 03/11/2022 06:36, Billy Tsai wrote:
>
> On 2022/11/3, 5:20 AM, "Krzysztof Kozlowski" <krzk@kernel.org> wrote:
>
> On 31/10/2022 06:38, Billy Tsai wrote:
> > > +patternProperties:
> > > + "^pwm(@[0-9a-f]+)?$":
> > > + $ref: ../pwm/aspeed,ast2600-pwm.yaml
>
> > Full path, so: /schemas/pwm/aspeed,ast2600-pwm.yaml
>
> > Why unit addresses are optional?
>
> > > +
> > > + "^tach(@[0-9a-f]+)?$":
> > > + $ref: ../hwmon/aspeed,ast2600-tach.yaml
>
> > Ditto
>
> > Why unit addresses are optional?
>
> The pwm_tach is not the bus. I will use
> pwm:
> type: object
> $ref: "/schemas/pwm/aspeed,ast2600-pwm.yaml"
>
> tach:
> type: object
> $ref: "/schemas/hwmon/aspeed,ast2600-tach.yaml"
> to replace it.
>
> > > +
> > > +additionalProperties: false
> > > +
> > > +examples:
> > > + - |
> > > + #include <dt-bindings/clock/ast2600-clock.h>
> > > + pwm_tach: pwm_tach at 1e610000 {
>
> > Node names should be generic.
> > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
>
> This is the mfd with pwm and tach, so they are combined as the node name.
>
> > No underscores in node names.
>
> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#table-1
> I see that the underscore is the valid characters for node names.
> Did I miss any information?
W=2 warnings.
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-11-03 15:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-31 10:38 [PATCH 0/3] Support pwm/tach driver for aspeed ast26xx Billy Tsai
2022-10-31 10:38 ` [PATCH 1/3] dt-bindings: Add bindings for aspeed pwm-tach Billy Tsai
2022-11-02 21:20 ` Krzysztof Kozlowski
2022-11-03 10:36 ` Billy Tsai
2022-11-03 15:27 ` Krzysztof Kozlowski [this message]
2022-10-31 10:38 ` [PATCH 2/3] pwm: Add Aspeed ast2600 PWM support Billy Tsai
2022-11-01 11:57 ` kernel test robot
2022-10-31 10:38 ` [PATCH 3/3] hwmon: Add Aspeed ast2600 TACH support Billy Tsai
2022-10-31 16:32 ` Guenter Roeck
2022-11-02 0:35 ` kernel test robot
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=576c42c4-1256-304d-3513-7bf02cddb220@kernel.org \
--to=krzk@kernel.org \
--cc=linux-aspeed@lists.ozlabs.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox