15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/sony,imx214.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Sony 1/3.06-Inch 13.13MP CMOS Digital Image Sensor
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Ricardo Ribalda <ribalda@kernel.org>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotdescription: |
135def4c47SEmmanuel Vadot  The Sony IMX214 is a 1/3.06-inch CMOS active pixel digital image sensor with
145def4c47SEmmanuel Vadot  an active array size of 4224H x 3200V. It is programmable through an I2C
155def4c47SEmmanuel Vadot  interface. Image data is sent through MIPI CSI-2, through 2 or 4 lanes at a
165def4c47SEmmanuel Vadot  maximum throughput of 1.2Gbps/lane.
175def4c47SEmmanuel Vadot
185def4c47SEmmanuel VadotallOf:
195def4c47SEmmanuel Vadot  - $ref: ../video-interface-devices.yaml#
205def4c47SEmmanuel Vadot
215def4c47SEmmanuel Vadotproperties:
225def4c47SEmmanuel Vadot  compatible:
235def4c47SEmmanuel Vadot    const: sony,imx214
245def4c47SEmmanuel Vadot
255def4c47SEmmanuel Vadot  reg:
265def4c47SEmmanuel Vadot    enum:
275def4c47SEmmanuel Vadot      - 0x10
285def4c47SEmmanuel Vadot      - 0x1a
295def4c47SEmmanuel Vadot
305def4c47SEmmanuel Vadot  clocks:
315def4c47SEmmanuel Vadot    description: Reference to the xclk clock.
325def4c47SEmmanuel Vadot    maxItems: 1
335def4c47SEmmanuel Vadot
345def4c47SEmmanuel Vadot  clock-frequency:
355def4c47SEmmanuel Vadot    description: Frequency of the xclk clock in Hz.
365def4c47SEmmanuel Vadot
375def4c47SEmmanuel Vadot  enable-gpios:
385def4c47SEmmanuel Vadot    description: GPIO descriptor for the enable pin.
395def4c47SEmmanuel Vadot    maxItems: 1
405def4c47SEmmanuel Vadot
415def4c47SEmmanuel Vadot  vdddo-supply:
425def4c47SEmmanuel Vadot    description: Chip digital IO regulator (1.8V).
435def4c47SEmmanuel Vadot
445def4c47SEmmanuel Vadot  vdda-supply:
455def4c47SEmmanuel Vadot    description: Chip analog regulator (2.7V).
465def4c47SEmmanuel Vadot
475def4c47SEmmanuel Vadot  vddd-supply:
485def4c47SEmmanuel Vadot    description: Chip digital core regulator (1.12V).
495def4c47SEmmanuel Vadot
505def4c47SEmmanuel Vadot  flash-leds: true
515def4c47SEmmanuel Vadot  lens-focus: true
525def4c47SEmmanuel Vadot
535def4c47SEmmanuel Vadot  port:
545def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/$defs/port-base
555def4c47SEmmanuel Vadot    description: |
565def4c47SEmmanuel Vadot      Video output port.
575def4c47SEmmanuel Vadot
585def4c47SEmmanuel Vadot    properties:
595def4c47SEmmanuel Vadot      endpoint:
605def4c47SEmmanuel Vadot        $ref: /schemas/media/video-interfaces.yaml#
615def4c47SEmmanuel Vadot        unevaluatedProperties: false
625def4c47SEmmanuel Vadot
635def4c47SEmmanuel Vadot        properties:
645def4c47SEmmanuel Vadot          data-lanes:
655def4c47SEmmanuel Vadot            anyOf:
665def4c47SEmmanuel Vadot              - items:
675def4c47SEmmanuel Vadot                  - const: 1
685def4c47SEmmanuel Vadot                  - const: 2
695def4c47SEmmanuel Vadot              - items:
705def4c47SEmmanuel Vadot                  - const: 1
715def4c47SEmmanuel Vadot                  - const: 2
725def4c47SEmmanuel Vadot                  - const: 3
735def4c47SEmmanuel Vadot                  - const: 4
745def4c47SEmmanuel Vadot
755def4c47SEmmanuel Vadot          link-frequencies: true
765def4c47SEmmanuel Vadot
775def4c47SEmmanuel Vadot        required:
785def4c47SEmmanuel Vadot          - data-lanes
795def4c47SEmmanuel Vadot          - link-frequencies
805def4c47SEmmanuel Vadot
815def4c47SEmmanuel Vadot    additionalProperties: false
825def4c47SEmmanuel Vadot
835def4c47SEmmanuel Vadotrequired:
845def4c47SEmmanuel Vadot  - compatible
855def4c47SEmmanuel Vadot  - reg
865def4c47SEmmanuel Vadot  - clocks
875def4c47SEmmanuel Vadot  - clock-frequency
885def4c47SEmmanuel Vadot  - enable-gpios
895def4c47SEmmanuel Vadot  - vdddo-supply
905def4c47SEmmanuel Vadot  - vdda-supply
915def4c47SEmmanuel Vadot  - vddd-supply
925def4c47SEmmanuel Vadot  - port
935def4c47SEmmanuel Vadot
94*84943d6fSEmmanuel VadotunevaluatedProperties: false
955def4c47SEmmanuel Vadot
965def4c47SEmmanuel Vadotexamples:
975def4c47SEmmanuel Vadot  - |
985def4c47SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
995def4c47SEmmanuel Vadot
100fac71e4eSEmmanuel Vadot    i2c {
1015def4c47SEmmanuel Vadot        #address-cells = <1>;
1025def4c47SEmmanuel Vadot        #size-cells = <0>;
1035def4c47SEmmanuel Vadot
1045def4c47SEmmanuel Vadot        camera-sensor@1a {
1055def4c47SEmmanuel Vadot            compatible = "sony,imx214";
1065def4c47SEmmanuel Vadot            reg = <0x1a>;
1075def4c47SEmmanuel Vadot            vdddo-supply = <&pm8994_lvs1>;
1085def4c47SEmmanuel Vadot            vddd-supply = <&camera_vddd_1v12>;
1095def4c47SEmmanuel Vadot            vdda-supply = <&pm8994_l17>;
1105def4c47SEmmanuel Vadot            lens-focus = <&ad5820>;
1115def4c47SEmmanuel Vadot            enable-gpios = <&msmgpio 25 GPIO_ACTIVE_HIGH>;
1125def4c47SEmmanuel Vadot            clocks = <&camera_clk>;
1135def4c47SEmmanuel Vadot            clock-frequency = <24000000>;
1145def4c47SEmmanuel Vadot
1155def4c47SEmmanuel Vadot            port {
1165def4c47SEmmanuel Vadot                imx214_ep: endpoint {
1175def4c47SEmmanuel Vadot                    data-lanes = <1 2 3 4>;
1185def4c47SEmmanuel Vadot                    link-frequencies = /bits/ 64 <480000000>;
1195def4c47SEmmanuel Vadot                    remote-endpoint = <&csiphy0_ep>;
1205def4c47SEmmanuel Vadot                };
1215def4c47SEmmanuel Vadot            };
1225def4c47SEmmanuel Vadot        };
1235def4c47SEmmanuel Vadot    };
1245def4c47SEmmanuel Vadot
1255def4c47SEmmanuel Vadot...
126