* [PATCH] riscv: dts: starfive: jh7110-milkv-mars sort properties
@ 2025-07-16 6:19 E Shattow
2025-07-16 9:17 ` Emil Renner Berthing
0 siblings, 1 reply; 5+ messages in thread
From: E Shattow @ 2025-07-16 6:19 UTC (permalink / raw)
To: Emil Renner Berthing, Conor Dooley, Rob Herring,
Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti
Cc: E Shattow, linux-riscv, devicetree, linux-kernel
Improve style with node property order sort of common properties before
vendor prefixes
Signed-off-by: E Shattow <e@freeshell.de>
---
arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
index 3bd62ab78523..fdaf6b4557da 100644
--- a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
+++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
@@ -12,9 +12,9 @@ / {
};
&gmac0 {
- starfive,tx-use-rgmii-clk;
assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
+ starfive,tx-use-rgmii-clk;
status = "okay";
};
@@ -31,14 +31,14 @@ &pcie1 {
};
&phy0 {
- motorcomm,tx-clk-adj-enabled;
+ rx-internal-delay-ps = <1500>;
+ tx-internal-delay-ps = <1500>;
+ motorcomm,rx-clk-drv-microamp = <3970>;
+ motorcomm,rx-data-drv-microamp = <2910>;
motorcomm,tx-clk-10-inverted;
motorcomm,tx-clk-100-inverted;
motorcomm,tx-clk-1000-inverted;
- motorcomm,rx-clk-drv-microamp = <3970>;
- motorcomm,rx-data-drv-microamp = <2910>;
- rx-internal-delay-ps = <1500>;
- tx-internal-delay-ps = <1500>;
+ motorcomm,tx-clk-adj-enabled;
};
&pwm {
base-commit: 155a3c003e555a7300d156a5252c004c392ec6b0
--
2.50.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] riscv: dts: starfive: jh7110-milkv-mars sort properties
2025-07-16 6:19 [PATCH] riscv: dts: starfive: jh7110-milkv-mars sort properties E Shattow
@ 2025-07-16 9:17 ` Emil Renner Berthing
2025-07-16 15:28 ` Conor Dooley
0 siblings, 1 reply; 5+ messages in thread
From: Emil Renner Berthing @ 2025-07-16 9:17 UTC (permalink / raw)
To: E Shattow, Emil Renner Berthing, Conor Dooley, Rob Herring,
Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti
Cc: linux-riscv, devicetree, linux-kernel
E Shattow wrote:
> Improve style with node property order sort of common properties before
> vendor prefixes
>
> Signed-off-by: E Shattow <e@freeshell.de>
Thanks!
Acked-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
> ---
> arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
> index 3bd62ab78523..fdaf6b4557da 100644
> --- a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
> +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
> @@ -12,9 +12,9 @@ / {
> };
>
> &gmac0 {
> - starfive,tx-use-rgmii-clk;
> assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
> assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
> + starfive,tx-use-rgmii-clk;
> status = "okay";
> };
>
> @@ -31,14 +31,14 @@ &pcie1 {
> };
>
> &phy0 {
> - motorcomm,tx-clk-adj-enabled;
> + rx-internal-delay-ps = <1500>;
> + tx-internal-delay-ps = <1500>;
> + motorcomm,rx-clk-drv-microamp = <3970>;
> + motorcomm,rx-data-drv-microamp = <2910>;
> motorcomm,tx-clk-10-inverted;
> motorcomm,tx-clk-100-inverted;
> motorcomm,tx-clk-1000-inverted;
> - motorcomm,rx-clk-drv-microamp = <3970>;
> - motorcomm,rx-data-drv-microamp = <2910>;
> - rx-internal-delay-ps = <1500>;
> - tx-internal-delay-ps = <1500>;
> + motorcomm,tx-clk-adj-enabled;
> };
>
> &pwm {
>
> base-commit: 155a3c003e555a7300d156a5252c004c392ec6b0
> --
> 2.50.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] riscv: dts: starfive: jh7110-milkv-mars sort properties
2025-07-16 9:17 ` Emil Renner Berthing
@ 2025-07-16 15:28 ` Conor Dooley
2025-07-17 7:06 ` E Shattow
0 siblings, 1 reply; 5+ messages in thread
From: Conor Dooley @ 2025-07-16 15:28 UTC (permalink / raw)
To: Emil Renner Berthing
Cc: E Shattow, Emil Renner Berthing, Rob Herring, Krzysztof Kozlowski,
Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
linux-riscv, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 395 bytes --]
On Wed, Jul 16, 2025 at 02:17:34AM -0700, Emil Renner Berthing wrote:
> E Shattow wrote:
> > Improve style with node property order sort of common properties before
> > vendor prefixes
> >
> > Signed-off-by: E Shattow <e@freeshell.de>
>
> Thanks!
>
> Acked-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
I'm going to pick this up, but it may be very late for 6.17.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] riscv: dts: starfive: jh7110-milkv-mars sort properties
2025-07-16 15:28 ` Conor Dooley
@ 2025-07-17 7:06 ` E Shattow
2025-07-17 17:24 ` Conor Dooley
0 siblings, 1 reply; 5+ messages in thread
From: E Shattow @ 2025-07-17 7:06 UTC (permalink / raw)
To: Conor Dooley, Emil Renner Berthing
Cc: Emil Renner Berthing, Rob Herring, Krzysztof Kozlowski,
Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
linux-riscv, devicetree, linux-kernel
On 7/16/25 08:28, Conor Dooley wrote:
> On Wed, Jul 16, 2025 at 02:17:34AM -0700, Emil Renner Berthing wrote:
>> E Shattow wrote:
>>> Improve style with node property order sort of common properties before
>>> vendor prefixes
>>>
>>> Signed-off-by: E Shattow <e@freeshell.de>
>>
>> Thanks!
>>
>> Acked-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
>
> I'm going to pick this up, but it may be very late for 6.17.
Yes. The other questionable sort style in this dts I was looking at are
whether we want "compatible" before "model" in the root '/' node? And
then why we have this common pattern of 'pinmux' (or pinctrl*)
prioritized firstly in the natural sort order, also pinctrl-names before
pinctrl-N is a common pattern that seems an arbitrary reversal of
natural sort order?
Thanks,
-E
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] riscv: dts: starfive: jh7110-milkv-mars sort properties
2025-07-17 7:06 ` E Shattow
@ 2025-07-17 17:24 ` Conor Dooley
0 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2025-07-17 17:24 UTC (permalink / raw)
To: E Shattow
Cc: Emil Renner Berthing, Emil Renner Berthing, Rob Herring,
Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, linux-riscv, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1277 bytes --]
On Thu, Jul 17, 2025 at 12:06:57AM -0700, E Shattow wrote:
>
>
> On 7/16/25 08:28, Conor Dooley wrote:
> > On Wed, Jul 16, 2025 at 02:17:34AM -0700, Emil Renner Berthing wrote:
> >> E Shattow wrote:
> >>> Improve style with node property order sort of common properties before
> >>> vendor prefixes
> >>>
> >>> Signed-off-by: E Shattow <e@freeshell.de>
> >>
> >> Thanks!
> >>
> >> Acked-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
> >
> > I'm going to pick this up, but it may be very late for 6.17.
>
> Yes. The other questionable sort style in this dts I was looking at are
> whether we want "compatible" before "model" in the root '/' node? And
I think usually model comes first, yeah. Whether that's worth doing
something about, I'll leave up to you.
> then why we have this common pattern of 'pinmux' (or pinctrl*)
> prioritized firstly in the natural sort order, also pinctrl-names before
> pinctrl-N is a common pattern that seems an arbitrary reversal of
> natural sort order?
Usually "foo" is followed by "foo-names", but pinctrl does appear to be
a bit different since everything has a -something suffix. Skimming, it
looks like there are actually more instances where pinctrl-names appears
before pinctrl-N.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-07-17 17:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 6:19 [PATCH] riscv: dts: starfive: jh7110-milkv-mars sort properties E Shattow
2025-07-16 9:17 ` Emil Renner Berthing
2025-07-16 15:28 ` Conor Dooley
2025-07-17 7:06 ` E Shattow
2025-07-17 17:24 ` Conor Dooley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).