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
47 changes: 47 additions & 0 deletions arch/arm64/boot/dts/apple/t8122-j433-j434.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

#include "t8122-usbpd-i2c.dtsi"
#include "t8122-jxxx.dtsi"
#include "t8122-j613-qspi.dtsi"

/ {
chassis-type = "all-in-one";

aliases {
ethernet0 = &ethernet0;
sep = &sep;
};
};

Expand Down Expand Up @@ -90,3 +92,48 @@
};

#include "hwmon-fan-dual.dtsi"

&mcc {
apple,boot-dma-devices = <&pmp>;
status = "okay";
};

&dcp {
/*
* Firmware 27.2's display sleep calls, as on the J613 and J615 with the
* same internal DCP ABI (A534, A550, A534, A464, A537).
*/
apple,sleep-power-args = /bits/ 8 <0x01 0x00 0x00 0x01 0x01 0xaa 0xaa 0xaa>;
apple,sleep-a500-args = /bits/ 8 <0x00 0x01 0xaa 0xaa 0x00 0x00 0xaa 0xaa>;
apple,sleep-display-power-args = /bits/ 8 <0x00 0x00 0x00 0x00 0x00 0xaa 0xaa 0xaa>;
apple,sleep-display-stage-args = /bits/ 8 <0x00 0x00 0x00 0x00 0x00 0xaa 0xaa 0xaa
0x01 0x00 0x00 0x00>;
apple,panel-video-open-delay-us = <10000>;
apple,panel-hdcp-open-arg = <3>;
};

/* No NVRAM write entry exists for this board yet: keep it read-only. */
&nvram_qspi {
read-only;
};

&ane_dart0 {
status = "okay";
};

&ane_dart1 {
status = "okay";
};

&ane_dart2 {
status = "okay";
};

&ane {
status = "okay";
};

/* CPU memory floor, class 0x25 at 4 and 0x21 at 2, as on J613 and J615. */
&pmp_report {
apple,cpu-memory-floor = <0x21 2 0x25 4>;
};
56 changes: 56 additions & 0 deletions arch/arm64/boot/dts/apple/t8122-j504.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "t8122.dtsi"
#include "t8122-usbpd-i2c.dtsi"
#include "t8122-jxxx.dtsi"
#include "t8122-j613-qspi.dtsi"
#include <dt-bindings/leds/common.h>

/ {
Expand Down Expand Up @@ -298,3 +299,58 @@
status = "disabled";
};
};

&mcc {
apple,boot-dma-devices = <&pmp>;
status = "okay";
};

&dcp {
/*
* Firmware 27.2's display sleep calls, as on the J613 and J615 with the
* same internal DCP ABI (A534, A550, A534, A464, A537).
*/
apple,sleep-power-args = /bits/ 8 <0x01 0x00 0x00 0x01 0x01 0xaa 0xaa 0xaa>;
apple,sleep-a500-args = /bits/ 8 <0x00 0x01 0xaa 0xaa 0x00 0x00 0xaa 0xaa>;
apple,sleep-display-power-args = /bits/ 8 <0x00 0x00 0x00 0x00 0x00 0xaa 0xaa 0xaa>;
apple,sleep-display-stage-args = /bits/ 8 <0x00 0x00 0x00 0x00 0x00 0xaa 0xaa 0xaa
0x01 0x00 0x00 0x00>;
apple,panel-video-open-delay-us = <10000>;
apple,panel-hdcp-open-arg = <3>;
};

&sleep {
/* ADT /arm-io/gpio0 no-restore-gpio-pins */
apple,pinctrl-skip-pins = <5 6 37>;
};

/* As on the Airs: the MTP firmware is handed over running. */
&mtp {
apple,rtkit-keep-running;
};

/* No NVRAM write entry exists for this board yet: keep it read-only. */
&nvram_qspi {
read-only;
};

&ane_dart0 {
status = "okay";
};

&ane_dart1 {
status = "okay";
};

&ane_dart2 {
status = "okay";
};

&ane {
status = "okay";
};

/* CPU memory floor, class 0x25 at 4 and 0x21 at 2, as on J613 and J615. */
&pmp_report {
apple,cpu-memory-floor = <0x21 2 0x25 4>;
};
7 changes: 5 additions & 2 deletions arch/arm64/boot/dts/apple/t8122-j613-qspi.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/* J613/J615 QSPIMC boot NOR and NVRAM layout. */
/*
* T8122 QSPIMC boot NOR and NVRAM layout: every T8122 board's ADT has them
* at /arm-io/qspi, and no spi1.
*/

/ {
aliases {
Expand Down Expand Up @@ -39,7 +42,7 @@
};
};

/* This board variant uses QSPIMC instead of SPI1 for NVRAM. */
/* QSPIMC instead of SPI1 for NVRAM. */
&spi1 {
status = "disabled";
};
44 changes: 44 additions & 0 deletions arch/arm64/boot/dts/apple/t8122-usbpd-i2c.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,47 @@
};
};
};

/*
* The sleep controller of the boards above: no SPMI port controllers, so no
* spmi-hpm, and PCIe ports past port 0. The PCIe registers and the PHY IP
* block's size are the ADT's (/arm-io/apcie reg, the same on J504, J433 and
* J434). Deep sleep has not run here: it is offered only on request, and
* stops before the commit unless that is requested too.
*/
&sleep {
reg = <0x2 0xd0700000 0x0 0x14000>,
<0x2 0xd0724000 0x0 0x4000>,
<0x2 0xd0734000 0x0 0x10>,
<0x2 0xd0768000 0x0 0x40>,
<0x2 0xd0780000 0x0 0x8>,
<0x2 0xe42d4000 0x0 0x4>,
<0x2 0xe42b0000 0x0 0x30>,
<0x2 0xe4714000 0x0 0x100>,
<0x2 0xe4004000 0x0 0x48>,
<0x2 0xe4280000 0x0 0x4000>,
<0x2 0x20024000 0x0 0x1000>,
<0x2 0x20064000 0x0 0x1000>,
<0x2 0x20158000 0x0 0x1000>,
<0x2 0x20400000 0x0 0x1000>,
<0x5 0x9c000000 0x0 0x2000>,
<0x5 0x91000000 0x0 0x1000>,
<0x5 0x9e088000 0x0 0x3000>,
<0x5 0x9e000000 0x0 0x10000>,
<0x5 0x9e040000 0x0 0x40000>,
<0x5 0x94008000 0x0 0x5000>,
<0x2 0xd0040000 0x0 0x1000>,
<0x5 0x95008000 0x0 0x5000>,
<0x5 0x9e010000 0x0 0x4000>,
<0x5 0x96008000 0x0 0x5000>,
<0x5 0x9e014000 0x0 0x4000>;
reg-names = "ps", "pwrgate", "cpu-start", "cllt",
"cluster", "commit", "wdt", "spmi",
"wake", "ps-aon",
"mcc-a", "mcc-b", "mcc-c", "mcc-d",
"apcie-axi", "apcie-rc", "apcie-clkgen",
"apcie-phy", "apcie-phy-ip", "apcie-port0",
"clk-mux",
"apcie-port1", "apcie-phy1", "apcie-port2", "apcie-phy2";
status = "okay";
};