* [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes
@ 2025-02-28 4:32 Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 1/5] arm64: dts: apple: s5l8960x: Add backlight nodes Nick Chan
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Nick Chan @ 2025-02-28 4:32 UTC (permalink / raw)
To: Janne Grunau, Sven Peter, Alyssa Rosenzweig, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Nick Chan
Add device tree nodes for DWI backlight found on some Apple iPhones, iPads
and iPod touches. Not all devices have this feature, as some devices
instead have their backlights directly connected to the WLED output of a
PMU or use self-emissive panels.
Resned because a network error occured and some patches failed to send.
Devicetree bindings are in the driver series. Last version at:
https://lore.kernel.org/asahi/20250214040306.16312-1-towinchenmi@gmail.com/
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
Changes in v2:
- Fix typo s/iPad touch 7/iPod touch 7/ in commit message.
- Pad "reg" property with a leading zero when needed
- Link to v1: https://lore.kernel.org/r/20250220-dwi-dt-v1-0-d742431c7373@gmail.com
---
Nick Chan (5):
arm64: dts: apple: s5l8960x: Add backlight nodes
arm64: dts: apple: t7000: Add backlight nodes
arm64: dts: apple: s800-0-3: Add backlight nodes
arm64: dts: apple: t8010: Add backlight nodes
arm64: dts: apple: t8015: Add backlight nodes
arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi | 4 ++++
arch/arm64/boot/dts/apple/s5l8960x.dtsi | 7 +++++++
arch/arm64/boot/dts/apple/s800-0-3-common.dtsi | 4 ++++
arch/arm64/boot/dts/apple/s800-0-3.dtsi | 7 +++++++
arch/arm64/boot/dts/apple/t7000-handheld.dtsi | 4 ++++
arch/arm64/boot/dts/apple/t7000.dtsi | 7 +++++++
arch/arm64/boot/dts/apple/t8010-common.dtsi | 4 ++++
arch/arm64/boot/dts/apple/t8010.dtsi | 7 +++++++
arch/arm64/boot/dts/apple/t8015-8.dtsi | 4 ++++
arch/arm64/boot/dts/apple/t8015.dtsi | 7 +++++++
10 files changed, 55 insertions(+)
---
base-commit: 5744902a35798e516def50348356f867a6c1f1c7
change-id: 20250220-dwi-dt-c9c7af33bd16
Best regards,
--
Nick Chan <towinchenmi@gmail.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH RESEND v2 1/5] arm64: dts: apple: s5l8960x: Add backlight nodes
2025-02-28 4:32 [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Nick Chan
@ 2025-02-28 4:32 ` Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 2/5] arm64: dts: apple: t7000: " Nick Chan
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Nick Chan @ 2025-02-28 4:32 UTC (permalink / raw)
To: Janne Grunau, Sven Peter, Alyssa Rosenzweig, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Nick Chan
Add DWI backlight controller nodes for Apple A7 SoC, and enable it for
iPhone 5s.
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi | 4 ++++
arch/arm64/boot/dts/apple/s5l8960x.dtsi | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi b/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi
index bfbd2629e206736822a157431ec959e1aa70f41b..8868df1538d68595cfe92c80b1fcecee42d348df 100644
--- a/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi
+++ b/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi
@@ -51,6 +51,10 @@ switch-mute {
};
};
+&dwi_bl {
+ status = "okay";
+};
+
&framebuffer0 {
power-domains = <&ps_disp0 &ps_mipi_dsi>;
};
diff --git a/arch/arm64/boot/dts/apple/s5l8960x.dtsi b/arch/arm64/boot/dts/apple/s5l8960x.dtsi
index 64dbae5c73515bb6a1651b9b26d349d0cfd0408a..d820b0e430507f681a5f2aa13a498be98080e1db 100644
--- a/arch/arm64/boot/dts/apple/s5l8960x.dtsi
+++ b/arch/arm64/boot/dts/apple/s5l8960x.dtsi
@@ -100,6 +100,13 @@ aic: interrupt-controller@20e100000 {
power-domains = <&ps_aic>;
};
+ dwi_bl: backlight@20e200010 {
+ compatible = "apple,s5l8960x-dwi-bl", "apple,dwi-bl";
+ reg = <0x2 0x0e200010 0x0 0x8>;
+ power-domains = <&ps_dwi>;
+ status = "disabled";
+ };
+
pinctrl: pinctrl@20e300000 {
compatible = "apple,s5l8960x-pinctrl", "apple,pinctrl";
reg = <0x2 0x0e300000 0x0 0x100000>;
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH RESEND v2 2/5] arm64: dts: apple: t7000: Add backlight nodes
2025-02-28 4:32 [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 1/5] arm64: dts: apple: s5l8960x: Add backlight nodes Nick Chan
@ 2025-02-28 4:32 ` Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 3/5] arm64: dts: apple: s800-0-3: " Nick Chan
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Nick Chan @ 2025-02-28 4:32 UTC (permalink / raw)
To: Janne Grunau, Sven Peter, Alyssa Rosenzweig, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Nick Chan
Add DWI backlight controller nodes for Apple A8 SoC, and enable it for:
- iPhone 6
- iPhone 6 Plus
- iPad mini 4
- iPod touch 6
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
arch/arm64/boot/dts/apple/t7000-handheld.dtsi | 4 ++++
arch/arm64/boot/dts/apple/t7000.dtsi | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/t7000-handheld.dtsi b/arch/arm64/boot/dts/apple/t7000-handheld.dtsi
index 8984c9ec6cc8e3c86281a3da719edb56c5bb7f5a..7b58aa648b53dadafb3a01d9ae1e01afa6cd5869 100644
--- a/arch/arm64/boot/dts/apple/t7000-handheld.dtsi
+++ b/arch/arm64/boot/dts/apple/t7000-handheld.dtsi
@@ -22,6 +22,10 @@ framebuffer0: framebuffer@0 {
};
};
+&dwi_bl {
+ status = "okay";
+};
+
&serial0 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/apple/t7000.dtsi b/arch/arm64/boot/dts/apple/t7000.dtsi
index 32cac8c30e62d657079dbf32aece8af0fd9cef38..85a34dc7bc01088167d33d7b7e1cdb78161c46d8 100644
--- a/arch/arm64/boot/dts/apple/t7000.dtsi
+++ b/arch/arm64/boot/dts/apple/t7000.dtsi
@@ -155,6 +155,13 @@ aic: interrupt-controller@20e100000 {
power-domains = <&ps_aic>;
};
+ dwi_bl: backlight@20e200010 {
+ compatible = "apple,t7000-dwi-bl", "apple,dwi-bl";
+ reg = <0x2 0x0e200010 0x0 0x8>;
+ power-domains = <&ps_dwi>;
+ status = "disabled";
+ };
+
pinctrl: pinctrl@20e300000 {
compatible = "apple,t7000-pinctrl", "apple,pinctrl";
reg = <0x2 0x0e300000 0x0 0x100000>;
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH RESEND v2 3/5] arm64: dts: apple: s800-0-3: Add backlight nodes
2025-02-28 4:32 [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 1/5] arm64: dts: apple: s5l8960x: Add backlight nodes Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 2/5] arm64: dts: apple: t7000: " Nick Chan
@ 2025-02-28 4:32 ` Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 4/5] arm64: dts: apple: t8010: " Nick Chan
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Nick Chan @ 2025-02-28 4:32 UTC (permalink / raw)
To: Janne Grunau, Sven Peter, Alyssa Rosenzweig, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Nick Chan
Add DWI backlight controller nodes for Apple A9 SoC, and enable it for:
- iPhone 6
- iPhone 6s
- iPhone SE
- iPad 5
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
arch/arm64/boot/dts/apple/s800-0-3-common.dtsi | 4 ++++
arch/arm64/boot/dts/apple/s800-0-3.dtsi | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/s800-0-3-common.dtsi b/arch/arm64/boot/dts/apple/s800-0-3-common.dtsi
index 4276bd890e81b16f19b04e1716a55f32f9a371d9..cb42c5f2c1b6caed4ae04ca0b6173e23bbda47f0 100644
--- a/arch/arm64/boot/dts/apple/s800-0-3-common.dtsi
+++ b/arch/arm64/boot/dts/apple/s800-0-3-common.dtsi
@@ -43,6 +43,10 @@ reserved-memory {
};
};
+&dwi_bl {
+ status = "okay";
+};
+
&serial0 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/apple/s800-0-3.dtsi b/arch/arm64/boot/dts/apple/s800-0-3.dtsi
index 2aec49f0da6467519aeb2561d00b14f46fe216fb..c0e9ae45627c8150bc0ddcdc1e6ab65d52fa7219 100644
--- a/arch/arm64/boot/dts/apple/s800-0-3.dtsi
+++ b/arch/arm64/boot/dts/apple/s800-0-3.dtsi
@@ -91,6 +91,13 @@ aic: interrupt-controller@20e100000 {
power-domains = <&ps_aic>;
};
+ dwi_bl: backlight@20e200080 {
+ compatible = "apple,s8000-dwi-bl", "apple,dwi-bl";
+ reg = <0x2 0x0e200080 0x0 0x8>;
+ power-domains = <&ps_dwi>;
+ status = "disabled";
+ };
+
pinctrl_ap: pinctrl@20f100000 {
compatible = "apple,s8000-pinctrl", "apple,pinctrl";
reg = <0x2 0x0f100000 0x0 0x100000>;
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH RESEND v2 4/5] arm64: dts: apple: t8010: Add backlight nodes
2025-02-28 4:32 [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Nick Chan
` (2 preceding siblings ...)
2025-02-28 4:32 ` [PATCH RESEND v2 3/5] arm64: dts: apple: s800-0-3: " Nick Chan
@ 2025-02-28 4:32 ` Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 5/5] arm64: dts: apple: t8015: " Nick Chan
2025-03-06 19:56 ` [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Sven Peter
5 siblings, 0 replies; 7+ messages in thread
From: Nick Chan @ 2025-02-28 4:32 UTC (permalink / raw)
To: Janne Grunau, Sven Peter, Alyssa Rosenzweig, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Nick Chan
Add DWI backlight controller nodes for Apple A10 SoC, and enable it for:
- iPhone 7
- iPhone 7 Plus
- iPod touch 7
- iPad 6
- iPad 7
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
arch/arm64/boot/dts/apple/t8010-common.dtsi | 4 ++++
arch/arm64/boot/dts/apple/t8010.dtsi | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/t8010-common.dtsi b/arch/arm64/boot/dts/apple/t8010-common.dtsi
index 6613fb57c92fffd41c34a61a78e7bb6b1888a5ea..44dc968638b13814baf94e782f2267191ce267f9 100644
--- a/arch/arm64/boot/dts/apple/t8010-common.dtsi
+++ b/arch/arm64/boot/dts/apple/t8010-common.dtsi
@@ -43,6 +43,10 @@ reserved-memory {
};
};
+&dwi_bl {
+ status = "okay";
+};
+
&serial0 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/apple/t8010.dtsi b/arch/arm64/boot/dts/apple/t8010.dtsi
index b355d443ee476e7c98b352470e3b1b5d0fae7652..17e294bd7c44c7961cc3ba0ec5f4178840d5b9c6 100644
--- a/arch/arm64/boot/dts/apple/t8010.dtsi
+++ b/arch/arm64/boot/dts/apple/t8010.dtsi
@@ -167,6 +167,13 @@ aic: interrupt-controller@20e100000 {
power-domains = <&ps_aic>;
};
+ dwi_bl: backlight@20e200080 {
+ compatible = "apple,t8010-dwi-bl", "apple,dwi-bl";
+ reg = <0x2 0x0e200080 0x0 0x8>;
+ power-domains = <&ps_dwi>;
+ status = "disabled";
+ };
+
pinctrl_ap: pinctrl@20f100000 {
compatible = "apple,t8010-pinctrl", "apple,pinctrl";
reg = <0x2 0x0f100000 0x0 0x100000>;
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH RESEND v2 5/5] arm64: dts: apple: t8015: Add backlight nodes
2025-02-28 4:32 [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Nick Chan
` (3 preceding siblings ...)
2025-02-28 4:32 ` [PATCH RESEND v2 4/5] arm64: dts: apple: t8010: " Nick Chan
@ 2025-02-28 4:32 ` Nick Chan
2025-03-06 19:56 ` [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Sven Peter
5 siblings, 0 replies; 7+ messages in thread
From: Nick Chan @ 2025-02-28 4:32 UTC (permalink / raw)
To: Janne Grunau, Sven Peter, Alyssa Rosenzweig, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Nick Chan
Add DWI backlight controller nodes for Apple A11 SoC, and enable it for:
- iPhone 8
- iPhone 8 Plus
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
arch/arm64/boot/dts/apple/t8015-8.dtsi | 4 ++++
arch/arm64/boot/dts/apple/t8015.dtsi | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/t8015-8.dtsi b/arch/arm64/boot/dts/apple/t8015-8.dtsi
index b6505b5185bdd728a7416efaa3dd53d1c6a5fab9..0300ee1a2ffb7d2bd0558f6cb6f86514f4b433a4 100644
--- a/arch/arm64/boot/dts/apple/t8015-8.dtsi
+++ b/arch/arm64/boot/dts/apple/t8015-8.dtsi
@@ -11,3 +11,7 @@
/ {
chassis-type = "handset";
};
+
+&dwi_bl {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/apple/t8015.dtsi b/arch/arm64/boot/dts/apple/t8015.dtsi
index b68647bebd20782ba7a125e670b3264c184b62cd..4d54afcecd50b50ed1fd386ccfc46c373e190e6b 100644
--- a/arch/arm64/boot/dts/apple/t8015.dtsi
+++ b/arch/arm64/boot/dts/apple/t8015.dtsi
@@ -262,6 +262,13 @@ pmgr: power-management@232000000 {
reg = <0x2 0x32000000 0 0x8c000>;
};
+ dwi_bl: backlight@232200080 {
+ compatible = "apple,t8015-dwi-bl", "apple,dwi-bl";
+ reg = <0x2 0x32200080 0x0 0x8>;
+ power-domains = <&ps_dwi>;
+ status = "disabled";
+ };
+
pinctrl_ap: pinctrl@233100000 {
compatible = "apple,t8015-pinctrl", "apple,pinctrl";
reg = <0x2 0x33100000 0x0 0x1000>;
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes
2025-02-28 4:32 [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Nick Chan
` (4 preceding siblings ...)
2025-02-28 4:32 ` [PATCH RESEND v2 5/5] arm64: dts: apple: t8015: " Nick Chan
@ 2025-03-06 19:56 ` Sven Peter
5 siblings, 0 replies; 7+ messages in thread
From: Sven Peter @ 2025-03-06 19:56 UTC (permalink / raw)
To: Janne Grunau, Alyssa Rosenzweig, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Nick Chan
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel
On Fri, 28 Feb 2025 12:32:11 +0800, Nick Chan wrote:
> Add device tree nodes for DWI backlight found on some Apple iPhones, iPads
> and iPod touches. Not all devices have this feature, as some devices
> instead have their backlights directly connected to the WLED output of a
> PMU or use self-emissive panels.
>
> Resned because a network error occured and some patches failed to send.
>
> [...]
Applied to git@github.com:AsahiLinux/linux.git (asahi-soc/dt), thanks!
[1/5] arm64: dts: apple: s5l8960x: Add backlight nodes
https://github.com/AsahiLinux/linux/commit/0f8f64b2329f
[2/5] arm64: dts: apple: t7000: Add backlight nodes
https://github.com/AsahiLinux/linux/commit/897359ae3c50
[3/5] arm64: dts: apple: s800-0-3: Add backlight nodes
https://github.com/AsahiLinux/linux/commit/4384b6c781bc
[4/5] arm64: dts: apple: t8010: Add backlight nodes
https://github.com/AsahiLinux/linux/commit/074db7d6f51b
[5/5] arm64: dts: apple: t8015: Add backlight nodes
https://github.com/AsahiLinux/linux/commit/e1bc21d8f8fd
Best regards,
--
Sven Peter <sven@svenpeter.dev>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-03-06 19:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-28 4:32 [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 1/5] arm64: dts: apple: s5l8960x: Add backlight nodes Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 2/5] arm64: dts: apple: t7000: " Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 3/5] arm64: dts: apple: s800-0-3: " Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 4/5] arm64: dts: apple: t8010: " Nick Chan
2025-02-28 4:32 ` [PATCH RESEND v2 5/5] arm64: dts: apple: t8015: " Nick Chan
2025-03-06 19:56 ` [PATCH RESEND v2 0/5] arm64: dts: apple: Add DWI backlight dt nodes Sven Peter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).