Video Multiplexer
Schema identifier ($id): "http://devicetree.org/schemas/media/video-mux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sakari Ailus <sakari.ailus@linux.intel.com>", "Laurent Pinchart <laurent.pinchart@ideasonboard.com>"
Video multiplexers allow to select between multiple input ports. Video received on the active input port is passed through to the output port. Muxes described by this binding are controlled by a multiplexer controller.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "video-mux"
mux-controls — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties matching a name pattern (patternProperties) #
^port@ — name matches this regular expression
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Required in this object (required): "port@0", "port@1", "port@2"
Properties matching a name pattern (patternProperties) #
^port@ — name matches this regular expression #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
At least three port nodes containing endpoints connecting to the source and sink devices according to of_graph bindings. The last port is the output port, all others are inputs.
Required in this object (required): "compatible", "mux-controls"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Required in this object (
required):"port@0","port@1","port@2"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
mux: mux-controller {
compatible = "gpio-mux";
#mux-control-cells = <0>;
mux-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
};
video-mux {
compatible = "video-mux";
mux-controls = <&mux>;
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
mux_in0: endpoint {
remote-endpoint = <&video_source0_out>;
};
};
port@1 {
reg = <1>;
mux_in1: endpoint {
remote-endpoint = <&video_source1_out>;
};
};
port@2 {
reg = <2>;
mux_out: endpoint {
remote-endpoint = <&capture_interface_in>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0