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/samsung,s5k6a3.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung S5K6A3(YX) raw image sensor
8
9maintainers:
10  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11
12description:
13  S5K6A3(YX) is a raw image sensor with MIPI CSI-2 and CCP2 image data
14  interfaces and CCI (I2C compatible) control bus.
15
16properties:
17  compatible:
18    const: samsung,s5k6a3
19
20  reg:
21    maxItems: 1
22
23  clocks:
24    maxItems: 1
25
26  clock-names:
27    items:
28      - const: extclk
29
30  clock-frequency:
31    default: 24000000
32    description: extclk clock frequency
33
34  gpios:
35    maxItems: 1
36    description: GPIO connected to the RESET pin
37
38  afvdd-supply:
39    description: AF (actuator) voltage supply
40
41  svdda-supply:
42    description: Core voltage supply
43
44  svddio-supply:
45    description: I/O voltage supply
46
47  port:
48    $ref: /schemas/graph.yaml#/$defs/port-base
49    additionalProperties: false
50
51    properties:
52      endpoint:
53        $ref: /schemas/media/video-interfaces.yaml#
54        unevaluatedProperties: false
55
56        properties:
57          data-lanes:
58            items:
59              - const: 1
60
61required:
62  - compatible
63  - clocks
64  - clock-names
65  - gpios
66  - afvdd-supply
67  - svdda-supply
68  - svddio-supply
69
70additionalProperties: false
71
72examples:
73  - |
74    #include <dt-bindings/gpio/gpio.h>
75
76    i2c {
77        #address-cells = <1>;
78        #size-cells = <0>;
79
80        sensor@10 {
81            compatible = "samsung,s5k6a3";
82            reg = <0x10>;
83            clock-frequency = <24000000>;
84            clocks = <&camera 1>;
85            clock-names = "extclk";
86            gpios = <&gpm1 6 GPIO_ACTIVE_LOW>;
87            afvdd-supply = <&ldo19_reg>;
88            svdda-supply = <&cam_io_reg>;
89            svddio-supply = <&ldo19_reg>;
90
91            port {
92                endpoint {
93                    remote-endpoint = <&csis1_ep>;
94                    data-lanes = <1>;
95                };
96            };
97        };
98    };
99