From 0b95e852bd5e77353bd97c3bae7b4444fc90d7d2 Mon Sep 17 00:00:00 2001 From: Satya Benson Date: Thu, 3 Dec 2026 06:22:32 -0500 Subject: [PATCH] media: apple: scaler: add T8122 (M3) engine support The T8122 device tree and binding already describe scaler0 (apple,t8122-scaler, 0x30000 MSR aperture, three register ranges, two DART streams, ps_msr and ps_msr_ase_core), but apple-scaler-drv lacked a match entry. Without a bound driver, the MSR and AFT0 power domains also stay on indefinitely waiting on sync_state(). Add apple_scaler_t8122 (hw_version = 16, num_reg = 3, pre-MSR20 control block) and bind it to apple,t8122-scaler. Verified on J613 (MacBook Air 13" M3, T8122): probes cleanly as hardware-version 16 (id 0x10d0041, stale status 0x0), passes 1080p V4L2 M2M jobs (NV12->NV12, NV12->P010->NV12, NV12->AL8V->NV12 bit-exact; NV12->BX24 BT.709), survives hardware deep sleep with post-wake bit-exact NV12->AL8V->NV12 and clean module reload, and drops msr_ase_core, msr, and aft0 to off-0 when idle with zero DART faults. Signed-off-by: Satya Benson --- drivers/media/platform/apple/scaler/apple-scaler-drv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/platform/apple/scaler/apple-scaler-drv.c b/drivers/media/platform/apple/scaler/apple-scaler-drv.c index 07d29947f39d1..678f6e69f75c9 100644 --- a/drivers/media/platform/apple/scaler/apple-scaler-drv.c +++ b/drivers/media/platform/apple/scaler/apple-scaler-drv.c @@ -2136,6 +2136,12 @@ static const struct apple_scaler_variant apple_scaler_t8112 = { .num_reg = 3, }; +/* M3: 0x30000 MSR aperture, three register ranges, pre-MSR20 control block. */ +static const struct apple_scaler_variant apple_scaler_t8122 = { + .hw_version = 16, + .num_reg = 3, +}; + /* M4: the first engine with the MSR20 control block. */ static const struct apple_scaler_variant apple_scaler_t8132 = { .hw_version = 20, @@ -2170,6 +2176,7 @@ static const struct of_device_id asc_of_match[] = { { .compatible = "apple,t8103-scaler", .data = &apple_scaler_t8103 }, { .compatible = "apple,t6000-scaler", .data = &apple_scaler_t6000 }, { .compatible = "apple,t8112-scaler", .data = &apple_scaler_t8112 }, + { .compatible = "apple,t8122-scaler", .data = &apple_scaler_t8122 }, { .compatible = "apple,t8132-scaler", .data = &apple_scaler_t8132 }, { .compatible = "apple,t6041-scaler", .data = &apple_scaler_t6041 }, { .compatible = "apple,t8140-scaler", .data = &apple_scaler_t8140 },