From 5331cd92a33ec4ffb8b74e6cf0e50f016f978dfc Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 27 Nov 2026 14:17:20 +1100 Subject: [PATCH 1/2] arm64: dts: apple: t8132: clock spi3 and spi4 from the reference clock spi3 and spi4 named peripheral_clocks, which no driver provides, so spi-apple's devm_clk_get_enabled() would defer them forever once enabled. Every other Apple SPI controller, including the T8132's enabled ones, runs from the 24 MHz clkref; use it here too. Signed-off-by: Ryan Murray --- arch/arm64/boot/dts/apple/t8132-peripheral-buses.dtsi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t8132-peripheral-buses.dtsi b/arch/arm64/boot/dts/apple/t8132-peripheral-buses.dtsi index 2554025a5ca13..8356935cec5d2 100644 --- a/arch/arm64/boot/dts/apple/t8132-peripheral-buses.dtsi +++ b/arch/arm64/boot/dts/apple/t8132-peripheral-buses.dtsi @@ -1,5 +1,9 @@ // SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Unclaimed T8132 peripheral buses. */ +/* + * Unclaimed T8132 peripheral buses. The SPI controllers run from the 24 MHz + * reference like every other Apple SPI controller: no driver provides + * peripheral_clocks, and spi-apple needs a clock rate to divide. + */ &soc { spi4: spi@3ad110000 { @@ -7,7 +11,7 @@ reg = <0x3 0xad110000 0 0x4000>; interrupt-parent = <&aic>; interrupts = ; - clocks = <&peripheral_clocks 422>; + clocks = <&clkref>; power-domains = <&ps_spi4>; #address-cells = <1>; #size-cells = <0>; @@ -75,7 +79,7 @@ reg = <0x3 0xad10c000 0 0x4000>; interrupt-parent = <&aic>; interrupts = ; - clocks = <&peripheral_clocks 421>; + clocks = <&clkref>; power-domains = <&ps_spi3>; #address-cells = <1>; #size-cells = <0>; From f818cacaf84dd8cc55a03b97ddcef7f1616e27e2 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 27 Nov 2026 14:17:21 +1100 Subject: [PATCH 2/2] arm64: dts: apple: t8132: enable the DP855 panel controller on the laptops The J604 and J713 ADTs both list the DP855 panel timing controller on spi4 (/arm-io/spi4/dp855), chip select GPIO 76 (function-spi_cs0). i2c-dp855 drives it as a read-only I2C adapter and shares the controller's I2C engine with the display firmware through its lock; it already binds on the M2 Air with the same SPI timing. Describe it in t8132-laptop.dtsi (J604, J713, J715) and turn on the spi4 power state on the J713 and J715, whose pmgr file lists only qualified domains (its parent, spi_p, is already on). Signed-off-by: Ryan Murray --- .../arm64/boot/dts/apple/t8132-j713-pmgr.dtsi | 3 ++- arch/arm64/boot/dts/apple/t8132-laptop.dtsi | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/apple/t8132-j713-pmgr.dtsi b/arch/arm64/boot/dts/apple/t8132-j713-pmgr.dtsi index 515fd98290989..36798a86d0eab 100644 --- a/arch/arm64/boot/dts/apple/t8132-j713-pmgr.dtsi +++ b/arch/arm64/boot/dts/apple/t8132-j713-pmgr.dtsi @@ -220,8 +220,9 @@ status = "disabled"; }; +/* spi4 carries the DP855 panel controller (t8132-laptop.dtsi). */ &ps_spi4 { - status = "disabled"; + status = "okay"; }; &ps_trace_fab { diff --git a/arch/arm64/boot/dts/apple/t8132-laptop.dtsi b/arch/arm64/boot/dts/apple/t8132-laptop.dtsi index c4b37d41373a3..9b2a664fa4117 100644 --- a/arch/arm64/boot/dts/apple/t8132-laptop.dtsi +++ b/arch/arm64/boot/dts/apple/t8132-laptop.dtsi @@ -185,3 +185,22 @@ apple,no-liquid-detection; }; }; + +/* + * ADT /arm-io/spi4/dp855: the panel timing controller, chip select from the + * spi4 function-spi_cs0 (the same pin on the J604 and J713). i2c-dp855 reads + * the panel management devices behind it and shares its I2C engine with the + * display firmware through the controller's lock. + */ +&spi4 { + cs-gpios = <&pinctrl_ap 76 GPIO_ACTIVE_LOW>; + status = "okay"; + + panel_controller: panel-timing-controller@0 { + compatible = "parade,dp855"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cs-setup-delay-ns = <20>; + spi-cs-hold-delay-ns = <20>; + }; +};