Path: blob/master/Documentation/devicetree/bindings/display/bridge/nxp,tda998x.yaml
53176 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/display/bridge/nxp,tda998x.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: NXP TDA998x HDMI transmitter78maintainers:9- Russell King <linux@armlinux.org.uk>1011properties:12compatible:13const: nxp,tda998x1415reg:16maxItems: 11718interrupts:19maxItems: 12021clocks:22maxItems: 12324video-ports:25$ref: /schemas/types.yaml#/definitions/uint3226default: 0x23014527maximum: 0xffffff28description:2924 bits value which defines how the video controller output is wired to30the TDA998x input.3132audio-ports:33description:34Array of 2 values per DAI (Documentation/sound/soc/dai.rst).35The implementation allows one or two DAIs.36If two DAIs are defined, they must be of different type.37$ref: /schemas/types.yaml#/definitions/uint32-matrix38minItems: 139maxItems: 240items:41items:42- description: |43The first value defines the DAI type: TDA998x_SPDIF or TDA998x_I2S44(see include/dt-bindings/display/tda998x.h).45enum: [ 1, 2 ]46- description:47The second value defines the tda998x AP_ENA reg content when the48DAI in question is used.49maximum: 0xff5051'#sound-dai-cells':52enum: [ 0, 1 ]5354nxp,calib-gpios:55maxItems: 156description:57Calibration GPIO, which must correspond with the gpio used for the58TDA998x interrupt pin.5960port:61$ref: /schemas/graph.yaml#/properties/port62description: Parallel input port6364ports:65$ref: /schemas/graph.yaml#/properties/ports6667properties:68port@0:69type: object70description: Parallel input port7172port@1:73type: object74description: HDMI output port7576required:77- compatible78- reg7980oneOf:81- required:82- port83- required:84- ports8586allOf:87- $ref: /schemas/sound/dai-common.yaml#8889unevaluatedProperties: false9091examples:92- |93#include <dt-bindings/display/tda998x.h>94#include <dt-bindings/interrupt-controller/irq.h>9596i2c {97#address-cells = <1>;98#size-cells = <0>;99100tda998x: hdmi-encoder@70 {101compatible = "nxp,tda998x";102reg = <0x70>;103interrupt-parent = <&gpio0>;104interrupts = <27 IRQ_TYPE_EDGE_FALLING>;105video-ports = <0x230145>;106107#sound-dai-cells = <1>;108/* DAI-format / AP_ENA reg value */109audio-ports = <TDA998x_SPDIF 0x04>,110<TDA998x_I2S 0x03>;111112port {113tda998x_in: endpoint {114remote-endpoint = <&lcdc_0>;115};116};117};118};119120121