Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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,s5k5baf.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Samsung S5K5BAF UXGA 1/5" 2M CMOS Image Sensor with embedded SoC ISP |
| 8 | |
| 9 | maintainers: |
| 10 | - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | const: samsung,s5k5baf |
| 15 | |
| 16 | reg: |
| 17 | maxItems: 1 |
| 18 | |
| 19 | clocks: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | clock-names: |
| 23 | items: |
| 24 | - const: mclk |
| 25 | |
| 26 | clock-frequency: |
| 27 | default: 24000000 |
| 28 | description: mclk clock frequency |
| 29 | |
| 30 | rstn-gpios: |
| 31 | maxItems: 1 |
| 32 | description: RSTN pin |
| 33 | |
| 34 | stbyn-gpios: |
| 35 | maxItems: 1 |
| 36 | description: STDBYN pin |
| 37 | |
| 38 | vdda-supply: |
| 39 | description: Analog power supply 2.8V (2.6V to 3.0V) |
| 40 | |
| 41 | vddio-supply: |
| 42 | description: I/O power supply 1.8V (1.65V to 1.95V) or 2.8V (2.5V to 3.1V) |
| 43 | |
| 44 | vddreg-supply: |
| 45 | description: |
| 46 | Regulator input power supply 1.8V (1.7V to 1.9V) or 2.8V (2.6V to 3.0) |
| 47 | |
| 48 | port: |
| 49 | $ref: /schemas/graph.yaml#/$defs/port-base |
| 50 | additionalProperties: false |
| 51 | |
| 52 | properties: |
| 53 | endpoint: |
| 54 | $ref: /schemas/media/video-interfaces.yaml# |
| 55 | unevaluatedProperties: false |
| 56 | |
| 57 | properties: |
| 58 | data-lanes: |
| 59 | items: |
| 60 | - const: 1 |
| 61 | |
| 62 | required: |
| 63 | - compatible |
| 64 | - clocks |
| 65 | - clock-names |
| 66 | - rstn-gpios |
| 67 | - stbyn-gpios |
| 68 | - vdda-supply |
| 69 | - vddio-supply |
| 70 | - vddreg-supply |
| 71 | |
| 72 | additionalProperties: false |
| 73 | |
| 74 | examples: |
| 75 | - | |
| 76 | #include <dt-bindings/gpio/gpio.h> |
| 77 | |
| 78 | i2c { |
| 79 | #address-cells = <1>; |
| 80 | #size-cells = <0>; |
| 81 | |
| 82 | sensor@2d { |
| 83 | compatible = "samsung,s5k5baf"; |
| 84 | reg = <0x2d>; |
| 85 | clocks = <&camera 0>; |
| 86 | clock-names = "mclk"; |
| 87 | clock-frequency = <24000000>; |
| 88 | rstn-gpios = <&gpl2 1 GPIO_ACTIVE_LOW>; |
| 89 | stbyn-gpios = <&gpl2 0 GPIO_ACTIVE_LOW>; |
| 90 | vdda-supply = <&cam_io_en_reg>; |
| 91 | vddio-supply = <&vtcam_reg>; |
| 92 | vddreg-supply = <&vt_core_15v_reg>; |
| 93 | |
| 94 | port { |
| 95 | endpoint { |
| 96 | remote-endpoint = <&csis1_ep>; |
| 97 | data-lanes = <1>; |
| 98 | }; |
| 99 | }; |
| 100 | }; |
| 101 | }; |