Toshiba TC358746 Parallel to MIPI CSI2 Bridge
Schema identifier ($id): "http://devicetree.org/schemas/media/i2c/toshiba,tc358746.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marco Felsch <kernel@pengutronix.de>"
The Toshiba TC358746 converts a parallel video stream into a MIPI CSI-2 stream. The direction can be either parallel-in -> csi-out or csi-in -> parallel-out The chip is programmable through I2C and SPI but the SPI interface is only supported in parallel-in -> csi-out mode.
Note that the current device tree bindings only support the parallel-in -> csi-out path.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "toshiba,tc358746"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
The phandle to the reference clock source. This corresponds to the hardware pin REFCLK.
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "refclk"
#clock-cells — not listed as required here #
The bridge can act as clock provider for the sensor. To enable this
support #clock-cells must be specified. Attention if this feature is used
then the mclk rate must be at least: (2 * link-frequency) / 8
`------------------´ ^
internal PLL rate smallest possible
mclk-div
Exact value (const): 0
clock-output-names — not listed as required here #
The clock name of the MCLK output, the default name is tc358746-mclk.
Maximum number of items (maxItems): 1
vddc-supply — required here #
Digital core voltage supply, 1.2 volts
vddio-supply — required here #
Digital I/O voltage supply, 1.8 volts
vddmipi-supply — required here #
MIPI CSI phy voltage supply, 1.2 volts
reset-gpios — not listed as required here #
The phandle and specifier for the GPIO that controls the chip reset. This corresponds to the hardware pin RESX which is physically active low.
Maximum number of items (maxItems): 1
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
Properties and child nodes (properties)
endpoint — not listed as required here
Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
hsync-active — required here
true — No constraints added by this property rule.
vsync-active — required here
true — No constraints added by this property rule.
bus-type — required here
Required in this object (required): "hsync-active", "vsync-active", "bus-type"
port@1 — 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.
Output port
Properties and child nodes (properties)
endpoint — not listed as required here
Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
data-lanes — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clock-noncontinuous — not listed as required here
true — No constraints added by this property rule.
link-frequencies — required here
true — No constraints added by this property rule.
Required in this object (required): "data-lanes", "link-frequencies"
Required in this object (required): "port@0", "port@1"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vddc-supply", "vddio-supply", "vddmipi-supply", "ports"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
csi-bridge@e {
compatible = "toshiba,tc358746";
reg = <0xe>;
clocks = <&refclk>;
clock-names = "refclk";
reset-gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
vddc-supply = <&v1_2d>;
vddio-supply = <&v1_8d>;
vddmipi-supply = <&v1_2d>;
/* sensor mclk provider */
#clock-cells = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
/* Input */
port@0 {
reg = <0>;
tc358746_in: endpoint {
remote-endpoint = <&sensor_out>;
hsync-active = <0>;
vsync-active = <0>;
bus-type = <5>;
};
};
/* Output */
port@1 {
reg = <1>;
tc358746_out: endpoint {
remote-endpoint = <&mipi_csi2_in>;
data-lanes = <1 2>;
clock-noncontinuous;
link-frequencies = /bits/ 64 <216000000>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)