1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/arm/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 <maxime.ripard@bootlin.com>
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 module clock
31 - description: The CSI ISP clock
32 - description: The CSI DRAM clock
44 # See ./video-interfaces.txt for details
47 additionalProperties: false
80 additionalProperties: false
84 #include <dt-bindings/interrupt-controller/arm-gic.h>
85 #include <dt-bindings/clock/sun7i-a20-ccu.h>
86 #include <dt-bindings/reset/sun4i-a10-ccu.h>
89 compatible = "allwinner,sun7i-a20-csi0";
90 reg = <0x01c09000 0x1000>;
91 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
92 clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI0>,
93 <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>;
94 clock-names = "bus", "mod", "isp", "ram";
95 resets = <&ccu RST_CSI0>;
98 csi_from_ov5640: endpoint {
99 remote-endpoint = <&ov5640_to_csi>;
101 hsync-active = <1>; /* Active high */
102 vsync-active = <0>; /* Active low */
103 data-active = <1>; /* Active high */
104 pclk-sample = <1>; /* Rising */