Cadence MIPI-CSI2 RX controller
Schema identifier ($id): "http://devicetree.org/schemas/media/cdns,csi2rx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Maxime Ripard <mripard@kernel.org>"
The Cadence MIPI-CSI2 RX controller is a CSI-2 bridge supporting up to 4 CSI lanes in input, and 4 different pixel streams in output.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"starfive,jh7110-csi2rx","ti,j721e-csi2rx"
Item 2
Exact value (
const):"cdns,csi2rx"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"error_irq"
Item 2
Exact value (
const):"irq"
clocks — required here #
Array item rules (items) #
Item 1
CSI2Rx system clock
Item 2
Gated Register bank clock for APB interface
Item 3
pixel Clock for Stream interface 0
Item 4
pixel Clock for Stream interface 1
Item 5
pixel Clock for Stream interface 2
Item 6
pixel Clock for Stream interface 3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"sys_clk"
Item 2
Exact value (
const):"p_clk"
Item 3
Exact value (
const):"pixel_if0_clk"
Item 4
Exact value (
const):"pixel_if1_clk"
Item 5
Exact value (
const):"pixel_if2_clk"
Item 6
Exact value (
const):"pixel_if3_clk"
resets — not listed as required here #
Array item rules (items) #
Item 1
CSI2Rx system reset
Item 2
Gated Register bank reset for APB interface
Item 3
pixel reset for Stream interface 0
Item 4
pixel reset for Stream interface 1
Item 5
pixel reset for Stream interface 2
Item 6
pixel reset for Stream interface 3
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"sys"
Item 2
Exact value (
const):"reg_bank"
Item 3
Exact value (
const):"pixel_if0"
Item 4
Exact value (
const):"pixel_if1"
Item 5
Exact value (
const):"pixel_if2"
Item 6
Exact value (
const):"pixel_if3"
phys — not listed as required here #
Maximum number of items (maxItems): 1
MIPI D-PHY
phy-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dphy"
ports — required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties and child nodes (properties) #
port@0 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Input port node, single endpoint describing the CSI-2 transmitter.
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-type — not listed as required here
Exact value (const): 4
clock-lanes — not listed as required here
Exact value (const): 0
data-lanes — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items)
Maximum value (
maximum):4
Required in this object (required): "data-lanes"
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Stream 0 Output port node
port@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Stream 1 Output port node
port@3 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Stream 2 Output port node
port@4 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Stream 3 Output port node
Required in this object (required): "port@0"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "ports"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
csi@d060000 {
compatible = "starfive,jh7110-csi2rx", "cdns,csi2rx";
reg = <0x0d060000 0x1000>;
clocks = <&byteclock 7>, <&byteclock 6>,
<&coreclock 8>, <&coreclock 9>,
<&coreclock 10>, <&coreclock 11>;
clock-names = "sys_clk", "p_clk",
"pixel_if0_clk", "pixel_if1_clk",
"pixel_if2_clk", "pixel_if3_clk";
resets = <&bytereset 9>, <&bytereset 4>,
<&corereset 5>, <&corereset 6>,
<&corereset 7>, <&corereset 8>;
reset-names = "sys", "reg_bank",
"pixel_if0", "pixel_if1",
"pixel_if2", "pixel_if3";
phys = <&csi_phy>;
phy-names = "dphy";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
csi2rx_in_sensor: endpoint {
remote-endpoint = <&sensor_out_csi2rx>;
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
port@1 {
reg = <1>;
csi2rx_out_grabber0: endpoint {
remote-endpoint = <&grabber0_in_csi2rx>;
};
};
port@2 {
reg = <2>;
csi2rx_out_grabber1: endpoint {
remote-endpoint = <&grabber1_in_csi2rx>;
};
};
port@3 {
reg = <3>;
csi2rx_out_grabber2: endpoint {
remote-endpoint = <&grabber2_in_csi2rx>;
};
};
port@4 {
reg = <4>;
csi2rx_out_grabber3: endpoint {
remote-endpoint = <&grabber3_in_csi2rx>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)