Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 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
6 changes: 3 additions & 3 deletions arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1510,10 +1510,10 @@
/arm-io/sgx/:sotra_h17s_0 - -> MISSING
/arm-io/sgx/:sotra_h17cr1_0 - -> MISSING
/arm-io/sgx/:sotra_h17cr2_0 - -> MISSING
/arm-io/gfx-asc 0x2302600000 -> MISSING
/arm-io/gfx-asc 0x2302600000 -> /soc/mailbox@2302600000
/arm-io/gfx-asc/iop-gfx-nub - -> WAIVED: Firmware endpoint container; hosting coprocessor is inventoried separately.
/arm-io/gfx1-asc 0x2302e00000 -> /soc/gpu-coproc@2302e00000
/arm-io/gfx1-asc/iop-gfx1-nub - -> /soc/gpu-coproc@2302e00000
/arm-io/gfx1-asc 0x2302e00000 -> /soc/mailbox@2302e00000
/arm-io/gfx1-asc/iop-gfx1-nub - -> /soc/mailbox@2302e00000
/arm-io/mapper-gfx-asc - -> WAIVED: GPU firmware IOMMU stream; represented by the GPU IOMMU relationship.
/arm-io/sapt - -> WAIVED: Firmware audio performance policy, not an independent hardware block.
/arm-io/sapt/:sotra_h17d_92 - -> MISSING
Expand Down
138 changes: 3 additions & 135 deletions arch/arm64/boot/dts/apple/t6050-j714s-gpu-panel.dtsi
Original file line number Diff line number Diff line change
@@ -1,81 +1,10 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* J714s internal panel, external display engines and GPU (G17S), for the boot
* loader's display and GPU handoff. Everything here stays disabled: the loader
* checks the ADT and the live DCP, DART and GPU firmware state, publishes the
* DCP's firmware properties and fills the GPU reservations, and only then
* enables the nodes, the GPU last. A loader without the handoff, or one whose
* checks fail, leaves the boot framebuffer to simpledrm and the GPU off.
*
* Values are from the J714sAP 27.0 ADT (dcp, dart-dcp, dart-disp0, dcpext*,
* dart-dcpext*, dart-dispext*, sgx, gfx-asc, gfx1-asc, pmgr) and the GPU
* firmware's own boot arguments (dArW, the two ASC wrappers).
* J714s internal panel and GPU (G17S), for the boot loader's display and GPU
* handoff: the chip-level nodes shared with the J716s, and this board's panel.
*/

/ {
aliases {
/* The loader writes apple,notch-height into the "dcp" alias */
dcp = &dcp;
disp0 = &display;
/* The loader finds the GPU through this alias */
gpu = &sgx;
};

/* 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";
};

reserved-memory {
/* Filled and enabled by the loader from the ADT */
gpu_fw_text: gpu-fw-text {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

gpu_fw_data: gpu-fw-data {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

uat_ttbs: uat-ttbs {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

uat_pagetables: uat-pagetables {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

uat_l2_pagetables: uat-l2-pagetables {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

uat_handoff: uat-handoff {
reg = <0 0 0 0>;
no-map;
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>;
};
#include "t6050-j714s-j716s-gpu.dtsi"

&dcp {
/*
Expand All @@ -89,64 +18,3 @@
adj-height-mm = <189>;
};
};

/* The inventory ASC nodes; the mailboxes below describe the same windows. */
/delete-node/ &gfx_asc;
/delete-node/ &gfx1_asc;

&{/soc} {
/*
* ADT gfx-asc and gfx1-asc at their physical windows: the wrapper, the
* 8-byte iop-vbar, and their second and third interrupts (send-empty,
* recv-not-empty), as T8140/T8142.
*/
gfx_mbox: mailbox@2302600000 {
compatible = "apple,t6050-j775d-ascwrap-v6";
reg = <0x23 0x2600000 0x0 0x88000>,
<0x23 0x2050000 0x0 0x8>;
reg-names = "wrapper", "iop-vbar";
interrupts = <AIC_IRQ 0 2797 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 2800 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "send-empty", "recv-not-empty";
apple,firmware-role = "GFX";
power-domains = <&ps_gfx>;
#mbox-cells = <0>;
status = "disabled";
};

gfx1_mbox: mailbox@2302e00000 {
compatible = "apple,t6050-j775d-ascwrap-v6";
reg = <0x23 0x2e00000 0x0 0x88000>,
<0x23 0x2850000 0x0 0x8>;
reg-names = "wrapper", "iop-vbar";
interrupts = <AIC_IRQ 0 2801 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 2804 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "send-empty", "recv-not-empty";
apple,firmware-role = "GFX1";
power-domains = <&ps_gfx>;
#mbox-cells = <0>;
status = "disabled";
};
};

/* The ADT marks GPX and AFR, GFX's parents, critical. */
&ps_gpx {
apple,always-on;
};

&ps_afr {
apple,always-on;
};

&sgx {
compatible = "apple,agx-g17s";
/* ADT sgx reg[0]; the driver maps the first 16 MiB as "sgx" */
reg = <0x23 0x0 0x0 0x3fdc000>;
reg-names = "sgx";
/delete-property/ interrupts;
mboxes = <&gfx_mbox>, <&gfx1_mbox>;
memory-region = <&uat_ttbs>, <&uat_pagetables>, <&uat_handoff>,
<&gpu_fw_data>, <&uat_l2_pagetables>, <&gpu_fw_text>;
memory-region-names = "ttbs", "pagetables", "handoff", "fw-data",
"l2-pagetables", "fw-text";
};
141 changes: 141 additions & 0 deletions arch/arm64/boot/dts/apple/t6050-j714s-j716s-gpu.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* The chip-level internal display and GPU (G17S) nodes of the J714s and J716s, for the
* boot loader's display and GPU handoff. Each board's t6050-<board>-gpu-panel.dtsi
* includes this and adds its panel. Everything here stays disabled: the loader
* checks the ADT and the live DCP, DART and GPU firmware state, publishes the
* DCP's firmware properties and fills the GPU reservations, and only then
* enables the nodes, the GPU last. A loader without the handoff, or one whose
* checks fail, leaves the boot framebuffer to simpledrm and the GPU off.
*
* Values are from the J714sAP 27.0 ADT (dcp, dart-dcp, dart-disp0, sgx, gfx-asc,
* gfx1-asc, pmgr) and the GPU firmware's own boot arguments (dArW, the two ASC
* wrappers). The J716sAP 27.2 ADT has the same sgx, gfx-asc, gfx1-asc, dart-dcp
* and dart-disp0 values.
*/

/ {
aliases {
/* The loader writes apple,notch-height into the "dcp" alias */
dcp = &dcp;
disp0 = &display;
/* The loader finds the GPU through this alias */
gpu = &sgx;
};

/* 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";
};

reserved-memory {
/* Filled and enabled by the loader from the ADT */
gpu_fw_text: gpu-fw-text {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

gpu_fw_data: gpu-fw-data {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

uat_ttbs: uat-ttbs {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

uat_pagetables: uat-pagetables {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

uat_l2_pagetables: uat-l2-pagetables {
reg = <0 0 0 0>;
no-map;
status = "disabled";
};

uat_handoff: uat-handoff {
reg = <0 0 0 0>;
no-map;
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>;
};

/* The inventory ASC nodes; the mailboxes below describe the same windows. */
/delete-node/ &gfx_asc;
/delete-node/ &gfx1_asc;

&{/soc} {
/*
* ADT gfx-asc and gfx1-asc at their physical windows: the wrapper, the
* 8-byte iop-vbar, and their second and third interrupts (send-empty,
* recv-not-empty), as T8140/T8142.
*/
gfx_mbox: mailbox@2302600000 {
compatible = "apple,t6050-j775d-ascwrap-v6";
reg = <0x23 0x2600000 0x0 0x88000>,
<0x23 0x2050000 0x0 0x8>;
reg-names = "wrapper", "iop-vbar";
interrupts = <AIC_IRQ 0 2797 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 2800 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "send-empty", "recv-not-empty";
apple,firmware-role = "GFX";
power-domains = <&ps_gfx>;
#mbox-cells = <0>;
status = "disabled";
};

gfx1_mbox: mailbox@2302e00000 {
compatible = "apple,t6050-j775d-ascwrap-v6";
reg = <0x23 0x2e00000 0x0 0x88000>,
<0x23 0x2850000 0x0 0x8>;
reg-names = "wrapper", "iop-vbar";
interrupts = <AIC_IRQ 0 2801 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 2804 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "send-empty", "recv-not-empty";
apple,firmware-role = "GFX1";
power-domains = <&ps_gfx>;
#mbox-cells = <0>;
status = "disabled";
};
};

/* The ADT marks GPX and AFR, GFX's parents, critical. */
&ps_gpx {
apple,always-on;
};

&ps_afr {
apple,always-on;
};

&sgx {
compatible = "apple,agx-g17s";
/* ADT sgx reg[0]; the driver maps the first 16 MiB as "sgx" */
reg = <0x23 0x0 0x0 0x3fdc000>;
reg-names = "sgx";
/delete-property/ interrupts;
mboxes = <&gfx_mbox>, <&gfx1_mbox>;
memory-region = <&uat_ttbs>, <&uat_pagetables>, <&uat_handoff>,
<&gpu_fw_data>, <&uat_l2_pagetables>, <&gpu_fw_text>;
memory-region-names = "ttbs", "pagetables", "handoff", "fw-data",
"l2-pagetables", "fw-text";
};
23 changes: 23 additions & 0 deletions arch/arm64/boot/dts/apple/t6050-j716s-gpu-panel.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* J716s internal panel and GPU (G17S), for the boot loader's display and GPU
* handoff: the chip-level nodes shared with the J714s, and this board's panel.
* The external display engines are left out: their routes on this board are
* not described yet, so they stay as t6050 leaves them.
*/

#include "t6050-j714s-j716s-gpu.dtsi"

&dcp {
/*
* The 16.2-inch 3456x2234 mini-LED panel. width-mm and height-mm are
* computed from its 254.6 ppi; adj-height-mm is the 2160 rows below the
* 74-row notch.
*/
panel {
compatible = "apple,panel-j716", "apple,panel-mini-led", "apple,panel";
width-mm = <345>;
height-mm = <223>;
adj-height-mm = <216>;
};
};
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/apple/t6050-j716s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -591,3 +591,6 @@

/* The camera. The loader sets the platform ID from the ADT isp0 sensor-type (0x76). */
#include "t6050-isp.dtsi"

/* The GPU and the internal panel, for the boot loader's handoff */
#include "t6050-j716s-gpu-panel.dtsi"
Loading