Commit 4e7511fa authored by Shengjiu Wang's avatar Shengjiu Wang Committed by Liu Ying
Browse files

dt-bindings: display: imx: add HDMI PAI for i.MX8MP



Add binding for the i.MX8MP HDMI parallel Audio interface block.

The HDMI TX Parallel Audio Interface (HTX_PAI) is a digital module that
acts as the bridge between the Audio Subsystem to the HDMI TX Controller.
This IP block is found in the HDMI subsystem of the i.MX8MP SoC.

Aud2htx module in Audio Subsystem, HDMI PAI module and HDMI TX
Controller compose the HDMI audio pipeline.

In fsl,imx8mp-hdmi-tx.yaml, add port@2 that is linked to pai_to_hdmi_tx.

Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarLiu Ying <victor.liu@nxp.com>
Link: https://lore.kernel.org/r/20250923053001.2678596-2-shengjiu.wang@nxp.com
parent a7493ff9
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -49,6 +49,10 @@ properties:
        $ref: /schemas/graph.yaml#/properties/port
        description: HDMI output port

      port@2:
        $ref: /schemas/graph.yaml#/properties/port
        description: Parallel audio input port

    required:
      - port@0
      - port@1
@@ -98,5 +102,13 @@ examples:
                    remote-endpoint = <&hdmi0_con>;
                };
            };

            port@2 {
                reg = <2>;

                endpoint {
                    remote-endpoint = <&pai_to_hdmi_tx>;
                };
            };
        };
    };
+69 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/imx/fsl,imx8mp-hdmi-pai.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Freescale i.MX8MP HDMI Parallel Audio Interface

maintainers:
  - Shengjiu Wang <shengjiu.wang@nxp.com>

description:
  The HDMI TX Parallel Audio Interface (HTX_PAI) is a bridge between the
  Audio Subsystem to the HDMI TX Controller.

properties:
  compatible:
    const: fsl,imx8mp-hdmi-pai

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    const: apb

  power-domains:
    maxItems: 1

  port:
    $ref: /schemas/graph.yaml#/properties/port
    description: Output to the HDMI TX controller.

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names
  - power-domains
  - port

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/imx8mp-clock.h>
    #include <dt-bindings/power/imx8mp-power.h>

    audio-bridge@32fc4800 {
        compatible = "fsl,imx8mp-hdmi-pai";
        reg = <0x32fc4800 0x800>;
        interrupt-parent = <&irqsteer_hdmi>;
        interrupts = <14>;
        clocks = <&clk IMX8MP_CLK_HDMI_APB>;
        clock-names = "apb";
        power-domains = <&hdmi_blk_ctrl IMX8MP_HDMIBLK_PD_PAI>;

        port {
            pai_to_hdmi_tx: endpoint {
                remote-endpoint = <&hdmi_tx_from_pai>;
            };
        };
    };