Path: blob/master/Documentation/devicetree/bindings/display/bridge/nxp,tda998x.yaml
26309 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: 12021video-ports:22$ref: /schemas/types.yaml#/definitions/uint3223default: 0x23014524maximum: 0xffffff25description:2624 bits value which defines how the video controller output is wired to27the TDA998x input.2829audio-ports:30description:31Array of 2 values per DAI (Documentation/sound/soc/dai.rst).32The implementation allows one or two DAIs.33If two DAIs are defined, they must be of different type.34$ref: /schemas/types.yaml#/definitions/uint32-matrix35minItems: 136maxItems: 237items:38items:39- description: |40The first value defines the DAI type: TDA998x_SPDIF or TDA998x_I2S41(see include/dt-bindings/display/tda998x.h).42enum: [ 1, 2 ]43- description:44The second value defines the tda998x AP_ENA reg content when the45DAI in question is used.46maximum: 0xff4748'#sound-dai-cells':49enum: [ 0, 1 ]5051nxp,calib-gpios:52maxItems: 153description:54Calibration GPIO, which must correspond with the gpio used for the55TDA998x interrupt pin.5657port:58$ref: /schemas/graph.yaml#/properties/port59description: Parallel input port6061ports:62$ref: /schemas/graph.yaml#/properties/ports6364properties:65port@0:66type: object67description: Parallel input port6869port@1:70type: object71description: HDMI output port7273required:74- compatible75- reg7677oneOf:78- required:79- port80- required:81- ports8283additionalProperties: false8485examples:86- |87#include <dt-bindings/display/tda998x.h>88#include <dt-bindings/interrupt-controller/irq.h>8990i2c {91#address-cells = <1>;92#size-cells = <0>;9394tda998x: hdmi-encoder@70 {95compatible = "nxp,tda998x";96reg = <0x70>;97interrupt-parent = <&gpio0>;98interrupts = <27 IRQ_TYPE_EDGE_FALLING>;99video-ports = <0x230145>;100101#sound-dai-cells = <1>;102/* DAI-format / AP_ENA reg value */103audio-ports = <TDA998x_SPDIF 0x04>,104<TDA998x_I2S 0x03>;105106port {107tda998x_in: endpoint {108remote-endpoint = <&lcdc_0>;109};110};111};112};113114115