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 17allOf: 18 - $ref: /schemas/media/video-interface-devices.yaml# 19 20properties: 21 compatible: 22 const: hynix,hi846 23 24 reg: 25 maxItems: 1 26 27 clocks: 28 items: 29 - description: Reference to the mclk clock. 30 31 reset-gpios: 32 description: Reference to the GPIO connected to the RESETB pin. Active low. 33 maxItems: 1 34 35 shutdown-gpios: 36 description: Reference to the GPIO connected to the XSHUTDOWN pin. Active low. 37 maxItems: 1 38 39 vddio-supply: 40 description: Definition of the regulator used for the VDDIO power supply. 41 42 vdda-supply: 43 description: Definition of the regulator used for the VDDA power supply. 44 45 vddd-supply: 46 description: Definition of the regulator used for the VDDD power supply. 47 48 port: 49 $ref: /schemas/graph.yaml#/$defs/port-base 50 unevaluatedProperties: false 51 52 properties: 53 endpoint: 54 $ref: /schemas/media/video-interfaces.yaml# 55 unevaluatedProperties: false 56 57 properties: 58 data-lanes: 59 oneOf: 60 - items: 61 - const: 1 62 - const: 2 63 - const: 3 64 - const: 4 65 - items: 66 - const: 1 67 - const: 2 68 69 link-frequencies: true 70 71 required: 72 - data-lanes 73 - link-frequencies 74 75required: 76 - compatible 77 - reg 78 - clocks 79 - vddio-supply 80 - vdda-supply 81 - vddd-supply 82 - port 83 84unevaluatedProperties: false 85 86examples: 87 - | 88 #include <dt-bindings/gpio/gpio.h> 89 90 i2c { 91 #address-cells = <1>; 92 #size-cells = <0>; 93 94 hi846: camera@20 { 95 compatible = "hynix,hi846"; 96 reg = <0x20>; 97 pinctrl-names = "default"; 98 pinctrl-0 = <&pinctrl_csi1>; 99 clocks = <&clk 0>; 100 vdda-supply = <®_camera_vdda>; 101 vddd-supply = <®_camera_vddd>; 102 vddio-supply = <®_camera_vddio>; 103 reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; 104 shutdown-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>; 105 orientation = <0>; 106 rotation = <0>; 107 108 port { 109 camera_out: endpoint { 110 remote-endpoint = <&csi1_ep1>; 111 link-frequencies = /bits/ 64 112 <80000000 200000000>; 113 data-lanes = <1 2>; 114 }; 115 }; 116 }; 117 }; 118 119... 120