[PATCH v11 1/2] dt-bindings: media: i2c: Add mira220 image sensor
Jacopo Mondi <[email protected]> Fri, 31 Jul 2026 17:28:19 +0200
| Newsgroups | org.kernel.vger.linux-media,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Philippe Baetens <[email protected]> Add bindings for the AMSOSRAM Mira220 image sensor. Acked-by: Conor Dooley <[email protected]> Signed-off-by: Philippe Baetens <[email protected]> Signed-off-by: Jacopo Mondi <[email protected]> --- v8->v9: - Make link-frequencies required v7->v8: - Add Conor's tag v5->v6: - sashiko: use 'unevaluatedProperties: false' at the top level to allow properties from video-interface-devices.yaml v4->v5: - reflow description to 80 cols and drop |- - remove 'reg' description - remove 'anyOf' from data-lanes - remove 'link-frequencies' from required properties - remove 'clock-continuous: true' as we already allow all properties from 'video-interfaces.yaml' - remove tabs from the example --- .../devicetree/bindings/media/i2c/ams,mira220.yaml | 102 +++++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 109 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 000000000000..fa6fec0072ef --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml @@ -0,0 +1,102 @@ +# 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 <[email protected]> + +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: + 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: + items: + - const: 1 + - const: 2 + + required: + - data-lanes + - link-frequencies + +required: + - compatible + - reg + - clocks + - vdig-supply + - vana-supply + - vddl-supply + - port + +unevaluatedProperties: 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>; + vdig-supply = <&cam_dummy_reg>; + vddl-supply = <&cam_dummy_reg>; + port { + mira220_ep: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + link-frequencies = /bits/ 64 <750000000>; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 3785b8c1de0a..9e8c605256aa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1430,6 +1430,13 @@ S: Maintained F: Documentation/devicetree/bindings/iio/light/ams,as73211.yaml F: drivers/iio/light/as73211.c +AMS MIRA220 DRIVER +M: Philippe Baetens <[email protected]> +M: Jacopo Mondi <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml + AMT (Automatic Multicast Tunneling) M: Taehee Yoo <[email protected]> L: [email protected] -- 2.54.0