0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/media/nxp,imx7-csi.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: i.MX7 and i.MX8 CSI bridge (CMOS Sensor Interface)
0008
0009 maintainers:
0010 - Rui Miguel Silva <rmfrfs@gmail.com>
0011
0012 description: |
0013 This is device node for the CMOS Sensor Interface (CSI) which enables the
0014 chip to connect directly to external CMOS image sensors.
0015
0016 properties:
0017 compatible:
0018 oneOf:
0019 - enum:
0020 - fsl,imx8mq-csi
0021 - fsl,imx7-csi
0022 - fsl,imx6ul-csi
0023 - items:
0024 - const: fsl,imx8mm-csi
0025 - const: fsl,imx7-csi
0026
0027 reg:
0028 maxItems: 1
0029
0030 interrupts:
0031 maxItems: 1
0032
0033 clocks:
0034 maxItems: 1
0035
0036 clock-names:
0037 items:
0038 - const: mclk
0039
0040 port:
0041 $ref: /schemas/graph.yaml#/properties/port
0042
0043 required:
0044 - compatible
0045 - reg
0046 - interrupts
0047 - clocks
0048 - clock-names
0049 - port
0050
0051 additionalProperties: false
0052
0053 examples:
0054 - |
0055 #include <dt-bindings/clock/imx7d-clock.h>
0056 #include <dt-bindings/interrupt-controller/arm-gic.h>
0057 #include <dt-bindings/interrupt-controller/irq.h>
0058
0059 csi: csi@30710000 {
0060 compatible = "fsl,imx7-csi";
0061 reg = <0x30710000 0x10000>;
0062 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
0063 clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
0064 clock-names = "mclk";
0065
0066 port {
0067 csi_from_csi_mux: endpoint {
0068 remote-endpoint = <&csi_mux_to_csi>;
0069 };
0070 };
0071 };
0072
0073 ...