From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from outbound10.mail.transip.nl (outbound10.mail.transip.nl [136.144.136.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C3983BBFB8; Fri, 5 Jun 2026 03:20:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.144.136.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780629628; cv=none; b=C2fs3W5xvEaG9Yo7V94uKMSL5GwzfzjpcU3SQNo8q2WNqEKRdxdl+Bhv4eB2m3gxGDIeprKtThT/hD+ddQIW2xF4BAf3Bg29HNFX4NN9dehGQ/m86rYhevO75rZARvtgEnbPxzSylGdHYasIA49skelZXuJXv0F9lGw0Jb7cBLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780629628; c=relaxed/simple; bh=ApbxPaKFFEexR8wnxfVsRKseWLe6S8mZXKmP8pnfq5Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H2WcKKt+wcGxzUb3Cq3j6n7G20cPJw9ek9cpX3UacS1v0DJTcd0enmdYPwRMrAM0cSAGwO0iwDcf4oqr9qSa3ZpMQYddSkxwMXz4r/W88XDabCXQDeVqiLcVa1Fkc4mR8pyJB8jshSzrhqaz2xr0hOGd1Rep7RX0vXCDrd4bPlI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=herrie.org; spf=pass smtp.mailfrom=herrie.org; dkim=pass (2048-bit key) header.d=herrie.org header.i=@herrie.org header.b=sBeXdkby; arc=none smtp.client-ip=136.144.136.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=herrie.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=herrie.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=herrie.org header.i=@herrie.org header.b="sBeXdkby" Received: from submission1.mail.transip.nl (unknown [10.100.4.70]) by outbound10.mail.transip.nl (Postfix) with ESMTP id 4gWmsG70pHzTPNxd; Fri, 5 Jun 2026 05:20:18 +0200 (CEST) Received: from herrie-desktop.. (180-93-184-31.ftth.glasoperator.nl [31.184.93.180]) by submission1.mail.transip.nl (Postfix) with ESMTPA id 4gWmsG29gwzJjhYK; Fri, 5 Jun 2026 05:20:18 +0200 (CEST) From: Herman van Hazendonk To: Mauro Carvalho Chehab Cc: Sakari Ailus , Hans Verkuil , Laurent Pinchart , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Herman van Hazendonk Subject: [PATCH 0/2] media: i2c: add Aptina MT9M113 SoC sensor driver Date: Fri, 5 Jun 2026 05:20:15 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: ClueGetter at submission1.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=herrie.org; t=1780629618; h=from:subject:to:cc:date: mime-version; bh=kViDbVFZ0fYEjw6HUxIoRCbf8V2Xv6QN5U5aVmfaMCE=; b=sBeXdkbyLxQreQpSREhZriW5Xh1VjSDhEI5XdQB8bRnTxIrSEpDzBLKrcuPmyu2208ylkU 37W3wrHKHm1CWfNpSvMGDzGNDZOlAiPUUXaMHrXryuvv+h4S7yRTWoyX0sGimRjvjG8LOm M+9hyp7V6l55yv707KlK3WF4Ubu16ymTh6Ey5L/jIJa4bdZdyrv6WdE3NsQrFd6s4J1zCK qag7sRqT6eYDMIIhrAZ3T/5cVKHtzTA/Yr3bi7oyLo5x1eR9Hp65ENDy68/i/UsdrCSDeA g4muatoEp37j42enUdwxiMqAcAcosCJJkyFjPJ9tCt5aXhkB+LnNNUT4HIVDFA== X-Report-Abuse-To: abuse@transip.nl This series adds a V4L2 subdev driver and DT binding for the Aptina MT9M113, a 1.3 Mpx SoC sensor with an on-chip ISP and a small MCU running a "SOC1040" firmware that performs auto-exposure, auto white balance and lens-shading correction. The sensor talks to the host over MIPI CSI-2 (1 or 2 data lanes); register access is over I2C using the Qualcomm CCI helper. Hardware layout exposed to userspace: +-------------------+ +-----------------+ | Pixel Array (PA) |--->| IFP / ISP |--->[CSI-2] | sink-less subdev | | MCU + pipe | +-------------------+ +-----------------+ PA carries V4L2_CID_PIXEL_RATE and V4L2_CID_LINK_FREQ so that downstream receivers walking the graph from the CSIPHY (camss does this) find them on the entity flagged MEDIA_ENT_F_CAM_SENSOR. V4L2 controls implemented: - exposure / gain / hflip / vflip - test pattern - V4L2_CID_COLORFX (sepia / mono / negative / aqua / vivid) - V4L2_CID_POWER_LINE_FREQUENCY (50/60 Hz flicker avoidance) Tested on a HP TouchPad (APQ8060, MSM8x60 family) with the on-board front 1.3 Mpx MT9M113. Probes cleanly, both PA and IFP subdevs register, csiphy_stream_on() picks up link_freq from PA, and the preview pipeline up through CAMSS produces frames. A bounded 3-attempt retry around s_stream(1) handles a residual silicon-level wedge that occasionally leaves the MCU's SEQ_CMD in an inconsistent state on cold start. The DTS patches that enable the sensor on the HP TouchPad will be sent separately to the ARM/DTS tree. Herman van Hazendonk (2): dt-bindings: media: i2c: add aptina,mt9m113 media: i2c: add Aptina MT9M113 1.3 Mpx SoC sensor driver .../bindings/media/i2c/aptina,mt9m113.yaml | 127 + drivers/media/i2c/Kconfig | 12 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/mt9m113.c | 2971 +++++++++++++++++ 4 files changed, 3111 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/aptina,mt9m113.yaml create mode 100644 drivers/media/i2c/mt9m113.c -- 2.43.0