diff --git a/arch/arm64/boot/dts/apple/t8122-j433-j434.dtsi b/arch/arm64/boot/dts/apple/t8122-j433-j434.dtsi index 6236ed132dc19..b440c5b701e77 100644 --- a/arch/arm64/boot/dts/apple/t8122-j433-j434.dtsi +++ b/arch/arm64/boot/dts/apple/t8122-j433-j434.dtsi @@ -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 = ðernet0; + sep = &sep; }; }; @@ -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>; +}; diff --git a/arch/arm64/boot/dts/apple/t8122-j504.dts b/arch/arm64/boot/dts/apple/t8122-j504.dts index 9747e64d36d1b..7c784f350d431 100644 --- a/arch/arm64/boot/dts/apple/t8122-j504.dts +++ b/arch/arm64/boot/dts/apple/t8122-j504.dts @@ -12,6 +12,7 @@ #include "t8122.dtsi" #include "t8122-usbpd-i2c.dtsi" #include "t8122-jxxx.dtsi" +#include "t8122-j613-qspi.dtsi" #include / { @@ -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>; +}; diff --git a/arch/arm64/boot/dts/apple/t8122-j613-qspi.dtsi b/arch/arm64/boot/dts/apple/t8122-j613-qspi.dtsi index 2825f5d7a4802..20308c74e24e2 100644 --- a/arch/arm64/boot/dts/apple/t8122-j613-qspi.dtsi +++ b/arch/arm64/boot/dts/apple/t8122-j613-qspi.dtsi @@ -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 { @@ -39,7 +42,7 @@ }; }; -/* This board variant uses QSPIMC instead of SPI1 for NVRAM. */ +/* QSPIMC instead of SPI1 for NVRAM. */ &spi1 { status = "disabled"; }; diff --git a/arch/arm64/boot/dts/apple/t8122-usbpd-i2c.dtsi b/arch/arm64/boot/dts/apple/t8122-usbpd-i2c.dtsi index 87fa10796099d..5c63a73e49b92 100644 --- a/arch/arm64/boot/dts/apple/t8122-usbpd-i2c.dtsi +++ b/arch/arm64/boot/dts/apple/t8122-usbpd-i2c.dtsi @@ -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"; +};