Skip to content

Commit 9e5ae5f

Browse files
committed
arm64: dts: apple: Add J613 board variant of M3 (t8122)
Add a device tree for the Apple MacBook Air (13-inch, M3, 2024) board variant of the M3 (t8122), known as J613. It enables and configures the keyboard backlight and internal HID nodes, as it is a laptop variant which has these devices. Also add this new device tree to the Makefile, so it is built. Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
1 parent 31e75a9 commit 9e5ae5f

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

arch/arm64/boot/dts/apple/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ dtb-$(CONFIG_ARCH_APPLE) += t8112-j415.dtb
9292
dtb-$(CONFIG_ARCH_APPLE) += t8112-j473.dtb
9393
dtb-$(CONFIG_ARCH_APPLE) += t8112-j493.dtb
9494
dtb-$(CONFIG_ARCH_APPLE) += t8122-j504.dtb
95+
dtb-$(CONFIG_ARCH_APPLE) += t8122-j613.dtb
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple MacBook Air (13-inch, M3, 2024)
4+
*
5+
* target-type: J613
6+
*
7+
* Copyright The Asahi Linux Contributors
8+
*/
9+
10+
/dts-v1/;
11+
12+
#include "t8122.dtsi"
13+
#include "t8122-jxxx.dtsi"
14+
#include <dt-bindings/leds/common.h>
15+
16+
/ {
17+
compatible = "apple,j613", "apple,t8122", "apple,arm-platform";
18+
model = "Apple MacBook Air (13-inch, M3, 2024)";
19+
20+
led-controller {
21+
compatible = "pwm-leds";
22+
led-0 {
23+
pwms = <&fpwm1 0 40000>;
24+
label = "kbd_backlight";
25+
function = LED_FUNCTION_KBD_BACKLIGHT;
26+
color = <LED_COLOR_ID_WHITE>;
27+
max-brightness = <255>;
28+
default-state = "keep";
29+
};
30+
};
31+
};
32+
33+
&framebuffer0 {
34+
// panel = &panel;
35+
power-domains = <&ps_disp_cpu>, <&ps_dptx_ext_phy>;
36+
};
37+
38+
&fpwm1 {
39+
status = "okay";
40+
};
41+
42+
&mtp {
43+
status = "okay";
44+
};
45+
46+
&mtp_mbox {
47+
status = "okay";
48+
};
49+
50+
&mtp_dart {
51+
status = "okay";
52+
};
53+
54+
&mtp_dockchannel {
55+
status = "okay";
56+
};
57+
58+
&mtp_hid {
59+
apple,afe-reset-gpios = <&smc_gpio 8 GPIO_ACTIVE_LOW>;
60+
apple,stm-reset-gpios = <&smc_gpio 24 GPIO_ACTIVE_LOW>;
61+
62+
multi-touch {
63+
firmware-name = "apple/tpmtfw-j613.bin";
64+
};
65+
66+
keyboard: keyboard {
67+
hid-country-code = <0>;
68+
apple,keyboard-layout-id = <0>;
69+
};
70+
71+
stm {
72+
};
73+
74+
actuator {
75+
};
76+
77+
tp_accel {
78+
};
79+
};

0 commit comments

Comments
 (0)