1*84943d6fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*84943d6fSEmmanuel Vadot%YAML 1.2
3*84943d6fSEmmanuel Vadot---
4*84943d6fSEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/onnn,mt9m114.yaml#
5*84943d6fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*84943d6fSEmmanuel Vadot
7*84943d6fSEmmanuel Vadottitle: onsemi 1/6-inch 720p CMOS Digital Image Sensor
8*84943d6fSEmmanuel Vadot
9*84943d6fSEmmanuel Vadotmaintainers:
10*84943d6fSEmmanuel Vadot  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
11*84943d6fSEmmanuel Vadot
12*84943d6fSEmmanuel Vadotdescription: |-
13*84943d6fSEmmanuel Vadot  The onsemi MT9M114 is a 1/6-inch 720p (1.26 Mp) CMOS digital image sensor
14*84943d6fSEmmanuel Vadot  with an active pixel-array size of 1296H x 976V. It is programmable through
15*84943d6fSEmmanuel Vadot  an I2C interface and outputs image data over a 8-bit parallel or 1-lane MIPI
16*84943d6fSEmmanuel Vadot  CSI-2 connection.
17*84943d6fSEmmanuel Vadot
18*84943d6fSEmmanuel Vadotproperties:
19*84943d6fSEmmanuel Vadot  compatible:
20*84943d6fSEmmanuel Vadot    const: onnn,mt9m114
21*84943d6fSEmmanuel Vadot
22*84943d6fSEmmanuel Vadot  reg:
23*84943d6fSEmmanuel Vadot    description: I2C device address
24*84943d6fSEmmanuel Vadot    enum:
25*84943d6fSEmmanuel Vadot      - 0x48
26*84943d6fSEmmanuel Vadot      - 0x5d
27*84943d6fSEmmanuel Vadot
28*84943d6fSEmmanuel Vadot  clocks:
29*84943d6fSEmmanuel Vadot    description: EXTCLK clock signal
30*84943d6fSEmmanuel Vadot    maxItems: 1
31*84943d6fSEmmanuel Vadot
32*84943d6fSEmmanuel Vadot  vdd-supply:
33*84943d6fSEmmanuel Vadot    description:
34*84943d6fSEmmanuel Vadot      Core digital voltage supply, 1.8V
35*84943d6fSEmmanuel Vadot
36*84943d6fSEmmanuel Vadot  vddio-supply:
37*84943d6fSEmmanuel Vadot    description:
38*84943d6fSEmmanuel Vadot      I/O digital voltage supply, 1.8V or 2.8V
39*84943d6fSEmmanuel Vadot
40*84943d6fSEmmanuel Vadot  vaa-supply:
41*84943d6fSEmmanuel Vadot    description:
42*84943d6fSEmmanuel Vadot      Analog voltage supply, 2.8V
43*84943d6fSEmmanuel Vadot
44*84943d6fSEmmanuel Vadot  reset-gpios:
45*84943d6fSEmmanuel Vadot    description: |-
46*84943d6fSEmmanuel Vadot      Reference to the GPIO connected to the RESET_BAR pin, if any (active
47*84943d6fSEmmanuel Vadot      low).
48*84943d6fSEmmanuel Vadot
49*84943d6fSEmmanuel Vadot  port:
50*84943d6fSEmmanuel Vadot    $ref: /schemas/graph.yaml#/$defs/port-base
51*84943d6fSEmmanuel Vadot    additionalProperties: false
52*84943d6fSEmmanuel Vadot
53*84943d6fSEmmanuel Vadot    properties:
54*84943d6fSEmmanuel Vadot      endpoint:
55*84943d6fSEmmanuel Vadot        $ref: /schemas/media/video-interfaces.yaml#
56*84943d6fSEmmanuel Vadot        additionalProperties: false
57*84943d6fSEmmanuel Vadot
58*84943d6fSEmmanuel Vadot        properties:
59*84943d6fSEmmanuel Vadot          bus-type:
60*84943d6fSEmmanuel Vadot            enum: [4, 5, 6]
61*84943d6fSEmmanuel Vadot
62*84943d6fSEmmanuel Vadot          link-frequencies: true
63*84943d6fSEmmanuel Vadot          remote-endpoint: true
64*84943d6fSEmmanuel Vadot
65*84943d6fSEmmanuel Vadot          # The number and mapping of lanes (for CSI-2), and the bus width and
66*84943d6fSEmmanuel Vadot          # signal polarities (for parallel and BT.656) are fixed and must not
67*84943d6fSEmmanuel Vadot          # be specified.
68*84943d6fSEmmanuel Vadot
69*84943d6fSEmmanuel Vadot        required:
70*84943d6fSEmmanuel Vadot          - bus-type
71*84943d6fSEmmanuel Vadot          - link-frequencies
72*84943d6fSEmmanuel Vadot
73*84943d6fSEmmanuel Vadotrequired:
74*84943d6fSEmmanuel Vadot  - compatible
75*84943d6fSEmmanuel Vadot  - reg
76*84943d6fSEmmanuel Vadot  - clocks
77*84943d6fSEmmanuel Vadot  - vdd-supply
78*84943d6fSEmmanuel Vadot  - vddio-supply
79*84943d6fSEmmanuel Vadot  - vaa-supply
80*84943d6fSEmmanuel Vadot  - port
81*84943d6fSEmmanuel Vadot
82*84943d6fSEmmanuel VadotadditionalProperties: false
83*84943d6fSEmmanuel Vadot
84*84943d6fSEmmanuel Vadotexamples:
85*84943d6fSEmmanuel Vadot  - |
86*84943d6fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
87*84943d6fSEmmanuel Vadot    #include <dt-bindings/media/video-interfaces.h>
88*84943d6fSEmmanuel Vadot
89*84943d6fSEmmanuel Vadot    i2c0 {
90*84943d6fSEmmanuel Vadot        #address-cells = <1>;
91*84943d6fSEmmanuel Vadot        #size-cells = <0>;
92*84943d6fSEmmanuel Vadot
93*84943d6fSEmmanuel Vadot        sensor@48 {
94*84943d6fSEmmanuel Vadot            compatible = "onnn,mt9m114";
95*84943d6fSEmmanuel Vadot            reg = <0x48>;
96*84943d6fSEmmanuel Vadot
97*84943d6fSEmmanuel Vadot            clocks = <&clk24m 0>;
98*84943d6fSEmmanuel Vadot
99*84943d6fSEmmanuel Vadot            reset-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>;
100*84943d6fSEmmanuel Vadot
101*84943d6fSEmmanuel Vadot            vddio-supply = <&reg_cam_1v8>;
102*84943d6fSEmmanuel Vadot            vdd-supply = <&reg_cam_1v8>;
103*84943d6fSEmmanuel Vadot            vaa-supply = <&reg_2p8v>;
104*84943d6fSEmmanuel Vadot
105*84943d6fSEmmanuel Vadot            port {
106*84943d6fSEmmanuel Vadot                endpoint {
107*84943d6fSEmmanuel Vadot                    bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
108*84943d6fSEmmanuel Vadot                    link-frequencies = /bits/ 64 <384000000>;
109*84943d6fSEmmanuel Vadot                    remote-endpoint = <&mipi_csi_in>;
110*84943d6fSEmmanuel Vadot                };
111*84943d6fSEmmanuel Vadot            };
112*84943d6fSEmmanuel Vadot        };
113*84943d6fSEmmanuel Vadot    };
114*84943d6fSEmmanuel Vadot...
115