18c2ecf20Sopenharmony_ciDevice-Tree bindings for the NXP TDA998x HDMI transmitter
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties;
48c2ecf20Sopenharmony_ci  - compatible: must be "nxp,tda998x"
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci  - reg: I2C address
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciRequired node:
98c2ecf20Sopenharmony_ci  - port: Input port node with endpoint definition, as described
108c2ecf20Sopenharmony_ci        in Documentation/devicetree/bindings/graph.txt
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciOptional properties:
138c2ecf20Sopenharmony_ci  - interrupts: interrupt number and trigger type
148c2ecf20Sopenharmony_ci	default: polling
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci  - pinctrl-0: pin control group to be used for
178c2ecf20Sopenharmony_ci	screen plug/unplug interrupt.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci  - pinctrl-names: must contain a "default" entry.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci  - video-ports: 24 bits value which defines how the video controller
228c2ecf20Sopenharmony_ci	output is wired to the TDA998x input - default: <0x230145>
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci  - audio-ports: array of 8-bit values, 2 values per one DAI[1].
258c2ecf20Sopenharmony_ci	The first value defines the DAI type: TDA998x_SPDIF or TDA998x_I2S[2].
268c2ecf20Sopenharmony_ci	The second value defines the tda998x AP_ENA reg content when the DAI
278c2ecf20Sopenharmony_ci	in question is used. The implementation allows one or two DAIs. If two
288c2ecf20Sopenharmony_ci	DAIs are defined, they must be of different type.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci  - nxp,calib-gpios: calibration GPIO, which must correspond with the
318c2ecf20Sopenharmony_ci	gpio used for the TDA998x interrupt pin.
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci[1] Documentation/sound/soc/dai.rst
348c2ecf20Sopenharmony_ci[2] include/dt-bindings/display/tda998x.h
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciExample:
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci#include <dt-bindings/display/tda998x.h>
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci	tda998x: hdmi-encoder {
418c2ecf20Sopenharmony_ci		compatible = "nxp,tda998x";
428c2ecf20Sopenharmony_ci		reg = <0x70>;
438c2ecf20Sopenharmony_ci		interrupt-parent = <&gpio0>;
448c2ecf20Sopenharmony_ci		interrupts = <27 2>;		/* falling edge */
458c2ecf20Sopenharmony_ci		pinctrl-0 = <&pmx_camera>;
468c2ecf20Sopenharmony_ci		pinctrl-names = "default";
478c2ecf20Sopenharmony_ci		video-ports = <0x230145>;
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci		#sound-dai-cells = <2>;
508c2ecf20Sopenharmony_ci			     /*	DAI-format	AP_ENA reg value */
518c2ecf20Sopenharmony_ci		audio-ports = <	TDA998x_SPDIF	0x04
528c2ecf20Sopenharmony_ci				TDA998x_I2S	0x03>;
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci	};
55