Commit f287a048 authored by Bryan O'Donoghue's avatar Bryan O'Donoghue Committed by Hans Verkuil
Browse files

media: dt-bindings: Add OmniVision OV02C10



Extend the ov02e10 bindings yaml to describe the ov02c10 sensor which has
the same bindings with a different compat string and different i2c
address only.

Other differences in sensor capabilities exist but are not expressed in
devicetree.

Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
[hverkuil: fix typos: 0V02C10 -> OV02C10]
[hverkuil: fix type: Ominivision -> OmniVision]
parent 6e769fd5
Loading
Loading
Loading
Loading
+43 −4
Original line number Diff line number Diff line
@@ -11,12 +11,22 @@ maintainers:
  - Bryan O'Donoghue <bryan.odonoghue@linaro.org>

description: |
  The Omnivision OV02E10 is a 2 megapixel, CMOS image sensor which supports:
  The Omnivision OV02E10 and OV02C10 sensors are 2 megapixel, CMOS image sensors which support:
  - Automatic black level calibration (ABLC)
  - Programmable controls for frame rate, mirror and flip, binning, cropping
    and windowing
  - Output formats 10-bit 4C RGB RAW, 10-bit Bayer RAW
  - 2-lane MIPI D-PHY TX @ 720 Mbps per lane
  - OVO2C10
    - 10 bit RAW Bayer 1920x1080 60 fps 2-lane @ 800 Mbps/lane
    - 10 bit RAW Bayer 1920x1080 60 fps 1-lane @ 1500 Mbps/lane
    - 10 bit RAW Bayer 1280x720 60 fps cropped 1-lane @ 960 Mbps/lane
    - 10 bit RGB/BW 640x480 60 fps bin2 or skip2 1-lane @ 800 Mbps/lane
    - 10 bit RGB/BW 480x270 60 fps bin4 or skip4 1-lane @ 800 Mbps/lane
  - OV02E10
    - 10 bit RAW Bayer 1920x1088 60 fps 2-lane @ 720 Mbps/lane
    - 10 bit RAW Bayer 1280x1080 60 fps 2-lane @ 720 Mbps/lane
    - 10 bit Quad Bayer 960x540 60 fps 2-lane 360 Mbps/lane
    - 8 bit Quad Bayer 480x270 1/3/5/10 fps sub2 288 Mbps/lane
    - 8 bit Quad Bayer 232x132 1/3/5/10 fps sub4 144 Mbps/lane
  - Dynamic defect pixel cancellation
  - Standard SCCB command interface

@@ -25,7 +35,9 @@ allOf:

properties:
  compatible:
    const: ovti,ov02e10
    enum:
      - ovti,ov02c10
      - ovti,ov02e10

  reg:
    maxItems: 1
@@ -109,5 +121,32 @@ examples:
                };
            };
        };

        ov02c10: camera@36 {
            compatible = "ovti,ov02c10";
            reg = <0x36>;

            reset-gpios = <&tlmm 237 GPIO_ACTIVE_LOW>;
            pinctrl-names = "default";
            pinctrl-0 = <&cam_rgb_defaultt>;

            clocks = <&ov02c10_clk>;

            assigned-clocks = <&ov02c10_clk>;
            assigned-clock-parents = <&ov02c10_clk_parent>;
            assigned-clock-rates = <19200000>;

            avdd-supply = <&vreg_l7b_2p8>;
            dvdd-supply = <&vreg_l7b_1p8>;
            dovdd-supply = <&vreg_l3m_1p8>;

            port {
                ov02c10_ep: endpoint {
                    remote-endpoint = <&csiphy4_ep>;
                    data-lanes = <1 2>;
                    link-frequencies = /bits/ 64 <400000000>;
                };
            };
        };
    };
...