xref: /freebsd/sys/contrib/device-tree/Bindings/media/nxp,imx7-csi.yaml (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/nxp,imx7-csi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: i.MX7 and i.MX8 CSI bridge (CMOS Sensor Interface)
8
9maintainers:
10  - Rui Miguel Silva <rmfrfs@gmail.com>
11
12description: |
13  This is device node for the CMOS Sensor Interface (CSI) which enables the
14  chip to connect directly to external CMOS image sensors.
15
16properties:
17  compatible:
18    oneOf:
19      - enum:
20          - fsl,imx8mq-csi
21          - fsl,imx7-csi
22          - fsl,imx6ul-csi
23      - items:
24          - const: fsl,imx8mm-csi
25          - const: fsl,imx7-csi
26
27  reg:
28    maxItems: 1
29
30  interrupts:
31    maxItems: 1
32
33  clocks:
34    maxItems: 1
35
36  clock-names:
37    items:
38      - const: mclk
39
40  power-domains:
41    maxItems: 1
42
43  port:
44    $ref: /schemas/graph.yaml#/properties/port
45
46required:
47  - compatible
48  - reg
49  - interrupts
50  - clocks
51  - clock-names
52  - port
53
54additionalProperties: false
55
56allOf:
57  - if:
58      properties:
59        compatible:
60          contains:
61            enum:
62              - fsl,imx8mq-csi
63              - fsl,imx8mm-csi
64    then:
65      required:
66        - power-domains
67
68examples:
69  - |
70    #include <dt-bindings/clock/imx7d-clock.h>
71    #include <dt-bindings/interrupt-controller/arm-gic.h>
72    #include <dt-bindings/interrupt-controller/irq.h>
73
74    csi: csi@30710000 {
75            compatible = "fsl,imx7-csi";
76            reg = <0x30710000 0x10000>;
77            interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
78            clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
79            clock-names = "mclk";
80
81            port {
82                    csi_from_csi_mux: endpoint {
83                            remote-endpoint = <&csi_mux_to_csi>;
84                    };
85            };
86    };
87
88...
89