1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/media/allwinner,sun4i-a10-csi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Allwinner A10 CMOS Sensor Interface (CSI) Device Tree Bindings
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
14 The Allwinner A10 and later has a CMOS Sensor Interface to retrieve
15 frames from a parallel or BT656 sensor.
20 - const: allwinner,sun4i-a10-csi1
21 - const: allwinner,sun7i-a20-csi0
23 - const: allwinner,sun7i-a20-csi1
24 - const: allwinner,sun4i-a10-csi1
26 - const: allwinner,sun8i-r40-csi0
27 - const: allwinner,sun7i-a20-csi0
39 - description: The CSI interface clock
40 - description: The CSI ISP clock
41 - description: The CSI DRAM clock
54 # See ./video-interfaces.txt for details
57 additionalProperties: false
90 additionalProperties: false
94 #include <dt-bindings/interrupt-controller/arm-gic.h>
95 #include <dt-bindings/clock/sun7i-a20-ccu.h>
96 #include <dt-bindings/reset/sun4i-a10-ccu.h>
99 compatible = "allwinner,sun7i-a20-csi0";
100 reg = <0x01c09000 0x1000>;
101 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
102 clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>;
103 clock-names = "bus", "isp", "ram";
104 resets = <&ccu RST_CSI0>;
107 csi_from_ov5640: endpoint {
108 remote-endpoint = <&ov5640_to_csi>;
110 hsync-active = <1>; /* Active high */
111 vsync-active = <0>; /* Active low */
112 data-active = <1>; /* Active high */
113 pclk-sample = <1>; /* Rising */