NXP TDA1997x HDMI receiver
Schema identifier ($id): "http://devicetree.org/schemas/media/i2c/nxp,tda19971.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
The TDA19971/73 are HDMI video receivers.
The TDA19971 Video port output pins can be used as follows: - RGB 8bit per color (24 bits total): R[11:4] B[11:4] G[11:4] - YUV444 8bit per color (24 bits total): Y[11:4] Cr[11:4] Cb[11:4] - YUV422 semi-planar 8bit per component (16 bits total): Y[11:4] CbCr[11:4] - YUV422 semi-planar 10bit per component (20 bits total): Y[11:2] CbCr[11:2] - YUV422 semi-planar 12bit per component (24 bits total): - Y[11:0] CbCr[11:0] - YUV422 BT656 8bit per component (8 bits total): YCbCr[11:4] (2-cycles) - YUV422 BT656 10bit per component (10 bits total): YCbCr[11:2] (2-cycles) - YUV422 BT656 12bit per component (12 bits total): YCbCr[11:0] (2-cycles)
The TDA19973 Video port output pins can be used as follows: - RGB 12bit per color (36 bits total): R[11:0] B[11:0] G[11:0] - YUV444 12bit per color (36 bits total): Y[11:0] Cb[11:0] Cr[11:0] - YUV422 semi-planar 12bit per component (24 bits total): Y[11:0] CbCr[11:0] - YUV422 BT656 12bit per component (12 bits total): YCbCr[11:0] (2-cycles)
The Video port output pins are mapped via 4-bit 'pin groups' allowing for a variety of connection possibilities including swapping pin order within pin groups. The video_portcfg device-tree property consists of register mapping pairs which map a chip-specific VP output register to a 4-bit pin group. If the pin group needs to be bit-swapped you can use the *_S pin-group defines.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,tda19971", "nxp,tda19973"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
DOVDD-supply — required here #
true — No constraints added by this property rule.
DVDD-supply — required here #
true — No constraints added by this property rule.
AVDD-supply — required here #
true — No constraints added by this property rule.
#sound-dai-cells — not listed as required here #
Exact value (const): 0
port — not listed as 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.
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.
nxp,vidout-portcfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items) #
Array item rules (
items)Item 1
Video Port control registers index.
Maximum value (
maximum):8Minimum value (
minimum):0Item 2
pin(pinswapped) groups
array of pairs mapping VP output pins to pin groups.
nxp,audout-format — not listed as required here #
Allowed values (enum): "i2s", "spdif"
nxp,audout-width — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 8, 16, 24, 32
width of audio output data bus.
nxp,audout-layout — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
data layout (0=AP0 used, 1=AP0/AP1/AP2/AP3 used).
nxp,audout-mclk-fs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Multiplication factor between stream rate and codec mclk.
Required in this object (required): "compatible", "reg", "interrupts", "DOVDD-supply", "AVDD-supply", "DVDD-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/media/tda1997x.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
hdmi-receiver@48 {
compatible = "nxp,tda19971";
reg = <0x48>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_tda1997x>;
interrupt-parent = <&gpio1>;
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
DOVDD-supply = <®_3p3v>;
AVDD-supply = <®_1p8v>;
DVDD-supply = <®_1p8v>;
/* audio */
#sound-dai-cells = <0>;
nxp,audout-format = "i2s";
nxp,audout-layout = <0>;
nxp,audout-width = <16>;
nxp,audout-mclk-fs = <128>;
/*
* The 8bpp YUV422 semi-planar mode outputs CbCr[11:4]
* and Y[11:4] across 16bits in the same pixclk cycle.
*/
nxp,vidout-portcfg =
/* Y[11:8]<->VP[15:12]<->CSI_DATA[19:16] */
< TDA1997X_VP24_V15_12 TDA1997X_G_Y_11_8 >,
/* Y[7:4]<->VP[11:08]<->CSI_DATA[15:12] */
< TDA1997X_VP24_V11_08 TDA1997X_G_Y_7_4 >,
/* CbCc[11:8]<->VP[07:04]<->CSI_DATA[11:8] */
< TDA1997X_VP24_V07_04 TDA1997X_R_CR_CBCR_11_8 >,
/* CbCr[7:4]<->VP[03:00]<->CSI_DATA[7:4] */
< TDA1997X_VP24_V03_00 TDA1997X_R_CR_CBCR_7_4 >;
port {
endpoint {
remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
bus-width = <16>;
hsync-active = <1>;
vsync-active = <1>;
data-active = <1>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)