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
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/apple/t6050-j714c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/apple/t6050-j714s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/apple/t6050-j716c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
};
};

#include "t6050-j716c-isp.dtsi"
#include "t6050-isp.dtsi"
#include "t6050-j716c-gpu-panel.dtsi"

#include "t6050-j716c-display.dtsi"
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/apple/t6050-j716s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/apple/t6050-k114.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/apple/t6050-k114s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/apple/t6050-k116c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/apple/t6050-k116s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading