Skip to content

Commit d23457a

Browse files
konradybciomarcan
authored andcommitted
arm64: dts: apple: Add A11 devices
Add DTS files for the A11 SoC and the following devices based on it: - iPhone 8 - iPhone 8 Plus - iPhone X On A11, Apple has introduced independent performance and efficiency core clusters, so indicate it in the device tree as well. Signed-off-by: Konrad Dybcio <konradybcio@kernel.org> [Nick: SMP and m1n1 support, disabled SMC pinctrl] Co-developed-by: Nick Chan <towinchenmi@gmail.com> Signed-off-by: Nick Chan <towinchenmi@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Neal Gompa <neal@gompa.dev> Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent a9a28af commit d23457a

12 files changed

Lines changed: 407 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ dtb-$(CONFIG_ARCH_APPLE) += t8011-j120.dtb
4646
dtb-$(CONFIG_ARCH_APPLE) += t8011-j121.dtb
4747
dtb-$(CONFIG_ARCH_APPLE) += t8011-j207.dtb
4848
dtb-$(CONFIG_ARCH_APPLE) += t8011-j208.dtb
49+
dtb-$(CONFIG_ARCH_APPLE) += t8015-d201.dtb
50+
dtb-$(CONFIG_ARCH_APPLE) += t8015-d20.dtb
51+
dtb-$(CONFIG_ARCH_APPLE) += t8015-d211.dtb
52+
dtb-$(CONFIG_ARCH_APPLE) += t8015-d21.dtb
53+
dtb-$(CONFIG_ARCH_APPLE) += t8015-d221.dtb
54+
dtb-$(CONFIG_ARCH_APPLE) += t8015-d22.dtb
4955
dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb
5056
dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb
5157
dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone 8 common device tree
4+
*
5+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
6+
*/
7+
8+
#include "t8015.dtsi"
9+
#include "t8015-common.dtsi"
10+
11+
/ {
12+
chassis-type = "handset";
13+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone 8 Plus common device tree
4+
*
5+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
6+
*/
7+
8+
/* The 8 Plus has minor differences like 1 more camera, 1 GiB of RAM more and a bigger display. */
9+
#include "t8015-8.dtsi"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone 8, iPhone 8 Plus, iPhone X
4+
*
5+
* This file contains parts common to all Apple A11 devices.
6+
*
7+
* target-type: D20, D21, D22, D201, D211, D221
8+
*
9+
* Copyright (c) 2024, Nick Chan <towinchenmi@gmail.com>
10+
*/
11+
12+
/ {
13+
aliases {
14+
serial0 = &serial0;
15+
};
16+
17+
chosen {
18+
#address-cells = <2>;
19+
#size-cells = <2>;
20+
ranges;
21+
22+
stdout-path = "serial0";
23+
24+
framebuffer0: framebuffer@0 {
25+
compatible = "apple,simple-framebuffer", "simple-framebuffer";
26+
reg = <0 0 0 0>; /* To be filled by loader */
27+
/* Format properties will be added by loader */
28+
status = "disabled";
29+
};
30+
};
31+
32+
memory@800000000 {
33+
device_type = "memory";
34+
reg = <0x8 0 0 0>; /* To be filled by loader */
35+
};
36+
37+
reserved-memory {
38+
#address-cells = <2>;
39+
#size-cells = <2>;
40+
ranges;
41+
42+
/* To be filled by loader */
43+
};
44+
};
45+
46+
&serial0 {
47+
status = "okay";
48+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone 8 (Global), D20 iPhone10,1 (A1863/A1906/A1907)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8015-8.dtsi"
10+
11+
/ {
12+
compatible = "apple,d20", "apple,t8015", "apple,arm-platform";
13+
model = "Apple iPhone 8 (Global)";
14+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone 8 (GSM), D20 iPhone10,4 (A1905)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8015-8.dtsi"
10+
11+
/ {
12+
compatible = "apple,d201", "apple,t8015", "apple,arm-platform";
13+
model = "Apple iPhone 8 (GSM)";
14+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone 8 Plus (Global), D21 iPhone10,2 (A1864/A1897/A1898)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8015-8plus.dtsi"
10+
11+
/ {
12+
compatible = "apple,d21", "apple,t8015", "apple,arm-platform";
13+
model = "Apple iPhone 8 Plus (Global)";
14+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone 8 Plus (GSM), D211 iPhone10,5 (A1899)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8015-8plus.dtsi"
10+
11+
/ {
12+
compatible = "apple,d211", "apple,t8015", "apple,arm-platform";
13+
model = "Apple iPhone 8 Plus (GSM)";
14+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone X (Global), D22, iPhone10,3 (A1865)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8015-x.dtsi"
10+
11+
/ {
12+
compatible = "apple,d22", "apple,t8015", "apple,arm-platform";
13+
model = "Apple iPhone X (Global)";
14+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone X (GSM), D221, iPhone10,6 (A1901)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8015-x.dtsi"
10+
11+
/ {
12+
compatible = "apple,d221", "apple,t8015", "apple,arm-platform";
13+
model = "Apple iPhone X (GSM)";
14+
};

0 commit comments

Comments
 (0)