From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-24417.protonmail.ch (mail-24417.protonmail.ch [109.224.244.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 6A3ED44A41F; Fri, 2 Oct 2026 08:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790929563; cv=none; b=O35OfTgkTifCZgSD5he2GdA3yIjCnvO616srkhtaBj0jjgmZa6hrn6ueF0KlPkiqMklZWkmbHA5D3WiDbVQqL2QdX6iaaDoVA1SHqbXWf6oo5eiZXseJcF6fIK525R65KXAEXld9Z3+G+9p6iHtXUFyfFrHu229cZCJtyR+21+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790929563; c=relaxed/simple; bh=vHAQS5d/rWeXvk9HKIVIz5shZ2I4Qsj1a90sciN0PIM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=agOPlXP2LpdAhnKqVZvLJMcUoRhaCvluP1kuOZBxYRY0ufLsu4J7+szONS2atOUfrlK8bqWHEA+k5PqQxc/SpVJXjUJtAcTIkHa9smmWcUBMXwprF1yCpERKJA/XBBYtJ3m4G7LYIvCYEmwq68oe7A20joj6uoo+BXeTLe35B8I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me; spf=pass smtp.mailfrom=pm.me; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b=DUPsCmIE; arc=none smtp.client-ip=109.224.244.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pm.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="DUPsCmIE" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1790929558; x=1791188758; bh=RJ3+LFDHVGDjse2PzEvjdPoUfEejVuaxTyINUfz0x0c=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=DUPsCmIEUndDMcMOl6eIY9QbyTTeo5NyDddgsaQ65sNiaNhXQSeKi/1snqQuhvusD LqctrmNSuwxRbIm7nHockY//TL253x7SLpRFvsA9zoaRzDNw5KT2swgKpY6G5JfQrD 1a1RzejJVkLZoI/mxwuJ1IlctkJd6PYIWD2OBIcFogy/0HSApSuAB+2K08CLc/4C/l fK6shpm9Lmf7mMBWqiksskd0N5XNqm2lPnTV7jZJZmoLDXpdulr+QMBvEV9KIKX9GS Rgnfw/qtGgUekJQWF56fNcNgRaAyLWHJnCT1A03gYAom7C1/zK83BLyUqcqPBtbJCo l0+RaCZdCZ97Q== Date: Fri, 02 Oct 2026 08:25:53 +0000 To: Sakari Ailus , Mauro Carvalho Chehab , Andre Gilerson , Dan Scally From: Sergey Lebedev Cc: Hans de Goede , Rob Herring , Krzysztof Kozlowski , Conor Dooley , German Pablo Lindo , sashiko-bot@kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 1/3] dt-bindings: media: Add Sony IMX681 Message-ID: <20261002082537.74084-2-lsa.uz@pm.me> In-Reply-To: <20261002082537.74084-1-lsa.uz@pm.me> References: <20261002082537.74084-1-lsa.uz@pm.me> Feedback-ID: 113843758:user:proton X-Pm-Message-ID: 7504e5154ab65ad6cbc234ac66ef9dc56d21a989 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: quoted-printable The Sony IMX681 is a CMOS image sensor used as the user-facing camera on several Microsoft Surface devices. It operates from analog 2.8 V, digital 1.05 V and interface 1.8 V supplies, is programmable over I2C, and outputs 10-bit Bayer data over a two-lane MIPI CSI-2 D-PHY interface. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Sergey Lebedev Reviewed-by: Krzysztof Kozlowski Acked-by: Andre Gilerson --- .../bindings/media/i2c/sony,imx681.yaml | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx681= .yaml diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx681.yaml b= /Documentation/devicetree/bindings/media/i2c/sony,imx681.yaml new file mode 100644 index 00000000000..24c55760547 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx681.yaml @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/sony,imx681.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony IMX681 CMOS Image Sensor + +maintainers: + - Andre Gilerson + - Sergey Lebedev + +description: + The Sony IMX681 is a CMOS active pixel image sensor with a square pixel + array, used as the user-facing camera on several Microsoft Surface devic= es. + It operates from analog 2.8 V, digital 1.05 V and interface 1.8 V suppli= es, + is programmable over I2C, and outputs 10-bit Bayer data over a two-lane + MIPI CSI-2 D-PHY interface. + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + const: sony,imx681 + + reg: + maxItems: 1 + + clocks: + description: Input clock (19.2 MHz) + maxItems: 1 + + avdd-supply: + description: Analog power supply (2.8 V) + + dvdd-supply: + description: Digital power supply (1.05 V) + + dovdd-supply: + description: Interface power supply (1.8 V) + + reset-gpios: + description: Sensor reset (XCLR) GPIO, active low + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + items: + - const: 1 + - const: 2 + + required: + - data-lanes + - link-frequencies + + required: + - endpoint + +required: + - compatible + - reg + - clocks + - avdd-supply + - dvdd-supply + - dovdd-supply + - port + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + camera-sensor@10 { + compatible =3D "sony,imx681"; + reg =3D <0x10>; + clocks =3D <&clock_cam>; + avdd-supply =3D <&vcc2v8_cam>; + dvdd-supply =3D <&vcc1v05_cam>; + dovdd-supply =3D <&vcc1v8_cam>; + reset-gpios =3D <&gpio 4 GPIO_ACTIVE_LOW>; + orientation =3D <0>; + rotation =3D <0>; + + port { + imx681_ep: endpoint { + data-lanes =3D <1 2>; + link-frequencies =3D /bits/ 64 <969600000>; + remote-endpoint =3D <&csi_in>; + }; + }; + }; + }; +... --=20 2.54.0 (Apple Git-157)