xref: /freebsd-src/sys/contrib/device-tree/Bindings/media/i2c/imx258.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
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/imx258.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Sony IMX258 13 Mpixel CMOS Digital Image Sensor
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotdescription: |-
135def4c47SEmmanuel Vadot  IMX258 is a diagonal 5.867mm (Type 1/3.06) 13 Mega-pixel CMOS active pixel
145def4c47SEmmanuel Vadot  type stacked image sensor with a square pixel array of size 4208 x 3120. It
155def4c47SEmmanuel Vadot  is programmable through I2C interface.  Image data is sent through MIPI
165def4c47SEmmanuel Vadot  CSI-2.
175def4c47SEmmanuel Vadot
185def4c47SEmmanuel Vadotproperties:
195def4c47SEmmanuel Vadot  compatible:
205def4c47SEmmanuel Vadot    const: sony,imx258
215def4c47SEmmanuel Vadot
225def4c47SEmmanuel Vadot  assigned-clocks: true
235def4c47SEmmanuel Vadot  assigned-clock-parents: true
245def4c47SEmmanuel Vadot  assigned-clock-rates: true
255def4c47SEmmanuel Vadot
265def4c47SEmmanuel Vadot  clocks:
275def4c47SEmmanuel Vadot    description:
285def4c47SEmmanuel Vadot      Clock frequency from 6 to 27 MHz.
295def4c47SEmmanuel Vadot    maxItems: 1
305def4c47SEmmanuel Vadot
315def4c47SEmmanuel Vadot  reg:
325def4c47SEmmanuel Vadot    maxItems: 1
335def4c47SEmmanuel Vadot
345def4c47SEmmanuel Vadot  reset-gpios:
355def4c47SEmmanuel Vadot    description: |-
365def4c47SEmmanuel Vadot      Reference to the GPIO connected to the XCLR pin, if any.
375def4c47SEmmanuel Vadot
385def4c47SEmmanuel Vadot  vana-supply:
395def4c47SEmmanuel Vadot    description:
405def4c47SEmmanuel Vadot      Analog voltage (VANA) supply, 2.7 V
415def4c47SEmmanuel Vadot
425def4c47SEmmanuel Vadot  vdig-supply:
435def4c47SEmmanuel Vadot    description:
445def4c47SEmmanuel Vadot      Digital I/O voltage (VDIG) supply, 1.2 V
455def4c47SEmmanuel Vadot
465def4c47SEmmanuel Vadot  vif-supply:
475def4c47SEmmanuel Vadot    description:
485def4c47SEmmanuel Vadot      Interface voltage (VIF) supply, 1.8 V
495def4c47SEmmanuel Vadot
505def4c47SEmmanuel Vadot  # See ../video-interfaces.txt for more details
515def4c47SEmmanuel Vadot  port:
525956d97fSEmmanuel Vadot    $ref: /schemas/graph.yaml#/$defs/port-base
535def4c47SEmmanuel Vadot    additionalProperties: false
545def4c47SEmmanuel Vadot
555def4c47SEmmanuel Vadot    properties:
565def4c47SEmmanuel Vadot      endpoint:
575def4c47SEmmanuel Vadot        $ref: /schemas/media/video-interfaces.yaml#
585def4c47SEmmanuel Vadot        unevaluatedProperties: false
595def4c47SEmmanuel Vadot
605def4c47SEmmanuel Vadot        properties:
615def4c47SEmmanuel Vadot          data-lanes:
625def4c47SEmmanuel Vadot            oneOf:
635def4c47SEmmanuel Vadot              - items:
645def4c47SEmmanuel Vadot                  - const: 1
655def4c47SEmmanuel Vadot                  - const: 2
665def4c47SEmmanuel Vadot                  - const: 3
675def4c47SEmmanuel Vadot                  - const: 4
685def4c47SEmmanuel Vadot              - items:
695def4c47SEmmanuel Vadot                  - const: 1
705def4c47SEmmanuel Vadot                  - const: 2
715def4c47SEmmanuel Vadot
725def4c47SEmmanuel Vadot          link-frequencies: true
735def4c47SEmmanuel Vadot
745def4c47SEmmanuel Vadot        required:
755def4c47SEmmanuel Vadot          - data-lanes
765def4c47SEmmanuel Vadot          - link-frequencies
775def4c47SEmmanuel Vadot
785def4c47SEmmanuel Vadotrequired:
795def4c47SEmmanuel Vadot  - compatible
805def4c47SEmmanuel Vadot  - reg
815def4c47SEmmanuel Vadot  - port
825def4c47SEmmanuel Vadot
835def4c47SEmmanuel VadotadditionalProperties: false
845def4c47SEmmanuel Vadot
855def4c47SEmmanuel Vadotexamples:
865def4c47SEmmanuel Vadot  - |
87*fac71e4eSEmmanuel Vadot    i2c {
885def4c47SEmmanuel Vadot        #address-cells = <1>;
895def4c47SEmmanuel Vadot        #size-cells = <0>;
905def4c47SEmmanuel Vadot
915def4c47SEmmanuel Vadot        sensor@6c {
925def4c47SEmmanuel Vadot            compatible = "sony,imx258";
935def4c47SEmmanuel Vadot            reg = <0x6c>;
945def4c47SEmmanuel Vadot            clocks = <&imx258_clk>;
955def4c47SEmmanuel Vadot
965def4c47SEmmanuel Vadot            port {
975def4c47SEmmanuel Vadot                endpoint {
985def4c47SEmmanuel Vadot                    remote-endpoint = <&csi1_ep>;
995def4c47SEmmanuel Vadot                    data-lanes = <1 2 3 4>;
1005def4c47SEmmanuel Vadot                    link-frequencies = /bits/ 64 <320000000>;
1015def4c47SEmmanuel Vadot                };
1025def4c47SEmmanuel Vadot            };
1035def4c47SEmmanuel Vadot        };
1045def4c47SEmmanuel Vadot    };
1055def4c47SEmmanuel Vadot
1065def4c47SEmmanuel Vadot    /* Oscillator on the camera board */
1075def4c47SEmmanuel Vadot    imx258_clk: clk {
1085def4c47SEmmanuel Vadot        compatible = "fixed-clock";
1095def4c47SEmmanuel Vadot        #clock-cells = <0>;
1105def4c47SEmmanuel Vadot        clock-frequency = <19200000>;
1115def4c47SEmmanuel Vadot    };
1125def4c47SEmmanuel Vadot
1135def4c47SEmmanuel Vadot  - |
114*fac71e4eSEmmanuel Vadot    i2c {
1155def4c47SEmmanuel Vadot        #address-cells = <1>;
1165def4c47SEmmanuel Vadot        #size-cells = <0>;
1175def4c47SEmmanuel Vadot
1185def4c47SEmmanuel Vadot        sensor@6c {
1195def4c47SEmmanuel Vadot            compatible = "sony,imx258";
1205def4c47SEmmanuel Vadot            reg = <0x6c>;
1215def4c47SEmmanuel Vadot            clocks = <&imx258_clk>;
1225def4c47SEmmanuel Vadot
1235def4c47SEmmanuel Vadot            assigned-clocks = <&imx258_clk>;
1245def4c47SEmmanuel Vadot            assigned-clock-rates = <19200000>;
1255def4c47SEmmanuel Vadot
1265def4c47SEmmanuel Vadot            port {
1275def4c47SEmmanuel Vadot                endpoint {
1285def4c47SEmmanuel Vadot                    remote-endpoint = <&csi1_ep>;
1295def4c47SEmmanuel Vadot                    data-lanes = <1 2 3 4>;
1305def4c47SEmmanuel Vadot                    link-frequencies = /bits/ 64 <633600000>;
1315def4c47SEmmanuel Vadot                };
1325def4c47SEmmanuel Vadot            };
1335def4c47SEmmanuel Vadot        };
1345def4c47SEmmanuel Vadot    };
135