summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/media/i2c/samsung,s5k6a3.yaml
blob: 7e83a94124b5c990069ec00edad7209dc00c1cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/i2c/samsung,s5k6a3.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung S5K6A3(YX) raw image sensor

maintainers:
  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

description:
  S5K6A3(YX) is a raw image sensor with MIPI CSI-2 and CCP2 image data
  interfaces and CCI (I2C compatible) control bus.

properties:
  compatible:
    const: samsung,s5k6a3

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: extclk

  clock-frequency:
    default: 24000000
    description: extclk clock frequency

  gpios:
    maxItems: 1
    description: GPIO connected to the RESET pin

  afvdd-supply:
    description: AF (actuator) voltage supply

  svdda-supply:
    description: Core voltage supply

  svddio-supply:
    description: I/O voltage supply

  port:
    $ref: /schemas/graph.yaml#/$defs/port-base
    additionalProperties: false

    properties:
      endpoint:
        $ref: /schemas/media/video-interfaces.yaml#
        unevaluatedProperties: false

        properties:
          data-lanes:
            items:
              - const: 1

required:
  - compatible
  - clocks
  - clock-names
  - gpios
  - afvdd-supply
  - svdda-supply
  - svddio-supply

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        sensor@10 {
            compatible = "samsung,s5k6a3";
            reg = <0x10>;
            clock-frequency = <24000000>;
            clocks = <&camera 1>;
            clock-names = "extclk";
            gpios = <&gpm1 6 GPIO_ACTIVE_LOW>;
            afvdd-supply = <&ldo19_reg>;
            svdda-supply = <&cam_io_reg>;
            svddio-supply = <&ldo19_reg>;

            port {
                endpoint {
                    remote-endpoint = <&csis1_ep>;
                    data-lanes = <1>;
                };
            };
        };
    };