From patchwork Thu Jun 15 21:53:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 693447 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 45D71EB64D9 for ; Thu, 15 Jun 2023 21:53:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbjFOVx2 (ORCPT ); Thu, 15 Jun 2023 17:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230459AbjFOVxZ (ORCPT ); Thu, 15 Jun 2023 17:53:25 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80F0C2962; Thu, 15 Jun 2023 14:53:24 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-77ac14ff51bso455939f.3; Thu, 15 Jun 2023 14:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686866004; x=1689458004; 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=KxOISFldC7A+Maohwx70ZQPm8G36oFAf/BfbH4DHEI8=; b=BKiPagzVldM97SdtvbzzJ3fMuPcIG9UfcWpfccqoA4ao+iKXoyAgE0PMcKjKZzhSiF 9ry/hndubJxK97fG6rNyBx4wEAP2S9DPa5CfAWlAlLik7gMwV8qUaLEFMc/tjVKRvIEl qFe6LI0EepjoS0OtiulfG9gZKNO8rldsg7bFUPuJ2bmBpmU7+AS2zW+n42xQDvXSGlmW 20fjx2rRjrHXVnnYT3WC8cVOEhwIXcGFyipPg1D5iR8XynwV/98CUqRHWHS81VgM3Wla QG0x9VniYbI/tWxyZOEWZlMfYGSmLIi2Hh3NdAcuTbSXYH7XuWI+4/0fZw3VODF8tNAB 9Rzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686866004; x=1689458004; 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=KxOISFldC7A+Maohwx70ZQPm8G36oFAf/BfbH4DHEI8=; b=Lcrhs8VaFd2+Xs9gm7Ue/4/iMUnw8QbMFzjgOl4lYYS2K30Fvm/0wwqz8X/0KBlht4 i39+NgZVq49EVA6C+vQ+bm9Lg0gftlWgDUwJD0x2xyNNOJInd72AKOeyuy0SrBm8JZ43 cFc8sH7TWly2LHQhRaRWzDMxaCyfL/CmUl+MyxQd68bt2TC3EytHSvXaSdv8FujCdqJd KOso4FI0r04q1lx8DtTWzGtlNWsR2ZXjYfQnD/r2mBczCxCC/eRSiOTzdVUe4xL1qxxx Eggg7nbaGSJCAkEw5zP+FFGON3x3hAJ+Z9Y1Uq62aptCEyW9iTtm23d20Jx+nJx+rTQj H08Q== X-Gm-Message-State: AC+VfDzzQIjPfQJ056kYe7m53U9+6e2WBH56+Ltmn7RpPj4l9n1rFu7N OUKPUTeBOroOD9TT4X+QMXA= X-Google-Smtp-Source: ACHHUZ6EwYGs6J0oPHAlxGhKGB5G5Cy7ddkOWD40WaG1nv3+KBkwbg1W/qfgErWv4SBNID63fr3KgQ== X-Received: by 2002:a05:6602:228f:b0:777:b64b:9b92 with SMTP id d15-20020a056602228f00b00777b64b9b92mr592447iod.18.1686866003706; Thu, 15 Jun 2023 14:53:23 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:bba3:fc99:5334:6f55]) by smtp.gmail.com with ESMTPSA id z3-20020a5ec903000000b0077ac811b20dsm6264272iol.38.2023.06.15.14.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 14:53:23 -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 1/3] arm64: dts: imx8mn-beacon: Add HDMI video with sound Date: Thu, 15 Jun 2023 16:53:11 -0500 Message-Id: <20230615215314.5402-2-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615215314.5402-1-aford173@gmail.com> References: <20230615215314.5402-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Beacon Embedded imx8mn development kit has a DSI to HDMI bridge chip. The bridge supports stereo audio and hot-plug detection. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts b/arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts index 1392ce02587b..442ff2960677 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts @@ -16,4 +16,137 @@ / { chosen { stdout-path = &uart2; }; + + connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&adv7535_out>; + }; + }; + }; + + reg_hdmi: regulator-hdmi-dvdd { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_hdmi>; + 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 { + compatible = "adi,adv7535"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hdmi_bridge>; + reg = <0x3d>, <0x3c>, <0x3e>, <0x3f>; + reg-names = "main", "cec", "edid", "packet"; + adi,dsi-lanes = <4>; + avdd-supply = <®_hdmi>; + a2vdd-supply = <®_hdmi>; + dvdd-supply = <®_hdmi>; + pvdd-supply = <®_hdmi>; + v1p2-supply = <®_hdmi>; + v3p3-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 { + assigned-clocks = <&clk IMX8MN_VIDEO_PLL1>; + assigned-clock-rates = <594000000>; + 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 IMX8MN_CLK_SAI5>; + assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + #sound-dai-cells = <0>; + status = "okay"; +}; + +&iomuxc { + pinctrl_hdmi_bridge: hdmibridgegrp { + fsl,pins = < + MX8MN_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19 + >; + }; + + pinctrl_reg_hdmi: reghdmigrp { + fsl,pins = < + MX8MN_IOMUXC_SD1_STROBE_GPIO2_IO11 0x16 + >; + }; + + pinctrl_sai5: sai5grp { + fsl,pins = < + MX8MN_IOMUXC_SAI5_RXD3_SAI5_TX_DATA0 0xd6 + MX8MN_IOMUXC_SAI5_RXD2_SAI5_TX_BCLK 0xd6 + MX8MN_IOMUXC_SAI5_RXD1_SAI5_TX_SYNC 0xd6 + >; + }; }; From patchwork Thu Jun 15 21:53:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 693109 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 6970EEB64DC for ; Thu, 15 Jun 2023 21:53:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231733AbjFOVx2 (ORCPT ); Thu, 15 Jun 2023 17:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231481AbjFOVx1 (ORCPT ); Thu, 15 Jun 2023 17:53:27 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B5742962; Thu, 15 Jun 2023 14:53:26 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-77b6e428f84so856439f.1; Thu, 15 Jun 2023 14:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686866005; x=1689458005; 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=uulmumzfWaS24fz5Ie5uKr4WLizl9rXMt6vNsDfz7EE=; b=lYLQZlxD0L4+JpK0z9ab/NrFVC5A8Z8TVfzWOfzd7K2Cx9eJF3BI2UO4Ap2GFaJdtx gzEkNtZ/o0CWLS5jdauGbe0BPwE9sH2UNVA/pQDChmfBPkoUe8l3mykW3JOjCbYvkn3w 29+wY1wB20hLy3gGSoOMOoX1nbh36kAnxg+aJGaXLnP6o76HP0lHzQrBaZBjbbkkAOcL scA/NiIY7U0xFcNw5gtN4fKXK8I+JnJxuh+GNzWyPuuRzP45ZWXW3AR90v0yujv/2OC7 8JjnaWel8vl/x6HatnX6zdMPIPYao5+bk7RKOu30T9uGmMAzLN/SD/F+VHyQDelCSTst U1KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686866005; x=1689458005; 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=uulmumzfWaS24fz5Ie5uKr4WLizl9rXMt6vNsDfz7EE=; b=ADm6maG3nq7PWWJR/s6SXfTBa3bTmUPM3vf18L/7wce/NRFEHBaRsO2aKDcyEIBxtd 9FmWHoUCk6y4MLx1KTVO+FSDmI1xfsnLuX+/xcoKDkUSvl9t6YynK48jWFZzEofrrs5b SFM7DusMuBNYdcuMia4pcV0Kz9Xrl/wJnnX7UIhA50/zXj/KGQiYWuDI8tj2gdvAFuEW Rc8EECLn/9lrjqFjuXs7+aV43sieQUmxyXbeM4cKQgyjAv9ykIkXPxCJSIMtRogPKO01 aAqxtifOJaowWt9Hlr5+r9HSJ+gbFNwYFDzwyzBB37HA/120dGmRltnh1z+8wD5dlL/w MnHg== X-Gm-Message-State: AC+VfDwUFFKrexw3yzQnLX9kF6eaUwANvuAwKyJ+P42xeTBtMf9qQakZ YkhlJUiVz8UBPEiAmHTkm8c= X-Google-Smtp-Source: ACHHUZ6lJOSY4YyGHdb0mNOlMsRF07ZZC3icGDJnoYpOswTVJkbwj3DNQM2bLa9YashmB3md0guUAQ== X-Received: by 2002:a6b:e70d:0:b0:774:84f4:6ea with SMTP id b13-20020a6be70d000000b0077484f406eamr644195ioh.11.1686866005550; Thu, 15 Jun 2023 14:53:25 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:bba3:fc99:5334:6f55]) by smtp.gmail.com with ESMTPSA id z3-20020a5ec903000000b0077ac811b20dsm6264272iol.38.2023.06.15.14.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 14:53:25 -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/3] arm64: dts: imx8mm-beacon: Change camera I2C address Date: Thu, 15 Jun 2023 16:53:12 -0500 Message-Id: <20230615215314.5402-3-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615215314.5402-1-aford173@gmail.com> References: <20230615215314.5402-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The DSI to HDMI bridge uses the address currently assigned to the camera, so change the camera address to the alternative address of 0x10 in preparation to enable the bridge. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi index bc531175ff76..d5c6fc68d656 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi @@ -141,11 +141,11 @@ &i2c2 { pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; - camera@3c { + camera@10 { compatible = "ovti,ov5640"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ov5640>; - reg = <0x3c>; + reg = <0x10>; clocks = <&clk IMX8MM_CLK_CLKO1>; clock-names = "xclk"; assigned-clocks = <&clk IMX8MM_CLK_CLKO1>; From patchwork Thu Jun 15 21:53:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 693446 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 57C18EB64D9 for ; Thu, 15 Jun 2023 21:53:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230459AbjFOVxb (ORCPT ); Thu, 15 Jun 2023 17:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231830AbjFOVx3 (ORCPT ); Thu, 15 Jun 2023 17:53:29 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC7732965; Thu, 15 Jun 2023 14:53:27 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-77aec3ce39aso1245139f.0; Thu, 15 Jun 2023 14:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686866007; x=1689458007; 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=lWZAOrpxcPy/VaZT1TR0uZvyQNu/oBKtJleKxtxgvfg=; b=GUPSHwODv4uOyTnpjACBroWj0fjXIGLtKW8s34XQVyj+wDoOcsJdotOBtFWq71NmiO m933eS27rZvxDv7sq9gSczQnOmGyrkRSB2kgkVovmzmgefZk2cVaUd35YVgDmQlbAq0B EatQfoYSb2iz9PJkuPmRT8kqVdombISdb+jcfPYk93MUdJIFBwTGvONPTqhUBiAgSMA+ CwWgE9N7UEYb4T3wjrYcqMxz8ZprOkno49A+fBMyixB8vkqNJRQTBaJQkSJOGeiYopz1 W3Cga6+B7mgD9vqyFNPRIOMvGKBCT0NUQPdl2kZlY3ynB00fFUvEzzG0ExiWw4hYY3M7 WcXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686866007; x=1689458007; 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=lWZAOrpxcPy/VaZT1TR0uZvyQNu/oBKtJleKxtxgvfg=; b=jWbcr8ijVRxjgGvuFzEl1X1xRch17ycYl7xasIknUPBktvDpK44XI4lstsHtnQUeC5 4defa2s1i5xLZXFm6DPBq93Pz8SDhJ0WA1+UBPfHlqJz1XA/2I8bjogyQJaNPG86rIrl 4f7SWM59NClENy3rDlaj7x2jDTOZ19o3725elR35weRi2kl7ryQD/NzvcShpj2Ynntjd Wx87yYIxhCP2NWiYf0FK2lbNtffqqyjtECxuUkj6nZeJQvj/tmGTTLYA3MTdefiGmAkH xMN7wGiUDUZQHfePtBE14ecdpS7TAANGzDOiAhnBrvfp3+4dYrQ3fSUlXEtSgn996wXL l1MQ== X-Gm-Message-State: AC+VfDwPd5McKpJZBY/ag9but2BIZm+y5P+bn0fQn47EDzmITqKN+aOw ZBYW+xoRAIMT+6qOuuXY/5M= X-Google-Smtp-Source: ACHHUZ7P9JHfmrxjz3gkzxk85PGcy+51poUIx6M/mG11P38zZet+WuvVGzcH5YXkGExtXOAn7V3rDw== X-Received: by 2002:a6b:e00e:0:b0:777:84d7:8e89 with SMTP id z14-20020a6be00e000000b0077784d78e89mr650064iog.13.1686866007103; Thu, 15 Jun 2023 14:53:27 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:bba3:fc99:5334:6f55]) by smtp.gmail.com with ESMTPSA id z3-20020a5ec903000000b0077ac811b20dsm6264272iol.38.2023.06.15.14.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 14:53:26 -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 3/3] arm64: dts: imx8mm-beacon: Add HDMI video with sound Date: Thu, 15 Jun 2023 16:53:13 -0500 Message-Id: <20230615215314.5402-4-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615215314.5402-1-aford173@gmail.com> References: <20230615215314.5402-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..66d68ce98ca4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts @@ -16,4 +16,135 @@ / { chosen { stdout-path = &uart2; }; + + connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&adv7535_out>; + }; + }; + }; + + reg_hdmi: regulator-hdmi-dvdd { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_hdmi>; + 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 { + compatible = "adi,adv7535"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hdmi_bridge>; + reg = <0x3d>, <0x3c>, <0x3e>, <0x3f>; + reg-names = "main", "cec", "edid", "packet"; + adi,dsi-lanes = <4>; + avdd-supply = <®_hdmi>; + a2vdd-supply = <®_hdmi>; + dvdd-supply = <®_hdmi>; + pvdd-supply = <®_hdmi>; + v1p2-supply = <®_hdmi>; + v3p3-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 + >; + }; };