From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 010A8483BE5 for ; Wed, 5 Aug 2026 16:11:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785946319; cv=none; b=WlgMex941zHq86RhpYhYC54fQtVv41couh6w5ub2NsSqVAlenVl95AXIq7ueH6QIBoxg5SOyhgNJUf+CdAwGRtJ96rnw/pF2zDsdjaA143bf9Ssm4pTYo4GpJVwCoevPFDamfofvZXJ575hiOWnes9rv1rAV0nItUZ6PJvmH3dc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785946319; c=relaxed/simple; bh=Ub/KzKuNK8C8JkzXAAOJ1yPuTy3t/O4dOjhqpJfVmcE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=g3PC2H8MOowKB0K6tJXoJxhWUmLI3WPBUHgC18R7PYgRzYWrauz7CiMBu/IYWydpuxr2AWakEb/xuJxgHYBBysyovtupRQqMCAG3AkXiQPEoLQVXJLtF2QrtBagEeY4fHzWUJDYd9xTwrJIMkHKGH2XdDZbj9WZ7lpt6wgIMsVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=OmNc/JYY; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="OmNc/JYY" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-47c2b362ee2so908937f8f.1 for ; Wed, 05 Aug 2026 09:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1785946313; x=1786551113; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=xyoEoQkQirZXAs0MtC6cd+mxlW1qQbDSK8DkuQmSYR0=; b=OmNc/JYYu8wVZMpc+4DhD3TKJjrAZNsFbbRFZHR409dJ6WijqspcsxLDBVa/fEu8w7 Ye/KZqtP0rmoLNumMWeRGiHUF3s5t4ukAbnolW21DQaw4fBwHm7yKor7Z4c8UewdgQgh iUEM67uCwRXAI4zZ7lC9X8Ik6SLCMALOVIcMRhAAuCvS6s+zPmvjxnT9W0pvAxf1ZLAZ 3IK2j9JBscp17OeMw3RKMej/v70l4BZUcw/FrK/xGxuBE786JcgsorzLRqr31QwJdQfx KLKphL6HfJAGKejVniyG6t7LhAVJIg3E5Y7OAM30aGdvGZHK4qu2jc2elJ5/6jiFViaG daXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785946313; x=1786551113; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=xyoEoQkQirZXAs0MtC6cd+mxlW1qQbDSK8DkuQmSYR0=; b=szTlW9KhnrRyBupXESaHpxBcc7tOZPqtMJhqWt80pXz9YGQ+RYBz3rkuRDwbhdIm+2 nbzMagt0m9HWRyAJRDUFxh7LUInXgYWiKevj/Avneg5VIyT1OvB8ZFgw38B0PWrplhNy HApM5P8mEJ7L9S7v4C0YL6dFLe82CjxSnAcNAJxl2svehy8cNK/0RpsuSc8Z7BcniV9o iR0IaFhEq9EVuwKBlxtEZUpng7yNeAJ4siRMtZ4OrzqCaF0GcPoLRouAYyZvqZtJ6Lvv bBOSZQ/AddBA0lS4lSYCgj7GbBzBn1E9an56ggdxbZTwwGDCuu9ZiSjUwBISlaG2FSgx lFsQ== X-Forwarded-Encrypted: i=1; AHgh+RpFM8sC9w3ySPTzWyq6KfNh4Fr4BUk8S/pQaUJ1/GVMzvgWvOsCwC5GWZrRnMAlwJbEWD0bxNJX50M6cYQ=@vger.kernel.org X-Gm-Message-State: AOJu0Ywm1MYaAGH3pr9MnyngPEn1nnINeRLmRR4HY1mwdsMDWIgF8qyA ziJoiVpcnAg+kC7fRg2I2jL4FrFmGsltwUNVIiqDxSzKUI3A6BQKICIuDPrvQL0qT3Q= X-Gm-Gg: AR+sD12tuhRAZlWnj8Gspl+G5AJyXzaqJsS/UydcAAxkaq8dRPcKiXoks6U6WwS0wrr KYFLlxzoY1wdYebv8TcKlP8f0JKHvfrpglXvA9TiUIBezpUi1MKxzWc9xCFySWWDyTduL4YfO69 /8+OasDxLrvz1t5DgFbksSaS7ugQR7SZ7T67nkcerU2I1qfVCjIcZ3nyr0VWEYX9AbYqI1KTXH3 ZtthrFpj9QkIYdZzwmWAMzg99Xzx3mYiqugolqItH4Z6zTRI2Oi7TxJq0oq6G++2AefILXdH0tp KmQ+OqpX9WHKJCPoBIPulOwfkXNqvpT/zJ4FIToV+SsitOhzGBL6zyBwAoPI3x8r3L1T66rgUUV 5bUNU1hdsec1k3l4LK6/ztGz60Jw+KbTn3/m+d7EA6iBKMPWEsqme38HJC44X3dMfkuFf4pkhjI 9CGpU2btOmFv+5kF1S9LVo15TYEa7oOtpxEwZN/E5XC0cw5sRwmaJRXYmyanjb6O+3VQAGvErze OrNmCm/oz1qe/tGFcH05snVIwgOZVLBtHvJSd4u X-Received: by 2002:adf:e001:0:20b0:47f:e721:1f77 with SMTP id ffacd0b85a97d-47fec51f260mr10891728f8f.13.1785946313147; Wed, 05 Aug 2026 09:11:53 -0700 (PDT) Received: from [127.0.1.1] ([2a00:1098:3142:e::8]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-47febfda0cbsm9802575f8f.6.2026.08.05.09.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 09:11:52 -0700 (PDT) From: Dave Stevenson Subject: [PATCH RFC 0/4] Update imx678 to act as a common Sony Starvis 2 driver. Date: Wed, 05 Aug 2026 17:09:15 +0100 Message-Id: <20260805-media-starvis2-v1-0-91e8e4eae44f@raspberrypi.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIACtgc2oC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzMDCwMT3dzUlMxE3eKSxCKgYiNdM9NE06RkEwPTJHMTJaCmgqLUtMwKsIH RSkFuzkqxtbUAhIAF/WUAAAA= To: Sakari Ailus , Jai Luthra , Mauro Carvalho Chehab Cc: Laurent Pinchart , Alexander Shiyan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Dave Stevenson X-Mailer: b4 0.14.1 The IMX678 (8MPix) driver has been accepted. Whilst preparing a patchset for IMX662 (1080p), I observed such commonality between the two that it seemed sensible to attempt a common driver rather than submitting a separate IMX662 series again. On checking my box of sensors, I found I had an IMX675 (5MPix) as well, so that has been incorporated. This set proposes a common driver that is working with all 3 of those sensors. It's sent as an RFC to gather confirmation that the resulting driver structure is acceptable as implied by [1]. If it is viewed as acceptable then there is still a modest amount of tidying up required: - DT binding updates for the extra compatibles. - Rename the common functions so that the model references are only on the model specific parts. - Add the Sony init sequence for IMX662. - Check the init sequence for IMX675 (I'm waiting on a datasheet). - Update the 2 lane mode handling of HMAX. IMX662 can achieve the same maximum framerate in 2 lane mode with a link freq of 594MHz or greater, and I suspect others can do so too. - Hopefully add IMX585 (8MPix) to the supported list, and Jai has mentioned IMX676 (12MPix) as well. I wanted to confirm that there aren't any major objections before doing those cleanups though. For anyone testing on a Pi, I've thrown a branch at [2] which includes overlays for each. I've tested with modules from Soho Enterprises, but there seem to be a few different vendors around. [1] https://lore.kernel.org/linux-media/20260312150437.1091195-1-eagle.alexander923@gmail.com/T/#md6a186b4abd05fb035d020ce0bc562455ef5bed1 [2] https://github.com/6by9/linux/tree/rpi-7.2.y-starvis Signed-off-by: Dave Stevenson --- Dave Stevenson (4): media: i2c: imx678: Always program the sensor in window mode media: i2c: imx678: Parameterise the configuration to allow for other models media: i2c: imx678: Add imx662 support to the driver media: i2c: imx678: Add imx675 support to the driver drivers/media/i2c/imx678.c | 451 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 393 insertions(+), 58 deletions(-) --- base-commit: 31152f5b0f8719f92063b8c6196cd5e34106c73d change-id: 20260804-media-starvis2-65a5bc405b74 Best regards, -- Dave Stevenson