From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ECB6BC77B73 for ; Mon, 5 Jun 2023 00:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TqegS2iiwUQA7vBIQGymFeZ+S1x/b0ipmojB/HFsjr8=; b=s/xchrQj+u5RUo mnIeo2QyUgWxToKCrlH+T+JSdlCkt3eE9wIjTCpZCTBDaO422eSISn4OpiRzVIqfVbk7cldwolNlf aKIc39zxevUMFGqkpaQTBnQjkGsa7tMKUpsULn/imkxM7uSvgyeE3RImVlrVWaynF8mSubD9fYUzv 51VbhodQ7OtJsEhYF/+rR3DVgYuKsntf0LFCrWi3r1G+Vf6qzEIYkNRaufOizhhjebP7Fn5Q47Lfq ojRHgKB31uNPx7e1zcDfEiorFtLTJLflhT80A7ebZUf6pvK1OyW0bDKO7wx67rp3w2+p8C3daCfCr GPs6RIa1VNOB33T1/7wA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q5xuz-00DUCU-1u; Mon, 05 Jun 2023 00:17:53 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q5xuv-00DUBu-35 for linux-arm-kernel@lists.infradead.org; Mon, 05 Jun 2023 00:17:51 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 53EA760BCC; Mon, 5 Jun 2023 00:17:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 681DFC433D2; Mon, 5 Jun 2023 00:17:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685924264; bh=Zs6jqBTfPSCRUeatCIGSWI6VZKKS80cfuK2pqFhs6UY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dHNvpo5UYRn2fUo9z38jlZbp5GYUlT2nx3pspRK1qZpEs5A41l6/cTPER0kmIgD9t jKvwbsiSb+9fKIqOPdL0ycU97IVAw5+bS1ywPmBSql+2OHUKpYLmw25tA3pcbihMWA IFDpaPixdYyV+PSvQaqBQFSxvH5w7ogX++x6XMA3UXaQ/elkr9EedHedXm/Ci5Mfr7 UblrolIo7UvA9mp8Rpz8MdqZHkFwiq+00wT4fdahUK9irGzy9XsynCD3DYfseQpnNj whotXa41OcQhf6C8Bs6OEizl+kjL4uZ+vx2+RX2RPGbEJ8gGyqHQakCVGkVYA+KHqf vsvbcKpjl8+MA== Date: Mon, 5 Jun 2023 08:17:30 +0800 From: Shawn Guo To: Adam Ford Cc: linux-arm-kernel@lists.infradead.org, aford@beaconembedded.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] arm64: dts: imx8mn-beacon: Add HDMI video with sound Message-ID: <20230605001730.GS4199@dragon> References: <20230601031527.271232-1-aford173@gmail.com> <20230601031527.271232-2-aford173@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230601031527.271232-2-aford173@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230604_171750_080710_5C059543 X-CRM114-Status: GOOD ( 16.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, May 31, 2023 at 10:15:25PM -0500, Adam Ford wrote: > The Beacon Embedded imx8mn 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/imx8mn-beacon-kit.dts b/arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts > index 1392ce02587b..3758c46c7162 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts > @@ -16,4 +16,138 @@ / { > 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"; Can we start properties from 'compatible'? > + 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"; Same here. Shawn > + 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 { > + 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 > + >; > + }; > }; > -- > 2.39.2 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel