Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4442885ioo; Tue, 31 May 2022 04:46:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMZsU+RqIycTQUBZz258Yx3pNCzyk49cPu/zW0z/mkx8UxkgB3kxQ9HPsc3YZ91kL418q8 X-Received: by 2002:a63:1d06:0:b0:3fb:ee92:93df with SMTP id d6-20020a631d06000000b003fbee9293dfmr11247575pgd.458.1653997587305; Tue, 31 May 2022 04:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653997587; cv=none; d=google.com; s=arc-20160816; b=WwgzhgC2TtHc/jVtgLKYN9Cq/tidYXFf4vLCpSiods7zbfnKVGz3IxVuDWK+iw+VvY cT3bxQom2s2Td1/3l2+duqOpo5ZfzBKjN6gjUepCHoR5QIVVFU1gWGYXHssUVFaWhVo1 nqyzqcxSyWu9riFqRxY5igVcDiZqcInobiRuWDVRp+pAMjU72dzXORO8C5K2ez7pL14e JiXS0dsw6NKAv7TDiFdnuotsKYO6ZARW0E7yW+pfc8HMVBXRMfRFDdPPW72/fZ0RX/CY kcaGY8CSNY9Awaezv6cdAhBoQkppuK+DUZBlkp35pFhJNkMQ3Dtgy8k7MfbXIh9wOOWU xj1A== 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=hDUErSF+n1k4cG7IQv0rQoHbdfQHDvgwLI/ub82oI98=; b=0m2JvWyZvUZwINqkmPondBuRhMuz1dxIZ45oNXI3K7xczxzVSQ6VUUXI7OPHzM1MAx CKDqH+KsDPwKZcsXesutHdb6j6jQb9yfXKpONtH3HCQG0zML7Bn90NaLjtNMUsZvfpdr EMLPxQ7bsi4g0pDsGzdM+z3GAkgYI2m5wkzd/A6A1y1t5AfdCGuGsGN+CX1yHnXpwt7j Or9D8bMj0KstGWNDLfDkuPbQw5GgLp9FwJkScEH0S6zJAkyMYGD17OaqsWcQr+02Hrll c5f+OnZVw8XnqHghcAuuuWBNzKJQJfB4LHMKa0bX3Eq6Y0F6/R7riPWr9EGAwvEnR7E+ zAiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Z+INMB7K; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a637c08000000b003fa34f037f9si20148813pgc.436.2022.05.31.04.45.59; Tue, 31 May 2022 04:46:27 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Z+INMB7K; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239794AbiE3VHB (ORCPT + 99 others); Mon, 30 May 2022 17:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233673AbiE3VG6 (ORCPT ); Mon, 30 May 2022 17:06:58 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AE39101EA for ; Mon, 30 May 2022 14:06:56 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id c5-20020a1c3505000000b0038e37907b5bso207962wma.0 for ; Mon, 30 May 2022 14:06:56 -0700 (PDT) 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=hDUErSF+n1k4cG7IQv0rQoHbdfQHDvgwLI/ub82oI98=; b=Z+INMB7KL0W830LFilyrsOF47m5fBPC24BsIx5pOXHkuenlM43QGXwtrPRW1zUE+ly VTNOcRCRqFhsdKGfXsRD+g+dvTczYTHlIZiJUmH5zqCwXCTkd7ryV46wFVj2txHieIQ9 Ytt5usk4Djvi/TGBK14yHatzMqavoxJ0Mq/+E8l3/XQsLHKhEeHoYi8/0KZ5tdc9HsIz K13j054GXV3EN4RxvR1NPin+SiYjZQRLkJixUUg5GPnicknqsry18NZw+Zz/wpeByNfV MuTZ5qad/P4rAlAqBBH7gsWWT0vX7QqJ9WZBZfQwvf0gpFI9xMcMjneUb4SK50O/N8xV bL9w== 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=hDUErSF+n1k4cG7IQv0rQoHbdfQHDvgwLI/ub82oI98=; b=K1rm+8mgEY5GyLrF/JULpSWgLbQtEf5Tz5NI/mNeRY5gD+0/LVs6S7XdEXZ7726ERz xay/ToaJ7rOX44A0SKZ3qTIS3I+n0WxWk9YZi5ypie1MPc+uyt0aQIV0IIlNKKL96dUN Z5e3Anf3W1BhNjGOLFCuyYYboYlVpZuDCSfIL2iS9zh5oWD/Z0bIoJkKTC4cEWhvnBWF YlsYb4EgUPpyUeQa4SU1gBhTMd4NHPLPxyKV52Z+neMWdcxQyvKXj3vSlltMdP33mlmj BRE0g8Q3dz66l8zLPC83u0JSrA+Nc7CngYhQyvWEY8DhdxHX9tLmRIEFas3LtZcBd3zU M4lQ== X-Gm-Message-State: AOAM531qmyXi21Eopljm1Pc/lQOSNRH2B8oZ+A8D5VbTDpJyXRsrhKWG Ezb8zT10Ftzq///X3e5yQEc+tw== X-Received: by 2002:a05:600c:190b:b0:394:880f:ae2c with SMTP id j11-20020a05600c190b00b00394880fae2cmr20118086wmq.79.1653944815073; Mon, 30 May 2022 14:06:55 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c15c700b003958af7d0c8sm270910wmf.45.2022.05.30.14.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 14:06:54 -0700 (PDT) From: Fabien Parent To: Rob Herring , Krzysztof Kozlowski , 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 RESEND v2 2/2] arm64: dts: mediatek: mt8183-pumpkin: add HDMI support Date: Mon, 30 May 2022 23:06:40 +0200 Message-Id: <20220530210640.927733-2-fparent@baylibre.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220530210640.927733-1-fparent@baylibre.com> References: <20220530210640.927733-1-fparent@baylibre.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,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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 --- v2: rename pinctrl node names to not include any underscore .../boot/dts/mediatek/mt8183-pumpkin.dts | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts index ee912825cfc6..10b2c0500219 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,67 @@ pins_clk { input-enable; }; }; + + ite_pins: ite-pins { + pins-irq { + pinmux = ; + input-enable; + bias-pull-up; + }; + + pins-rst { + pinmux = ; + output-high; + }; + }; + + dpi_func_pins: dpi-func-pins { + pins-dpi { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; + + dpi_idle_pins: dpi-idle-pins { + pins-idle { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; }; &mfg { @@ -381,3 +489,16 @@ &scp { &dsi0 { status = "disabled"; }; + +&dpi0 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&dpi_func_pins>; + pinctrl-1 = <&dpi_idle_pins>; + status = "okay"; + + port { + dpi_out: endpoint { + remote-endpoint = <&it66121_in>; + }; + }; +}; -- 2.36.0