From patchwork Mon Aug 19 12:05:56 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: 13768303 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 D3003C5320E for ; Mon, 19 Aug 2024 12:16:53 +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: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=aeveSHt2Dhl0OrC5qhe/Wqr/CxYyS8zrYtet/bJxa3I=; b=ty85O6WAzn4Wiocy8ewT92SdPY kAgbo3iJQbPY4GsScnYoNGs9gvuYC8gbkc2Of4PHaHNubEJ91eeK/frIVs1NWLitAc/EkOThyQatx D071vo55WBm9pGTVgi9Kkjc23/ePQG/bqelKCSnprdULsrnZfryrNtoW8CWEQPlZzm9H1XluqhfPf nemdgBXxm+uz8J3QfXMCxwehnCyyYOGLaA8bD+Hxl3+2T6eViqNPm50CyZ2i4E5kZPUsTFh2FTdKF LAGzeBlGYe+sCUDXAQsjQKnIBG6HhOpffM9BcwzpSaSLH52kcIhXO6sfK3oddq2tNkD37tMft/p7l +t90k61A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg1JT-00000001Ojs-0TL8; Mon, 19 Aug 2024 12:16:43 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg1Ay-00000001Mdq-1Oxa for linux-arm-kernel@lists.infradead.org; Mon, 19 Aug 2024 12:07:58 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2023dd9b86aso5972065ad.1 for ; Mon, 19 Aug 2024 05:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1724069275; x=1724674075; darn=lists.infradead.org; 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=aeveSHt2Dhl0OrC5qhe/Wqr/CxYyS8zrYtet/bJxa3I=; b=hfaDf95GCt0CDE4iqaunnO7d0iBoyuLFPn66a7kFI5DhZ6+66hI7I0/T/6iIs3RHIT QP4Y29xAlHwWWzipKGhEI9XhFaFHY5y5EzoiMcZZ4DkApDJBNiVcJRK7R2pwPf2xqcYV S27b4lh74C1H7v9TLNkXKGQ+Zp3yo5Z/qHHVM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724069275; x=1724674075; 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=aeveSHt2Dhl0OrC5qhe/Wqr/CxYyS8zrYtet/bJxa3I=; b=ZqiBYmghXeomz5ufjyKO/Ot6Dp7SVRKbZcf3hdsVJC2eCq5aD7ARMozDj3Gx/QZqhR 5FliYdIzjE2dcTG4NBxAQ6dHF4JZwnTZv4RgB21I1cY37mJle0F9lDVqQKDjsLywy16C cMN4BWMHrOCGpJ16wv4fSRJMQHFr/oxtPf4XCg3iWutJWcz9r5NDnvcz9ccOpbko5ztQ c2h9GG3YisFWSkQp/VG+BpQLQGaJmSblX5yKCYfgPM44umbow0C9CJmhPJc23Zlw6p37 fiQ3IOTV+BPSajRVZkLf5serI2+IwXE69hd89wy2PD9cFopqpaHtD3u8YlyP7Nu2Fyej NXCA== X-Forwarded-Encrypted: i=1; AJvYcCX9w/+/ZsoWR/wTyjwLWdy0y3AQNTQhaRZHvgrtRY0vHMUSU3DlvEN36HB52Pr0g/Wha2jmcjY51a3LjFgRXVjrt7oCpTFrCx5HWynpB2FS2V6Q+6Q= X-Gm-Message-State: AOJu0Ywg63e7KJ7A2sytsTopTg6gmPfGFY4MRUAddf6FQ2IuWqYg+ySX tN0HvChIIV1JmA2vIMCWAZPPuD6FS2+wmCrgV+GwoxWwlANm/F2e4/onWJ1E6A== X-Google-Smtp-Source: AGHT+IF+bdj7mCBrUTJIkD7ifKIfTYDhTVpu/VvDtc8O/oxVCH4g0Le2wu0pqP/J1FsdhwQ99TPpDA== X-Received: by 2002:a17:902:da8b:b0:201:fac8:ff67 with SMTP id d9443c01a7336-20203e9b6c1mr107454945ad.17.1724069274816; Mon, 19 Aug 2024 05:07:54 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:923a:77c1:913c:bcb8]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-201f02fab02sm61802005ad.48.2024.08.19.05.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 05:07:54 -0700 (PDT) From: Pin-yen Lin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org (open list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), Fabien Parent , Pin-yen Lin Subject: [RESEND PATCH v2 2/2] arm64: dts: mediatek: mt8183-pumpkin: add HDMI support Date: Mon, 19 Aug 2024 20:05:56 +0800 Message-ID: <20240819120735.1508789-2-treapking@chromium.org> X-Mailer: git-send-email 2.46.0.184.g6999bdac58-goog In-Reply-To: <20240819120735.1508789-1-treapking@chromium.org> References: <20240819120735.1508789-1-treapking@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240819_050756_440782_CAC8062F X-CRM114-Status: GOOD ( 12.24 ) 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. This commit enables DPI and add the node for the IT66121 bridge. Signed-off-by: Fabien Parent Signed-off-by: Pin-yen Lin Reviewed-by: NĂ­colas F. R. A. Prado --- (no changes since v1) .../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 1aa668c3ccf9..ecc237355b56 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,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>; + }; + }; + }; + }; }; &keyboard { @@ -362,6 +409,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 +523,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>; + }; + }; +};