From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Chris Morgan <macromorgan@hotmail.com>
Cc: Chris Morgan <macroalpha82@gmail.com>,
devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org,
robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
heiko@sntech.de, pgwipeout@gmail.com
Subject: Re: [PATCH 3/3] arm64: dts: rockchip: add Anbernic RG353 and RG503
Date: Fri, 19 Aug 2022 09:49:47 +0300 [thread overview]
Message-ID: <65789dad-32c4-5437-9edf-d23475f5de46@linaro.org> (raw)
In-Reply-To: <SN6PR06MB53424AA16DDA579063D11A46A56D9@SN6PR06MB5342.namprd06.prod.outlook.com>
On 18/08/2022 19:33, Chris Morgan wrote:
> On Thu, Aug 18, 2022 at 11:14:17AM +0300, Krzysztof Kozlowski wrote:
>> On 17/08/2022 23:49, Chris Morgan wrote:
>>> From: Chris Morgan <macromorgan@hotmail.com>
>>>
>>> Anbernic RG353 and RG503 are both RK3566 based handheld gaming devices
>>> from Anbernic.
>>>
>>
>> Thank you for your patch. There is something to discuss/improve.
>>
>>> + red_led: led-2 {
>>> + color = <LED_COLOR_ID_RED>;
>>> + default-state = "off";
>>> + function = LED_FUNCTION_STATUS;
>>> + gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
>>> + };
>>> + };
>>> +
>>> + rk817-sound {
>>
>> just sound
>>
>> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
>>
>
> Acknowledged. I just cut and pasted from a different tree, but I'll make this change.
>
>>> + compatible = "simple-audio-card";
>>> + simple-audio-card,name = "anbernic_rk817";
>>> + simple-audio-card,aux-devs = <&spk_amp>;
>>> + simple-audio-card,format = "i2s";
>>> + simple-audio-card,hp-det-gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
>>> + simple-audio-card,mclk-fs = <256>;
>>> + simple-audio-card,widgets =
>>> + "Microphone", "Mic Jack",
>>> + "Headphone", "Headphones",
>>> + "Speaker", "Internal Speakers";
>>> + simple-audio-card,routing =
>>> + "MICL", "Mic Jack",
>>> + "Headphones", "HPOL",
>>> + "Headphones", "HPOR",
>>> + "Internal Speakers", "Speaker Amp OUTL",
>>> + "Internal Speakers", "Speaker Amp OUTR",
>>> + "Speaker Amp INL", "HPOL",
>>> + "Speaker Amp INR", "HPOR";
>>> + simple-audio-card,pin-switches = "Internal Speakers";
>>> +
>>> + simple-audio-card,codec {
>>> + sound-dai = <&rk817>;
>>> + };
>>> +
>>> + simple-audio-card,cpu {
>>> + sound-dai = <&i2s1_8ch>;
>>> + };
>>> + };
>>> +
>>> + sdio_pwrseq: sdio-pwrseq {
>>> + compatible = "mmc-pwrseq-simple";
>>> + clocks = <&rk817 1>;
>>> + clock-names = "ext_clock";
>>> + pinctrl-0 = <&wifi_enable_h>;
>>> + pinctrl-names = "default";
>>> + post-power-on-delay-ms = <200>;
>>> + reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_LOW>;
>>> + };
>>> +
>>> + spk_amp: audio-amplifier {
>>> + compatible = "simple-audio-amplifier";
>>> + enable-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
>>> + pinctrl-0 = <&spk_amp_enable_h>;
>>> + pinctrl-names = "default";
>>> + sound-name-prefix = "Speaker Amp";
>>> + };
>>> +
>>> + vcc3v3_lcd0_n: vcc3v3-lcd0-n {
>>
>> Node name:
>> regulator-vcc3v3-lcd0-n
>> vcc3v3-lcd0-n-regulator
>> or just regulator-0
>
> Does this restriction only apply to node names for regulators, or all
> node names? The docs I looked at suggested that it was okay to use an
> underscore, but I'll defer to you.
Device node names should be generic and such rule applies everywhere.
For regulators and clocks, pretty often people want some specific
prefix/suffix, so I don't mind, but what I mind is the generic part.
underscores will get you warnings with W=1, so they are not accepted
even though the spec mentions them.
Best regards,
Krzysztof
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2022-08-19 6:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-17 20:49 [PATCH 0/3] Add Anbernic RG353 and RG503 Chris Morgan
2022-08-17 20:49 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add Anbernic Chris Morgan
2022-08-18 8:10 ` Krzysztof Kozlowski
2022-08-17 20:49 ` [PATCH 2/3] dt-bindings: arm: rockchip: Add Anbernic RG353 and RG503 Chris Morgan
2022-08-18 8:11 ` Krzysztof Kozlowski
2022-08-18 8:26 ` Maya Matuszczyk
2022-08-18 16:29 ` Chris Morgan
2022-08-17 20:49 ` [PATCH 3/3] arm64: dts: rockchip: add " Chris Morgan
2022-08-18 8:14 ` Krzysztof Kozlowski
2022-08-18 16:33 ` Chris Morgan
2022-08-19 6:49 ` Krzysztof Kozlowski [this message]
2022-08-18 9:49 ` Maya Matuszczyk
2022-08-18 16:50 ` Chris Morgan
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=65789dad-32c4-5437-9edf-d23475f5de46@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=macroalpha82@gmail.com \
--cc=macromorgan@hotmail.com \
--cc=pgwipeout@gmail.com \
--cc=robh+dt@kernel.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