1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/media/i2c/o 4 $id: http://devicetree.org/schemas/media/i2c/onnn,ar0521.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: ON Semiconductor AR0521 MIPI CSI-2 sens 7 title: ON Semiconductor AR0521 MIPI CSI-2 sensor 8 8 9 maintainers: 9 maintainers: 10 - Krzysztof Hałasa <khalasa@piap.pl> 10 - Krzysztof Hałasa <khalasa@piap.pl> 11 11 12 description: |- 12 description: |- 13 The AR0521 is a raw CMOS image sensor with M 13 The AR0521 is a raw CMOS image sensor with MIPI CSI-2 and 14 I2C-compatible control interface. 14 I2C-compatible control interface. 15 15 16 properties: 16 properties: 17 compatible: 17 compatible: 18 const: onnn,ar0521 18 const: onnn,ar0521 19 19 20 reg: 20 reg: 21 maxItems: 1 21 maxItems: 1 22 22 23 clocks: 23 clocks: 24 maxItems: 1 24 maxItems: 1 25 25 26 clock-names: 26 clock-names: 27 const: extclk 27 const: extclk 28 28 29 vaa-supply: 29 vaa-supply: 30 description: 30 description: 31 Definition of the regulator used as anal 31 Definition of the regulator used as analog (2.7 V) voltage supply. 32 32 33 vdd-supply: 33 vdd-supply: 34 description: 34 description: 35 Definition of the regulator used as digi 35 Definition of the regulator used as digital core (1.2 V) voltage supply. 36 36 37 vdd_io-supply: 37 vdd_io-supply: 38 description: 38 description: 39 Definition of the regulator used as digi 39 Definition of the regulator used as digital I/O (1.8 V) voltage supply. 40 40 41 reset-gpios: 41 reset-gpios: 42 description: reset GPIO, usually active lo 42 description: reset GPIO, usually active low 43 maxItems: 1 43 maxItems: 1 44 44 45 port: 45 port: 46 $ref: /schemas/graph.yaml#/$defs/port-base 46 $ref: /schemas/graph.yaml#/$defs/port-base 47 unevaluatedProperties: false 47 unevaluatedProperties: false 48 description: | 48 description: | 49 Video output port. 49 Video output port. 50 50 51 properties: 51 properties: 52 endpoint: 52 endpoint: 53 $ref: /schemas/media/video-interfaces. 53 $ref: /schemas/media/video-interfaces.yaml# 54 unevaluatedProperties: false 54 unevaluatedProperties: false 55 55 56 properties: 56 properties: 57 bus-type: 57 bus-type: 58 const: 4 58 const: 4 59 data-lanes: 59 data-lanes: 60 anyOf: 60 anyOf: 61 - items: 61 - items: 62 - const: 1 62 - const: 1 63 - items: 63 - items: 64 - const: 1 64 - const: 1 65 - const: 2 65 - const: 2 66 - items: 66 - items: 67 - const: 1 67 - const: 1 68 - const: 2 68 - const: 2 69 - const: 3 69 - const: 3 70 - const: 4 70 - const: 4 71 71 72 required: 72 required: 73 - compatible 73 - compatible 74 - reg 74 - reg 75 - clocks 75 - clocks 76 - clock-names 76 - clock-names 77 - vaa-supply 77 - vaa-supply 78 - vdd-supply 78 - vdd-supply 79 - vdd_io-supply 79 - vdd_io-supply 80 - port 80 - port 81 81 82 additionalProperties: false 82 additionalProperties: false 83 83 84 examples: 84 examples: 85 - | 85 - | 86 #include <dt-bindings/gpio/gpio.h> 86 #include <dt-bindings/gpio/gpio.h> 87 #include <dt-bindings/clock/imx6qdl-clock. 87 #include <dt-bindings/clock/imx6qdl-clock.h> 88 88 89 i2c { 89 i2c { 90 #address-cells = <1>; 90 #address-cells = <1>; 91 #size-cells = <0>; 91 #size-cells = <0>; 92 92 93 ar0521: camera-sensor@36 { 93 ar0521: camera-sensor@36 { 94 compatible = "onnn,ar0521" 94 compatible = "onnn,ar0521"; 95 reg = <0x36>; 95 reg = <0x36>; 96 pinctrl-names = "default"; 96 pinctrl-names = "default"; 97 pinctrl-0 = <&pinctrl_mipi 97 pinctrl-0 = <&pinctrl_mipi_camera>; 98 clocks = <&clks IMX6QDL_CL 98 clocks = <&clks IMX6QDL_CLK_CKO>; 99 clock-names = "extclk"; 99 clock-names = "extclk"; 100 reset-gpios = <&gpio1 7 GP 100 reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; 101 vaa-supply = <®_2p7v>; 101 vaa-supply = <®_2p7v>; 102 vdd-supply = <®_1p2v>; 102 vdd-supply = <®_1p2v>; 103 vdd_io-supply = <®_1p8v 103 vdd_io-supply = <®_1p8v>; 104 104 105 port { 105 port { 106 mipi_camera_to_mipi 106 mipi_camera_to_mipi_csi2: endpoint { 107 remote-end 107 remote-endpoint = <&mipi_csi2_in>; 108 data-lanes 108 data-lanes = <1 2 3 4>; 109 }; 109 }; 110 }; 110 }; 111 }; 111 }; 112 }; 112 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.