Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions Documentation/devicetree/bindings/media/i2c/ams,mira016.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/i2c/ams,mira016.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: AMS 0.16 MP NIR enhanced global shutter image sensor

maintainers:
- Jacopo Mondi <jacopo.mondi@ideasonboard.com>
- Philippe Baetens <philippebaetens@gmail.com>

description:
Mira016 is a 0.16 MP NIR enhanced global shutter image sensor designed for 2D
and 3D consumer and industrial machine vision applications. The sensor is
compliant to the MIPI CSI-2 v1.3 protocol interface and the D-PHY v1.2
physical layer specifications to transmit the image data to the host
processor. It uses one data lane and one clock lane operating up to 1.5 Gbps.

allOf:
- $ref: /schemas/media/video-interface-devices.yaml#

properties:
compatible:
const: ams,mira016

reg:
maxItems: 1

clocks:
maxItems: 1

vdd28-supply:
description:
I/O voltage supply, 2.8 volts

vdd11-supply:
description:
I/O voltage supply, 1.1 volts

reset-gpios:
description: Sensor reset (RST_N) 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

required:
- data-lanes
- link-frequencies

required:
- compatible
- reg
- clocks
- vdd28-supply
- vdd11-supply
- port

unevaluatedProperties: false

examples:
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;

camera@36 {
compatible = "ams,mira016";
reg = <0x36>;
clocks = <&cam1_clk>;

vdd28-supply = <&cam1_reg>;
vdd11-supply = <&cam_dummy_reg>;

port {
endpoint {
data-lanes = <1>;
link-frequencies = /bits/ 64 <750000000>;
};
};
};
};
...
103 changes: 103 additions & 0 deletions Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# 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:
- Jacopo Mondi <jacopo.mondi@ideasonboard.com>
- Philippe Baetens <philippebaetens@gmail.com>

description:
Mira220 is a 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>;

camera@54 {
compatible = "ams,mira220";
reg = <0x54>;
clocks = <&cam1_clk>;
vana-supply = <&cam1_reg>;
vdig-supply = <&cam_dummy_reg>;
vddl-supply = <&cam_dummy_reg>;
port {
endpoint {
clock-lanes = <0>;
data-lanes = <1 2>;
link-frequencies = /bits/ 64 <750000000>;
};
};
};
};
...
15 changes: 15 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,21 @@ S: Maintained
F: Documentation/devicetree/bindings/iio/light/ams,as73211.yaml
F: drivers/iio/light/as73211.c

AMS MIRA016 DRIVER
M: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
M: Philippe Baetens <philippebaetens@gmail.com>
L: linux-media@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/media/i2c/ams,mira016.yaml
F: drivers/media/i2c/mira016.c

AMS MIRA220 DRIVER
M: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
M: Philippe Baetens <philippebaetens@gmail.com>
L: linux-media@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml

AMT (Automatic Multicast Tunneling)
M: Taehee Yoo <ap420073@gmail.com>
L: netdev@vger.kernel.org
Expand Down
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
minipitft13.dtbo \
miniuart-bt.dtbo \
mipi-dbi-spi.dtbo \
mira016.dtbo \
mira220.dtbo \
mlx90640.dtbo \
mmc.dtbo \
Expand Down
27 changes: 27 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,8 @@ Params: cam0-arducam-64mp Select Arducam64MP for camera on port 0
cam0-imx477 Select IMX477 for camera on port 0
cam0-imx519 Select IMX519 for camera on port 0
cam0-imx708 Select IMX708 for camera on port 0
cam0-mira016 Select Mira016 for camera on port 0
Comment thread
jmondi marked this conversation as resolved.
Resolved
cam0-mira220 Select Mira220 for camera on port 0
cam0-ov2311 Select OV2311 for camera on port 0
cam0-ov5647 Select OV5647 for camera on port 0
cam0-ov64a40 Select OV64A40 for camera on port 0
Expand All @@ -933,6 +935,8 @@ Params: cam0-arducam-64mp Select Arducam64MP for camera on port 0
cam1-imx477 Select IMX477 for camera on port 1
cam1-imx519 Select IMX519 for camera on port 1
cam1-imx708 Select IMX708 for camera on port 1
cam1-mira016 Select Mira016 for camera on port 1
cam1-mira220 Select Mira220 for camera on port 1
cam1-ov2311 Select OV2311 for camera on port 1
cam1-ov5647 Select OV5647 for camera on port 1
cam1-ov64a40 Select OV64A40 for camera on port 1
Expand Down Expand Up @@ -960,6 +964,8 @@ Params: cam0-arducam-64mp Select Arducam64MP for camera on port 0
cam0-imx477 Select IMX477 for camera on port 0
cam0-imx519 Select IMX519 for camera on port 0
cam0-imx708 Select IMX708 for camera on port 0
cam0-mira016 Select Mira016 for camera on port 0
cam0-mira220 Select Mira220 for camera on port 0
cam0-ov2311 Select OV2311 for camera on port 0
cam0-ov5647 Select OV5647 for camera on port 0
cam0-ov64a40 Select OV64A40 for camera on port 0
Expand All @@ -973,6 +979,8 @@ Params: cam0-arducam-64mp Select Arducam64MP for camera on port 0
cam1-imx477 Select IMX477 for camera on port 1
cam1-imx519 Select IMX519 for camera on port 1
cam1-imx708 Select IMX708 for camera on port 1
cam1-mira016 Select Mira016 for camera on port 1
cam1-mira220 Select Mira220 for camera on port 1
cam1-ov2311 Select OV2311 for camera on port 1
cam1-ov5647 Select OV5647 for camera on port 1
cam1-ov64a40 Select OV64A40 for camera on port 1
Expand All @@ -986,6 +994,8 @@ Params: cam0-arducam-64mp Select Arducam64MP for camera on port 0
cam2-imx477 Select IMX477 for camera on port 2
cam2-imx519 Select IMX519 for camera on port 2
cam2-imx708 Select IMX708 for camera on port 2
cam2-mira016 Select Mira016 for camera on port 2
cam2-mira220 Select Mira220 for camera on port 2
cam2-ov2311 Select OV2311 for camera on port 2
cam2-ov5647 Select OV5647 for camera on port 2
cam2-ov64a40 Select OV64A40 for camera on port 2
Expand All @@ -999,6 +1009,8 @@ Params: cam0-arducam-64mp Select Arducam64MP for camera on port 0
cam3-imx477 Select IMX477 for camera on port 3
cam3-imx519 Select IMX519 for camera on port 3
cam3-imx708 Select IMX708 for camera on port 3
cam3-mira016 Select Mira016 for camera on port 3
cam3-mira220 Select Mira220 for camera on port 3
cam3-ov2311 Select OV2311 for camera on port 3
cam3-ov5647 Select OV5647 for camera on port 3
cam3-ov64a40 Select OV64A40 for camera on port 3
Expand Down Expand Up @@ -3879,6 +3891,21 @@ Params:
(default 16).


Name: mira016
Info: ams mira016 camera module.
Uses Unicam 1, which is the standard camera connector on most Pi
variants.
Load: dtoverlay=mira016,<param>=<val>
Params: rotation Mounting rotation of the camera sensor (0 or
180, default 0)
orientation Sensor orientation (0 = front, 1 = rear,
2 = external, default external)
media-controller Configure use of Media Controller API for
configuring the sensor (default on)
cam0 Adopt the default configuration for CAM0 on a
Compute Module (CSI0, i2c_vc, and cam0_reg).


Name: mira220
Info: ams mira220 camera module.
Uses Unicam 1, which is the standard camera connector on most Pi
Expand Down
Loading