[PATCH 0/4] arm64: dts: apple: Add chassis-type properties

Janne Grunau posted 4 patches 1 month ago
arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi | 2 ++
arch/arm64/boot/dts/apple/t600x-j375.dtsi      | 2 ++
arch/arm64/boot/dts/apple/t6022-j180d.dts      | 2 ++
arch/arm64/boot/dts/apple/t8103-j274.dts       | 1 +
arch/arm64/boot/dts/apple/t8103-j293.dts       | 1 +
arch/arm64/boot/dts/apple/t8103-j313.dts       | 1 +
arch/arm64/boot/dts/apple/t8103-j456.dts       | 1 +
arch/arm64/boot/dts/apple/t8103-j457.dts       | 1 +
arch/arm64/boot/dts/apple/t8112-j413.dts       | 1 +
arch/arm64/boot/dts/apple/t8112-j415.dts       | 1 +
arch/arm64/boot/dts/apple/t8112-j473.dts       | 1 +
arch/arm64/boot/dts/apple/t8112-j493.dts       | 1 +
12 files changed, 15 insertions(+)
[PATCH 0/4] arm64: dts: apple: Add chassis-type properties
Posted by Janne Grunau 1 month ago
Add chassis-type properties for all Apple silicon Macs. "chassis-type"
is used by u-boot to fill the SMBIOS "System Enclosure or Chassis Type"
field. User space software uses this field to to determine if a device
is an laptop. The exact use case eludes me unfortunately.

The Mac Pro uses "server" as chassis-type which is not entirely
accurate. The tower and rack mount Mac Pro versions share the same .dts
file and are identical except for the enclosure. I haven't found an
obvious property in Apple's device tree to distinguish between those so
both use "server" instead of the more accurate "tower" and "rack mount
chassis". The latter chassis-types are not in dt-schema anyway.

Signed-off-by: Janne Grunau <j@jannau.net>
---
Janne Grunau (4):
      arm64: dts: apple: Add chassis-type property for all Macbooks
      arm64: dts: apple: Add chassis-type property for Apple desktop devices
      arm64: dts: apple: Add chassis-type property for Mac Pro
      arm64: dts: apple: Add chassis-type property for Apple iMacs

 arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi | 2 ++
 arch/arm64/boot/dts/apple/t600x-j375.dtsi      | 2 ++
 arch/arm64/boot/dts/apple/t6022-j180d.dts      | 2 ++
 arch/arm64/boot/dts/apple/t8103-j274.dts       | 1 +
 arch/arm64/boot/dts/apple/t8103-j293.dts       | 1 +
 arch/arm64/boot/dts/apple/t8103-j313.dts       | 1 +
 arch/arm64/boot/dts/apple/t8103-j456.dts       | 1 +
 arch/arm64/boot/dts/apple/t8103-j457.dts       | 1 +
 arch/arm64/boot/dts/apple/t8112-j413.dts       | 1 +
 arch/arm64/boot/dts/apple/t8112-j415.dts       | 1 +
 arch/arm64/boot/dts/apple/t8112-j473.dts       | 1 +
 arch/arm64/boot/dts/apple/t8112-j493.dts       | 1 +
 12 files changed, 15 insertions(+)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20260109-apple-dt-chassis-type-f31523a1f681

Best regards,
-- 
Janne Grunau <j@jannau.net>
Re: [PATCH 0/4] arm64: dts: apple: Add chassis-type properties
Posted by Mark Kettenis 4 weeks, 1 day ago
> From: Janne Grunau <j@jannau.net>
> Date: Fri, 09 Jan 2026 16:25:42 +0100
> 
> Add chassis-type properties for all Apple silicon Macs. "chassis-type"
> is used by u-boot to fill the SMBIOS "System Enclosure or Chassis Type"
> field. User space software uses this field to to determine if a device
> is an laptop. The exact use case eludes me unfortunately.
> 
> The Mac Pro uses "server" as chassis-type which is not entirely
> accurate. The tower and rack mount Mac Pro versions share the same .dts
> file and are identical except for the enclosure. I haven't found an
> obvious property in Apple's device tree to distinguish between those so
> both use "server" instead of the more accurate "tower" and "rack mount
> chassis". The latter chassis-types are not in dt-schema anyway.
> 
> Signed-off-by: Janne Grunau <j@jannau.net>

For the series:

Reviewed-by: Mark Kettenis <kettenis@openbsd.org>

> ---
> Janne Grunau (4):
>       arm64: dts: apple: Add chassis-type property for all Macbooks
>       arm64: dts: apple: Add chassis-type property for Apple desktop devices
>       arm64: dts: apple: Add chassis-type property for Mac Pro
>       arm64: dts: apple: Add chassis-type property for Apple iMacs
> 
>  arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi | 2 ++
>  arch/arm64/boot/dts/apple/t600x-j375.dtsi      | 2 ++
>  arch/arm64/boot/dts/apple/t6022-j180d.dts      | 2 ++
>  arch/arm64/boot/dts/apple/t8103-j274.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8103-j293.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8103-j313.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8103-j456.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8103-j457.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8112-j413.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8112-j415.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8112-j473.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8112-j493.dts       | 1 +
>  12 files changed, 15 insertions(+)
> ---
> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
> change-id: 20260109-apple-dt-chassis-type-f31523a1f681
> 
> Best regards,
> -- 
> Janne Grunau <j@jannau.net>
> 
> 
>
Re: [PATCH 0/4] arm64: dts: apple: Add chassis-type properties
Posted by Sven Peter 4 weeks, 1 day ago
On Fri, 09 Jan 2026 16:25:42 +0100, Janne Grunau wrote:
> Add chassis-type properties for all Apple silicon Macs. "chassis-type"
> is used by u-boot to fill the SMBIOS "System Enclosure or Chassis Type"
> field. User space software uses this field to to determine if a device
> is an laptop. The exact use case eludes me unfortunately.
> 
> The Mac Pro uses "server" as chassis-type which is not entirely
> accurate. The tower and rack mount Mac Pro versions share the same .dts
> file and are identical except for the enclosure. I haven't found an
> obvious property in Apple's device tree to distinguish between those so
> both use "server" instead of the more accurate "tower" and "rack mount
> chassis". The latter chassis-types are not in dt-schema anyway.
> 
> [...]

Applied to AsahiLinux/linux (apple-soc/dt-6.20), thanks!

[1/4] arm64: dts: apple: Add chassis-type property for all Macbooks
      https://github.com/AsahiLinux/linux/commit/b73d48c14ad5
[2/4] arm64: dts: apple: Add chassis-type property for Apple desktop devices
      https://github.com/AsahiLinux/linux/commit/96b603324985
[3/4] arm64: dts: apple: Add chassis-type property for Mac Pro
      https://github.com/AsahiLinux/linux/commit/81a683f864a9
[4/4] arm64: dts: apple: Add chassis-type property for Apple iMacs
      https://github.com/AsahiLinux/linux/commit/8714184b7bcb

Best regards,
-- 
Sven Peter <sven@kernel.org>
Re: [PATCH 0/4] arm64: dts: apple: Add chassis-type properties
Posted by Neal Gompa 1 month ago
On Fri, Jan 9, 2026 at 10:25 AM Janne Grunau <j@jannau.net> wrote:
>
> Add chassis-type properties for all Apple silicon Macs. "chassis-type"
> is used by u-boot to fill the SMBIOS "System Enclosure or Chassis Type"
> field. User space software uses this field to to determine if a device
> is an laptop. The exact use case eludes me unfortunately.
>
> The Mac Pro uses "server" as chassis-type which is not entirely
> accurate. The tower and rack mount Mac Pro versions share the same .dts
> file and are identical except for the enclosure. I haven't found an
> obvious property in Apple's device tree to distinguish between those so
> both use "server" instead of the more accurate "tower" and "rack mount
> chassis". The latter chassis-types are not in dt-schema anyway.
>
> Signed-off-by: Janne Grunau <j@jannau.net>
> ---
> Janne Grunau (4):
>       arm64: dts: apple: Add chassis-type property for all Macbooks
>       arm64: dts: apple: Add chassis-type property for Apple desktop devices
>       arm64: dts: apple: Add chassis-type property for Mac Pro
>       arm64: dts: apple: Add chassis-type property for Apple iMacs
>
>  arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi | 2 ++
>  arch/arm64/boot/dts/apple/t600x-j375.dtsi      | 2 ++
>  arch/arm64/boot/dts/apple/t6022-j180d.dts      | 2 ++
>  arch/arm64/boot/dts/apple/t8103-j274.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8103-j293.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8103-j313.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8103-j456.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8103-j457.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8112-j413.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8112-j415.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8112-j473.dts       | 1 +
>  arch/arm64/boot/dts/apple/t8112-j493.dts       | 1 +
>  12 files changed, 15 insertions(+)
> ---
> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
> change-id: 20260109-apple-dt-chassis-type-f31523a1f681
>

LGTM.

Reviewed-by: Neal Gompa <neal@gompa.dev>


-- 
真実はいつも一つ!/ Always, there's only one truth!