Merge branch 'pm-cpufreq'
[cascardo/linux.git] / Documentation / devicetree / bindings / display / bridge / tda998x.txt
1 Device-Tree bindings for the NXP TDA998x HDMI transmitter
2
3 Required properties;
4   - compatible: must be "nxp,tda998x"
5
6   - reg: I2C address
7
8 Required node:
9   - port: Input port node with endpoint definition, as described
10         in Documentation/devicetree/bindings/graph.txt
11
12 Optional 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 [1] Documentation/sound/alsa/soc/DAI.txt
31 [2] include/dt-bindings/display/tda998x.h
32
33 Example:
34
35 #include <dt-bindings/display/tda998x.h>
36
37         tda998x: hdmi-encoder {
38                 compatible = "nxp,tda998x";
39                 reg = <0x70>;
40                 interrupt-parent = <&gpio0>;
41                 interrupts = <27 2>;            /* falling edge */
42                 pinctrl-0 = <&pmx_camera>;
43                 pinctrl-names = "default";
44                 video-ports = <0x230145>;
45
46                 #sound-dai-cells = <2>;
47                              /* DAI-format      AP_ENA reg value */
48                 audio-ports = < TDA998x_SPDIF   0x04
49                                 TDA998x_I2S     0x03>;
50
51         };