Allwinner A10 CMOS Sensor Interface (CSI)
Schema identifier ($id): "http://devicetree.org/schemas/media/allwinner,sun4i-a10-csi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
The Allwinner A10 and later has a CMOS Sensor Interface to retrieve frames from a parallel or BT656 sensor.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"allwinner,sun4i-a10-csi1"
Rule 2
Exact value (
const):"allwinner,sun7i-a20-csi0"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun7i-a20-csi1"Item 2
Exact value (
const):"allwinner,sun4i-a10-csi1"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun8i-r40-csi0"Item 2
Exact value (
const):"allwinner,sun7i-a20-csi0"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
The CSI interface clock
Item 2
The CSI DRAM clock
Rule 2
Array item rules (
items)Item 1
The CSI interface clock
Item 2
The CSI ISP clock
Item 3
The CSI DRAM clock
clock-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"bus"Item 2
Exact value (
const):"ram"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"bus"Item 2
Exact value (
const):"isp"Item 3
Exact value (
const):"ram"
resets — not listed as required here #
Maximum number of items (maxItems): 1
interconnects — not listed as required here #
Maximum number of items (maxItems): 1
interconnect-names — not listed as required here #
Exact value (const): "dma-mem"
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
endpoint — not listed as required here
Shared schema rule ($ref): video-interfaces.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
bus-width — required here
data-active — required here
true — No constraints added by this property rule.
hsync-active — required here
true — No constraints added by this property rule.
pclk-sample — required here
true — No constraints added by this property rule.
vsync-active — required here
true — No constraints added by this property rule.
Required in this object (required): "bus-width", "data-active", "hsync-active", "pclk-sample", "vsync-active"
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/sun7i-a20-ccu.h>
#include <dt-bindings/reset/sun4i-a10-ccu.h>
csi0: csi@1c09000 {
compatible = "allwinner,sun7i-a20-csi0";
reg = <0x01c09000 0x1000>;
interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>;
clock-names = "bus", "isp", "ram";
resets = <&ccu RST_CSI0>;
port {
csi_from_ov5640: endpoint {
remote-endpoint = <&ov5640_to_csi>;
bus-width = <8>;
hsync-active = <1>; /* Active high */
vsync-active = <0>; /* Active low */
data-active = <1>; /* Active high */
pclk-sample = <1>; /* Rising */
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 60: FIXME: This should be made required eventually once every SoC will
Line 61: have the MBUS declared.
Line 65: FIXME: This should be made required eventually once every SoC will
Line 66: have the MBUS declared.