From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.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 150E623A9B3 for ; Thu, 12 Mar 2026 15:05:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773327918; cv=none; b=Yhk3Dazgdc4gy/zqZ5Vw5otA4DzDCAPTtvP29dB7AUPAXRVilgpi6f7vcYDSHdxWpCHiSWnjyjJ4BcnAzPnyMOYQw1x6jNyn8SogZpY8DMhdrux4wt+dj1tgrZTPaaQhjbvj3W2P3NlhYsRZc/hczqzCnxX/P12bnDDidA/c5UY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773327918; c=relaxed/simple; bh=RNegquDP9ZAvanXafZvoUaSklOxtzsNxpKAL4uAng6Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N7UhfxS8MvcEzCc6+56qKTsVD6VhipO4XkvmB0RLeqsrg9CQiXcRTncKoso2WuQhupvMI6pGIAyQ18PPQuDi37PrtfDkK+8IkGmuCev5c4Q0NsYeavPW3dABcPRA9YBj44MxK/cM0PB0K0G11Ua18ksXtGVezwKGP8Ancd45H1Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=D7rPprZF; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D7rPprZF" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5a1362c9a3cso1206976e87.2 for ; Thu, 12 Mar 2026 08:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773327915; x=1773932715; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+Mn2HYD2huymUotK4Suh+ped+Jj4U2qnf8+TCMKloyQ=; b=D7rPprZFW3Zv3XJKKAZazQGno6+Lm+U7uEkTXavAQICEBYJ6XAplbcNYGLxKG0Xvj6 WLkqql4L3s/JM8skvT/HJBClb6Ix8t43MWxDeGaMyz1LuT0FM7obdBaHsqV4jH2CluLS fsEQZj/WpLHJgVNtj0EJDwYWbrmyM3W0ah1qqjuTpN1CFIjH1MhPp/be9STqOWHYlbtF ZgEAcSAPQKOO3RhZTYdDatDSx9iZpeQ3UJiPIdcpjuOYSzdYRNCGl5FXBwBo4DI8chjG 88Bu795yx91TxHdAkyvu6oRzFvXvqd8JBdfUs7unYHHEqsQsDFctwW/cFOA/WVlcGUmT nPEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773327915; x=1773932715; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+Mn2HYD2huymUotK4Suh+ped+Jj4U2qnf8+TCMKloyQ=; b=K3PdVhkR4Xp+ChABgOS205hVP01E8MEA7WTuXWszOi9sEFWv3NnV4II7RZhE3PVCOT QZSj+S3B07rQ5v6fcAI5nI4TzlslgmXZQECBMos288+6Tc2EZlKBA52gIHjqi59P1p4x OI//j13Thf35b6P1eysIxjTH3XAX2V9Wc33zdNhhLAbaWcOJaHGw1T5WF4vozMvwlDef pQWW58PrtgC3bKuTxFH2TA9V2d9n+91AmMANd/mbQRb2xD87Pk8eeD3H+RWn2A7je2G1 wXNysVEcoBnNf41QEMau3Nniz+TZSoLEK0Q0qpqmItTmFr5qdhPW85kPA3RJ4QUCftAa lJ3Q== X-Gm-Message-State: AOJu0YwCrhN/L/xMr7YdG4SzEiOCWSPo9drnUxlbCUA2mzoqJ/kVj+cx EvbEBo4bgbEoOD+pNPnagtqkqtewb9X+F6ME144h9i9Q4NJCebgmkSpz X-Gm-Gg: ATEYQzz8f0rscmyY4nOhIwVwLEwl2teYNiNfBWkvzmuI3Kyh7o9LgUnO6AslsoV1hbw rrfgeW1KobEkjDWZ2ZbfzL3Jc+Xu8N+tzCH86y2Grjaq5zn5w28gBN97ZzytSxa9di1r9XQQ39U agwcgZj5JRIIRlyoJLZFE/CTyItDaaYyT29SDHQPDGQsy3rFB5pA4qsl5jWp3nkz+Oxc1PYwH+M 28SvNfKQjVVV3LjdF04QmbV4WqxgO94VDC1XSAuwqI/2qid1uzVHGYO4k5M2sJPk6jb3bhFt2Hh ZS4ma+ccqCnzIwfOjJ31lBsxbCggtjm2Eygq/Hf7n7SJtnuQBz6S3iIVUAQLEA8avA0hKcDu0/D 6tdp+s9v9DVS+TAqqdwX5YrgSaKOWZBqXusDIRw9mdLGe0fGV1gxxu+JjTBuclt8AXYKnlxun86 qgV71HRJ3wvPnqjcynCnDRpYMDBenmvVA53lKBdB0= X-Received: by 2002:ac2:4846:0:b0:5a1:253a:9cdb with SMTP id 2adb3069b0e04-5a156dccbdamr1614494e87.48.1773327914790; Thu, 12 Mar 2026 08:05:14 -0700 (PDT) Received: from gentoo.sknt.ru ([95.161.221.172]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a156034364sm1000197e87.40.2026.03.12.08.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2026 08:05:14 -0700 (PDT) From: Alexander Shiyan To: linux-media@vger.kernel.org Cc: devicetree@vger.kernel.org, Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Hans Verkuil , Hans de Goede , Tetsuya Nomura , Manivannan Sadhasivam , Alexander Shiyan Subject: [PATCH 1/2] dt-bindings: media: i2c: Add Sony IMX662 sensor Date: Thu, 12 Mar 2026 18:04:36 +0300 Message-ID: <20260312150437.1091195-2-eagle.alexander923@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260312150437.1091195-1-eagle.alexander923@gmail.com> References: <20260312150437.1091195-1-eagle.alexander923@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add device tree binding documentation for the Sony IMX662 CMOS image sensor. The sensor features a native pixel array of 1936x1100 (effective 1920x1080) and supports MIPI CSI-2 output with 2 or 4 data lanes, RAW10/RAW12 formats, and both colour and monochrome variants. The link-frequencies property accepts up to eight values corresponding to the allowed MIPI data rates. Signed-off-by: Alexander Shiyan --- .../bindings/media/i2c/sony,imx662.yaml | 112 ++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx662.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx662.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx662.yaml new file mode 100644 index 000000000000..9a4c5333828e --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx662.yaml @@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/sony,imx662.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony IMX662 CMOS Image Sensor + +description: + The Sony IMX662 is a 1/2.8-inch CMOS image sensor with a pixel + array of 1936x1100 pixels, capable of 1920x1080 resolution at up + to 90 fps. It supports MIPI CSI-2 output with 2 or 4 data lanes, + RAW10/RAW12 output, and both colour and monochrome variants. + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + enum: + - sony,imx662 # Colour variant + - sony,imx662-mono # Monochrome variant + + reg: + maxItems: 1 + description: I2C device address + + clocks: + maxItems: 1 + description: Master clock input (xclk). + + reset-gpios: + maxItems: 1 + description: Sensor reset (XCLR) pin, active low (optional). + + avdd-supply: + description: Analog 3.3V power supply (optional). + + dvdd-supply: + description: Digital core 1.1V power supply (optional). + + ovdd-supply: + description: Digital I/O 1.8V power supply (optional). + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + description: CSI-2 transmitter port + additionalProperties: false + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + properties: + data-lanes: + description: + Number of MIPI CSI-2 data lanes. Supported values: 2, 4. + minItems: 2 + maxItems: 4 + items: + enum: [1, 2, 3, 4] + + link-frequencies: + description: + Allowed MIPI link frequencies in Hz. The list may contain + one or more values; the driver selects the highest supported + frequency compatible with the number of data lanes. + minItems: 1 + maxItems: 8 + items: + enum: [297000000, 360000000, 445500000, 594000000, + 720000000, 891000000, 1039500000, 1188000000] + required: + - data-lanes + - link-frequencies + required: + - endpoint + +required: + - compatible + - reg + - clocks + - port + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera@1a { + compatible = "sony,imx662"; + reg = <0x1a>; + clocks = <&clk24m>; + avdd-supply = <®_cam_avdd>; + dvdd-supply = <®_cam_dvdd>; + ovdd-supply = <®_cam_ovdd>; + reset-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; + + port { + imx662_out: endpoint { + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <360000000>; + remote-endpoint = <&imx662_in>; + }; + }; + }; + }; +... -- 2.52.0