Skip to content
Open
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
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/apple/t8142-j704-peripherals.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
label = "pmp";
/* The PMP's SRAM, which the driver reads first. */
power-domains = <&ps_pms_sram>;
apple,always-on;
};

ps_pms_sram: power-controller@5a0 {
Expand Down Expand Up @@ -175,6 +176,11 @@
reg = <3 0x8c600000 0 0x4000>, <3 0x8de00000 0 0x120000>;
reg-names = "smc", "sram";
mboxes = <&smc_mbox>;
/*
* Told of a deep sleep after the other coprocessors stopped: ANS
* fails its IDLE handshake when the SMC hears first.
*/
apple,sleep-late-notice;

smc_hwmon: hwmon {
compatible = "apple,smc-hwmon";
Expand Down
72 changes: 72 additions & 0 deletions arch/arm64/boot/dts/apple/t8142-j704.dts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,78 @@
gpio-reserved-ranges = <0 18>, <19 17>, <37 3>;
};

&{/soc} {
/*
* The CPU clusters' power-gate enables (E at +0x0, P at +0x60) and
* display power words, shared across T8142.
*/
cluster_pwrgate: power-gate@380724000 {
compatible = "apple,t8142-cluster-pwrgate", "apple,cluster-pwrgate";
reg = <0x3 0x80724000 0x0 0x4>,
<0x3 0x80724060 0x0 0x4>;
};

dcp_power: display-power@380724000 {
compatible = "apple,t8142-display-power";
reg = <3 0x80724000 0 0x2000>,
<3 0x80700000 0 0x14000>;
reg-names = "pwrgate", "ps";
};
};

&dcp {
apple,display-power = <&dcp_power>;
};

&dcp_dart {
reg = <2 0x86340000 0 0x20000>,
<3 0x80717fdc 0 0x4>;
reg-names = "dart", "ps-wr-dis";
apple,ps-wr-dis-bit = <6>;
};

&dcpext0 {
apple,display-power = <&dcp_power>;
};

&dcpext1 {
apple,display-power = <&dcp_power>;
};

&dcpext0_dart {
reg = <5 0x06340000 0 0x20000>,
<3 0x80717fe8 0 0x4>;
reg-names = "dart", "ps-wr-dis";
apple,ps-wr-dis-bit = <15>;
};

&dcpext1_dart {
reg = <3 0xaa340000 0 0x20000>,
<3 0x80717fec 0 0x4>;
reg-names = "dart", "ps-wr-dis";
apple,ps-wr-dis-bit = <31>;
};

#include "t8142-j813-sep.dtsi"
#include "t8142-j813-j815-sleep.dtsi"

&sleep {
apple,display-coprocessors = <&dcp &dcpext0 &dcpext1>;
};

&hpm0 {
apple,sleep-ssps-rules;
};

&hpm1 {
apple,sleep-ssps-rules;
};

&hpm3 {
apple,sleep-ssps;
apple,sleep-ssps-rules;
};

/ {
reserved-memory {
/*
Expand Down