Skip to content

Commit 4b9eeff

Browse files
konradybciomarcan
authored andcommitted
arm64: dts: apple: Add A7 devices
Add DTS files for the A7 SoC and the following devices based on it: - iPhone 5s - iPad Air (1) - iPad mini 2 - iPad mini 3 Signed-off-by: Konrad Dybcio <konradybcio@kernel.org> [Nick: SMP and m1n1 support, gpio-keys additions] 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 cc35d5b commit 4b9eeff

18 files changed

Lines changed: 493 additions & 0 deletions

arch/arm64/boot/dts/apple/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# SPDX-License-Identifier: GPL-2.0
2+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j71.dtb
3+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j73.dtb
4+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j85m.dtb
5+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j86m.dtb
6+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j87m.dtb
7+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-n53.dtb
8+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j72.dtb
9+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j85.dtb
10+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j86.dtb
11+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j87.dtb
12+
dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-n51.dtb
213
dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb
314
dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb
415
dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPhone 5s common device tree
4+
* Based on A7 (APL0698), up to 1.3GHz
5+
*
6+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
7+
*/
8+
9+
#include "s5l8960x.dtsi"
10+
#include "s5l8960x-common.dtsi"
11+
#include <dt-bindings/input/input.h>
12+
13+
/ {
14+
chassis-type = "handset";
15+
16+
gpio-keys {
17+
compatible = "gpio-keys";
18+
19+
button-home {
20+
label = "Home Button";
21+
gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>;
22+
linux,code = <KEY_HOMEPAGE>;
23+
wakeup-source;
24+
};
25+
26+
button-power {
27+
label = "Power Button";
28+
gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>;
29+
linux,code = <KEY_POWER>;
30+
wakeup-source;
31+
};
32+
33+
button-voldown {
34+
label = "Volume Down";
35+
gpios = <&pinctrl 5 GPIO_ACTIVE_LOW>;
36+
linux,code = <KEY_VOLUMEDOWN>;
37+
};
38+
39+
button-volup {
40+
label = "Volume Up";
41+
gpios = <&pinctrl 4 GPIO_ACTIVE_LOW>;
42+
linux,code = <KEY_VOLUMEUP>;
43+
};
44+
45+
switch-mute {
46+
label = "Mute Switch";
47+
gpios = <&pinctrl 16 GPIO_ACTIVE_LOW>;
48+
linux,code = <KEY_MUTE>;
49+
};
50+
};
51+
};
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iPad Air common device tree
4+
* Based on A7 (APL5698), up to 1.4GHz
5+
*
6+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
7+
*/
8+
9+
#include "s5l8960x.dtsi"
10+
#include "s5l8960x-common.dtsi"
11+
#include <dt-bindings/input/input.h>
12+
13+
/ {
14+
chassis-type = "tablet";
15+
16+
gpio-keys {
17+
compatible = "gpio-keys";
18+
19+
button-home {
20+
label = "Home Button";
21+
gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>;
22+
linux,code = <KEY_HOMEPAGE>;
23+
wakeup-source;
24+
};
25+
26+
button-power {
27+
label = "Power Button";
28+
gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>;
29+
linux,code = <KEY_POWER>;
30+
wakeup-source;
31+
};
32+
33+
button-voldown {
34+
label = "Volume Down";
35+
gpios = <&pinctrl 4 GPIO_ACTIVE_LOW>;
36+
linux,code = <KEY_VOLUMEDOWN>;
37+
};
38+
39+
button-volup {
40+
label = "Volume Up";
41+
gpios = <&pinctrl 5 GPIO_ACTIVE_LOW>;
42+
linux,code = <KEY_VOLUMEUP>;
43+
};
44+
45+
switch-mute {
46+
label = "Mute Switch";
47+
gpios = <&pinctrl 110 GPIO_ACTIVE_LOW>;
48+
linux,code = <KEY_MUTE>;
49+
};
50+
};
51+
};
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 5s, iPad mini 2/3, iPad Air
4+
*
5+
* This file contains parts common to all Apple A7 devices.
6+
*
7+
* target-type: J71, J72, J73, J85, J85m, J86, J86m, J87, J87m, N51, N53
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 iPad Air (Wi-Fi), J71, iPad4,1 (A1474)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "s5l8960x-air1.dtsi"
10+
11+
/ {
12+
compatible = "apple,j71", "apple,s5l8960x", "apple,arm-platform";
13+
model = "Apple iPad Air (Wi-Fi)";
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 iPad Air (Cellular), J72, iPad4,2 (A1475)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "s5l8960x-air1.dtsi"
10+
11+
/ {
12+
compatible = "apple,j72", "apple,s5l8960x", "apple,arm-platform";
13+
model = "Apple iPad Air (Cellular)";
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 iPad Air (Cellular, China), J73, iPad4,2 (A1476)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "s5l8960x-air1.dtsi"
10+
11+
/ {
12+
compatible = "apple,j73", "apple,s5l8960x", "apple,arm-platform";
13+
model = "Apple iPad Air (Cellular, China)";
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 iPad mini 2 (Wi-Fi), J85, iPad4,4 (A1489)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "s5l8960x-mini2.dtsi"
10+
11+
/ {
12+
compatible = "apple,j85", "apple,s5l8960x", "apple,arm-platform";
13+
model = "Apple iPad mini 2 (Wi-Fi)";
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 iPad mini 3 (Wi-Fi), J85m, iPad4,7 (A1599)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "s5l8960x-mini3.dtsi"
10+
11+
/ {
12+
compatible = "apple,j85m", "apple,s5l8960x", "apple,arm-platform";
13+
model = "Apple iPad mini 3 (Wi-Fi)";
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 iPad mini 2 (Cellular), J86, iPad4,5 (A1490)
4+
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "s5l8960x-mini2.dtsi"
10+
11+
/ {
12+
compatible = "apple,j86", "apple,s5l8960x", "apple,arm-platform";
13+
model = "Apple iPad mini 2 (Cellular)";
14+
};

0 commit comments

Comments
 (0)