From patchwork Wed Nov 10 19:24:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12692193 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75756C433F5 for ; Wed, 10 Nov 2021 19:26:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4514F6108B for ; Wed, 10 Nov 2021 19:26:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4514F6108B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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: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=PzvMjg7Rmv2APXzV2Zj7nKuwtmcDhxc4I7cQEe5gxzg=; b=G1n6H8+7+zRQiN BlHjcHM3wvCcdSvxicx9nFt0fwTRjiOu7x4jSpi6aeO6xmoBr4gr2Hf4+/nV4RGDxzuQKv0jl2A7T tzzHW0diWPeLcZRLSGb4n+NY6GEK2bFbn9OTtoLG1atoHvTIyfkYJi27M5WJkrct8j3XQjlQi/z5K iv+W+FLtyaaBN49mRfivBJxNMFEdwKfGvBrCu+qoftb7M5LUggmauYWIqOOT/sDa4IFvJ2MFEc6Zo UAEJi8YUUvguionUX6Gb3nGKR8LeSkC8lcuZI23UCsgWFj51MwDBps1g+WHgBs1NfAf0xz3HIzK5T UlqVRaLPk54gFG1skVNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mktDK-0068JX-Jo; Wed, 10 Nov 2021 19:24:54 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mktD3-0068E3-Mc for linux-arm-kernel@lists.infradead.org; Wed, 10 Nov 2021 19:24:40 +0000 Received: by mail-wm1-x335.google.com with SMTP id o29so3167178wms.2 for ; Wed, 10 Nov 2021 11:24:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TkI4GyDCSIwmbXr9V/MQ9+7DcTXEuCd0g4gBgL+0EyA=; b=i7Z1Pn8QdFKfxUDCIMDU7Nl9er7l71NiK2V1C90wAjvXBpTR0hSMvTNt2R+6QFxiZc B9NzrWeTGyq9I1dGtU6DW9LmHuWZaQ8YqHkROyvYY5z6D9YUHiDs+bfg/nCilHhvZE+H 8v0G7m8bOqLOhSUx3RG/nR6sxnmclH1TjGzbxs158ez2Ig5k22E/oRoz1V4HsYBz+L65 B51Q0GyZ8VwUtJY3k9R4oHTgz/oVV3fjU5Ib1UeoQasvv4dO7KvguV77bIO6Kg8Rv5W9 ALMO+d9fLuS3+Z5ddKtCfzLjKSeiSyu7CXvW+9ZBdzkHLQBSNrJ3UCrEn230+xVjreqB qdUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TkI4GyDCSIwmbXr9V/MQ9+7DcTXEuCd0g4gBgL+0EyA=; b=VK3FL+yBb+Zu7cilE/rxWVCBs8mGThgH9GlYsFnyIqleMCg5Du8RwxGhlOVOv/ZCJ5 O6CzmxODgsZQOal9O+tvlV+uZaL/FfBL6JrBnV1JKdGpEeBSnra4Knp0fya09WYvv42d 8/gBx6mDYNLf1VVyh66E3rDn2IruGXawajociyz+D44LKTxTfYcqgBCJ4yw2DeVQc5dD 6b7Pvzy8J1oCZ+iGchlJ9JPT/OwOOhsOTXG3n6Huuu5dDSviEPSBvJp4EB4n90LyfQ3W 87yrDkXj/yD/22xevJbPrQGaKLByCwwxuq8vOpNEZcP5bvSnHB0wYWE+lfOgzl1y31dD BCGQ== X-Gm-Message-State: AOAM533WjMpceiqqQX9v7eYDKZ5m9k8whlsTFq1Qwxeld3Fa1cutu0dr 2bzhulKkYBtinFOfrDpS1JlXcg== X-Google-Smtp-Source: ABdhPJzRUmYbyJGZmJg6Yqk42aKpyaRMUXbxlNPTEK2WhaJfvzp/Rwxnr7av9EPW/dLsGsYFs6jjjQ== X-Received: by 2002:a1c:f219:: with SMTP id s25mr19188607wmc.31.1636572275780; Wed, 10 Nov 2021 11:24:35 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id d16sm6250113wmb.37.2021.11.10.11.24.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 11:24:35 -0800 (PST) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: mediatek: mt8183-pumpkin: add HDMI support Date: Wed, 10 Nov 2021 20:24:16 +0100 Message-Id: <20211110192417.4177741-2-fparent@baylibre.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211110192417.4177741-1-fparent@baylibre.com> References: <20211110192417.4177741-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211110_112437_744587_7B4D0F3F X-CRM114-Status: GOOD ( 12.81 ) 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 The MT8183 Pumpkin board has a micro-HDMI connector. HDMI support is provided by an IT66121 DPI <-> HDMI bridge. This commit enables DPI and add the node for the IT66121 bridge. Signed-off-by: Fabien Parent --- .../boot/dts/mediatek/mt8183-pumpkin.dts | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts index ee912825cfc6..d5a6628e9c5b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts @@ -62,6 +62,18 @@ ntc { pulldown-ohm = <0>; io-channels = <&auxadc 0>; }; + + connector { + compatible = "hdmi-connector"; + label = "hdmi"; + type = "d"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_connector_out>; + }; + }; + }; }; &auxadc { @@ -120,6 +132,41 @@ &i2c6 { pinctrl-0 = <&i2c6_pins>; status = "okay"; clock-frequency = <100000>; + #address-cells = <1>; + #size-cells = <0>; + + it66121hdmitx: hdmitx@4c { + compatible = "ite,it66121"; + pinctrl-names = "default"; + pinctrl-0 = <&ite_pins>; + vcn33-supply = <&mt6358_vcn33_wifi_reg>; + vcn18-supply = <&mt6358_vcn18_reg>; + vrf12-supply = <&mt6358_vrf12_reg>; + reset-gpios = <&pio 160 GPIO_ACTIVE_LOW>; + interrupt-parent = <&pio>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; + reg = <0x4c>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + it66121_in: endpoint { + bus-width = <12>; + remote-endpoint = <&dpi_out>; + }; + }; + + port@1 { + reg = <1>; + hdmi_connector_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + }; }; &mmc0 { @@ -332,6 +379,61 @@ pins_clk { input-enable; }; }; + + ite_pins: ite-pins { + pins_rst { + pinmux = ; + output-high; + }; + }; + + dpi_pins_func: dpi-pins-func { + pins_dpi { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; + + dpi_pins_idle: dpi-pins-idle { + pins_gpio { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; }; &mfg { @@ -381,3 +483,16 @@ &scp { &dsi0 { status = "disabled"; }; + +&dpi0 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&dpi_pins_func>; + pinctrl-1 = <&dpi_pins_idle>; + status = "okay"; + + port { + dpi_out: endpoint { + remote-endpoint = <&it66121_in>; + }; + }; +};