Skip to content

Commit 33ee92b

Browse files
konradybciomarcan
authored andcommitted
arm64: dts: apple: Add A10 devices
Add DTS files for the A10 SoC and the following devices based on it: - iPhone 7 - iPhone 7 Plus - iPod touch 7 - iPad 6 - iPad 7 Signed-off-by: Konrad Dybcio <konradybcio@kernel.org> [Nick: SMP, m1n1 and AOP pinctrl support] 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 1100a11 commit 33ee92b

15 files changed

Lines changed: 450 additions & 0 deletions

arch/arm64/boot/dts/apple/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ dtb-$(CONFIG_ARCH_APPLE) += s8001-j127.dtb
3232
dtb-$(CONFIG_ARCH_APPLE) += s8001-j128.dtb
3333
dtb-$(CONFIG_ARCH_APPLE) += s8001-j98a.dtb
3434
dtb-$(CONFIG_ARCH_APPLE) += s8001-j99a.dtb
35+
dtb-$(CONFIG_ARCH_APPLE) += t8010-d101.dtb
36+
dtb-$(CONFIG_ARCH_APPLE) += t8010-d10.dtb
37+
dtb-$(CONFIG_ARCH_APPLE) += t8010-d111.dtb
38+
dtb-$(CONFIG_ARCH_APPLE) += t8010-d11.dtb
39+
dtb-$(CONFIG_ARCH_APPLE) += t8010-j171.dtb
40+
dtb-$(CONFIG_ARCH_APPLE) += t8010-j172.dtb
41+
dtb-$(CONFIG_ARCH_APPLE) += t8010-j71b.dtb
42+
dtb-$(CONFIG_ARCH_APPLE) += t8010-j72b.dtb
43+
dtb-$(CONFIG_ARCH_APPLE) += t8010-n112.dtb
3544
dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb
3645
dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb
3746
dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone 7 / 7 Plus common device tree
4+
*
5+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
6+
*/
7+
8+
#include "t8010.dtsi"
9+
#include "t8010-common.dtsi"
10+
#include <dt-bindings/input/input.h>
11+
12+
/ {
13+
chassis-type = "handset";
14+
15+
gpio-keys {
16+
compatible = "gpio-keys";
17+
18+
button-power {
19+
label = "Power Button";
20+
gpios = <&pinctrl_ap 179 GPIO_ACTIVE_LOW>;
21+
linux,code = <KEY_POWER>;
22+
wakeup-source;
23+
};
24+
25+
button-voldown {
26+
label = "Volume Down";
27+
gpios = <&pinctrl_ap 180 GPIO_ACTIVE_LOW>;
28+
linux,code = <KEY_VOLUMEDOWN>;
29+
};
30+
31+
button-volup {
32+
label = "Volume Up";
33+
gpios = <&pinctrl_ap 23 GPIO_ACTIVE_LOW>;
34+
linux,code = <KEY_VOLUMEUP>;
35+
};
36+
37+
switch-mute {
38+
label = "Mute Switch";
39+
gpios = <&pinctrl_ap 86 GPIO_ACTIVE_LOW>;
40+
linux,code = <KEY_MUTE>;
41+
};
42+
};
43+
};
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 7, iPhone 7 Plus, iPad 6, iPad 7, iPod touch 7
4+
*
5+
* This file contains parts common to all Apple A10 devices.
6+
*
7+
* target-type: D10, D11, D101, D111, J71b, J72b, J171, J172, N112
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 7 (Qualcomm), D10, iPhone9,1 (A1660/A1778/A1779/A1780)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8010-7.dtsi"
10+
11+
/ {
12+
compatible = "apple,d10", "apple,t8010", "apple,arm-platform";
13+
model = "Apple iPhone 7 (Qualcomm)";
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 7 (Intel), D101, iPhone9,3 (A1660/A1778/A1779/A1780)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8010-7.dtsi"
10+
11+
/ {
12+
compatible = "apple,d101", "apple,t8010", "apple,arm-platform";
13+
model = "Apple iPhone 7 (Intel)";
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 7 Plus (Qualcomm), D11, iPhone9,2 (A1661/A1784/A1785/A1786)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8010-7.dtsi"
10+
11+
/ {
12+
compatible = "apple,d11", "apple,t8010", "apple,arm-platform";
13+
model = "Apple iPhone 7 Plus (Qualcomm)";
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 7 Plus (Intel), D111, iPhone9,4 (A1661/A1784/A1785/A1786)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8010-7.dtsi"
10+
11+
/ {
12+
compatible = "apple,d111", "apple,t8010", "apple,arm-platform";
13+
model = "Apple iPhone 7 Plus (Intel)";
14+
};
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPad 6 common device tree
4+
*
5+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
6+
*/
7+
8+
#include "t8010.dtsi"
9+
#include "t8010-common.dtsi"
10+
#include <dt-bindings/input/input.h>
11+
12+
/ {
13+
chassis-type = "tablet";
14+
15+
gpio-keys {
16+
compatible = "gpio-keys";
17+
18+
button-home {
19+
label = "Home Button";
20+
gpios = <&pinctrl_ap 180 GPIO_ACTIVE_LOW>;
21+
linux,code = <KEY_HOMEPAGE>;
22+
wakeup-source;
23+
};
24+
25+
button-power {
26+
label = "Power Button";
27+
gpios = <&pinctrl_ap 179 GPIO_ACTIVE_LOW>;
28+
linux,code = <KEY_POWER>;
29+
wakeup-source;
30+
};
31+
32+
button-voldown {
33+
label = "Volume Down";
34+
gpios = <&pinctrl_ap 89 GPIO_ACTIVE_LOW>;
35+
linux,code = <KEY_VOLUMEDOWN>;
36+
};
37+
38+
button-volup {
39+
label = "Volume Up";
40+
gpios = <&pinctrl_ap 90 GPIO_ACTIVE_LOW>;
41+
linux,code = <KEY_VOLUMEUP>;
42+
};
43+
};
44+
};
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 iPad 7 common device tree
4+
*
5+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
6+
*/
7+
8+
/*
9+
* The iPad 7 seems to be only an iteration over the iPad 6 with some
10+
* small changes, like the a bigger screen and 1 GiB of RAM more, hence
11+
* there is little to no differentiation between these 2 generations for
12+
* now.
13+
*/
14+
#include "t8010-ipad6.dtsi"
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 iPad 7 (Wi-Fi), J171, iPad7,11 (A2197)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "t8010-ipad7.dtsi"
10+
11+
/ {
12+
compatible = "apple,j171", "apple,t8010", "apple,arm-platform";
13+
model = "Apple iPad 7 (Wi-Fi)";
14+
};

0 commit comments

Comments
 (0)