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.
19 const: allwinner,sun7i-a20-csi0
29 - description: The CSI interface clock
30 - description: The CSI ISP clock
31 - description: The CSI DRAM clock
42 # See ./video-interfaces.txt for details
45 additionalProperties: false
78 additionalProperties: false
82 #include <dt-bindings/interrupt-controller/arm-gic.h>
83 #include <dt-bindings/clock/sun7i-a20-ccu.h>
84 #include <dt-bindings/reset/sun4i-a10-ccu.h>
87 compatible = "allwinner,sun7i-a20-csi0";
88 reg = <0x01c09000 0x1000>;
89 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
90 clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>;
91 clock-names = "bus", "isp", "ram";
92 resets = <&ccu RST_CSI0>;
95 csi_from_ov5640: endpoint {
96 remote-endpoint = <&ov5640_to_csi>;
98 hsync-active = <1>; /* Active high */
99 vsync-active = <0>; /* Active low */
100 data-active = <1>; /* Active high */
101 pclk-sample = <1>; /* Rising */