From de86dd32b8b98662a19e1c7725b212c44fcdb810 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:08:57 -0600 Subject: [PATCH 1/2] arm64: dts: apple: link K114 and K116 framebuffers to their panels Link the shared boot framebuffer to one panel under DCP. Keep the panel node with the board family and set its dimensions per board. Use 302 by 199 mm for the 14-inch panels based on the K114c mode and 254 ppi. Keep the existing 16-inch size and K116s compatible. All four DTBs compile and resolve the framebuffer panel phandle. Both the framebuffer and DCP stay disabled for the loader. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- .../arm64/boot/dts/apple/t6050-k114-k116.dtsi | 9 ++++++++ arch/arm64/boot/dts/apple/t6050-k114c.dts | 5 ++++- arch/arm64/boot/dts/apple/t6050-k114s.dts | 7 ++++-- arch/arm64/boot/dts/apple/t6050-k116c.dts | 7 ++++-- arch/arm64/boot/dts/apple/t6050-k116s.dts | 22 +++++++++---------- 5 files changed, 33 insertions(+), 17 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi b/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi index f7cedd1a4c854..ce1bf12edf553 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi @@ -47,6 +47,7 @@ reg = <0 0 0 0>; /* To be filled by the loader */ /* Format properties will be added by the loader */ status = "disabled"; + panel = <&panel>; }; }; @@ -243,3 +244,11 @@ &smc_pcio { apple,output-commands = /bits/ 64 <0x001a000000000000 0x000f000000800000 0x011c000000010000>; }; + +#include "t6050-peripherals.dtsi" + +&dcp { + panel: panel { + compatible = "apple,panel"; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-k114c.dts b/arch/arm64/boot/dts/apple/t6050-k114c.dts index 13ea865ba58e1..36267c49cd702 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114c.dts +++ b/arch/arm64/boot/dts/apple/t6050-k114c.dts @@ -22,7 +22,10 @@ firmware-name = "apple/tpmtfw-k114c.bin"; }; -#include "t6050-peripherals.dtsi" +&panel { + width-mm = <302>; + height-mm = <199>; +}; / { aliases { diff --git a/arch/arm64/boot/dts/apple/t6050-k114s.dts b/arch/arm64/boot/dts/apple/t6050-k114s.dts index caa609babef0d..57954cf379958 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k114s.dts @@ -9,6 +9,7 @@ * Copyright The Asahi Linux Contributors */ +#define T6050_K114S #include "t6050-k114-k116.dtsi" / { @@ -20,5 +21,7 @@ firmware-name = "apple/tpmtfw-k114s.bin"; }; -#define T6050_K114S -#include "t6050-peripherals.dtsi" +&panel { + width-mm = <302>; + height-mm = <199>; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-k116c.dts b/arch/arm64/boot/dts/apple/t6050-k116c.dts index ff9e875fb1951..229456fe92c9d 100644 --- a/arch/arm64/boot/dts/apple/t6050-k116c.dts +++ b/arch/arm64/boot/dts/apple/t6050-k116c.dts @@ -9,6 +9,7 @@ * Copyright The Asahi Linux Contributors */ +#define T6050_K116C #include "t6050-k114-k116.dtsi" / { @@ -20,5 +21,7 @@ firmware-name = "apple/tpmtfw-k116c.bin"; }; -#define T6050_K116C -#include "t6050-peripherals.dtsi" +&panel { + width-mm = <345>; + height-mm = <223>; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-k116s.dts b/arch/arm64/boot/dts/apple/t6050-k116s.dts index fe6468edc72c1..2ba7a9782fece 100644 --- a/arch/arm64/boot/dts/apple/t6050-k116s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k116s.dts @@ -9,6 +9,7 @@ * Copyright The Asahi Linux Contributors */ +#define T6050_K116S #include "t6050-k114-k116.dtsi" / { @@ -20,9 +21,6 @@ firmware-name = "apple/tpmtfw-k116s.bin"; }; -#define T6050_K116S -#include "t6050-peripherals.dtsi" - / { aliases { /* The loader fills the N1's factory addresses through these */ @@ -422,16 +420,16 @@ * over, as on the J714s, and refuses a tree that already has them. */ apple,clock-ids = <361 458>; +}; - /* - * The 16.2-inch 3456x2234 tandem OLED panel. The ADT carries no dimensions; - * these are the panel's active area, for the DPI only. - */ - panel { - compatible = "apple,panel-k116", "apple,panel"; - width-mm = <345>; - height-mm = <223>; - }; +/* + * The 16.2-inch 3456x2234 tandem OLED panel. The ADT carries no dimensions; + * these are the panel's active area, for the DPI only. + */ +&panel { + compatible = "apple,panel-k116", "apple,panel"; + width-mm = <345>; + height-mm = <223>; }; /* The ADT lists no clocks for the external engines (clock-ids = []) */ From 20102083d17e71564d367b1af689f874feb5ef5c Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Wed, 2 Dec 2026 15:14:40 -0500 Subject: [PATCH 2/2] arm64: dts: apple: t6050-k114-k116: keep the panel link out of probe order `panel` is a fw_devlink supplier property, and the panel node sits under the DCP. Once the DCP is handed over, simpledrm waits for apple-drm to probe first, so it is never kicked out and the session gets two eDP connectors. Without apple-drm it never probes at all. List the panel as a post-init provider next to the phandle, as the t600x laptops do. simpledrm keeps the panel size lookup, and the probe order no longer depends on it. Signed-off-by: DjDeveloperr --- arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi b/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi index aa65453239d6b..c8956dd4691af 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi @@ -52,6 +52,7 @@ /* Scanned out by the internal DCP, handed off or not. */ display = <&dcp>; panel = <&panel>; + post-init-providers = <&panel>; status = "disabled"; }; };