From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from outbound6.mail.transip.nl (outbound6.mail.transip.nl [136.144.136.128]) (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 EFFC0317144; Fri, 5 Jun 2026 03:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.144.136.128 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780629628; cv=none; b=SC2Y6oDzyPI7FGTDIB0VfkBt1m1ufnBNDlzbOGgzklouuM4304bTm456Vtw5Blg1pjdg5axYvGWKGkTcYaIzcImAkG410fVTnlrXHRqdUinUb+I8cABaJi91k16hiIGzssuozUg+MOu/o4uiAH4FK6oCGt/Bc9V24780j3N2+zE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780629628; c=relaxed/simple; bh=fJsXqFFHg8y8yucKAu+V9Ezs0IZST0HWeyG5e/QFCKc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Cx08te5UXtGDutplc0pID06o7+KclmLDCu9R6dEfiWWwjAm2QRcZ3WNUxzJqIL60szV9JJDNlFurQil+zAobZOOtBTrEz3GCieV+w1tra3hyQEbPKwjx7pvqItLrmg3y46rBE72T1NneExfeh2MsPmKhYGhgFJnj3qk0CcdumIg= 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=qtSZKCiJ; arc=none smtp.client-ip=136.144.136.128 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="qtSZKCiJ" Received: from submission1.mail.transip.nl (unknown [10.100.4.70]) by outbound6.mail.transip.nl (Postfix) with ESMTP id 4gWmsH6TFbzwLHf5; Fri, 5 Jun 2026 05:20:19 +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 4gWmsH0423zJjhYN; 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 1/2] dt-bindings: media: i2c: add aptina,mt9m113 Date: Fri, 5 Jun 2026 05:20:16 +0200 Message-ID: <066f05830969d868aa8ba199d6964a17b877f34d.1780601033.git.github.com@herrie.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@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=1780629619; h=from:subject:to:cc: references:in-reply-to:date:mime-version; bh=vh6BmXicCxdLCn5/moMDoi2dKU76VHJhGFbWDzmKQJk=; b=qtSZKCiJGp66xSx4eDs1kNSkV0aRYebfucajT04bdP3js+maPXGxZOPWa2O6cYyUWVnO1N UXrzuo2R6/T2OvtTL/PJXyQrlrUQSRe3ekT0aTDAyCnf4ekO8dHoWKhFKTAAr3XcC312Hs r8aTcM+FAOGh1kHh2XE6WuXJsHhWAzw7ZptMxMydxrsKFg8DaKYNREGIeEwUmIpowiZYIk +YHiUcWrcxgGMgNDlmS+GSzod6gFh0kqXON/wfsn0i3q2B90XljDTa/7+33Hatb4JHBN1G c2kIa7PTvbqSl3VI2Zo6/KubC55D/26gqaEe+Bfb/6+OHZKHzytnVrQOhXsKew== X-Report-Abuse-To: abuse@transip.nl Add the binding for the Aptina (now ON Semiconductor) MT9M113 1.3 megapixel SoC image sensor with on-die ISP. The chip is used as the front (user-facing) camera on the HP TouchPad tablet and connects to the host SoC over MIPI CSI-2. The binding describes the chip's i2c address, optional reset and standby GPIOs, the per-supply regulators (VDD, VDD_IO, VDDA), the external clock input, and the CSI-2 endpoint pads exposed via the "port" subnode. Signed-off-by: Herman van Hazendonk --- .../bindings/media/i2c/aptina,mt9m113.yaml | 127 ++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/aptina,mt9m113.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/aptina,mt9m113.yaml b/Documentation/devicetree/bindings/media/i2c/aptina,mt9m113.yaml new file mode 100644 index 000000000000..7fa7cb2fedf9 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/aptina,mt9m113.yaml @@ -0,0 +1,127 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/aptina,mt9m113.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aptina MT9M113 1.3 Megapixel CMOS Digital Image Sensor + +maintainers: + - Herman van Hazendonk + +description: |- + The Aptina MT9M113 is a 1.3 Megapixel CMOS digital image sensor with + 1280x1024 active pixels. It supports dual context operation: + Context A (640x480 preview mode with binning) and Context B (1280x1024 + capture mode). It is programmable through an I2C interface and outputs + image data over a 1-lane MIPI CSI-2 connection. + +properties: + compatible: + const: aptina,mt9m113 + + reg: + description: I2C device address + enum: + - 0x3c + - 0x48 + - 0x5d + + clocks: + description: EXTCLK clock signal (24 MHz typical) + maxItems: 1 + + vdd-supply: + description: + Core digital voltage supply, 1.8V + + vddio-supply: + description: + I/O digital voltage supply, 1.8V or 2.8V + + vaa-supply: + description: + Analog voltage supply, 2.8V + + reset-gpios: + description: |- + Reference to the GPIO connected to the RESET_BAR pin, if any (active + low). + + powerdown-gpios: + description: |- + Reference to the GPIO connected to the STANDBY/PWDN pin, if any (active + high). When asserted, the sensor enters low-power standby mode. + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-type: + const: 4 + description: MIPI CSI-2 D-PHY + + link-frequencies: true + remote-endpoint: true + data-lanes: + minItems: 1 + maxItems: 1 + + required: + - bus-type + - link-frequencies + - data-lanes + + required: + - endpoint + +required: + - compatible + - reg + - clocks + - vdd-supply + - vddio-supply + - vaa-supply + - port + +additionalProperties: false + +examples: + - | + #include + #include + + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + camera@3c { + compatible = "aptina,mt9m113"; + reg = <0x3c>; + + clocks = <&mmcc 48>; + + reset-gpios = <&pm8058_gpio 29 GPIO_ACTIVE_LOW>; + powerdown-gpios = <&pm8058_gpio 30 GPIO_ACTIVE_HIGH>; + + vddio-supply = <&pm8058_l15>; + vdd-supply = <&pm8058_l15>; + vaa-supply = <&pm8058_l14>; + + port { + mt9m113_ep: endpoint { + bus-type = ; + link-frequencies = /bits/ 64 <384000000>; + data-lanes = <1>; + remote-endpoint = <&csiphy1_ep>; + }; + }; + }; + }; +... -- 2.43.0