From patchwork Thu Sep 19 09:41:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13807601 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 40908CE8D64 for ; Thu, 19 Sep 2024 09:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version: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:In-Reply-To:References:List-Owner; bh=dDumzV+jL/bjpzSzdfVGLcrQ8rzaUr73VYrD39mPLZs=; b=ks7pAV+YJgQsxjq2b1ZW8p8bo4 fGhMrO2+W4NQvLFsxtO+PRip5raK/3O0hO7M7xFetEjtNm9iasMGZbg0rlEDoM4AMfoyTviHU/zuu yZA/Fwzr/kSC7EwnzEa8Gre6JnU7ksmVFzfufsyIbv5karvsi3COtapJCFLTNAHDde0hsdSILi9Rh 7t30uSWq25AaDJLjSZOWZ7uFgkeWG1/YADXJ0lOMfhKvlELhiDEd2UWGfjX5WnkhX3HBqZJBNbPN2 Wz8ZWOhTqpPJgytOak5XcFGVcf3KS/3wi8Tu+1DqV+f19IUXTshaMTmfwgXl/ESJQrujMskgSENz0 4zV4XHtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srDhF-00000009xFM-2QfV; Thu, 19 Sep 2024 09:43:33 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srDg8-00000009x3G-0BbE for linux-arm-kernel@lists.infradead.org; Thu, 19 Sep 2024 09:42:25 +0000 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-7198de684a7so427322b3a.2 for ; Thu, 19 Sep 2024 02:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726738942; x=1727343742; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dDumzV+jL/bjpzSzdfVGLcrQ8rzaUr73VYrD39mPLZs=; b=VrpLh22D47fy9KNe1SGV4j+Qn4fhASvMWEK9/gJ4Ob4LKkn+1u8t4mk6DF2W2Mw71i kgWyQa1umYy1pAv2aD0o1a3biZAq0kaThD3OD+EXMzvOG75lsx54+T8vLeOhx8SRa5Q0 t0rndBJDJvpZC+rhauwpXkfP63HYWQzxMLKno= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726738942; x=1727343742; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dDumzV+jL/bjpzSzdfVGLcrQ8rzaUr73VYrD39mPLZs=; b=A3A6omjVhud4D7T1o25MSRgGPVBmGmWV88Cbv2aNHDwMmPytYGoGpKqZhpdPA789oz 636hE3R1fcrrrhNO8Qej3fmXFsPZ3iFR8L9gLww2mIrZAeFk2RdhnNXLoj2pS21Ymn5B CBxt+fhAbbLWbqo3K5fnUGv5PQ3hUtaQGtOBy2614mWPWj26o6i/oIYaeX4HuwFTcOiP vBJrVFjG1YYNkLaX4DmMm9sMuUb6D4qhBkOBYhLA8NiojbCWsR651fPnbVV7HyKmGIcH l2FUJ+JrKxR4JbagNawLC1n/Q75+AMrp1ehD3o1bXcNSnA1DfTe/IotXDpQCg7ZiMEf+ xsew== X-Forwarded-Encrypted: i=1; AJvYcCUBf9uXyvQO+N3aURV+CA4htFerw+icyJhOJeKRleyOGhgjO9Ie3IAzdGFCUQjn6zYwfezNP3QGwi2qk0KiqAV0@lists.infradead.org X-Gm-Message-State: AOJu0YxG3bysEQq7JRMzU118dQ06VP9XV8o+YZipFPJ6HPwpllZLZBCX JXddBtCbJf4jUZk7+qoBU4MVELgc5pwz/eYnGhjZ+jjrTJWEAyWXb7dvizpXbw== X-Google-Smtp-Source: AGHT+IF2vMJ+2AOCj5R87zBh9VHuLayxTQFzkC/Vn/4crABU7xxMMc8HPnxxeHtzrF1F0wZet9xAAw== X-Received: by 2002:a05:6a21:398b:b0:1cf:658e:50fe with SMTP id adf61e73a8af0-1cf75efe88dmr36657324637.29.1726738942615; Thu, 19 Sep 2024 02:42:22 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:457c:125e:bb1f:8cd1]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944b7ad2dsm7913170b3a.101.2024.09.19.02.42.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2024 02:42:22 -0700 (PDT) From: Pin-yen Lin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabien Parent , Pin-yen Lin , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Subject: [PATCH v3] arm64: dts: mediatek: mt8183-pumpkin: add HDMI support Date: Thu, 19 Sep 2024 17:41:49 +0800 Message-ID: <20240919094212.1902073-1-treapking@chromium.org> X-Mailer: git-send-email 2.46.0.662.g92d0881bb0-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240919_024224_161936_C8EF78BF X-CRM114-Status: GOOD ( 13.40 ) 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 From: Fabien Parent The MT8183 Pumpkin board has a micro-HDMI connector. HDMI support is provided by an IT66121 DPI <-> HDMI bridge. Enable the DPI and add the node for the IT66121 bridge. Signed-off-by: Fabien Parent Co-developed-by: Pin-yen Lin Signed-off-by: Pin-yen Lin Reviewed-by: NĂ­colas F. R. A. Prado --- Changes in v3: - Update commit message and fix formatting issues - Fix the label name of vcn33 regulator .../boot/dts/mediatek/mt8183-pumpkin.dts | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts index 1aa668c3ccf9..61a6f66914b8 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts @@ -63,6 +63,18 @@ thermistor { 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,43 @@ &i2c6 { pinctrl-0 = <&i2c6_pins>; status = "okay"; clock-frequency = <100000>; + #address-cells = <1>; + #size-cells = <0>; + + it66121hdmitx: hdmitx@4c { + compatible = "ite,it66121"; + reg = <0x4c>; + pinctrl-names = "default"; + pinctrl-0 = <&ite_pins>; + reset-gpios = <&pio 160 GPIO_ACTIVE_LOW>; + interrupt-parent = <&pio>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; + vcn33-supply = <&mt6358_vcn33_reg>; + vcn18-supply = <&mt6358_vcn18_reg>; + vrf12-supply = <&mt6358_vrf12_reg>; + + 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>; + }; + }; + }; + }; }; &keyboard { @@ -362,6 +411,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 = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; }; &pmic { @@ -415,3 +525,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>; + }; + }; +};