From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 BB52813AD1C for ; Sat, 20 Sep 2025 19:48:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758397692; cv=none; b=Nh4InVCuQ/XIH5NYVocUV8OaFwF/w5joD0xnffmzpPCa8sH9+4o58bxwz20tzvhEDgWf8FdS9/KzLYe58JutIYNAFKL+iAfXEM2GUuzLMOSuY0kPIk/u7uk39/UWYY/OkzbblY30qYIhDq6Vy88QSE6BrpQEou+yMkaMWNasCtA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758397692; c=relaxed/simple; bh=/KPv4MgQEpLvAih7BS5s/P1Mq+1CJqxQzq3jnJhp2m0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UJRQXNbrVxspn2bqnnDE6cpkU4twLxMwKalB4kD9CIo+yIRKE9gFiRwtPpvK4pZdSFxmr6AK+NN3O97p24xZn0N6zFEAi9OyZct0PxZm6JWVMwL9PBcx3bGcrTqAEvtHUsGaYurjDk1OksOAInCyK1Ik5WI6OJE1DXn/kPvr9rM= 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=K0Q7pibl; arc=none smtp.client-ip=209.85.208.54 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="K0Q7pibl" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-62f0702ef0dso7973092a12.1 for ; Sat, 20 Sep 2025 12:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758397689; x=1759002489; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7alitCORyqMT4E5keq2CkjbuTZjskpd+AbemV9BwsME=; b=K0Q7piblCiombfA2X2rsjChK+/Xo1cE2QhjnHnbz0/duaIgBiKOgsSkdOXYdD26hNl nMMGhp4qh8IIuO6/1UquIFk81auPz0mHT0vrScpafVslthLiD7XfMtA6unczHteR253M PUH1pWA1FM+DM0SHrN+u9e4eGA0QqiaugCXPNoP43ZaNKMnm081D45gYhDYLLqDEppMI A+ZD0s1wgSGRp5fjzc25y9Xky3y+o/32RZjdDP+FUncXv162i40Uo8Oc8DdgCiEdgYks ac5b9EQVkXGrj/App//BgWJPAnknH4JxFsw5G2pUTOsa64DlQWzcwgfgKXZ182OOTHRQ gtxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758397689; x=1759002489; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7alitCORyqMT4E5keq2CkjbuTZjskpd+AbemV9BwsME=; b=jsE6wRNbR4dkY7kljd+eTOpWNLWuXK7mmFoNi5eZP8JQQgT8mCVBTLyPcF+83Y0Ygz p/C2q3MeptbhR2ChbEjIyZUzYM/nKp+ZPaKJFds7z9D5Q7jHiWm9VcrjI/SywU2IXlLm f0n1TYvapKnsI9U9euRipCEY2/LZasMcToWiJsoLyrDHrhKrIExnYx+2HjmlwR/djKAw hYwPt/ZmemMdBp7aMjIBG7EXZYitZG0JTTG67zFFxSglAGYz2iBzfp0Mhn90jRihEf3L W5/a3d9YhgvgxvmVHKYa+19HpNOZPovaSAwZZYWZbYxSEvWkuCnLOC9b+YslOkTVEhN6 47hQ== X-Forwarded-Encrypted: i=1; AJvYcCXwcZEhoQamPqZCK+s1uUlVBY/wv4reud7yDMIG0L2u5EuFEC/FkO3axsiFWaR2n+eAVjxzqQ8JUn1m@vger.kernel.org X-Gm-Message-State: AOJu0Yxazlua5qwXPAX2WvVdnTvj5cMaymCi9STkTNmN3LHel59H+b5k CknWwH1udRIH5wMWCO4G9+wHmSNd1oD+OOcXC3Yhk9ND8ubBQllTi2IS X-Gm-Gg: ASbGncusxzyKoqiZhaCp4n2kwHFqtdmb09FzrTQSIch8hY9lsRcdb8bUfon5wF7dtix naxyi29L5gksJE7DnUR4ImzfZBXcKzWiLJ19nibmSv6TXVdFYEFt/F9UkSi/gKk3Q3wPtkbD9YY /MtFLr4YLC0RbCEOS5OvNk/Ivn4QoFUhPANQclADEXex8eBlblLDw8IBo5yARNIy3jf7uD1pRWL 13Ayc/wzzbsvcZoM/EAWpPUN9ygBGeZCb0ygvCwizue8AprI2rXjD2QurgT2SDmQBB8muqmD34u Ae/6jeMi6uM9CISODm7nUntCoMcOlb7CrhYGIhYRbKo5lkyO34jWEaFEBE0hsYcPu2yjxo8AvSK tHdRpujhlvUbOkqtw8P/GP4LtJU7HflLoymqBX+vyA8DrtMYuGHoR9xxc1njZ7H+lV3g96VGNH9 9l X-Google-Smtp-Source: AGHT+IGLOWRuH2E+3f3td8UchAn2tLIf7pZmiMOEpVcsBurOiW19xCg49X0acY5sLWb9Ce96nwpbGQ== X-Received: by 2002:a17:906:f585:b0:b04:4579:486e with SMTP id a640c23a62f3a-b249041666cmr901375366b.28.1758397688715; Sat, 20 Sep 2025 12:48:08 -0700 (PDT) Received: from UC-PF4PV1FX. (246.79-78-194.adsl-static.isp.belgacom.be. [194.78.79.246]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b1fd15cb2fesm729271466b.89.2025.09.20.12.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Sep 2025 12:48:08 -0700 (PDT) From: Philippe Baetens Date: Sat, 20 Sep 2025 21:47:58 +0200 Subject: [PATCH v4 1/2] dt-bindings: media: i2c: ams,mira220: Add mira220 image sensor Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250920-mira220-v4-1-921b2e83a352@gmail.com> References: <20250920-mira220-v4-0-921b2e83a352@gmail.com> In-Reply-To: <20250920-mira220-v4-0-921b2e83a352@gmail.com> To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Philippe Baetens X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1758397685; l=3936; i=philippebaetens@gmail.com; s=20250821; h=from:subject:message-id; bh=/KPv4MgQEpLvAih7BS5s/P1Mq+1CJqxQzq3jnJhp2m0=; b=MOkZtJ0ocFODv3VxqlrptCWN3tKqISraA/g4f9pODo949In/t1B+cuz8O2xH6P2lEv6IIl0hS XjKqtBMNItiBccnPtrTeJU4h8eg1BjYu8Xn6R9d9pqkHoTu+MdzbnKc X-Developer-Key: i=philippebaetens@gmail.com; a=ed25519; pk=ncW5oAP1p6X8AZAmXP1ADcmlj6QUxXkN7oPfZV/DqYg= Mira220 is a global shutter NIR-enhanced image sensor made by AMS. Driver is submitted in the next patch of this series and verified on a raspberry pi. Signed-off-by: Philippe Baetens --- .../devicetree/bindings/media/i2c/ams,mira220.yaml | 108 +++++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 114 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml b/Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml new file mode 100644 index 000000000..ae4613d0d --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ams,mira220.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/ams,mira220.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ams 2.2 MP NIR enhanced global shutter image sensor + +maintainers: + - Philippe Baetens + +description: |- + 2.2 MP NIR enhanced global shutter image sensor designed for 2D and 3D + consumer and industrial machine vision applications. + Due to its small size, configurability and high sensitivity both + in visual as well as NIR, the Mira220 is well suited for 2D and + 3D applications, which include Active Stereo Vision, + Structured Light Vision for Robotics and AR/VR. + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + const: ams,mira220 + + reg: + description: I2C device address + maxItems: 1 + + clocks: + maxItems: 1 + + vdig-supply: + description: + Digital I/O voltage supply, 1.35 volts + + vana-supply: + description: + Analog1 voltage supply, 2.8 volts + + vddl-supply: + description: + Digital core voltage supply, 1.8 volts + + reset-gpios: + description: Sensor reset (XCLR) GPIO + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + description: + Video output port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + anyOf: + - items: + - const: 1 + - const: 2 + + clock-noncontinuous: true + + required: + - data-lanes + - link-frequencies + + +required: + - compatible + - reg + - clocks + - vdig-supply + - vana-supply + - vddl-supply + - port + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + mira220: camera-sensor@54 { + compatible = "ams,mira220"; + reg = <0x54>; + clocks = <&cam1_clk>; + vana-supply = <&cam1_reg>; /* 2.5v */ + vdig-supply = <&cam_dummy_reg>; /* 1.8v */ + vddl-supply = <&cam_dummy_reg>; /* 1.35v */ + port { + mira220_ep: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + link-frequencies = /bits/ 64 <750000000>; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index fe168477c..c179b931b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1350,6 +1350,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/light/ams,as73211.yaml F: drivers/iio/light/as73211.c +AMS MIRA220 DRIVER +M: Philippe Baetens +S: Maintained +F: Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml +F: drivers/media/i2c/mira220.c + AMT (Automatic Multicast Tunneling) M: Taehee Yoo L: netdev@vger.kernel.org -- 2.43.0