From patchwork Thu Jun 1 03:15:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 687952 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D976C7EE33 for ; Thu, 1 Jun 2023 03:16:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230409AbjFADQA (ORCPT ); Wed, 31 May 2023 23:16:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbjFADPu (ORCPT ); Wed, 31 May 2023 23:15:50 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA23D134; Wed, 31 May 2023 20:15:48 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-76c64da0e46so23841639f.0; Wed, 31 May 2023 20:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685589348; x=1688181348; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VnFUK3AK9ccdMYcC5L+XEoGh2B4wy2q1Ks5rW38z4m8=; b=o69nwRA4cQXyvnhAxwyUVDfxSXtIKMb++hg4FAjoxq1LDkjWx6OnPVIEq+sHhk2lah hk3LCuxHoi6Pqw3dvm2V7Y0NDzhG+37fgolk8ReU/GH/zvd/24gm1JwJ/65ZyRQQw95j lXnRYE/9kY7feBwK1EiRQdtFwY8LMMYiBuu/2SzbvcCpkpn9zV0xfreRWhLxLPJt8kRb 2xRZIgHKdmi3vDuE/QSjFXuo5qtTrMPE6xTquxvSKKnHw02oUeUy3GPVfmpr7aJBDIzU ANvzXVQoOnV9llP0dTdeD1GmdO49TcWdIyne7N0+pZcWDG8JNkCoIk5hWwv0iSuN3GHH UJ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685589348; x=1688181348; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VnFUK3AK9ccdMYcC5L+XEoGh2B4wy2q1Ks5rW38z4m8=; b=RKneCejhHYt559zF+XtALQXeVDHzNkOtiCudfX6lC0h8c8w52b+QWqdDENbDbTJt5V yAipxjKf3FnTGmf6NvDY3zBM1fETJBJ+xtZ5KEgOvdXyeH83TV7BnsuBGWvDx+4femXq di1Ast5zJjRSbRXUaVuyl+ESG9ktRSXahGZsmgOovcCMnii9Gzlz+slBCir/d1UNyAZx 1MoaWpCxN/bbn4GRDiNAc+EP4RmzpZykGRVSPXGx8yyAZSLR4g5XnMXzBehGCdu5eYy7 /d+N8H211YhDDqOCz/zbt/zZouR3gInKPECF3OE4ityclNPKWtRrQDmsbmSGEWpm+Bt3 ecOg== X-Gm-Message-State: AC+VfDxCRx1OR2jUFa9AHWimhwNjSUUutYGKKQYloSSHtjgHkC+Rna3X UJvNvssrc7C26aN7OKdCPvM= X-Google-Smtp-Source: ACHHUZ59xvtI2CmUt1mPLj+A2MDIVMNZf608RPM/vi8HGm8YNUpFJ2FQO5wtpr4MVeCUCbTfk4rE4Q== X-Received: by 2002:a6b:6402:0:b0:776:f992:78cf with SMTP id t2-20020a6b6402000000b00776f99278cfmr6531210iog.12.1685589348140; Wed, 31 May 2023 20:15:48 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:6ae0:d0f8:5d79:f782]) by smtp.gmail.com with ESMTPSA id b66-20020a0295c8000000b004165d7d6711sm1852590jai.71.2023.05.31.20.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 20:15:47 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: imx8mm-beacon: Add HDMI video with sound Date: Wed, 31 May 2023 22:15:26 -0500 Message-Id: <20230601031527.271232-3-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230601031527.271232-1-aford173@gmail.com> References: <20230601031527.271232-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Beacon Embedded imx8mm development kit has a DSI to HDMI bridge chip. The bridge supports stereo audio and hot-plugging. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts b/arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts index 74a7b0cc10c2..4454bc1b6b9a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts @@ -16,4 +16,136 @@ / { chosen { stdout-path = &uart2; }; + + connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&adv7535_out>; + }; + }; + }; + + reg_hdmi: regulator-hdmi-dvdd { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_hdmi>; + compatible = "regulator-fixed"; + regulator-name = "hdmi_pwr_en"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio2 11 GPIO_ACTIVE_HIGH>; + enable-active-high; + startup-delay-us = <70000>; + regulator-always-on; + }; + + sound-hdmi { + compatible = "simple-audio-card"; + simple-audio-card,name = "sound-hdmi"; + simple-audio-card,format = "i2s"; + + simple-audio-card,cpu { + sound-dai = <&sai5 0>; + system-clock-direction-out; + }; + + simple-audio-card,codec { + sound-dai = <&adv_bridge>; + }; + }; +}; + +&i2c2 { + adv_bridge: hdmi@3d { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hdmi_bridge>; + compatible = "adi,adv7535"; + reg = <0x3d>, <0x3b>; + reg-names = "main", "cec"; + adi,dsi-lanes = <4>; + adi,fixed-lanes; + dvdd-supply = <®_hdmi>; + v3p3-supply = <®_hdmi>; + v1p2-supply = <®_hdmi>; + a2vdd-supply = <®_hdmi>; + avdd-supply = <®_hdmi>; + pvdd-supply = <®_hdmi>; + interrupt-parent = <&gpio1>; + interrupts = <9 IRQ_TYPE_LEVEL_LOW>; + #sound-dai-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + adv7535_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + + port@1 { + reg = <1>; + + adv7535_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + }; +}; + +&lcdif { + status = "okay"; +}; + +&mipi_dsi { + samsung,esc-clock-frequency = <20000000>; + status = "okay"; + + ports { + port@1 { + reg = <1>; + + dsi_out: endpoint { + remote-endpoint = <&adv7535_in>; + }; + }; + }; +}; + +&sai5 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai5>; + assigned-clocks = <&clk IMX8MM_CLK_SAI5>; + assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + #sound-dai-cells = <0>; + status = "okay"; +}; + +&iomuxc { + pinctrl_hdmi_bridge: hdmibridgegrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19 + >; + }; + + pinctrl_reg_hdmi: reghdmigrp { + fsl,pins = < + MX8MM_IOMUXC_SD1_STROBE_GPIO2_IO11 0x16 + >; + }; + + pinctrl_sai5: sai5grp { + fsl,pins = < + MX8MM_IOMUXC_SAI5_RXD3_SAI5_TX_DATA0 0xd6 + MX8MM_IOMUXC_SAI5_RXD2_SAI5_TX_BCLK 0xd6 + MX8MM_IOMUXC_SAI5_RXD1_SAI5_TX_SYNC 0xd6 + >; + }; };