Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3686759rwd; Sat, 10 Jun 2023 12:32:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66GJ9u21GDQVDx8ODunzF597cO9pSEA2oMp0w5Ol3ZTtxNmBlpxLL4mV9KgH4thG/Fh+Zf X-Received: by 2002:a05:6a00:2484:b0:63d:4752:4da3 with SMTP id c4-20020a056a00248400b0063d47524da3mr6219288pfv.25.1686425529002; Sat, 10 Jun 2023 12:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686425528; cv=none; d=google.com; s=arc-20160816; b=sWeGnMknzMlKm+cwNoSbGnyznQjWDLUhNo2sxPYiSQcuBuS3WV23gNvwsa+dAqNtxY jHoobI8NaVPHanmoThCbTEvGmwzAwWgewbTmIsDmH6QSUOk7KfZwkbWGbxM6k4xBKAeb 1uIxopds1cWSkqwGYbBAiQRnsxn0vmJbEkjJGar7v63IyBDgR1OYUDKplH0hXCf1tE+1 eLJcb1FhRRKpMiwa62+axOPOqDDgcVbmPNPUKkCamClgeALpn92weDTh1HKkd7KPZ3Sg SE4mbxpaH4jb0ZP2R0u6Z0AvgP1g//gkp9jFXnpHkhgQ3gWHy8BXG7U0ZpHmfnK9i7cB nhhg== 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=wGBlh8kt4dWTJ/anAoGiZR1tg23wRQC88xAbrYIg54fJ4P0kj4XCyR8MZxaW5flH3T /5/MomMCe14oGEA9uYdK0c8IXYBqoRvK1neBSaDXxOmxOPtUq6JHYqInHtKjSvMKtik8 T90hbYK0qDReb2mRAUj6u0ixy9BvyrqXUEv8QLgYbCXAQI95L/fWGR4r2Qn+NRRPRjV3 td3V+dnQRn9Y0ylIbylH1Zn7+B8nd5uXfKgQ/v8w6PqF18V/oiK/feKrwec5BpdQRvzL eE512jYSHxNLHx9GcHWfxZviCkY3B6SCVgFbsiYuIBmgALfkoqo16Askd5kRM5yu8/v4 MpZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=QabA6z7N; 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 j193-20020a638bca000000b0053f9a37184bsi4340020pge.772.2023.06.10.12.31.57; Sat, 10 Jun 2023 12:32:08 -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=QabA6z7N; 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 S232265AbjFJT06 (ORCPT + 99 others); Sat, 10 Jun 2023 15:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjFJT0y (ORCPT ); Sat, 10 Jun 2023 15:26:54 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19B68270F; Sat, 10 Jun 2023 12:26:50 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-777a78739ccso174029039f.3; Sat, 10 Jun 2023 12:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686425209; x=1689017209; 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=QabA6z7N9TIpLITyUdMT51E826/kxGyzJT7Aqxg9Ekm0R9QNwy8VUmx28y/2ANDMYJ VgbNUfpgZs25xWKAru+97r9wVkrQGwmzItIIob5Um+vIIdA4E1UiP0EpZgrvz7bRNgaq JBQZ+eZQapnnHtc8O+V8a5jEBuVt18V4DmqeaKkwy8IIrwEFsThFRpv+oOCXl/ny0qra XO2fPXQV734jkzqHk6axbxr4YkAbl7g93093PBKwb0ANqT82qAysem8Lng3ReMB/hLGG ncMRbkAtVfHYSJIJYVmmklLioAfhOHt+28hF+sog8QGa/J/eKd/yuyz9CxkZ3jRDyfb6 y/pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686425209; x=1689017209; 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=Yn4F+AFtjVtgl5RIvHr9qnZRVLXWEe+MuWffZTR355U2zwVUmgQw+1Od7m2qtPFrDM ZAmp5eKP0YzUtno26dXc9UimScOzSpAb4aXiQX+M5ieRO27+q2wgX0YxI2S0NQzTin1q NkeAZ9zjuGeYmKnBfNOu2E/zchajBnXD20IOj3bIWqt2GgaqcthSEN1UokRTTE/igrR7 z5IJA0EBy0AUfsFbH+5wiLQEAAYE6a1YNpD0UpWZYN2ODX201xDYcLfAz56zHhObQ3gK waQxSR2jBycIOUDSq2gDuAkIFg9PX1xJbR1RuN9nfc5zZNI5aJz7upQjAOAwDWMXeFA/ 6qxQ== X-Gm-Message-State: AC+VfDzfmegJiGRgg+ZotKvPtFRSLAG6gMPPXJC4KsyoG5rkJ+CWT5os JqJ/IOKI02XzFdEvb0FOWnQ= X-Received: by 2002:a05:6602:1851:b0:777:a970:b382 with SMTP id d17-20020a056602185100b00777a970b382mr5146501ioi.18.1686425209342; Sat, 10 Jun 2023 12:26:49 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:7d74:3e3b:c016:e413]) by smtp.gmail.com with ESMTPSA id a24-20020a6b6618000000b00752f62cd3bdsm1963834ioc.12.2023.06.10.12.26.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jun 2023 12:26:48 -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 V3 3/3] arm64: dts: imx8mm-beacon: Add HDMI video with sound Date: Sat, 10 Jun 2023 14:26:36 -0500 Message-Id: <20230610192637.263600-4-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230610192637.263600-1-aford173@gmail.com> References: <20230610192637.263600-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