15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25def4c47SEmmanuel Vadot%YAML 1.2 35def4c47SEmmanuel Vadot--- 45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/media/nxp,imx7-csi.yaml# 55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65def4c47SEmmanuel Vadot 7354d7675SEmmanuel Vadottitle: i.MX7 and i.MX8 CSI bridge (CMOS Sensor Interface) 85def4c47SEmmanuel Vadot 95def4c47SEmmanuel Vadotmaintainers: 105def4c47SEmmanuel Vadot - Rui Miguel Silva <rmfrfs@gmail.com> 115def4c47SEmmanuel Vadot 125def4c47SEmmanuel Vadotdescription: | 135def4c47SEmmanuel Vadot This is device node for the CMOS Sensor Interface (CSI) which enables the 145def4c47SEmmanuel Vadot chip to connect directly to external CMOS image sensors. 155def4c47SEmmanuel Vadot 165def4c47SEmmanuel Vadotproperties: 175def4c47SEmmanuel Vadot compatible: 18354d7675SEmmanuel Vadot oneOf: 19354d7675SEmmanuel Vadot - enum: 20c9ccf3a3SEmmanuel Vadot - fsl,imx8mq-csi 215def4c47SEmmanuel Vadot - fsl,imx7-csi 225def4c47SEmmanuel Vadot - fsl,imx6ul-csi 23354d7675SEmmanuel Vadot - items: 24354d7675SEmmanuel Vadot - const: fsl,imx8mm-csi 25354d7675SEmmanuel Vadot - const: fsl,imx7-csi 265def4c47SEmmanuel Vadot 275def4c47SEmmanuel Vadot reg: 285def4c47SEmmanuel Vadot maxItems: 1 295def4c47SEmmanuel Vadot 305def4c47SEmmanuel Vadot interrupts: 315def4c47SEmmanuel Vadot maxItems: 1 325def4c47SEmmanuel Vadot 335def4c47SEmmanuel Vadot clocks: 345def4c47SEmmanuel Vadot maxItems: 1 355def4c47SEmmanuel Vadot 365def4c47SEmmanuel Vadot clock-names: 375def4c47SEmmanuel Vadot items: 385def4c47SEmmanuel Vadot - const: mclk 395def4c47SEmmanuel Vadot 40*cb7aa33aSEmmanuel Vadot power-domains: 41*cb7aa33aSEmmanuel Vadot maxItems: 1 42*cb7aa33aSEmmanuel Vadot 435def4c47SEmmanuel Vadot port: 445def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 455def4c47SEmmanuel Vadot 465def4c47SEmmanuel Vadotrequired: 475def4c47SEmmanuel Vadot - compatible 485def4c47SEmmanuel Vadot - reg 495def4c47SEmmanuel Vadot - interrupts 505def4c47SEmmanuel Vadot - clocks 515def4c47SEmmanuel Vadot - clock-names 525def4c47SEmmanuel Vadot - port 535def4c47SEmmanuel Vadot 545def4c47SEmmanuel VadotadditionalProperties: false 555def4c47SEmmanuel Vadot 56*cb7aa33aSEmmanuel VadotallOf: 57*cb7aa33aSEmmanuel Vadot - if: 58*cb7aa33aSEmmanuel Vadot properties: 59*cb7aa33aSEmmanuel Vadot compatible: 60*cb7aa33aSEmmanuel Vadot contains: 61*cb7aa33aSEmmanuel Vadot enum: 62*cb7aa33aSEmmanuel Vadot - fsl,imx8mm-csi 63*cb7aa33aSEmmanuel Vadot then: 64*cb7aa33aSEmmanuel Vadot required: 65*cb7aa33aSEmmanuel Vadot - power-domains 66*cb7aa33aSEmmanuel Vadot 675def4c47SEmmanuel Vadotexamples: 685def4c47SEmmanuel Vadot - | 695def4c47SEmmanuel Vadot #include <dt-bindings/clock/imx7d-clock.h> 705def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 715def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 725def4c47SEmmanuel Vadot 735def4c47SEmmanuel Vadot csi: csi@30710000 { 745def4c47SEmmanuel Vadot compatible = "fsl,imx7-csi"; 755def4c47SEmmanuel Vadot reg = <0x30710000 0x10000>; 765def4c47SEmmanuel Vadot interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 775def4c47SEmmanuel Vadot clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>; 785def4c47SEmmanuel Vadot clock-names = "mclk"; 795def4c47SEmmanuel Vadot 805def4c47SEmmanuel Vadot port { 815def4c47SEmmanuel Vadot csi_from_csi_mux: endpoint { 825def4c47SEmmanuel Vadot remote-endpoint = <&csi_mux_to_csi>; 835def4c47SEmmanuel Vadot }; 845def4c47SEmmanuel Vadot }; 855def4c47SEmmanuel Vadot }; 865def4c47SEmmanuel Vadot 875def4c47SEmmanuel Vadot... 88