Skip to content
Merged
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
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/apple/t8132-j713-pmgr.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,9 @@
status = "disabled";
};

/* spi4 carries the DP855 panel controller (t8132-laptop.dtsi). */
&ps_spi4 {
status = "disabled";
status = "okay";
};

&ps_trace_fab {
Expand Down
19 changes: 19 additions & 0 deletions arch/arm64/boot/dts/apple/t8132-laptop.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};
};
10 changes: 7 additions & 3 deletions arch/arm64/boot/dts/apple/t8132-peripheral-buses.dtsi
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
// 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 {
compatible = "apple,t8132-spi", "apple,t8103-spi";
reg = <0x3 0xad110000 0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1058 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&peripheral_clocks 422>;
clocks = <&clkref>;
power-domains = <&ps_spi4>;
#address-cells = <1>;
#size-cells = <0>;
Expand Down Expand Up @@ -75,7 +79,7 @@
reg = <0x3 0xad10c000 0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1057 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&peripheral_clocks 421>;
clocks = <&clkref>;
power-domains = <&ps_spi3>;
#address-cells = <1>;
#size-cells = <0>;
Expand Down
Loading