1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/i2c/hynix,hi846.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: SK Hynix Hi-846 1/4" 8M Pixel MIPI CSI-2 sensor
8
9maintainers:
10  - Martin Kepplinger <martin.kepplinger@puri.sm>
11
12description: |-
13  The Hi-846 is a raw image sensor with an MIPI CSI-2 image data
14  interface and CCI (I2C compatible) control bus. The output format
15  is raw Bayer.
16
17properties:
18  compatible:
19    const: hynix,hi846
20
21  reg:
22    maxItems: 1
23
24  clocks:
25    items:
26      - description: Reference to the mclk clock.
27
28  assigned-clocks:
29    maxItems: 1
30
31  assigned-clock-rates:
32    maxItems: 1
33
34  reset-gpios:
35    description: Reference to the GPIO connected to the RESETB pin. Active low.
36    maxItems: 1
37
38  shutdown-gpios:
39    description: Reference to the GPIO connected to the XSHUTDOWN pin. Active low.
40    maxItems: 1
41
42  vddio-supply:
43    description: Definition of the regulator used for the VDDIO power supply.
44
45  vdda-supply:
46    description: Definition of the regulator used for the VDDA power supply.
47
48  vddd-supply:
49    description: Definition of the regulator used for the VDDD power supply.
50
51  port:
52    $ref: /schemas/graph.yaml#/properties/port
53
54    properties:
55      endpoint:
56        $ref: /schemas/media/video-interfaces.yaml#
57        unevaluatedProperties: false
58
59        properties:
60          data-lanes:
61            oneOf:
62              - items:
63                  - const: 1
64                  - const: 2
65                  - const: 3
66                  - const: 4
67              - items:
68                  - const: 1
69                  - const: 2
70
71        required:
72          - data-lanes
73
74required:
75  - compatible
76  - reg
77  - clocks
78  - assigned-clocks
79  - assigned-clock-rates
80  - vddio-supply
81  - vdda-supply
82  - vddd-supply
83  - port
84
85additionalProperties: false
86
87examples:
88  - |
89    #include <dt-bindings/gpio/gpio.h>
90
91    i2c {
92        #address-cells = <1>;
93        #size-cells = <0>;
94
95        hi846: camera@20 {
96            compatible = "hynix,hi846";
97            reg = <0x20>;
98            pinctrl-names = "default";
99            pinctrl-0 = <&pinctrl_csi1>;
100            clocks = <&clk 0>;
101            assigned-clocks = <&clk 0>;
102            assigned-clock-rates = <25000000>;
103            vdda-supply = <&reg_camera_vdda>;
104            vddd-supply = <&reg_camera_vddd>;
105            vddio-supply = <&reg_camera_vddio>;
106            reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
107            shutdown-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;
108
109            port {
110                camera_out: endpoint {
111                    remote-endpoint = <&csi1_ep1>;
112                    link-frequencies = /bits/ 64
113                        <80000000 200000000>;
114                    data-lanes = <1 2>;
115                };
116            };
117        };
118    };
119
120...
121