Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / media / i2c / sony,imx214.yaml
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/sony,imx214.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Sony 1/3.06-Inch 13.13MP CMOS Digital Image Sensor
8
9 maintainers:
10   - Ricardo Ribalda <ribalda@kernel.org>
11
12 description: |
13   The Sony IMX214 is a 1/3.06-inch CMOS active pixel digital image sensor with
14   an active array size of 4224H x 3200V. It is programmable through an I2C
15   interface. Image data is sent through MIPI CSI-2, through 2 or 4 lanes at a
16   maximum throughput of 1.2Gbps/lane.
17
18 properties:
19   compatible:
20     const: sony,imx214
21
22   reg:
23     enum:
24       - 0x10
25       - 0x1a
26
27   clocks:
28     description: Reference to the xclk clock.
29     maxItems: 1
30
31   clock-frequency:
32     description: Frequency of the xclk clock in Hz.
33
34   enable-gpios:
35     description: GPIO descriptor for the enable pin.
36     maxItems: 1
37
38   vdddo-supply:
39     description: Chip digital IO regulator (1.8V).
40     maxItems: 1
41
42   vdda-supply:
43     description: Chip analog regulator (2.7V).
44     maxItems: 1
45
46   vddd-supply:
47     description: Chip digital core regulator (1.12V).
48     maxItems: 1
49
50   flash-leds:
51     description: See ../video-interfaces.txt
52
53   lens-focus:
54     description: See ../video-interfaces.txt
55
56   port:
57     type: object
58     description: |
59       Video output port. See ../video-interfaces.txt.
60
61     properties:
62       endpoint:
63         type: object
64
65         properties:
66           data-lanes:
67             $ref: /schemas/types.yaml#/definitions/uint32-array
68             description: See ../video-interfaces.txt
69             anyOf:
70               - items:
71                   - const: 1
72                   - const: 2
73               - items:
74                   - const: 1
75                   - const: 2
76                   - const: 3
77                   - const: 4
78
79           link-frequencies:
80             $ref: /schemas/types.yaml#/definitions/uint64-array
81             description: See ../video-interfaces.txt
82
83         required:
84           - data-lanes
85           - link-frequencies
86
87         unevaluatedProperties: false
88
89     additionalProperties: false
90
91 required:
92   - compatible
93   - reg
94   - clocks
95   - clock-frequency
96   - enable-gpios
97   - vdddo-supply
98   - vdda-supply
99   - vddd-supply
100   - port
101
102 additionalProperties: false
103
104 examples:
105   - |
106     #include <dt-bindings/gpio/gpio.h>
107
108     i2c0 {
109         #address-cells = <1>;
110         #size-cells = <0>;
111
112         camera-sensor@1a {
113             compatible = "sony,imx214";
114             reg = <0x1a>;
115             vdddo-supply = <&pm8994_lvs1>;
116             vddd-supply = <&camera_vddd_1v12>;
117             vdda-supply = <&pm8994_l17>;
118             lens-focus = <&ad5820>;
119             enable-gpios = <&msmgpio 25 GPIO_ACTIVE_HIGH>;
120             clocks = <&camera_clk>;
121             clock-frequency = <24000000>;
122
123             port {
124                 imx214_ep: endpoint {
125                     data-lanes = <1 2 3 4>;
126                     link-frequencies = /bits/ 64 <480000000>;
127                     remote-endpoint = <&csiphy0_ep>;
128                 };
129             };
130         };
131     };
132
133 ...