Skip to content
Closed
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
54 changes: 54 additions & 0 deletions arch/arm64/boot/dts/apple/t6002.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -380,3 +380,57 @@
};

#include "hwmon-common.dtsi"

/*
* The die 0 ANE is the same block as on the M1 Pro and M1 Max, so enable it
* the way t6001.dtsi does: with its DARTs, the power states only it uses and
* the die 0 PMP report for its clock-level requests.
*/
&ane {
apple,performance-controller = <&pmp_report>;
power-domains = <&ps_ane_sys_cpu>, <&ps_ane_set1>,
<&ps_ane_set2>, <&ps_ane_set3>, <&ps_ane_set4>, <&ps_pms_sram>;
status = "okay";
};

&ane_dart0 {
status = "okay";
};

&ane_dart1 {
status = "okay";
};

&ane_dart2 {
status = "okay";
};

&ps_ane_base {
status = "okay";
};

&ps_ane_set0 {
status = "okay";
};

&ps_ane_set1 {
status = "okay";
};

&ps_ane_set2 {
status = "okay";
};

&ps_ane_set3 {
status = "okay";
};

&ps_ane_set4 {
status = "okay";
};

&pmp_report {
reg = <0x2 0x8e3c0000 0x0 0x20000>,
<0x2 0x85868000 0x0 0x4000>;
reg-names = "report", "ane-dvfs";
};
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/apple/t6022-j180d.dts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
ethernet1 = &ethernet1;
nvram = &nvram;
serial0 = &serial0;
/*
* The loader sets up and enables each SIO it finds by alias.
* The die 0 HDMI port's audio (dpaudio1) is fed by the die 0
* SIO; t6022-jxxxd.dtsi only aliases the die 1 one as sio1.
*/
sio = &sio;
usb4-0-acio = &usb4_0_acio;
usb4-0-nhi = &usb4_0_nhi;
usb4-1-acio = &usb4_1_acio;
Expand Down
24 changes: 24 additions & 0 deletions arch/arm64/boot/dts/apple/t6022.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -405,3 +405,27 @@
};

#include "hwmon-common.dtsi"

/*
* The die 0 ANE matches the M2 Pro and M2 Max one and the driver carries
* T6022 data, so enable it with its mailbox and DARTs as t6021.dtsi does.
*/
&ane {
status = "okay";
};

&ane_dart0 {
status = "okay";
};

&ane_dart1 {
status = "okay";
};

&ane_dart2 {
status = "okay";
};

&ane_mbox {
status = "okay";
};
Loading