Skip to content

Commit 08b1306

Browse files
committed
arm64: apple: Add initial Apple MacBook Pro (13-inch, M1) devicetree
Model number is J293, this is based on the 2020/2021 model. Signed-off-by: Pip Cet <pipcet@gmail.com>
1 parent d1a12e0 commit 08b1306

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

arch/arm64/boot/dts/apple/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb
2+
dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb t8103-j293.dtb
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple MacBook Pro (13-inch, M1, 2020)
4+
*
5+
* target-type: J293
6+
*
7+
* Copyright The Asahi Linux Contributors
8+
*/
9+
10+
/dts-v1/;
11+
12+
#include "t8103.dtsi"
13+
14+
/ {
15+
compatible = "apple,j293", "apple,t8103", "apple,arm-platform";
16+
model = "Apple MacBook Pro (13-inch, M1, 2020)";
17+
18+
aliases {
19+
serial0 = &serial0;
20+
};
21+
22+
soc {
23+
pwm@235044000 {
24+
compatible = "apple,t8103-fpwm";
25+
reg = <0x2 0x35044000 0x0 0x4000>;
26+
clocks = <&clk24>;
27+
#pwm-cells = <0>;
28+
};
29+
};
30+
31+
chosen {
32+
#address-cells = <2>;
33+
#size-cells = <2>;
34+
ranges;
35+
36+
stdout-path = "serial0";
37+
38+
framebuffer0: framebuffer@0 {
39+
compatible = "apple,simple-framebuffer", "simple-framebuffer";
40+
reg = <0 0 0 0>; /* To be filled by loader */
41+
/* Format properties will be added by loader */
42+
status = "disabled";
43+
};
44+
};
45+
46+
memory@800000000 {
47+
device_type = "memory";
48+
reg = <0x8 0 0x2 0>; /* To be filled by loader */
49+
};
50+
};
51+
52+
&serial0 {
53+
status = "okay";
54+
};

0 commit comments

Comments
 (0)