diff --git a/arch/arm64/boot/dts/apple/t6050-j716c-isp.dtsi b/arch/arm64/boot/dts/apple/t6050-isp.dtsi similarity index 83% rename from arch/arm64/boot/dts/apple/t6050-j716c-isp.dtsi rename to arch/arm64/boot/dts/apple/t6050-isp.dtsi index b6b1675d26022..11eabba410285 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716c-isp.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-isp.dtsi @@ -1,5 +1,16 @@ // SPDX-License-Identifier: GPL-2.0+ OR MIT -/* J716c camera: enabled only after the loader reserves the current firmware. */ +/* + * The T6050 laptop camera (ISP, its three DARTs and power states). Every T6050 + * laptop's ADT has the same isp0, dart-isp0 and ISP power states; only the + * sensor-type differs per board. The loader reads that sensor-type, reserves the + * firmware segments and enables isp0 and its three DARTs; until then those stay + * disabled. The ISP power states are not left to the loader: every board that + * includes this file registers them, keeps FAB9 as a firmware-owned vote and + * holds ISP_SYS on from boot, as the J714s, J716c and K116s already do. The + * per-block states (CPU, FE, DPRX, SECURE, BE, CLR, SENS0) have no consumer + * until the ISP driver probes. The sensor presets are a default a board may + * replace. + */ / { aliases { isp = &isp0; diff --git a/arch/arm64/boot/dts/apple/t6050-j714c.dts b/arch/arm64/boot/dts/apple/t6050-j714c.dts index ff202d0d0ec0c..9f6aff591964c 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j714c.dts @@ -532,3 +532,6 @@ &avd { status = "okay"; }; + +/* The camera. The loader sets the platform ID from the ADT isp0 sensor-type (0x73). */ +#include "t6050-isp.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-j714s.dts b/arch/arm64/boot/dts/apple/t6050-j714s.dts index 23475ad163f58..7f4b10f7d63cc 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j714s.dts @@ -671,7 +671,7 @@ }; /* The same T6050 camera as J716c (J714sAP ADT); the loader sets the J714s sensor type. */ -#include "t6050-j716c-isp.dtsi" +#include "t6050-isp.dtsi" /* * The J714s camera sizes: sensor config 8 (the 3040x2880 frame binned 2x2 to 1520x1440) diff --git a/arch/arm64/boot/dts/apple/t6050-j716c.dts b/arch/arm64/boot/dts/apple/t6050-j716c.dts index 679e9f2f78856..5c43db4db48c8 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716c.dts @@ -319,7 +319,7 @@ }; }; -#include "t6050-j716c-isp.dtsi" +#include "t6050-isp.dtsi" #include "t6050-j716c-gpu-panel.dtsi" #include "t6050-j716c-display.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-j716s.dts b/arch/arm64/boot/dts/apple/t6050-j716s.dts index 7eb3a3415d8dd..6e975c3c05309 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716s.dts @@ -587,3 +587,6 @@ #define T6050_J716S #include "t6050-peripherals.dtsi" + +/* The camera. The loader sets the platform ID from the ADT isp0 sensor-type (0x76). */ +#include "t6050-isp.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-k114.dtsi b/arch/arm64/boot/dts/apple/t6050-k114.dtsi index a895eebe32f03..ceba07fb0a675 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-k114.dtsi @@ -19,7 +19,7 @@ /* * ANE_SYS's declared suppliers are the fabric domains: enabled the way * the J714s enables them (t6050-j714s.dts for fab8/fab0, - * t6050-j716c-isp.dtsi for fab9). Left disabled they never register a + * t6050-isp.dtsi for fab9). Left disabled they never register a * provider and the enabled ps_ane_sys defers forever, taking ane0 and its * three DARTs with it. */ diff --git a/arch/arm64/boot/dts/apple/t6050-k114s.dts b/arch/arm64/boot/dts/apple/t6050-k114s.dts index 41059929b296e..9f2bc677a9c59 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k114s.dts @@ -30,6 +30,9 @@ #include "t6050-peripherals.dtsi" +/* The camera. The loader sets the platform ID from the ADT isp0 sensor-type (0xba). */ +#include "t6050-isp.dtsi" + /* The 14-inch chassis: the Neural Engine, pins, the jack, the card and the AOP; no speakers */ #include "t6050-k114.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-k116c.dts b/arch/arm64/boot/dts/apple/t6050-k116c.dts index 40bfec8ab72a8..4bc069bb45aa5 100644 --- a/arch/arm64/boot/dts/apple/t6050-k116c.dts +++ b/arch/arm64/boot/dts/apple/t6050-k116c.dts @@ -26,6 +26,9 @@ #define T6050_K116C #include "t6050-peripherals.dtsi" +/* The camera. The loader sets the platform ID from the ADT isp0 sensor-type (0xbb). */ +#include "t6050-isp.dtsi" + /* The GPU, handed over by the boot loader */ #include "t6050-k114-k116-gpu.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-k116s.dts b/arch/arm64/boot/dts/apple/t6050-k116s.dts index 26f4bce4362db..28c45dcacb54a 100644 --- a/arch/arm64/boot/dts/apple/t6050-k116s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k116s.dts @@ -636,7 +636,7 @@ * J714s's sensor. The sensor type is 0xbc and the connection scheme 0x10; the loader passes * both. Everything stays disabled until the loader has reserved the firmware. */ -#include "t6050-j716c-isp.dtsi" +#include "t6050-isp.dtsi" /* * The CPU PMU the shared T6050 files turn on for every board (t6050-base.dtsi, measured on