xref: /linux/Documentation/devicetree/bindings/media/i2c/sony,imx296.yaml (revision d680dc5805745e68e3c8d769f40685707ca7fe4f)
1*d680dc58SManivannan Sadhasivam# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*d680dc58SManivannan Sadhasivam%YAML 1.2
3*d680dc58SManivannan Sadhasivam---
4*d680dc58SManivannan Sadhasivam$id: http://devicetree.org/schemas/media/i2c/sony,imx296.yaml#
5*d680dc58SManivannan Sadhasivam$schema: http://devicetree.org/meta-schemas/core.yaml#
6*d680dc58SManivannan Sadhasivam
7*d680dc58SManivannan Sadhasivamtitle: Sony IMX296 1/2.8-Inch CMOS Image Sensor
8*d680dc58SManivannan Sadhasivam
9*d680dc58SManivannan Sadhasivammaintainers:
10*d680dc58SManivannan Sadhasivam  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
11*d680dc58SManivannan Sadhasivam  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12*d680dc58SManivannan Sadhasivam
13*d680dc58SManivannan Sadhasivamdescription: |-
14*d680dc58SManivannan Sadhasivam  The Sony IMX296 is a 1/2.9-Inch active pixel type CMOS Solid-state image
15*d680dc58SManivannan Sadhasivam  sensor with square pixel array and 1.58 M effective pixels. This chip
16*d680dc58SManivannan Sadhasivam  features a global shutter with variable charge-integration time. It is
17*d680dc58SManivannan Sadhasivam  programmable through I2C and 4-wire interfaces. The sensor output is
18*d680dc58SManivannan Sadhasivam  available via CSI-2 serial data output (1 Lane).
19*d680dc58SManivannan Sadhasivam
20*d680dc58SManivannan Sadhasivamproperties:
21*d680dc58SManivannan Sadhasivam  compatible:
22*d680dc58SManivannan Sadhasivam    enum:
23*d680dc58SManivannan Sadhasivam      - sony,imx296
24*d680dc58SManivannan Sadhasivam      - sony,imx296ll
25*d680dc58SManivannan Sadhasivam      - sony,imx296lq
26*d680dc58SManivannan Sadhasivam    description:
27*d680dc58SManivannan Sadhasivam      The IMX296 sensor exists in two different models, a colour variant
28*d680dc58SManivannan Sadhasivam      (IMX296LQ) and a monochrome variant (IMX296LL). The device exposes the
29*d680dc58SManivannan Sadhasivam      model through registers, allowing for auto-detection with a common
30*d680dc58SManivannan Sadhasivam      "sony,imx296" compatible string. However, some camera modules disable the
31*d680dc58SManivannan Sadhasivam      ability to read the sensor model register, which disables this feature.
32*d680dc58SManivannan Sadhasivam      In those cases, the exact model needs to be specified as "sony,imx296ll"
33*d680dc58SManivannan Sadhasivam      or "sony,imx296lq".
34*d680dc58SManivannan Sadhasivam
35*d680dc58SManivannan Sadhasivam  reg:
36*d680dc58SManivannan Sadhasivam    maxItems: 1
37*d680dc58SManivannan Sadhasivam
38*d680dc58SManivannan Sadhasivam  clocks:
39*d680dc58SManivannan Sadhasivam    maxItems: 1
40*d680dc58SManivannan Sadhasivam
41*d680dc58SManivannan Sadhasivam  clock-names:
42*d680dc58SManivannan Sadhasivam    description: Input clock (37.125 MHz, 54 MHz or 74.25 MHz)
43*d680dc58SManivannan Sadhasivam    items:
44*d680dc58SManivannan Sadhasivam      - const: inck
45*d680dc58SManivannan Sadhasivam
46*d680dc58SManivannan Sadhasivam  avdd-supply:
47*d680dc58SManivannan Sadhasivam    description: Analog power supply (3.3V)
48*d680dc58SManivannan Sadhasivam
49*d680dc58SManivannan Sadhasivam  dvdd-supply:
50*d680dc58SManivannan Sadhasivam    description: Digital power supply (1.2V)
51*d680dc58SManivannan Sadhasivam
52*d680dc58SManivannan Sadhasivam  ovdd-supply:
53*d680dc58SManivannan Sadhasivam    description: Interface power supply (1.8V)
54*d680dc58SManivannan Sadhasivam
55*d680dc58SManivannan Sadhasivam  reset-gpios:
56*d680dc58SManivannan Sadhasivam    description: Sensor reset (XCLR) GPIO
57*d680dc58SManivannan Sadhasivam    maxItems: 1
58*d680dc58SManivannan Sadhasivam
59*d680dc58SManivannan Sadhasivam  port:
60*d680dc58SManivannan Sadhasivam    $ref: /schemas/graph.yaml#/properties/port
61*d680dc58SManivannan Sadhasivam
62*d680dc58SManivannan Sadhasivamrequired:
63*d680dc58SManivannan Sadhasivam  - compatible
64*d680dc58SManivannan Sadhasivam  - reg
65*d680dc58SManivannan Sadhasivam  - clocks
66*d680dc58SManivannan Sadhasivam  - clock-names
67*d680dc58SManivannan Sadhasivam  - avdd-supply
68*d680dc58SManivannan Sadhasivam  - dvdd-supply
69*d680dc58SManivannan Sadhasivam  - ovdd-supply
70*d680dc58SManivannan Sadhasivam  - port
71*d680dc58SManivannan Sadhasivam
72*d680dc58SManivannan SadhasivamadditionalProperties: false
73*d680dc58SManivannan Sadhasivam
74*d680dc58SManivannan Sadhasivamexamples:
75*d680dc58SManivannan Sadhasivam  - |
76*d680dc58SManivannan Sadhasivam    #include <dt-bindings/gpio/gpio.h>
77*d680dc58SManivannan Sadhasivam
78*d680dc58SManivannan Sadhasivam    i2c {
79*d680dc58SManivannan Sadhasivam        #address-cells = <1>;
80*d680dc58SManivannan Sadhasivam        #size-cells = <0>;
81*d680dc58SManivannan Sadhasivam
82*d680dc58SManivannan Sadhasivam        imx296: camera-sensor@1a {
83*d680dc58SManivannan Sadhasivam            compatible = "sony,imx296";
84*d680dc58SManivannan Sadhasivam            reg = <0x1a>;
85*d680dc58SManivannan Sadhasivam
86*d680dc58SManivannan Sadhasivam            pinctrl-names = "default";
87*d680dc58SManivannan Sadhasivam            pinctrl-0 = <&camera_rear_default>;
88*d680dc58SManivannan Sadhasivam
89*d680dc58SManivannan Sadhasivam            clocks = <&gcc 90>;
90*d680dc58SManivannan Sadhasivam            clock-names = "inck";
91*d680dc58SManivannan Sadhasivam
92*d680dc58SManivannan Sadhasivam            avdd-supply = <&camera_vdda_3v3>;
93*d680dc58SManivannan Sadhasivam            dvdd-supply = <&camera_vddd_1v2>;
94*d680dc58SManivannan Sadhasivam            ovdd-supply = <&camera_vddo_1v8>;
95*d680dc58SManivannan Sadhasivam
96*d680dc58SManivannan Sadhasivam            reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>;
97*d680dc58SManivannan Sadhasivam
98*d680dc58SManivannan Sadhasivam            port {
99*d680dc58SManivannan Sadhasivam                imx296_ep: endpoint {
100*d680dc58SManivannan Sadhasivam                    remote-endpoint = <&csiphy0_ep>;
101*d680dc58SManivannan Sadhasivam                };
102*d680dc58SManivannan Sadhasivam            };
103*d680dc58SManivannan Sadhasivam        };
104*d680dc58SManivannan Sadhasivam    };
105*d680dc58SManivannan Sadhasivam
106*d680dc58SManivannan Sadhasivam...
107