18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/hynix,hi846.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: SK Hynix Hi-846 1/4" 8M Pixel MIPI CSI-2 sensor 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Martin Kepplinger <martin.kepplinger@puri.sm> 118cc087a1SEmmanuel Vadot 128cc087a1SEmmanuel Vadotdescription: |- 138cc087a1SEmmanuel Vadot The Hi-846 is a raw image sensor with an MIPI CSI-2 image data 148cc087a1SEmmanuel Vadot interface and CCI (I2C compatible) control bus. The output format 158cc087a1SEmmanuel Vadot is raw Bayer. 168cc087a1SEmmanuel Vadot 17*84943d6fSEmmanuel VadotallOf: 18*84943d6fSEmmanuel Vadot - $ref: /schemas/media/video-interface-devices.yaml# 19*84943d6fSEmmanuel Vadot 208cc087a1SEmmanuel Vadotproperties: 218cc087a1SEmmanuel Vadot compatible: 228cc087a1SEmmanuel Vadot const: hynix,hi846 238cc087a1SEmmanuel Vadot 248cc087a1SEmmanuel Vadot reg: 258cc087a1SEmmanuel Vadot maxItems: 1 268cc087a1SEmmanuel Vadot 278cc087a1SEmmanuel Vadot clocks: 288cc087a1SEmmanuel Vadot items: 298cc087a1SEmmanuel Vadot - description: Reference to the mclk clock. 308cc087a1SEmmanuel Vadot 318cc087a1SEmmanuel Vadot assigned-clocks: 328cc087a1SEmmanuel Vadot maxItems: 1 338cc087a1SEmmanuel Vadot 348cc087a1SEmmanuel Vadot assigned-clock-rates: 358cc087a1SEmmanuel Vadot maxItems: 1 368cc087a1SEmmanuel Vadot 378cc087a1SEmmanuel Vadot reset-gpios: 388cc087a1SEmmanuel Vadot description: Reference to the GPIO connected to the RESETB pin. Active low. 398cc087a1SEmmanuel Vadot maxItems: 1 408cc087a1SEmmanuel Vadot 418cc087a1SEmmanuel Vadot shutdown-gpios: 428cc087a1SEmmanuel Vadot description: Reference to the GPIO connected to the XSHUTDOWN pin. Active low. 438cc087a1SEmmanuel Vadot maxItems: 1 448cc087a1SEmmanuel Vadot 458cc087a1SEmmanuel Vadot vddio-supply: 468cc087a1SEmmanuel Vadot description: Definition of the regulator used for the VDDIO power supply. 478cc087a1SEmmanuel Vadot 488cc087a1SEmmanuel Vadot vdda-supply: 498cc087a1SEmmanuel Vadot description: Definition of the regulator used for the VDDA power supply. 508cc087a1SEmmanuel Vadot 518cc087a1SEmmanuel Vadot vddd-supply: 528cc087a1SEmmanuel Vadot description: Definition of the regulator used for the VDDD power supply. 538cc087a1SEmmanuel Vadot 548cc087a1SEmmanuel Vadot port: 55c9ccf3a3SEmmanuel Vadot $ref: /schemas/graph.yaml#/$defs/port-base 56c9ccf3a3SEmmanuel Vadot unevaluatedProperties: false 578cc087a1SEmmanuel Vadot 588cc087a1SEmmanuel Vadot properties: 598cc087a1SEmmanuel Vadot endpoint: 608cc087a1SEmmanuel Vadot $ref: /schemas/media/video-interfaces.yaml# 618cc087a1SEmmanuel Vadot unevaluatedProperties: false 628cc087a1SEmmanuel Vadot 638cc087a1SEmmanuel Vadot properties: 648cc087a1SEmmanuel Vadot data-lanes: 658cc087a1SEmmanuel Vadot oneOf: 668cc087a1SEmmanuel Vadot - items: 678cc087a1SEmmanuel Vadot - const: 1 688cc087a1SEmmanuel Vadot - const: 2 698cc087a1SEmmanuel Vadot - const: 3 708cc087a1SEmmanuel Vadot - const: 4 718cc087a1SEmmanuel Vadot - items: 728cc087a1SEmmanuel Vadot - const: 1 738cc087a1SEmmanuel Vadot - const: 2 748cc087a1SEmmanuel Vadot 75c9ccf3a3SEmmanuel Vadot link-frequencies: true 76c9ccf3a3SEmmanuel Vadot 778cc087a1SEmmanuel Vadot required: 788cc087a1SEmmanuel Vadot - data-lanes 79c9ccf3a3SEmmanuel Vadot - link-frequencies 808cc087a1SEmmanuel Vadot 818cc087a1SEmmanuel Vadotrequired: 828cc087a1SEmmanuel Vadot - compatible 838cc087a1SEmmanuel Vadot - reg 848cc087a1SEmmanuel Vadot - clocks 858cc087a1SEmmanuel Vadot - assigned-clocks 868cc087a1SEmmanuel Vadot - assigned-clock-rates 878cc087a1SEmmanuel Vadot - vddio-supply 888cc087a1SEmmanuel Vadot - vdda-supply 898cc087a1SEmmanuel Vadot - vddd-supply 908cc087a1SEmmanuel Vadot - port 918cc087a1SEmmanuel Vadot 92*84943d6fSEmmanuel VadotunevaluatedProperties: false 938cc087a1SEmmanuel Vadot 948cc087a1SEmmanuel Vadotexamples: 958cc087a1SEmmanuel Vadot - | 968cc087a1SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 978cc087a1SEmmanuel Vadot 988cc087a1SEmmanuel Vadot i2c { 998cc087a1SEmmanuel Vadot #address-cells = <1>; 1008cc087a1SEmmanuel Vadot #size-cells = <0>; 1018cc087a1SEmmanuel Vadot 1028cc087a1SEmmanuel Vadot hi846: camera@20 { 1038cc087a1SEmmanuel Vadot compatible = "hynix,hi846"; 1048cc087a1SEmmanuel Vadot reg = <0x20>; 1058cc087a1SEmmanuel Vadot pinctrl-names = "default"; 1068cc087a1SEmmanuel Vadot pinctrl-0 = <&pinctrl_csi1>; 1078cc087a1SEmmanuel Vadot clocks = <&clk 0>; 1088cc087a1SEmmanuel Vadot assigned-clocks = <&clk 0>; 1098cc087a1SEmmanuel Vadot assigned-clock-rates = <25000000>; 1108cc087a1SEmmanuel Vadot vdda-supply = <®_camera_vdda>; 1118cc087a1SEmmanuel Vadot vddd-supply = <®_camera_vddd>; 1128cc087a1SEmmanuel Vadot vddio-supply = <®_camera_vddio>; 1138cc087a1SEmmanuel Vadot reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; 1148cc087a1SEmmanuel Vadot shutdown-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>; 115*84943d6fSEmmanuel Vadot orientation = <0>; 116*84943d6fSEmmanuel Vadot rotation = <0>; 1178cc087a1SEmmanuel Vadot 1188cc087a1SEmmanuel Vadot port { 1198cc087a1SEmmanuel Vadot camera_out: endpoint { 1208cc087a1SEmmanuel Vadot remote-endpoint = <&csi1_ep1>; 1218cc087a1SEmmanuel Vadot link-frequencies = /bits/ 64 1228cc087a1SEmmanuel Vadot <80000000 200000000>; 1238cc087a1SEmmanuel Vadot data-lanes = <1 2>; 1248cc087a1SEmmanuel Vadot }; 1258cc087a1SEmmanuel Vadot }; 1268cc087a1SEmmanuel Vadot }; 1278cc087a1SEmmanuel Vadot }; 1288cc087a1SEmmanuel Vadot 1298cc087a1SEmmanuel Vadot... 130