Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/display/bridge/nxp,tda998x.yaml
53176 views
1
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
%YAML 1.2
3
---
4
$id: http://devicetree.org/schemas/display/bridge/nxp,tda998x.yaml#
5
$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7
title: NXP TDA998x HDMI transmitter
8
9
maintainers:
10
- Russell King <linux@armlinux.org.uk>
11
12
properties:
13
compatible:
14
const: nxp,tda998x
15
16
reg:
17
maxItems: 1
18
19
interrupts:
20
maxItems: 1
21
22
clocks:
23
maxItems: 1
24
25
video-ports:
26
$ref: /schemas/types.yaml#/definitions/uint32
27
default: 0x230145
28
maximum: 0xffffff
29
description:
30
24 bits value which defines how the video controller output is wired to
31
the TDA998x input.
32
33
audio-ports:
34
description:
35
Array of 2 values per DAI (Documentation/sound/soc/dai.rst).
36
The implementation allows one or two DAIs.
37
If two DAIs are defined, they must be of different type.
38
$ref: /schemas/types.yaml#/definitions/uint32-matrix
39
minItems: 1
40
maxItems: 2
41
items:
42
items:
43
- description: |
44
The first value defines the DAI type: TDA998x_SPDIF or TDA998x_I2S
45
(see include/dt-bindings/display/tda998x.h).
46
enum: [ 1, 2 ]
47
- description:
48
The second value defines the tda998x AP_ENA reg content when the
49
DAI in question is used.
50
maximum: 0xff
51
52
'#sound-dai-cells':
53
enum: [ 0, 1 ]
54
55
nxp,calib-gpios:
56
maxItems: 1
57
description:
58
Calibration GPIO, which must correspond with the gpio used for the
59
TDA998x interrupt pin.
60
61
port:
62
$ref: /schemas/graph.yaml#/properties/port
63
description: Parallel input port
64
65
ports:
66
$ref: /schemas/graph.yaml#/properties/ports
67
68
properties:
69
port@0:
70
type: object
71
description: Parallel input port
72
73
port@1:
74
type: object
75
description: HDMI output port
76
77
required:
78
- compatible
79
- reg
80
81
oneOf:
82
- required:
83
- port
84
- required:
85
- ports
86
87
allOf:
88
- $ref: /schemas/sound/dai-common.yaml#
89
90
unevaluatedProperties: false
91
92
examples:
93
- |
94
#include <dt-bindings/display/tda998x.h>
95
#include <dt-bindings/interrupt-controller/irq.h>
96
97
i2c {
98
#address-cells = <1>;
99
#size-cells = <0>;
100
101
tda998x: hdmi-encoder@70 {
102
compatible = "nxp,tda998x";
103
reg = <0x70>;
104
interrupt-parent = <&gpio0>;
105
interrupts = <27 IRQ_TYPE_EDGE_FALLING>;
106
video-ports = <0x230145>;
107
108
#sound-dai-cells = <1>;
109
/* DAI-format / AP_ENA reg value */
110
audio-ports = <TDA998x_SPDIF 0x04>,
111
<TDA998x_I2S 0x03>;
112
113
port {
114
tda998x_in: endpoint {
115
remote-endpoint = <&lcdc_0>;
116
};
117
};
118
};
119
};
120
121