From patchwork Mon Aug 19 12:05:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13768301 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 4E2FDC3DA4A for ; Mon, 19 Aug 2024 12:16:16 +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: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:In-Reply-To:References:List-Owner; bh=kb1adcHc3E8U+gSdouMJyc+8B8S5nqfJYg6YgFfK1Po=; b=oLNNWkxDGctDdNaNxzLbLErlHY uZptJNnvq8knyzwfS/269Xp0ESPV05i0BcN1YUxV3omFOo5Qhgy/aQA2FYjwQRLMYe3ZBHmTDMjTV fE7DLmbVsu8Z54BP2MNqovNFRZsSVv2ZBJfWpKV+3pMPHffXgZOQW5uoZMsS5Ra7WfD0/zEKCj2uT rJlTkCF5ABVg7Lui2Eq7PB5RHTlXQbQd+hzurUYU36f/H+DfHwUT3UPq2BNbfjI2mqeCwxJPVsc9G I76lfJd10KkogJXoAUMNkWNRnpnyPRf4jnVTp42/Km4lckROpbkqznn+e1ZI9k5FNUmQ2E6Niyvep x67IoMOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg1Ip-00000001Oep-2T0e; Mon, 19 Aug 2024 12:16:03 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg1Ar-00000001Mbg-3PJ8 for linux-arm-kernel@lists.infradead.org; Mon, 19 Aug 2024 12:07:53 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-202146e9538so21273805ad.3 for ; Mon, 19 Aug 2024 05:07:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1724069268; x=1724674068; 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=kb1adcHc3E8U+gSdouMJyc+8B8S5nqfJYg6YgFfK1Po=; b=LCxJi79LnANgZXC6d0QpfJQNeoc5InEHKokSWojNk1XElD1Q3sYJL7FQPAxwzRNQyn QpKaJCLhF3Sq8i26rmcCTtXvpm1itU4Tr4FOkFcxQZyr8W9ID3GgklQleFwEheOK/vUu k8HPPOu91obsbGV6cuzhncM+IbPjofzd2GyLU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724069268; x=1724674068; 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=kb1adcHc3E8U+gSdouMJyc+8B8S5nqfJYg6YgFfK1Po=; b=U8NwYuBVDzJq7uWdT8Xw1pRvKYu25SFX6hq4DJNekCTpnAwVtDaW31HwTqe5bZNX8X BwtbDfiU+kVjP34QbLEwr9mxSpMa0qqZuHZEgQy0/rXr2MJ4d8BknfKvgL5ibG+1BnjP aTqBWOV3WBfMT5iDCEe4UcUmUt6M6eMbpulIeYfMFpJfbo0q59vvJtfhJNtGOMLYaSlZ wDWNFx/4HMXSShm0OzT3UkWFdnEAyi1vR8sbeV0uCWFP57vLDhQtk1PK4g30up3M6GCM Br7cTgS7FvGY9C766uXb8arN9reWdAe93VUQWv18/LcLOOVzA3NSChz4+PFqe2r8TmZd rWqw== X-Forwarded-Encrypted: i=1; AJvYcCVz4/YL+0QMbRpdlIl2IGs55Wl5G3pkS2IqJYngvIQB4bJRkpmaruBxTw6RsFIz8Ts59N2t9/YBJ9I5CpRtH2S7bQpCtydDF+E7erHPkThAVsR7vZw= X-Gm-Message-State: AOJu0Yx0nu2Y0U9JiL8uH6mjCIhW6nCQW7sggaP5IWMtACetA1uX6Pt6 DJ5opHrXwVt91Codvo58WZQVfq27ctlbFDwhtNXLqGsYeUKRDPBWo/pb3Vwv6tfWlNWsOIL/px4 = X-Google-Smtp-Source: AGHT+IEruytxR9BL+HNBSd/NfoQ9M+d1X+XJ4kW9Kd3kJNr04j3cPKnLo1htQAN7DL5PhvB2Vt1A0Q== X-Received: by 2002:a17:902:f690:b0:202:47ca:fa1d with SMTP id d9443c01a7336-20247cafdd4mr34834745ad.50.1724069267993; Mon, 19 Aug 2024 05:07:47 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 05:07:47 -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), Pi-Hsun Shih , Jitao Shi , Fabien Parent , Pin-yen Lin Subject: [RESEND PATCH v2 1/2] arm64: dts: mt8183: add dpi node to mt8183 Date: Mon, 19 Aug 2024 20:05:55 +0800 Message-ID: <20240819120735.1508789-1-treapking@chromium.org> X-Mailer: git-send-email 2.46.0.184.g6999bdac58-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240819_050750_034207_C496BC94 X-CRM114-Status: GOOD ( 10.41 ) 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: Pi-Hsun Shih Add dpi node to mt8183. Signed-off-by: Jitao Shi Signed-off-by: Pi-Hsun Shih Signed-off-by: Fabien Parent Signed-off-by: Pin-yen Lin --- (no changes since v1) arch/arm64/boot/dts/mediatek/mt8183.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 267378fa46c0..266441e999f2 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1836,6 +1836,17 @@ dsi0: dsi@14014000 { phy-names = "dphy"; }; + dpi0: dpi@14015000 { + compatible = "mediatek,mt8183-dpi"; + reg = <0 0x14015000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; + clocks = <&mmsys CLK_MM_DPI_IF>, + <&mmsys CLK_MM_DPI_MM>, + <&apmixedsys CLK_APMIXED_TVDPLL>; + clock-names = "pixel", "engine", "pll"; + }; + mutex: mutex@14016000 { compatible = "mediatek,mt8183-disp-mutex"; reg = <0 0x14016000 0 0x1000>; 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>; + }; + }; +};