Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions arch/arm64/boot/dts/apple/t6050-k114c-display.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* K114c (M5 Max) internal panel, for the boot loader's display handoff. Everything here
* stays disabled: the loader checks the ADT and the live DCP and DART state, publishes the
* DCP's firmware properties, and only then enables the nodes. A loader without the handoff,
* or one whose checks fail, leaves the boot framebuffer to simpledrm.
*
* Same layout as the internal panel half of t6050-j714s-gpu-panel.dtsi. The panel is the
* 14.2-inch tandem OLED of the K114 (ADT oled-display), with no I2C backlight controller, so
* its brightness is a DCP request (ADT backlight node: dcp-brightness-node).
*/

/ {
aliases {
/* The loader writes apple,notch-height into the "dcp" alias */
dcp = &dcp;
disp0 = &display;
};

/* As on t6050-ultra.dtsi, with the internal display's DART (disp0, SID 0) */
display: display-subsystem {
compatible = "apple,display-subsystem";
iommus = <&disp0_dart 0>;
status = "disabled";
};
};

/* ADT dart-dcp and dart-disp0: vm-base 1 TiB, vm-size 3 TiB */
&dcp_dart {
apple,dma-range = <0x100 0x0 0x300 0x0>;
};

&disp0_dart {
apple,dma-range = <0x100 0x0 0x300 0x0>;
};

&dcp {
/* The ADT lists no clocks for the DCP (clock-ids = []); firmware 27 needs the property */
apple,clock-ids;

/*
* An OLED, so the generic panel node only, not the mini-LED compatible. The
* DCP reports 3024x1986. The K114c ADT does not give the panel dimensions;
* the values below use the J714s panel size. The K114c ADT backlight node
* gives a user-accessible maximum of 1000 nits (0x03e80000 in 16.16).
*/
panel {
compatible = "apple,panel";
width-mm = <302>;
height-mm = <196>;
apple,max-brightness = <1000>;
};
};
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/apple/t6050-k114c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
};

#include "t6050-k114c-gpu.dtsi"
#include "t6050-k114c-display.dtsi"

/*
* Sound through the AOP, as on J813: its audio service runs the serializers, the
Expand Down
Loading