xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/tda998x.txt (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1Device-Tree bindings for the NXP TDA998x HDMI transmitter
2
3Required properties;
4  - compatible: must be "nxp,tda998x"
5
6  - reg: I2C address
7
8Required node:
9  - port: Input port node with endpoint definition, as described
10        in Documentation/devicetree/bindings/graph.txt
11
12Optional properties:
13  - interrupts: interrupt number and trigger type
14	default: polling
15
16  - pinctrl-0: pin control group to be used for
17	screen plug/unplug interrupt.
18
19  - pinctrl-names: must contain a "default" entry.
20
21  - video-ports: 24 bits value which defines how the video controller
22	output is wired to the TDA998x input - default: <0x230145>
23
24  - audio-ports: array of 8-bit values, 2 values per one DAI[1].
25	The first value defines the DAI type: TDA998x_SPDIF or TDA998x_I2S[2].
26	The second value defines the tda998x AP_ENA reg content when the DAI
27	in question is used. The implementation allows one or two DAIs. If two
28	DAIs are defined, they must be of different type.
29
30  - nxp,calib-gpios: calibration GPIO, which must correspond with the
31	gpio used for the TDA998x interrupt pin.
32
33[1] Documentation/sound/soc/dai.rst
34[2] include/dt-bindings/display/tda998x.h
35
36Example:
37
38#include <dt-bindings/display/tda998x.h>
39
40	tda998x: hdmi-encoder {
41		compatible = "nxp,tda998x";
42		reg = <0x70>;
43		interrupt-parent = <&gpio0>;
44		interrupts = <27 2>;		/* falling edge */
45		pinctrl-0 = <&pmx_camera>;
46		pinctrl-names = "default";
47		video-ports = <0x230145>;
48
49		#sound-dai-cells = <2>;
50			     /*	DAI-format	AP_ENA reg value */
51		audio-ports = <	TDA998x_SPDIF	0x04
52				TDA998x_I2S	0x03>;
53
54	};
55