From patchwork Tue May 11 19:36:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrien Grassein X-Patchwork-Id: 12251927 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89955C433B4 for ; Tue, 11 May 2021 19:38:59 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D305F61176 for ; Tue, 11 May 2021 19:38:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D305F61176 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=C+EOgMpW38akdnSChVLDmgZDmMhfxJGHMeOCEtllW1s=; b=g0LISma3jyrAvfBvnm4NIpM4I 7yxfnDsUzXy6tLV5SqaOlVWt50Mjv4qItJDRlXaPTqbQoCGUPUVOOnUlMHg8CvSb1cl+bT2j2Nq04 0hi7StYp+iTekApuvQHo+BM05Y3l8jvG9/fXIVQ/xpH1tJNHz1VnRSXKiVDTIxXr6o+eCM8UOeEoI jwh67HGjETrfn12a2cIJYUv/cMISBVJOMawE6mBjSSfwtgGEvFWR6iOAGJ7JFrs+87Rus79KAYEL0 1UndMVcukch8ceahbcIY/CrRp+t+NLdTjAw0XBlcqAa0PFl3T6Moo9DTVSQ/cr7/bA0HlOdCHquUr UjwrKQXsw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgYBd-001978-7d; Tue, 11 May 2021 19:36:57 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgYAu-00190o-Q6 for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 19:36:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=q8d71KOmZtSKlEO79aQEnL7ViCV2pmCZF2v0+nim6nA=; b=Zc5kCGKJvOHSSA+1bhsTTIT91c uW5zCi5MuPbg90Wm5P57A9sMVAQDjdU+5bXRdBsyTyHyXsVujFpdTuoRMgSd2Uy8VDZSVw3d7y7Ee a3qvy6Y9J3JAdZUxvKJQIPckyYZz6ERNQNV8NmVNae/iglf2gK+QezsmPB4UmOiimg0GYAQSdsS9D v277cFbOJ/v9CfLL7CY3Gbgpx7biHVFegc8yBb3/PI3k1hA6SCY7WsWvkykn0gWtvez3dKfroYkK/ h0HChRFe1d1eAs4NvY0lf/OzTF2c/YKLUi8PvNP2ttWgcgRgQDhhiouSHWuR/l7HW5J2qsMYNdlNc nWBGYFJQ==; Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgYAs-009sQe-6n for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 19:36:11 +0000 Received: by mail-wr1-x42e.google.com with SMTP id z17so2192426wrq.7 for ; Tue, 11 May 2021 12:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q8d71KOmZtSKlEO79aQEnL7ViCV2pmCZF2v0+nim6nA=; b=X7qFuuEzJwO5mi3bN09ZrZM3hzuEOepNNCQqRkfGOZfQZ8ObPey0u4wVaXvRG6jyRS D/iTDJt9xbhGYma2fo/1X87eaJzMevKV6chrc92RzOnHPPaezvRa/zEmmWmw5r9Y1jCc 9jcTEb6pFf27l09BH9B+toK0Qdhj8BlzP2seqKI0NDoU2E56YhJ9OBUtRQ8NT8/dmTu9 VPQVVM/wPRb9jlJclVdp8jq8SDzhmgC3XcQlt6zXnzIkwrasDWeLVUiuRszuDDPu5QjT J0VCuKAbBX9fFPuHZQH+PzClisX1w7CFTA7wXyHsmzPfxIv2C2U862t0+bxKOzWSmiMR tWzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=q8d71KOmZtSKlEO79aQEnL7ViCV2pmCZF2v0+nim6nA=; b=OL/V3WkWAaoVtQY6qQKY06o4s9GbHCDjhUCAr2Y0yfORywqsx5qCMpyIVJXWcwT/v2 w4fwy6EaM7tMHpYvT5GjP6DxMsZcGvJAU3X6e67XCn4v5TurjVHjjglf+jW9QpDa+4uG F2IdH9J3GU2GJ+0FZhB3P52CI2DxALFNE/yNDeAeETPB+beHxpdPThiGuyQngaK/GvDi ofbdr8XEdqwKoi9d2bdTbK4hXEiGGb1e208W3iAogEJO1ak35wgAjEKXaCYNM35P9MR3 +yzfJpeotI0qKvSJ7NodxBN3OwxLgr2SMygXnciOLqN6Y93pLMe8jONd+h4rtvVdq7+n CUCw== X-Gm-Message-State: AOAM533MzDpYpB/B2cBcgTTGFf5cnKpwFcqB87UJbrl9aJjv6/xHo6AR ZLo9mS5lzos1eSDtOTym55M= X-Google-Smtp-Source: ABdhPJwQHLIMX2KAlpjwqGIYR6bk3xMEx0/5fx15/ePKgM9sIedNE9vrbmwnpurJYqj7Fz8BGbGj6A== X-Received: by 2002:adf:f212:: with SMTP id p18mr3123515wro.318.1620761768638; Tue, 11 May 2021 12:36:08 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:3e6:d280:2c6d:4527:c2ea:bb9a]) by smtp.gmail.com with ESMTPSA id a76sm2604562wmd.16.2021.05.11.12.36.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 12:36:08 -0700 (PDT) From: Adrien Grassein To: Cc: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, catalin.marinas@arm.com, will@kernel.org, bjorn.andersson@linaro.org, krzk@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Adrien Grassein Subject: [PATCH v4 3/4] arm64: dts: imx8mq-nitrogen: add lt8912 MIPI-DSI to HDMI Date: Tue, 11 May 2021 21:36:00 +0200 Message-Id: <20210511193601.2584324-4-adrien.grassein@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210511193601.2584324-1-adrien.grassein@gmail.com> References: <20210511193601.2584324-1-adrien.grassein@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_123610_267173_60652D21 X-CRM114-Status: GOOD ( 12.34 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support of the lt8912b in the DTB. This adds the support of the DB_DSIHD daugther board from Boundary Devices. Signed-off-by: Adrien Grassein --- .../boot/dts/freescale/imx8mq-nitrogen.dts | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-nitrogen.dts b/arch/arm64/boot/dts/freescale/imx8mq-nitrogen.dts index 5553f3c84dbc..f70fb32b96b0 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-nitrogen.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-nitrogen.dts @@ -34,6 +34,19 @@ power { }; }; + hdmi-connector { + compatible = "hdmi-connector"; + ddc-i2c-bus = <&ddc_i2c_bus>; + label = "hdmi"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <<8912_out>; + }; + }; + }; + reg_usb_otg_vbus: regulator-usb-otg-vbus { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -81,6 +94,9 @@ reg_vref_5v: regulator-vref-5v { }; }; +&dphy { + status = "okay"; +}; &fec1 { pinctrl-names = "default"; @@ -194,6 +210,98 @@ rtc@68 { }; }; +&i2c4 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4>; + status = "okay"; + + pca9546: i2cmux@70 { + compatible = "nxp,pca9546"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + + i2c4@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + + hdmi-bridge@48 { + compatible = "lontium,lt8912b"; + reg = <0x48> ; + reset-gpios = <&max7323 0 GPIO_ACTIVE_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + hdmi_out_in: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = <&mipi_dsi_out>; + }; + }; + + port@1 { + reg = <1>; + + lt8912_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + }; + }; + + ddc_i2c_bus: i2c4@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + }; + + i2c4@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + + max7323: gpio-expander@68 { + compatible = "maxim,max7323"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_max7323>; + gpio-controller; + reg = <0x68>; + #gpio-cells = <2>; + }; + }; + }; +}; + +&lcdif { + status = "okay"; +}; + +&mipi_dsi { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ports { + port@1 { + reg = <1>; + + mipi_dsi_out: endpoint { + remote-endpoint = <&hdmi_out_in>; + }; + }; + }; +}; + &uart1 { /* console */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -364,6 +472,19 @@ MX8MQ_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x49 >; }; + pinctrl_i2c4: i2c4grp { + fsl,pins = < + MX8MQ_IOMUXC_I2C4_SCL_I2C4_SCL 0x4000007f + MX8MQ_IOMUXC_I2C4_SDA_I2C4_SDA 0x4000007f + >; + }; + + pinctrl_max7323: max7323grp { + fsl,pins = < + MX8MQ_IOMUXC_NAND_RE_B_GPIO3_IO15 0x19 + >; + }; + pinctrl_reg_arm_dram: reg-arm-dramgrp { fsl,pins = < MX8MQ_IOMUXC_SAI5_RXD3_GPIO3_IO24 0x16