brintos

brintos / linux-shallow public Read only

0
0
Text · 2.7 KiB · b617cc5 Raw
113 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/media/i2c/onnn,ar0521.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: ON Semiconductor AR0521 MIPI CSI-2 sensor8 9maintainers:10  - Krzysztof Hałasa <khalasa@piap.pl>11 12description: |-13  The AR0521 is a raw CMOS image sensor with MIPI CSI-2 and14  I2C-compatible control interface.15 16properties:17  compatible:18    const: onnn,ar052119 20  reg:21    maxItems: 122 23  clocks:24    maxItems: 125 26  clock-names:27    const: extclk28 29  vaa-supply:30    description:31      Definition of the regulator used as analog (2.7 V) voltage supply.32 33  vdd-supply:34    description:35      Definition of the regulator used as digital core (1.2 V) voltage supply.36 37  vdd_io-supply:38    description:39      Definition of the regulator used as digital I/O (1.8 V) voltage supply.40 41  reset-gpios:42    description: reset GPIO, usually active low43    maxItems: 144 45  port:46    $ref: /schemas/graph.yaml#/$defs/port-base47    unevaluatedProperties: false48    description: |49      Video output port.50 51    properties:52      endpoint:53        $ref: /schemas/media/video-interfaces.yaml#54        unevaluatedProperties: false55 56        properties:57          bus-type:58            const: 459          data-lanes:60            anyOf:61              - items:62                  - const: 163              - items:64                  - const: 165                  - const: 266              - items:67                  - const: 168                  - const: 269                  - const: 370                  - const: 471 72required:73  - compatible74  - reg75  - clocks76  - clock-names77  - vaa-supply78  - vdd-supply79  - vdd_io-supply80  - port81 82additionalProperties: false83 84examples:85  - |86    #include <dt-bindings/gpio/gpio.h>87    #include <dt-bindings/clock/imx6qdl-clock.h>88 89    i2c {90            #address-cells = <1>;91            #size-cells = <0>;92 93            ar0521: camera-sensor@36 {94                    compatible = "onnn,ar0521";95                    reg = <0x36>;96                    pinctrl-names = "default";97                    pinctrl-0 = <&pinctrl_mipi_camera>;98                    clocks = <&clks IMX6QDL_CLK_CKO>;99                    clock-names = "extclk";100                    reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;101                    vaa-supply = <&reg_2p7v>;102                    vdd-supply = <&reg_1p2v>;103                    vdd_io-supply = <&reg_1p8v>;104 105                    port {106                           mipi_camera_to_mipi_csi2: endpoint {107                                    remote-endpoint = <&mipi_csi2_in>;108                                    data-lanes = <1 2 3 4>;109                            };110                    };111            };112    };113