1338de94dSRui Miguel Silva# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2338de94dSRui Miguel Silva%YAML 1.2 3338de94dSRui Miguel Silva--- 4338de94dSRui Miguel Silva$id: http://devicetree.org/schemas/media/nxp,imx7-csi.yaml# 5338de94dSRui Miguel Silva$schema: http://devicetree.org/meta-schemas/core.yaml# 6338de94dSRui Miguel Silva 7e8713c31SLaurent Pincharttitle: i.MX7 and i.MX8 CSI bridge (CMOS Sensor Interface) 8338de94dSRui Miguel Silva 9338de94dSRui Miguel Silvamaintainers: 10338de94dSRui Miguel Silva - Rui Miguel Silva <rmfrfs@gmail.com> 11338de94dSRui Miguel Silva 12338de94dSRui Miguel Silvadescription: | 13338de94dSRui Miguel Silva This is device node for the CMOS Sensor Interface (CSI) which enables the 14338de94dSRui Miguel Silva chip to connect directly to external CMOS image sensors. 15338de94dSRui Miguel Silva 16338de94dSRui Miguel Silvaproperties: 17338de94dSRui Miguel Silva compatible: 18e8713c31SLaurent Pinchart oneOf: 19e8713c31SLaurent Pinchart - enum: 20083d299aSMartin Kepplinger - fsl,imx8mq-csi 21338de94dSRui Miguel Silva - fsl,imx7-csi 22338de94dSRui Miguel Silva - fsl,imx6ul-csi 23e8713c31SLaurent Pinchart - items: 24e8713c31SLaurent Pinchart - const: fsl,imx8mm-csi 25e8713c31SLaurent Pinchart - const: fsl,imx7-csi 26338de94dSRui Miguel Silva 27338de94dSRui Miguel Silva reg: 28338de94dSRui Miguel Silva maxItems: 1 29338de94dSRui Miguel Silva 30338de94dSRui Miguel Silva interrupts: 31338de94dSRui Miguel Silva maxItems: 1 32338de94dSRui Miguel Silva 33338de94dSRui Miguel Silva clocks: 34338de94dSRui Miguel Silva maxItems: 1 35338de94dSRui Miguel Silva 36338de94dSRui Miguel Silva clock-names: 37338de94dSRui Miguel Silva items: 38338de94dSRui Miguel Silva - const: mclk 39338de94dSRui Miguel Silva 40*de655386SMarek Vasut power-domains: 41*de655386SMarek Vasut maxItems: 1 42*de655386SMarek Vasut 43338de94dSRui Miguel Silva port: 44066a94e2SRob Herring $ref: /schemas/graph.yaml#/properties/port 45338de94dSRui Miguel Silva 46338de94dSRui Miguel Silvarequired: 47338de94dSRui Miguel Silva - compatible 48338de94dSRui Miguel Silva - reg 49338de94dSRui Miguel Silva - interrupts 50338de94dSRui Miguel Silva - clocks 51338de94dSRui Miguel Silva - clock-names 52338de94dSRui Miguel Silva - port 53338de94dSRui Miguel Silva 54338de94dSRui Miguel SilvaadditionalProperties: false 55338de94dSRui Miguel Silva 56*de655386SMarek VasutallOf: 57*de655386SMarek Vasut - if: 58*de655386SMarek Vasut properties: 59*de655386SMarek Vasut compatible: 60*de655386SMarek Vasut contains: 61*de655386SMarek Vasut enum: 62*de655386SMarek Vasut - fsl,imx8mq-csi 63*de655386SMarek Vasut - fsl,imx8mm-csi 64*de655386SMarek Vasut then: 65*de655386SMarek Vasut required: 66*de655386SMarek Vasut - power-domains 67*de655386SMarek Vasut 68338de94dSRui Miguel Silvaexamples: 69338de94dSRui Miguel Silva - | 70338de94dSRui Miguel Silva #include <dt-bindings/clock/imx7d-clock.h> 71338de94dSRui Miguel Silva #include <dt-bindings/interrupt-controller/arm-gic.h> 72338de94dSRui Miguel Silva #include <dt-bindings/interrupt-controller/irq.h> 73338de94dSRui Miguel Silva 74338de94dSRui Miguel Silva csi: csi@30710000 { 75338de94dSRui Miguel Silva compatible = "fsl,imx7-csi"; 76338de94dSRui Miguel Silva reg = <0x30710000 0x10000>; 77338de94dSRui Miguel Silva interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 78338de94dSRui Miguel Silva clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>; 79338de94dSRui Miguel Silva clock-names = "mclk"; 80338de94dSRui Miguel Silva 81338de94dSRui Miguel Silva port { 82338de94dSRui Miguel Silva csi_from_csi_mux: endpoint { 83338de94dSRui Miguel Silva remote-endpoint = <&csi_mux_to_csi>; 84338de94dSRui Miguel Silva }; 85338de94dSRui Miguel Silva }; 86338de94dSRui Miguel Silva }; 87338de94dSRui Miguel Silva 88338de94dSRui Miguel Silva... 89