Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1755145rwd; Thu, 15 Jun 2023 15:26:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fzk4y4GmL3ujKrCeTpm++/m2ojF1+GKB0Z1dYANEmpn2XYdHCp/urnPINdE+XSBPN1zrI X-Received: by 2002:a17:907:26cb:b0:96f:e5af:ac5f with SMTP id bp11-20020a17090726cb00b0096fe5afac5fmr255977ejc.47.1686868018676; Thu, 15 Jun 2023 15:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686868018; cv=none; d=google.com; s=arc-20160816; b=zzKN3D1KeUSLMI3foBr+Nt6JU2b3voCQeiiGyD6lNYtXAsvNqPJXkPMwumOBRSho1w lRWiL+GDsmUg0TrVgBkgB/K7lJUGaQ12AtxocEsZf9LeDU26lj3VmSNe3yALFMREJUbA Is09ASVlWRoQ0F/mCzyHKmRym23YwoJwXY1dbOGt4deC73OkUJZProRXjYqNK9sTQwqi cIFZZvYy8nI4Df/VdMDgSsFAErLdSHBJXPCuGkr43BF0txY9CAshtkNnon1sDbTLQZys 8UMztubtB3Q+Gise8yhwLMyFrQw8uY/IH5mxSplliYcmJDLb8/+rn/aOvjV9n4N9yMrY K8ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lWZAOrpxcPy/VaZT1TR0uZvyQNu/oBKtJleKxtxgvfg=; b=lguWHZ90TBBitrEAz9574IWRdm48ec9XX0Jl9of3ApkjS3aI23yXExBS5cLMG73kPs imiNAqqjZKcTPk+SxIJ/hVeLj1yVG0k/mFmvpIfMks1CPd8SPl2ihDRo/xwZJbvKV4dQ fkLF7V32Frau+AHLyW0f2CxpHMCd9CU8Yn0IexqZwubz5DznbKvWIj8OowpeEHjzJ2tY 5NxTsuATDNiwgPKbCDtu2qGnx41t9yLBLT2sVbU7ScavZ9ZRsSBQWHPZq/XRmVlS0IM/ aMK3Etam5CypqnqlZ4qQ7H10f0j4Bo62QC0V46xOW+FywcmrXZuuyRk8Fh9S0TrogUkR opVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=GUPSHwOD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ec19-20020a170906b6d300b00977c89c2c34si844202ejb.191.2023.06.15.15.26.33; Thu, 15 Jun 2023 15:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=GUPSHwOD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232358AbjFOVxe (ORCPT + 99 others); Thu, 15 Jun 2023 17:53:34 -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-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 + >; + }; }; -- 2.39.2