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