xref: /freebsd/sys/contrib/device-tree/Bindings/media/nxp,imx7-csi.yaml (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
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
7*354d7675SEmmanuel 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:
18*354d7675SEmmanuel Vadot    oneOf:
19*354d7675SEmmanuel Vadot      - enum:
205def4c47SEmmanuel Vadot          - fsl,imx7-csi
215def4c47SEmmanuel Vadot          - fsl,imx6ul-csi
22*354d7675SEmmanuel Vadot      - items:
23*354d7675SEmmanuel Vadot          - const: fsl,imx8mm-csi
24*354d7675SEmmanuel Vadot          - const: fsl,imx7-csi
255def4c47SEmmanuel Vadot
265def4c47SEmmanuel Vadot  reg:
275def4c47SEmmanuel Vadot    maxItems: 1
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadot  interrupts:
305def4c47SEmmanuel Vadot    maxItems: 1
315def4c47SEmmanuel Vadot
325def4c47SEmmanuel Vadot  clocks:
335def4c47SEmmanuel Vadot    maxItems: 1
345def4c47SEmmanuel Vadot
355def4c47SEmmanuel Vadot  clock-names:
365def4c47SEmmanuel Vadot    items:
375def4c47SEmmanuel Vadot      - const: mclk
385def4c47SEmmanuel Vadot
395def4c47SEmmanuel Vadot  port:
405def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/port
415def4c47SEmmanuel Vadot
425def4c47SEmmanuel Vadotrequired:
435def4c47SEmmanuel Vadot  - compatible
445def4c47SEmmanuel Vadot  - reg
455def4c47SEmmanuel Vadot  - interrupts
465def4c47SEmmanuel Vadot  - clocks
475def4c47SEmmanuel Vadot  - clock-names
485def4c47SEmmanuel Vadot  - port
495def4c47SEmmanuel Vadot
505def4c47SEmmanuel VadotadditionalProperties: false
515def4c47SEmmanuel Vadot
525def4c47SEmmanuel Vadotexamples:
535def4c47SEmmanuel Vadot  - |
545def4c47SEmmanuel Vadot    #include <dt-bindings/clock/imx7d-clock.h>
555def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
565def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
575def4c47SEmmanuel Vadot
585def4c47SEmmanuel Vadot    csi: csi@30710000 {
595def4c47SEmmanuel Vadot            compatible = "fsl,imx7-csi";
605def4c47SEmmanuel Vadot            reg = <0x30710000 0x10000>;
615def4c47SEmmanuel Vadot            interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
625def4c47SEmmanuel Vadot            clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
635def4c47SEmmanuel Vadot            clock-names = "mclk";
645def4c47SEmmanuel Vadot
655def4c47SEmmanuel Vadot            port {
665def4c47SEmmanuel Vadot                    csi_from_csi_mux: endpoint {
675def4c47SEmmanuel Vadot                            remote-endpoint = <&csi_mux_to_csi>;
685def4c47SEmmanuel Vadot                    };
695def4c47SEmmanuel Vadot            };
705def4c47SEmmanuel Vadot    };
715def4c47SEmmanuel Vadot
725def4c47SEmmanuel Vadot...
73