Skip to contentSkip to conversation

arm64: dts: rockchip: add 'chassis-type' property on PineNote

PATCH Applied Diederik de Haas 4 participants 8 messages Feb 7, 2025 – Feb 10, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: add 'chassis-type' property on PineNote

Add the recommended chassis-type root node property so userspace can request the form factor and adjust their behavior accordingly.

---
 arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi +2 -0
index 2d3ae1544822..3613661417b2 100644
@@ -9,6 +9,8 @@
 #include "rk3566.dtsi"
 
 / {
+	chassis-type = "tablet";
+
 	aliases {
 		mmc0 = &sdhci;
 	};
Signature · 1 line
2.47.2
Reviewed-by on v1 1/1
#1 lore raw

Hello Diederik,

Quoted 5 lines · Diederik de Haas

Add the recommended chassis-type root node property so userspace can request the form factor and adjust their behavior accordingly.

Maybe the Link tag should be converted into a "[1]" reference? To me, this is more like a reference for this DT addition.

In general, references can also be placed closer to the contents they back up, which isn't possible with Link tags, but of course that doesn't matter much in this case.

Quoted 10 lines
---
 arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi +0 -0
index 2d3ae1544822..3613661417b2 100644

arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi line 16

Quoted 8 lines
arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi +2 -0
@@ -9,6 +9,8 @@
 #include "rk3566.dtsi"
 
 / {
+	chassis-type = "tablet";
+
 	aliases {
 		mmc0 = &sdhci;
 	};

The patch is obviously fine. Thanks for the patch, and please feel free to include, regardless of the note above, my:

#2 lore raw

Hi Dragan,

Quoted 8 lines · Dragan Simic
Quoted 6 lines · Diederik de Haas

Add the recommended chassis-type root node property so userspace can request the form factor and adjust their behavior accordingly.

Link:
https://github.com/devicetree-org/devicetree-specification/blob/main/source/chapter3-devicenodes.rst#root-node

Quoted 6 lines

Maybe the Link tag should be converted into a "[1]" reference? To me, this is more like a reference for this DT addition.

In general, references can also be placed closer to the contents they back up, which isn't possible with Link tags, but of course that doesn't matter much in this case.

I generally use the "[1]" format when linking to specific claims, which I could've done wrt the "recommended". But I considered this a general background link and then I prefer to do it via a Link tag.

If requested by a maintainer I'll change it ofc, but otherwise I prefer to keep it as is.

Quoted 22 lines
Quoted 10 lines
---
 arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi +0 -0
index 2d3ae1544822..3613661417b2 100644

arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi line 16

Quoted 8 lines
arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi +2 -0
@@ -9,6 +9,8 @@
 #include "rk3566.dtsi"
 
 / {
+	chassis-type = "tablet";
+
 	aliases {
 		mmc0 = &sdhci;
 	};

The patch is obviously fine. Thanks for the patch, and please feel free to include, regardless of the note above, my:

Quoted 1 line

Thanks :)

Cheers,
Diederik

#3 lore raw
Quoted 16 lines · Diederik de Haas
Quoted 8 lines · Dragan Simic
Quoted 6 lines · Diederik de Haas

Add the recommended chassis-type root node property so userspace can request the form factor and adjust their behavior accordingly.

Link:
https://github.com/devicetree-org/devicetree-specification/blob/main/source/chapter3-devicenodes.rst#root-node

Quoted 6 lines

Maybe the Link tag should be converted into a "[1]" reference? To me, this is more like a reference for this DT addition.

In general, references can also be placed closer to the contents they back up, which isn't possible with Link tags, but of course that doesn't matter much in this case.

Quoted 6 lines

I generally use the "[1]" format when linking to specific claims, which I could've done wrt the "recommended". But I considered this a general background link and then I prefer to do it via a Link tag.

If requested by a maintainer I'll change it ofc, but otherwise I prefer to keep it as is.

Indeed, in this case it's pretty much irrelevant which format is used. In fact, it may look nicer to use a Link tag, because there are only a few lines in the patch description in total. :)

My comment was more about longer commit/patch descriptions with multiple references, which should benefit from placing references closer to the backed-up contents using the "[*]" layout, instead of relying on Link tags to bunch it all together at the end of the description.

maintainer Applied
#4 lore raw
In reply to Diederik de Haas
Quoted 4 lines · Diederik de Haas

Add the recommended chassis-type root node property so userspace can request the form factor and adjust their behavior accordingly.

Applied, thanks!

[1/1] arm64: dts: rockchip: add 'chassis-type' property on PineNote

      commit: 18cb5cb58f4fcbd96d00e1d882e6b5882d1b272f

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>
Reviewed-by on v1 1/1
#5 lore raw
In reply to Diederik de Haas
Quoted 5 lines · Diederik de Haas

Add the recommended chassis-type root node property so userspace can request the form factor and adjust their behavior accordingly.

Drop link, no need to point to source of every property. You don't do it for aliases, compatible, model etc, right?

With link dropped:

Best regards,
Krzysztof

maintainer
#6 lore raw

Am Montag, 10. Februar 2025, 12:06:15 MEZ schrieb Krzysztof Kozlowski:

Quoted 7 lines · Diederik de Haas
Quoted 5 lines

Add the recommended chassis-type root node property so userspace can request the form factor and adjust their behavior accordingly.

Quoted 6 lines

Drop link, no need to point to source of every property. You don't do it for aliases, compatible, model etc, right?

With link dropped:

I've amended the patch [0] by dropping the Link and adding Krzysztof's Reviewed-by.

Heiko

[0] https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/commit/?h=for-next&id=aba881f30e0294a58c0cb076918d366e39801185

#7 lore raw
In reply to Krzysztof Kozlowski
Quoted 9 lines · Krzysztof Kozlowski
Quoted 5 lines · Diederik de Haas

Add the recommended chassis-type root node property so userspace can request the form factor and adjust their behavior accordingly.

Drop link, no need to point to source of every property. You don't do it for aliases, compatible, model etc, right?

Thanks for that hint, I'll keep that in mind for next time :-)

Cheers,
Diederik