xref: /freebsd/sys/contrib/device-tree/Bindings/media/i2c/onnn,mt9m114.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
184943d6fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
284943d6fSEmmanuel Vadot%YAML 1.2
384943d6fSEmmanuel Vadot---
484943d6fSEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/onnn,mt9m114.yaml#
584943d6fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
684943d6fSEmmanuel Vadot
784943d6fSEmmanuel Vadottitle: onsemi 1/6-inch 720p CMOS Digital Image Sensor
884943d6fSEmmanuel Vadot
984943d6fSEmmanuel Vadotmaintainers:
1084943d6fSEmmanuel Vadot  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
1184943d6fSEmmanuel Vadot
1284943d6fSEmmanuel Vadotdescription: |-
1384943d6fSEmmanuel Vadot  The onsemi MT9M114 is a 1/6-inch 720p (1.26 Mp) CMOS digital image sensor
1484943d6fSEmmanuel Vadot  with an active pixel-array size of 1296H x 976V. It is programmable through
1584943d6fSEmmanuel Vadot  an I2C interface and outputs image data over a 8-bit parallel or 1-lane MIPI
1684943d6fSEmmanuel Vadot  CSI-2 connection.
1784943d6fSEmmanuel Vadot
1884943d6fSEmmanuel Vadotproperties:
1984943d6fSEmmanuel Vadot  compatible:
2084943d6fSEmmanuel Vadot    const: onnn,mt9m114
2184943d6fSEmmanuel Vadot
2284943d6fSEmmanuel Vadot  reg:
2384943d6fSEmmanuel Vadot    description: I2C device address
2484943d6fSEmmanuel Vadot    enum:
2584943d6fSEmmanuel Vadot      - 0x48
2684943d6fSEmmanuel Vadot      - 0x5d
2784943d6fSEmmanuel Vadot
2884943d6fSEmmanuel Vadot  clocks:
2984943d6fSEmmanuel Vadot    description: EXTCLK clock signal
3084943d6fSEmmanuel Vadot    maxItems: 1
3184943d6fSEmmanuel Vadot
3284943d6fSEmmanuel Vadot  vdd-supply:
3384943d6fSEmmanuel Vadot    description:
3484943d6fSEmmanuel Vadot      Core digital voltage supply, 1.8V
3584943d6fSEmmanuel Vadot
3684943d6fSEmmanuel Vadot  vddio-supply:
3784943d6fSEmmanuel Vadot    description:
3884943d6fSEmmanuel Vadot      I/O digital voltage supply, 1.8V or 2.8V
3984943d6fSEmmanuel Vadot
4084943d6fSEmmanuel Vadot  vaa-supply:
4184943d6fSEmmanuel Vadot    description:
4284943d6fSEmmanuel Vadot      Analog voltage supply, 2.8V
4384943d6fSEmmanuel Vadot
4484943d6fSEmmanuel Vadot  reset-gpios:
4584943d6fSEmmanuel Vadot    description: |-
4684943d6fSEmmanuel Vadot      Reference to the GPIO connected to the RESET_BAR pin, if any (active
4784943d6fSEmmanuel Vadot      low).
4884943d6fSEmmanuel Vadot
4984943d6fSEmmanuel Vadot  port:
5084943d6fSEmmanuel Vadot    $ref: /schemas/graph.yaml#/$defs/port-base
5184943d6fSEmmanuel Vadot    additionalProperties: false
5284943d6fSEmmanuel Vadot
5384943d6fSEmmanuel Vadot    properties:
5484943d6fSEmmanuel Vadot      endpoint:
5584943d6fSEmmanuel Vadot        $ref: /schemas/media/video-interfaces.yaml#
5684943d6fSEmmanuel Vadot        additionalProperties: false
5784943d6fSEmmanuel Vadot
5884943d6fSEmmanuel Vadot        properties:
5984943d6fSEmmanuel Vadot          bus-type:
6084943d6fSEmmanuel Vadot            enum: [4, 5, 6]
6184943d6fSEmmanuel Vadot
6284943d6fSEmmanuel Vadot          link-frequencies: true
6384943d6fSEmmanuel Vadot          remote-endpoint: true
6484943d6fSEmmanuel Vadot
6584943d6fSEmmanuel Vadot          # The number and mapping of lanes (for CSI-2), and the bus width and
6684943d6fSEmmanuel Vadot          # signal polarities (for parallel and BT.656) are fixed and must not
6784943d6fSEmmanuel Vadot          # be specified.
6884943d6fSEmmanuel Vadot
6984943d6fSEmmanuel Vadot        required:
7084943d6fSEmmanuel Vadot          - bus-type
7184943d6fSEmmanuel Vadot          - link-frequencies
7284943d6fSEmmanuel Vadot
73*833e5d42SEmmanuel Vadot  slew-rate:
74*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
75*833e5d42SEmmanuel Vadot    description:
76*833e5d42SEmmanuel Vadot      Slew rate ot the output pads DOUT[7:0], LINE_VALID, FRAME_VALID and
77*833e5d42SEmmanuel Vadot      PIXCLK. Higher values imply steeper voltage-flanks on the pads.
78*833e5d42SEmmanuel Vadot    minimum: 0
79*833e5d42SEmmanuel Vadot    maximum: 7
80*833e5d42SEmmanuel Vadot    default: 7
81*833e5d42SEmmanuel Vadot
8284943d6fSEmmanuel Vadotrequired:
8384943d6fSEmmanuel Vadot  - compatible
8484943d6fSEmmanuel Vadot  - reg
8584943d6fSEmmanuel Vadot  - clocks
8684943d6fSEmmanuel Vadot  - vdd-supply
8784943d6fSEmmanuel Vadot  - vddio-supply
8884943d6fSEmmanuel Vadot  - vaa-supply
8984943d6fSEmmanuel Vadot  - port
9084943d6fSEmmanuel Vadot
9184943d6fSEmmanuel VadotadditionalProperties: false
9284943d6fSEmmanuel Vadot
9384943d6fSEmmanuel Vadotexamples:
9484943d6fSEmmanuel Vadot  - |
9584943d6fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
9684943d6fSEmmanuel Vadot    #include <dt-bindings/media/video-interfaces.h>
9784943d6fSEmmanuel Vadot
9884943d6fSEmmanuel Vadot    i2c0 {
9984943d6fSEmmanuel Vadot        #address-cells = <1>;
10084943d6fSEmmanuel Vadot        #size-cells = <0>;
10184943d6fSEmmanuel Vadot
10284943d6fSEmmanuel Vadot        sensor@48 {
10384943d6fSEmmanuel Vadot            compatible = "onnn,mt9m114";
10484943d6fSEmmanuel Vadot            reg = <0x48>;
10584943d6fSEmmanuel Vadot
10684943d6fSEmmanuel Vadot            clocks = <&clk24m 0>;
10784943d6fSEmmanuel Vadot
10884943d6fSEmmanuel Vadot            reset-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>;
10984943d6fSEmmanuel Vadot
11084943d6fSEmmanuel Vadot            vddio-supply = <&reg_cam_1v8>;
11184943d6fSEmmanuel Vadot            vdd-supply = <&reg_cam_1v8>;
11284943d6fSEmmanuel Vadot            vaa-supply = <&reg_2p8v>;
11384943d6fSEmmanuel Vadot
11484943d6fSEmmanuel Vadot            port {
11584943d6fSEmmanuel Vadot                endpoint {
11684943d6fSEmmanuel Vadot                    bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
11784943d6fSEmmanuel Vadot                    link-frequencies = /bits/ 64 <384000000>;
11884943d6fSEmmanuel Vadot                    remote-endpoint = <&mipi_csi_in>;
11984943d6fSEmmanuel Vadot                };
12084943d6fSEmmanuel Vadot            };
12184943d6fSEmmanuel Vadot        };
12284943d6fSEmmanuel Vadot    };
12384943d6fSEmmanuel Vadot...
124