From patchwork Wed Oct 2 11:41:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819689 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 358C8CF31B7 for ; Wed, 2 Oct 2024 11:49:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=JAY/dXsUs9CkME3PSfZ8rKUo2mav2/+CmW1Y+16arGU=; b=FTXCoFAqeiJd4F +rXmFNk7pl0M+FWKty9C0fHfDzqkdZiDEcjf5RcTH18Pmd9WU0j8MRpzhXC3Y7bbCKi5YEQUb0gzC Epn+lJixww5LwbEkMFPG9AYmAHU2/cFvBwT1E3iXdA+7oD+n0T1z7YeWQwI3qD21pksClVW8EJs8X cNhcQtOeR07AVdVk9LSLwxUFV61V9/ESWOzULjhQi9Shaaw/UoEkKAdUI+USFI+H42q1GQuXBCRLg K6ocWZg62xJxEOVJYCEQOK1GZjfEOPG6oh6VcKRVc4n22sC3fqlI+mg1atvlcLPHB4+T4Ou++7hM0 b4lhF5SiM6Mv95lNC3pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxrA-00000005ifo-3UTs; Wed, 02 Oct 2024 11:49:24 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxoi-00000005hry-2Kr4 for linux-mediatek@lists.infradead.org; Wed, 02 Oct 2024 11:46:54 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-71970655611so6073655b3a.0 for ; Wed, 02 Oct 2024 04:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869611; x=1728474411; 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=JAY/dXsUs9CkME3PSfZ8rKUo2mav2/+CmW1Y+16arGU=; b=gI0Ce8m4/GpZxVGpV4P/C2qK2IXVPjB3hjVJ9S28z5O/DcC3ihyyeDGh69s2sWnG0H o2AXPAexFVKHTGAZzDuWXWjm/DqScRVCoAkDeluh2LJNZESkocqtE3KzxPcmQswZp9OY FFY6kLVfnJFOrCzJI+LPWIBb+uG3P6MBziuI4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869611; x=1728474411; 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=JAY/dXsUs9CkME3PSfZ8rKUo2mav2/+CmW1Y+16arGU=; b=IABXsVtx3OSyHBOF/Rzx2gbAAnQJ3nELW96cIKObvau3Ly2Xbtj1YSvK/LfOnozrSk NnYtCVgLtpU1am3KFOzgKVGO6HiyiR+6jxUyqA8Qp/vGjrZnZpUeUOIMGZZYrRfF2+1A WlFOC+4WcegVBMohwA0HZsicg+rC4bMjmaEqVriVo67bztsFFj7O0Ra6ipEZv/j2qrTz OEa5fcz9L/KozDthIs6vQ7t6sNSt6WfkoDyEZr5+D0ZPuiu2IBUehsOGWTd1UmVy+tfR 9ImFG019Htj7qsL6GzKD4qIKgg71mK94KcMUa/xmTIGMyGVC9+9lvN05DqpixLjCorvT 6qkA== X-Forwarded-Encrypted: i=1; AJvYcCVoNmupRSIAvsTkJ1DyVn9EIdHs6ykstx3UQAZyvEPiVC93a4m1mak9bj5YqUWKeJymarlwY+nkjut+vC9PGg==@lists.infradead.org X-Gm-Message-State: AOJu0YzQZToIvH/Sxw6K7WRFojx09W1KLo1TVyvKqzhhH3RCcCmux6Rg ZdgqorCxA0CAgaYjRDk/KyIP3pyncOXoMtGxODKeLX8Povvwgx0FWbI7JOaXJA== X-Google-Smtp-Source: AGHT+IHSlrdMuVKexAIEnpb0LlSgDCgS0LJ5jiyqKYhPJ24XMB513q/IRWvodzvlblB9Cry7cgSZxQ== X-Received: by 2002:a05:6a00:198b:b0:717:950e:b589 with SMTP id d2e1a72fcca58-71dc5d429f1mr4913086b3a.19.1727869611476; Wed, 02 Oct 2024 04:46:51 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.46.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:46:50 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH 1/9] arm64: dts: mediatek: mt8188: Assign GCE aliases Date: Wed, 2 Oct 2024 19:41:41 +0800 Message-ID: <20241002114614.847553-2-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_044652_619917_1DE08507 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Create and assign aliases for the MediaTek GCE mailboxes. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index bf15ac9901da..10195a4e4e9d 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -23,6 +23,11 @@ / { #address-cells = <2>; #size-cells = <2>; + aliases { + gce0 = &gce0; + gce1 = &gce1; + }; + cpus { #address-cells = <1>; #size-cells = <0>; From patchwork Wed Oct 2 11:41:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819691 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 202C0CF31B8 for ; Wed, 2 Oct 2024 11:49:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=Zqcv24UnbKvuBwfI70WgH+r7YGyISN8r86eb90rkpPo=; b=u9hDUYpDoW7TZW 08h+b/Xr2K+6d9rGM3Z/+pbac4xqb5C3PNayMzIG8EwHeha+Fpg/L2z2slrBuveitQXU/m5z5l3AV r93OkT1Y24VlBl3M59bIYL+P6s2nuTZfAT8x6ALK0wXAAIKWO5bqXiRteTJfaZdF4c+mJ9r2F0I3F 8HS4n4zLMFetICGDAme5ackCL90wRMtaAEK0ksIQcaIgjH+kubq9BYWnY/eBKBiEwDr3mYho+MQK2 73DxiPYmirFGg85fS2mokllnNlsdJWLG6GfIW4Ye+xZwFYbLL8bt+CsnFwxMRvJeI61imlg7CahBu ekols5N9R8LDgFfCuKJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxrB-00000005igT-3UEP; Wed, 02 Oct 2024 11:49:25 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxok-00000005ht0-486B for linux-mediatek@lists.infradead.org; Wed, 02 Oct 2024 11:46:56 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-71970655611so6073674b3a.0 for ; Wed, 02 Oct 2024 04:46:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869614; x=1728474414; 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=Zqcv24UnbKvuBwfI70WgH+r7YGyISN8r86eb90rkpPo=; b=k6ETncH57Z6B0g0oqgvZ/Oyi9CUUMtOrlhaZdoIvGqaLdLGLS9k5iK484ZIsufgidZ cqmd3HngUYSDlGEAcJ6LdRhZmGeWQPDixyjcv9I95tGXHsYid2gsJvAzOD6FgnXNjPZO C5bbhldILAMATbQT8SaUUTNwylvmxPUHVJsuM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869614; x=1728474414; 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=Zqcv24UnbKvuBwfI70WgH+r7YGyISN8r86eb90rkpPo=; b=WIkmdqW0mzXA5GCl1giAGTtuMjg6Y8Yztf7wLoSEZYqE1XdIy64eCdwMVxjUFvdIc1 OBmtXj2AJNUDX+psqZ22HS+grcYo51XauzZ3F3BXh2h+QZ0PkHNYphG8miz5D91rt6qh hKr25nsHVIe5+SYzrz4epGqp2LHjbDl56IWMJZQSKLQpq/61W4O029OWAEDm2RIVaiA6 GNuFDbaKQVD20xSCAooaJnZthAejs/o8vW4tf1B6aLeAGwFiTQ8yspq7rdC9hf+q7AQp WKkp85Q6bjQDJa2abkqD/Cn1/IrebD30xET+p01oyUlarsQZs67+e4nxBaJv2MTYR8n0 cmZg== X-Forwarded-Encrypted: i=1; AJvYcCWKC3REAUff33LLJVh/fAViFaAhTwYt6W6LlxZuBwjanZbHpErXhxntDfIuxnmQCqSL0KncY5zHiiYUGIkG2A==@lists.infradead.org X-Gm-Message-State: AOJu0YzNBjZpmZqHjtnQIgC3j8aXBoFdG7faZii0wabTS3lwO2wsz/qK grcmPAM1u6IB69d4ZoStiL8zX3y5CWe7UtDqIhU4/XW7I/UDknBBlzb20LjvyA== X-Google-Smtp-Source: AGHT+IEwomWwgrAa/H+NP+99BGuS6Y7BDAEuXzdKPzHGURnkcArLhqtRMWXVinDRUNBZF2+LAcqmbg== X-Received: by 2002:a05:6a00:4f90:b0:717:8deb:c195 with SMTP id d2e1a72fcca58-71dc5d429cbmr4642019b3a.21.1727869613991; Wed, 02 Oct 2024 04:46:53 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:46:53 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH 2/9] arm64: dts: mediatek: mt8188: Add PCIe nodes Date: Wed, 2 Oct 2024 19:41:42 +0800 Message-ID: <20241002114614.847553-3-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_044655_045651_3EB0BB2C X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add PCIe node and the associated PHY node. Individual board device tree should enable the nodes as needed. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 62 ++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 10195a4e4e9d..9431f3c5c228 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1763,6 +1763,53 @@ xhci0: usb@112b0000 { status = "disabled"; }; + pcie: pcie@112f0000 { + compatible = "mediatek,mt8188-pcie", "mediatek,mt8192-pcie"; + reg = <0 0x112f0000 0 0x2000>; + reg-names = "pcie-mac"; + ranges = <0x82000000 0 0x20000000 0 0x20000000 0 0x4000000>; + bus-range = <0 0xff>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + + clocks = <&infracfg_ao CLK_INFRA_AO_PCIE_PL_P_250M_P0>, + <&infracfg_ao CLK_INFRA_AO_PCIE_TL_26M>, + <&infracfg_ao CLK_INFRA_AO_PCIE_TL_96M>, + <&infracfg_ao CLK_INFRA_AO_PCIE_TL_32K>, + <&infracfg_ao CLK_INFRA_AO_PCIE_PERI_26M>, + <&pericfg_ao CLK_PERI_AO_PCIE_P0_FMEM>; + clock-names = "pl_250m", "tl_26m", "tl_96m", "tl_32k", + "peri_26m", "peri_mem"; + + #interrupt-cells = <1>; + interrupts = ; + interrupt-map = <0 0 0 1 &pcie_intc 0>, + <0 0 0 2 &pcie_intc 1>, + <0 0 0 3 &pcie_intc 2>, + <0 0 0 4 &pcie_intc 3>; + interrupt-map-mask = <0 0 0 7>; + + iommu-map = <0 &infra_iommu IFR_IOMMU_PORT_PCIE_0 0xffff>; + iommu-map-mask = <0>; + + phys = <&pcieport PHY_TYPE_PCIE>; + phy-names = "pcie-phy"; + + power-domains = <&spm MT8188_POWER_DOMAIN_PEXTP_MAC_P0>; + + resets = <&watchdog MT8188_TOPRGU_PCIE_SW_RST>; + reset-names = "mac"; + + status = "disabled"; + + pcie_intc: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; + nor_flash: spi@1132c000 { compatible = "mediatek,mt8188-nor", "mediatek,mt8186-nor"; reg = <0 0x1132c000 0 0x1000>; @@ -1775,6 +1822,21 @@ nor_flash: spi@1132c000 { status = "disabled"; }; + pciephy: t-phy@11c20700 { + compatible = "mediatek,mt8188-tphy", "mediatek,generic-tphy-v3"; + ranges = <0 0 0x11c20700 0x700>; + #address-cells = <1>; + #size-cells = <1>; + status = "disabled"; + + pcieport: pcie-phy@0 { + reg = <0 0x700>; + clocks = <&topckgen CLK_TOP_CFGREG_F_PCIE_PHY_REF>; + clock-names = "ref"; + #phy-cells = <1>; + }; + }; + i2c1: i2c@11e00000 { compatible = "mediatek,mt8188-i2c"; reg = <0 0x11e00000 0 0x1000>, From patchwork Wed Oct 2 11:41:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819694 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 6AFB4CF31B7 for ; Wed, 2 Oct 2024 11:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=lLxnIBg1s/2Zk6Wq5rMoMKrQWoBI+Wl7X5KlhfrQsNI=; b=sCdtyBQwWdpxgw egtih4SM0iJvJaE6/iY5H0BOMg8gYKGSPhEoZjSFIWAFOi21u2ciGm8PCQtzfmIg2Ma4Ae6iFE18o ynW/HzaKkR+zhKXJCj2ZyJk+0I8CQzJWfDk/3RPZKuI7WwBx6joCYeBD843Ki6cwuB+3YNAOAETiY 6Tuy7U3T1I2vQosBDVYUvC85VQCxT+932k1hyE+74FYLxcwBtCUEJYt+Lu2CEvZs4NG0zvwywIpzM hF1tFipp832Dv1sJcyiIehjpsqnqzujjz44t9eM0HHKsE+j8pANIhFWI6ceSEih32WdM34e2VOrzj EbCuGxpOC9RGxJXyFmvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxta-00000005j7V-0Dv7; Wed, 02 Oct 2024 11:51:54 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxos-00000005hvK-1bl4 for linux-mediatek@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=lLxnIBg1s/2Zk6Wq5rMoMKrQWoBI+Wl7X5KlhfrQsNI=; b=W/IM2BIpnUXeWjeh2Ur25nBJP3 o8wyKjPWJik4VYozBWaz/zlUA0tUeR18M0XIv+Tfe4wDz7rDWv+6PWX+088WjjGNbO6OfXqjlXBhF w7IiMw/q/dBvRgjuh1s8pfS07OBPev9zCcXhDK1lNsispsYkQWDm8Ixv6GSnQmrnGgLy1DrvK0Oii ImYQkNG/UqAjgDV4UoX080P/3J+Ql674AO5v71ClsLUgC0grWa+3SN9PZlBrEUMBE1xLVTzbJJJcb JZFImAO3MeMF3ELZrp0cWc4760kxPVqJenE6KO4fimI5cJUs4Hz1SbwlgaV5GOBsQlMBHXA4+PBWB wMbKzH1g==; Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxop-00000003TiN-1gd7 for linux-mediatek@lists.infradead.org; Wed, 02 Oct 2024 11:47:01 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-718d704704aso5549664b3a.3 for ; Wed, 02 Oct 2024 04:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869617; x=1728474417; 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=lLxnIBg1s/2Zk6Wq5rMoMKrQWoBI+Wl7X5KlhfrQsNI=; b=G5TekeACvjlhyxTHtW+LKJBrEoKpvX/hJ+N8Bl5P7yuV4zg5BffSGSP0z67RqNQ7tV +7eAX/ad4VXFGYC2KCe5VePjZf9K4uOlM9IhmVT6H0Aw7eoooW0g/h1eIFEFrUtn86Q3 T3vyez67o0aXyNUgw2JutMaLZb/PR9oN/2ZBA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869617; x=1728474417; 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=lLxnIBg1s/2Zk6Wq5rMoMKrQWoBI+Wl7X5KlhfrQsNI=; b=HGDRh96WTFdwt3pHHMjdZarZ5QFJXCVEq008yYpkohhMS8NU58ZP7RNKwpUOA4Jjak NIPQtyk2rIujpVvLmYOH7U3LOO/aaYMvuEcOJg/5tr7FKHe69EjI7Y06yVzOD1H5scEe ZPxnmGOWyd1o/RcKUwugVw81oIaTqVSjg/1CtHIRfJf4VKZ+D3YakZn5wgpK+KHsMJJG jTz02Ia4sAnRUFWeZHE5r00xTP2sqjnaFL8AkacNZy6m+ow1MEKl5ERJHbpx+ZDnFD9K C/Vnvs8JsbrNG7NQBFTN5RD+1U9tsxknCnVGdkW9K3GgV4HmiyATNpQULxaEMPh5BCol o0rQ== X-Forwarded-Encrypted: i=1; AJvYcCVev9imQroeMdYLCVIvfEr0ypcwPuDRoraklXVuRyQAQlRIFzdevfFSHmIKvFN3kw7qus1SWE4+XgDufDUrXA==@lists.infradead.org X-Gm-Message-State: AOJu0YwRfhpB0su1NvUUVqNFU6HHOjsnaNUvP37E6aTClnWgJy+Rxsn4 at5tkAZoyewVHoOjdNZn84vJ7OWdsZSpbpLYCavkUoHw0VpdyjNpzbFKGExp/Q== X-Google-Smtp-Source: AGHT+IF6JPGrnrw2s+oul2cFZeq8gjPoe0hpHOYv+WskSpMyeJxxVC8NL1KQVuNJIk0Wtb2UocnhVQ== X-Received: by 2002:a05:6a00:1254:b0:714:2533:1b82 with SMTP id d2e1a72fcca58-71dc5d6f693mr4955317b3a.23.1727869616721; Wed, 02 Oct 2024 04:46:56 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:46:56 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH 3/9] arm64: dts: mediatek: mt8188: Add MIPI DSI nodes Date: Wed, 2 Oct 2024 19:41:43 +0800 Message-ID: <20241002114614.847553-4-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_124659_560106_FE6D85E8 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add MIPI DSI and the associated PHY node to support DSI panels. Individual board device tree should enable the nodes as needed. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 9431f3c5c228..ff639418bebe 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1837,6 +1837,16 @@ pcieport: pcie-phy@0 { }; }; + mipi_tx_phy: dsi-phy@11c80000 { + compatible = "mediatek,mt8188-mipi-tx", "mediatek,mt8183-mipi-tx"; + reg = <0 0x11c80000 0 0x1000>; + clocks = <&clk26m>; + clock-output-names = "mipi_tx0_pll"; + #clock-cells = <0>; + #phy-cells = <0>; + status = "disabled"; + }; + i2c1: i2c@11e00000 { compatible = "mediatek,mt8188-i2c"; reg = <0 0x11e00000 0 0x1000>, @@ -2222,10 +2232,26 @@ larb19: smi@1a010000 { mediatek,smi = <&vdo_smi_common>; }; + disp_dsi: dsi@1c008000 { + compatible = "mediatek,mt8188-dsi"; + reg = <0 0x1c008000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DSI0>, + <&vdosys0 CLK_VDO0_DSI0_DSI>, + <&mipi_tx_phy>; + clock-names = "engine", "digital", "hs"; + interrupts = ; + phys = <&mipi_tx_phy>; + phy-names = "dphy"; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + resets = <&vdosys0 MT8188_VDO0_RST_DSI0>; + status = "disabled"; + }; + vdosys0: syscon@1c01d000 { compatible = "mediatek,mt8188-vdosys0", "syscon"; reg = <0 0x1c01d000 0 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; mboxes = <&gce0 0 CMDQ_THR_PRIO_4>; mediatek,gce-client-reg = <&gce0 SUBSYS_1c01XXXX 0xd000 0x1000>; }; From patchwork Wed Oct 2 11:41:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819695 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 0E5CECF31B4 for ; Wed, 2 Oct 2024 11:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=4eL/XnvWSRIF7ErhZle48teJZLAeJmMXd6nPwZPH1JI=; b=xHD93hy3V/wg5V RFRR8MXQHQ/rkOGsmX21yfPraAEHTudaEw1E60sgYfHMlIhn62DzGfEQuM4CtdTkPcR7orIoLw1tp wDRa+m4HLBZHp2BRLqi7IplazppeQG0GnPt7TFcJUIz7nTn/IlJRopcdbYxOOJFs1rSrVohe81xoN Dbp3kyT237oR+3hrH4M/u2F9mICqnFt3gB5JDc2rkBSYls7kKTYpJi3IBhzkFsr0jU2Us3c+GM3bp JsuDe4m0V411GHM9rO0BXzQpi52gZatUmqzn5va5nf2Krk9CXTkS2qCUdvCGEqxiy6JJphUey+0DR +aH6XXMGbA3eh7XXiSYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxta-00000005j7u-1mrh; Wed, 02 Oct 2024 11:51:54 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxou-00000005hvz-0TJS for linux-mediatek@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=4eL/XnvWSRIF7ErhZle48teJZLAeJmMXd6nPwZPH1JI=; b=CMuyy/QDFNzJBiQXa77xSSGCZu d1Bkns869bX60zkgKQzLiwE0mlnBPZ1YltRSM4yzzVlaKWkdFOw6ewNDomzDcp0mGwbZlmwS/qdnJ XeHqQ6W4TPdiFtOlCe5hUzRLSR4+HB7wvKajzTIDN4QY7RORS3uHIUZ894Gq4DFDzyx7cNeb+IAMc GHy41hfy7dae88+vPYVDKqIaL/RH5KQpNCmIjbjqdUl6gpnhcNO/v2Kcz7V8UTom/p3nTB9XMxQNk b+WRp7fHFmlA9caIK1YPZ7vRxouRUjKJVagK54MB6PGPHdRYn6rBQEdcX4iDY6FIB0nGH+uwqLyF2 iGN7mIYQ==; Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxoq-00000003Tif-2q2j for linux-mediatek@lists.infradead.org; Wed, 02 Oct 2024 11:47:02 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-71dd2b6cbe6so144902b3a.1 for ; Wed, 02 Oct 2024 04:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869619; x=1728474419; 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=4eL/XnvWSRIF7ErhZle48teJZLAeJmMXd6nPwZPH1JI=; b=fGTyCAGE5pRkkpIegOg6RCBiOZypSfY3+kNYZ4f+0iQlSCREx6KjEwckTr0hLQTD2p y2t6K/ikHCpnWxckV7mMpjYpvo77CkbXW9CvHaxzPgGK5+YN2DiG76oB7n22yt44DsWz ECJk1mToDMgcOt1K0mcnyXqZVut4wgMepGV40= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869619; x=1728474419; 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=4eL/XnvWSRIF7ErhZle48teJZLAeJmMXd6nPwZPH1JI=; b=VuiPUkp94TWHWKU53aqifqwpIWSH9AnE9xPrjrbliGwKD1XC0pmR6SnkoSAEa9tR2V h8iIAjR7EQu6RQxuELDFmfR08W4c0bLCPOR51ZUZJcqANbFnLwAwa85Se857kkaYWJ0K 0oqfr/Bxn0gGrNq/923548sWT+D9GnL/xkeHExyxddXdjrGxXuOChO+Jxd6exncfj8u+ UYZ297RoKHe3xuUjSkzwVW7I2DSBk1EF/dPBo39sol9YrS5+/RmDKeAfGrjdOZEer7gy +8uCFUhGYkq86/Q8h8w869o5IckFn8liHKpX3qoE3tUL79DE/6Fp4M0B4vHHyTgU0Qzh jEmg== X-Forwarded-Encrypted: i=1; AJvYcCVjAh7OQXTom5LQ22CcYiNwkLrM/2wj/mgdWJbVkAmVT9z4M+v93vZVVhvlAd7S9srtqpgMSf7dux70tnSdIg==@lists.infradead.org X-Gm-Message-State: AOJu0YwZbX7uLAnojzC/mIeC7judeF3O/B8XwJdKymGs8kY92gxhJYkJ z2zuze1Au3WxbB8qfg9/yHhDM8+vTCZzIjiyfAGqnTgI/hCbOXtHpryj34g2ZA== X-Google-Smtp-Source: AGHT+IGlwXsLd9Mr6AKVcGBEFrntudbL/edWj37XdM8N2RuC+afWpz1Bv27KcrpodULuJDiUNFgDoQ== X-Received: by 2002:a05:6a00:9a0:b0:717:8da8:6ec1 with SMTP id d2e1a72fcca58-71dc5d425bcmr4815173b3a.17.1727869619267; Wed, 02 Oct 2024 04:46:59 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:46:58 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH 4/9] arm64: dts: mediatek: mt8188: Add video decoder and encoder nodes Date: Wed, 2 Oct 2024 19:41:44 +0800 Message-ID: <20241002114614.847553-5-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_124700_968039_DA202F94 X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add video decoder and encoder nodes for hardware-accelerated video decoding and encoding support. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 83 ++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index ff639418bebe..dbea562ee8ba 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -2181,6 +2181,64 @@ ccusys: clock-controller@17200000 { #clock-cells = <1>; }; + video_decoder: video-decoder@18000000 { + compatible = "mediatek,mt8188-vcodec-dec"; + reg = <0 0x18000000 0 0x1000>, <0 0x18004000 0 0x1000>; + ranges = <0 0 0 0x18000000 0 0x26000>; + iommus = <&vpp_iommu M4U_PORT_L23_HW_VDEC_UFO_ENC_EXT>; + #address-cells = <2>; + #size-cells = <2>; + mediatek,scp = <&scp>; + + video-codec@10000 { + compatible = "mediatek,mtk-vcodec-lat"; + reg = <0 0x10000 0 0x800>; + assigned-clocks = <&topckgen CLK_TOP_VDEC>; + assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D6>; + clocks = <&topckgen CLK_TOP_VDEC>, + <&vdecsys_soc CLK_VDEC1_SOC_VDEC>, + <&vdecsys_soc CLK_VDEC1_SOC_LAT>, + <&topckgen CLK_TOP_UNIVPLL_D6>; + clock-names = "sel", "vdec", "lat", "top"; + interrupts = ; + iommus = <&vpp_iommu M4U_PORT_L23_HW_VDEC_LAT0_VLD_EXT>, + <&vpp_iommu M4U_PORT_L23_HW_VDEC_LAT0_VLD2_EXT>, + <&vpp_iommu M4U_PORT_L23_HW_VDEC_LAT0_AVC_MV_EXT>, + <&vpp_iommu M4U_PORT_L23_HW_VDEC_LAT0_PRED_RD_EXT>, + <&vpp_iommu M4U_PORT_L23_HW_VDEC_LAT0_TILE_EXT>, + <&vpp_iommu M4U_PORT_L23_HW_VDEC_LAT0_WDMA_EXT>, + <&vpp_iommu M4U_PORT_L23_HW_VDEC_UFO_ENC_EXT>, + <&vpp_iommu M4U_PORT_L23_HW_VDEC_UFO_ENC_EXT_C>, + <&vpp_iommu M4U_PORT_L23_HW_VDEC_MC_EXT_C>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDEC0>; + }; + + video-codec@25000 { + compatible = "mediatek,mtk-vcodec-core"; + reg = <0 0x25000 0 0x1000>; + assigned-clocks = <&topckgen CLK_TOP_VDEC>; + assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D6>; + clocks = <&topckgen CLK_TOP_VDEC>, + <&vdecsys CLK_VDEC2_VDEC>, + <&vdecsys CLK_VDEC2_LAT>, + <&topckgen CLK_TOP_UNIVPLL_D6>; + clock-names = "sel", "vdec", "lat", "top"; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L21_HW_VDEC_MC_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_UFO_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_PP_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_PRED_RD_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_PRED_WR_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_PPWRAP_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_TILE_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_VLD_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_VLD2_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_AVC_MV_EXT>, + <&vdo_iommu M4U_PORT_L21_HW_VDEC_UFO_EXT_C>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDEC1>; + }; + }; + larb23: smi@1800d000 { compatible = "mediatek,mt8188-smi-larb"; reg = <0 0x1800d000 0 0x1000>; @@ -2232,6 +2290,31 @@ larb19: smi@1a010000 { mediatek,smi = <&vdo_smi_common>; }; + video_encoder: video-encoder@1a020000 { + compatible = "mediatek,mt8188-vcodec-enc"; + reg = <0 0x1a020000 0 0x10000>; + #address-cells = <2>; + #size-cells = <2>; + assigned-clocks = <&topckgen CLK_TOP_VENC>; + assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D4>; + clocks = <&vencsys CLK_VENC1_VENC>; + clock-names = "venc_sel"; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L19_VENC_RCPU>, + <&vdo_iommu M4U_PORT_L19_VENC_REC>, + <&vdo_iommu M4U_PORT_L19_VENC_BSDMA>, + <&vdo_iommu M4U_PORT_L19_VENC_SV_COMV>, + <&vdo_iommu M4U_PORT_L19_VENC_RD_COMV>, + <&vdo_iommu M4U_PORT_L19_VENC_CUR_LUMA>, + <&vdo_iommu M4U_PORT_L19_VENC_CUR_CHROMA>, + <&vdo_iommu M4U_PORT_L19_VENC_REF_LUMA>, + <&vdo_iommu M4U_PORT_L19_VENC_REF_CHROMA>, + <&vdo_iommu M4U_PORT_L19_VENC_SUB_W_LUMA>, + <&vdo_iommu M4U_PORT_L19_VENC_SUB_R_LUMA>; + power-domains = <&spm MT8188_POWER_DOMAIN_VENC>; + mediatek,scp = <&scp>; + }; + disp_dsi: dsi@1c008000 { compatible = "mediatek,mt8188-dsi"; reg = <0 0x1c008000 0 0x1000>; From patchwork Wed Oct 2 11:41:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819696 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 24D6FCF31B7 for ; Wed, 2 Oct 2024 11:53:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=M1kvp0VcH49Dd7pUdjrxa7BKtPwxncHiMFzmQPvOHBw=; b=jQSqx+Yjo3DyOe zxqWVcTsR+CR5T4YCZNQ8hbP314zh0cFeqa2GsNGfoSbIB2RgoMX9wNWtyvJf1ggaEaiKFdF1Uj7+ lkFbyWpRMxaxTIsxvd4YiD04fEwcRPd9DcAh42WGinUeD3PkyI1VBN7Z7EZTEaSs8CQ2ygBtppKAh hbWURaVxnC9dAy0C0eM40skjQtRDgU8Vkwe+FE2kCfWmtMACGF0yavFQ5aA+giv16j/fa9IawRKjw SbQYXm3ctQbGBzj91cNA+UuAYoNFg7lv/DSGcmU0gG9mR6vcVzMHnoFM9edCnf6AylX4Cc1vlFsn8 14NZycESVwRwfdM/nRKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxun-00000005jSO-3YiO; Wed, 02 Oct 2024 11:53:09 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxow-00000005hwc-1iNX for linux-mediatek@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=M1kvp0VcH49Dd7pUdjrxa7BKtPwxncHiMFzmQPvOHBw=; b=ZcOqFzemXUvBIpZHYGommw+K5k m4YdNDCQYURpyhpYwIO6ouoII8zvV+8pUdD6D6O2X0kD3hYMYZ3CR/S3XhLk4gR9pq12j32uu5P9Y 58886i24Lim6WxhdYjeOrMC7yug9Q5aKnDkjuKYfRzDUCFM9ejMxTuWBDmNvi2uMA1v18JXblL68G IM/2UuoVAo/WFVzGhDLuJTPbA+2ffXysSCZao28/neRTANStKjsT6oHdOPDw3CMaQoaCtACjcPg8i g3rDOFg9B3WvGBe+6O6hSg/2p/TkkwBoZK5WAZJfHVXYZRgxQIUbJrRlJdqGygRT7x4maHbwW/vR9 QIhh8bjQ==; Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxot-00000003TjV-1rNH for linux-mediatek@lists.infradead.org; Wed, 02 Oct 2024 11:47:05 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-718e285544fso5119875b3a.1 for ; Wed, 02 Oct 2024 04:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869622; x=1728474422; 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=M1kvp0VcH49Dd7pUdjrxa7BKtPwxncHiMFzmQPvOHBw=; b=aKWw7wBqK5J/xgmvP28f3A/sYsZoYjzQUD9Ei9D5CTPsHpbyYPWERFCh8gKnjsbB7u 7KG9o0ZAMRv/zJ6Uqd6dH5iED7dmS3deVuLxvGFUv0UY5HE9sa5n24zWzrporJJA4Qqi FiXK4Ro9eA/SNjjzuGV19JJgrwK2DrSXgrnFA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869622; x=1728474422; 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=M1kvp0VcH49Dd7pUdjrxa7BKtPwxncHiMFzmQPvOHBw=; b=dUimK6x44rswc5gma3JShUSZJDOMsBcZZtzRFENu23kaaYbhj1hclp4kkGNcOERqZw Ibxn0iWTuE6A7N9DAsMUqFWKvXb0Dh1R1aiPq9YoBuccqMZei4iw3OKnlpaUbEBU56Cr Q9/EvNMcbDm1sWSpcQEjvBWLYMWEe1YzFn9/lrS3bWB2B28SZWq7uTk2ydbuDu4d5stM 8dwcGBaC5rCM7U88efJo3DpWbU83nRPE4E21G/ku52Ls2/yNdF+0k/MpuiokvTcYIDgf 6O8AcU6fePT6lg/8HFejqIwD1F8qepkyvHTHsH2w+uKKvX45GkrSiRpLinFJBaXagkXQ f3Sw== X-Forwarded-Encrypted: i=1; AJvYcCUvporJMUr/vGoZSQxkSNa28FJHn8azuGLDkBBozLGcb4nG5Q/dsNBPsbamLLKr7W7gBLvSCSh84qlYLlAnRg==@lists.infradead.org X-Gm-Message-State: AOJu0Yw0JYTe79sctTscSF2XlRjygUZPnyJQ7cN+y3u1tpw3n8HaAyPD SLi3qlUY8n4jlR9sgOTQs3YJarSRS1FSYF7kdxzhE/b3ULeR6nYVao4zbVnLwA== X-Google-Smtp-Source: AGHT+IF6Sqgx1tY88G1e9K/KXewRN0uZSr4m6+KJokFU2mORUavDZPLIjw+Q/puV3XntoKVReVaLgg== X-Received: by 2002:a05:6a00:2d88:b0:714:186a:ae0b with SMTP id d2e1a72fcca58-71dc5d6e144mr4961081b3a.24.1727869621952; Wed, 02 Oct 2024 04:47:01 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.46.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:47:01 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH 5/9] arm64: dts: mediatek: mt8188: Add JPEG decoder and encoder nodes Date: Wed, 2 Oct 2024 19:41:45 +0800 Message-ID: <20241002114614.847553-6-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_124703_637208_F0A8A6D0 X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add JPEG encoder and decoder nodes for hardware-accelerated JPEG decoding and encoding support. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index dbea562ee8ba..c1b057166aa3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -2315,6 +2315,35 @@ video_encoder: video-encoder@1a020000 { mediatek,scp = <&scp>; }; + jpeg_encoder: jpeg-encoder@1a030000 { + compatible = "mediatek,mt8188-jpgenc", "mediatek,mtk-jpgenc"; + reg = <0 0x1a030000 0 0x10000>; + clocks = <&vencsys CLK_VENC1_JPGENC>; + clock-names = "jpgenc"; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L19_JPGENC_Y_RDMA>, + <&vdo_iommu M4U_PORT_L19_JPGENC_C_RDMA>, + <&vdo_iommu M4U_PORT_L19_JPGENC_Q_TABLE>, + <&vdo_iommu M4U_PORT_L19_JPGENC_BSDMA>; + power-domains = <&spm MT8188_POWER_DOMAIN_VENC>; + }; + + jpeg_decoder: jpeg-decoder@1a040000 { + compatible = "mediatek,mt8188-jpgdec", "mediatek,mt2701-jpgdec"; + reg = <0 0x1a040000 0 0x10000>; + clocks = <&vencsys CLK_VENC1_LARB>, + <&vencsys CLK_VENC1_JPGDEC>; + clock-names = "jpgdec-smi", "jpgdec"; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L19_JPGDEC_WDMA_0>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_BSDMA_0>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_WDMA_1>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_BSDMA_1>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_HUFF_OFFSET_1>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_HUFF_OFFSET_0>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDEC0>; + }; + disp_dsi: dsi@1c008000 { compatible = "mediatek,mt8188-dsi"; reg = <0 0x1c008000 0 0x1000>; From patchwork Wed Oct 2 11:41:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819706 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 815C2CF31B4 for ; Wed, 2 Oct 2024 11:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=ouP/AAURWlpM5gHEUts5ppp9KSn3cI1xAL6qgbhoUpI=; b=uagDC0EP7oiDi8 umBb7Bw0GcoCl/3Qw9yCrVb184g7dCqbhJd2eu4UTCQM2VyrHLIrjECAA5ZtujwbqjDdI0Js2ku3F mQ5V10+c9M2ZeBtNKm2sUabZGGkbMNQUw+TuQMyC8ghwZl/6r61th86rY1E3f+7qqhFSa58gqCXTl 10iVZk5UVoHA4oTlSxV6g5WJdKjgig7sPELqde8dLAcvedNYwsciTC4pzuf2KJUnfsFCbSIia7qDr fZaiaq0zdqYgxDaLGVndfEC98qDM0J+me5j3AMY/RCQZQckzee/5keTXmRBOOAmcoKyKOS61FDYI4 q75FrnBFZEs1HRPECB7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxxD-00000005k1w-0qSt; Wed, 02 Oct 2024 11:55:39 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxp0-00000005hxW-2eV2 for linux-mediatek@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=ouP/AAURWlpM5gHEUts5ppp9KSn3cI1xAL6qgbhoUpI=; b=fkc6K9wnBaBa9jyLnVceR/4ss4 ACgmFRTrrprciLE+lNNv4NN75eWppUbN1z4YqEejPFl2LX68nHJFudZWZMvitN9wM0GeB5tP/orGZ Xg+Iv4/gJEGdGyRS3cV+9mtZrE1M406JoG5IwrOE9DQN6Mhe5K4urrE62QpB/6d8W2WV+/2p40Xjg Ij0qsrHfBKWuFc/SmTQB1nNvknqsBtdtI6sxMLjNoqY02xPLe0NiybmyYmFY6Io3dSyfXbxMAelFf 5gNDCz/+9j7WxvTufVOiAqswI/Wl+8yWXk5c4gARnZzG2Ci0+Iwtn5xADWhbHApmLSD2PlXedZCE+ DC6zQEzA==; Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxox-00000003TkQ-0e5S for linux-mediatek@lists.infradead.org; Wed, 02 Oct 2024 11:47:09 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7db908c9c83so4038082a12.2 for ; Wed, 02 Oct 2024 04:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869624; x=1728474424; 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=ouP/AAURWlpM5gHEUts5ppp9KSn3cI1xAL6qgbhoUpI=; b=gpo/X+7b6JCRWLy2m2IB3+wCbl96NqPomnbYOBex7l0dUhl6m+Sdv6y5jFI2GkbVAK HT0Y+tYMnMOMu4g/bb9EiBbSlZgGlh5KTImETy49X1gG/ggdS1jKlYkWD290AXau9gbt Cazpg4s5KDIKXdZjrmw9kucOOwyTnzX24iQzI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869624; x=1728474424; 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=ouP/AAURWlpM5gHEUts5ppp9KSn3cI1xAL6qgbhoUpI=; b=hzsuVc2DbSTKl92zlhUgZRLJslykZiyVbo4Ns2s+KSwS83xCGTahnhZtD1xMVFR0pC qx0lqY9HzPC+IwVUysJMmP3xbHVOWgC44XP9TP4Apo4HNQuUIG6i74+CUyN3WGFr77Gy Rwn0fBebLzYZX3jtSXiWlKpAWEqjsGOtctEHgtrNq3E6kcgHDNY6iYMcpViCDeZSMGRB JTlleYJjJm2DoR7ouLnjo6IJ8sq0fgAYf/XEE/8mQJosKWHFCdAH6/oQzjSE38XHFz/D G8yyxaBXGhOc4VTzDKWU5APHihkOf1XavZj5NTiHub3/2hOb/BrdWyW1d0+EwE+Cgmgl gBRQ== X-Forwarded-Encrypted: i=1; AJvYcCWoTj3S2Lz42brYZMwpb0n6XfFEGUhXJH87Y+0szafgo/4aRkQMu3InqCx+TkGtifm+/8Ef9o+2GGYR+ANC1Q==@lists.infradead.org X-Gm-Message-State: AOJu0Yxb84f0wk4H3EVscdtevOBUz/wWMJfTI/fw/jnennbd+EmlSoE8 IjGpMq6ayyKRU/2Kvm/OfWOcbHmqlbsN2w0dXoJMswwdyx135dbyOxvYz0kqsg== X-Google-Smtp-Source: AGHT+IGJRGU9+3577zbkkm9KoRqvEP41NbLevBI2rEZhys3m695gS1GqUnXFCqQID0HvDZFWgO7dLg== X-Received: by 2002:a05:6a21:1643:b0:1d5:14ff:a15f with SMTP id adf61e73a8af0-1d5db20a5c0mr4937098637.11.1727869624478; Wed, 02 Oct 2024 04:47:04 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:47:04 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH 6/9] arm64: dts: mediatek: mt8188: Add display nodes for vdosys0 Date: Wed, 2 Oct 2024 19:41:46 +0800 Message-ID: <20241002114614.847553-7-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_124707_324220_209427F3 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the vdosys0 display nodes to support the internal display pipeline. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 86 ++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index c1b057166aa3..79e007b619b7 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -26,6 +26,7 @@ / { aliases { gce0 = &gce0; gce1 = &gce1; + mutex0 = &mutex0; }; cpus { @@ -2344,6 +2345,71 @@ jpeg_decoder: jpeg-decoder@1a040000 { power-domains = <&spm MT8188_POWER_DOMAIN_VDEC0>; }; + ovl0: ovl@1c000000 { + compatible = "mediatek,mt8188-disp-ovl", "mediatek,mt8183-disp-ovl"; + reg = <0 0x1c000000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DISP_OVL0>; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L0_DISP_OVL0_RDMA0>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c00XXXX 0x0000 0x1000>; + }; + + rdma0: rdma@1c002000 { + compatible = "mediatek,mt8188-disp-rdma", "mediatek,mt8195-disp-rdma"; + reg = <0 0x1c002000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DISP_RDMA0>; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L1_DISP_RDMA0>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c00XXXX 0x2000 0x1000>; + }; + + color0: color@1c003000 { + compatible = "mediatek,mt8188-disp-color", "mediatek,mt8173-disp-color"; + reg = <0 0x1c003000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DISP_COLOR0>; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c00XXXX 0x3000 0x1000>; + }; + + ccorr0: ccorr@1c004000 { + compatible = "mediatek,mt8188-disp-ccorr", "mediatek,mt8192-disp-ccorr"; + reg = <0 0x1c004000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DISP_CCORR0>; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c00XXXX 0x4000 0x1000>; + }; + + aal0: aal@1c005000 { + compatible = "mediatek,mt8188-disp-aal", "mediatek,mt8183-disp-aal"; + reg = <0 0x1c005000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DISP_AAL0>; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c00XXXX 0x5000 0x1000>; + }; + + gamma0: gamma@1c006000 { + compatible = "mediatek,mt8188-disp-gamma", "mediatek,mt8195-disp-gamma"; + reg = <0 0x1c006000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DISP_GAMMA0>; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c00XXXX 0x6000 0x1000>; + }; + + dither0: dither@1c007000 { + compatible = "mediatek,mt8188-disp-dither", "mediatek,mt8183-disp-dither"; + reg = <0 0x1c007000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DISP_DITHER0>; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c00XXXX 0x7000 0x1000>; + }; + disp_dsi: dsi@1c008000 { compatible = "mediatek,mt8188-dsi"; reg = <0 0x1c008000 0 0x1000>; @@ -2359,6 +2425,26 @@ disp_dsi: dsi@1c008000 { status = "disabled"; }; + mutex0: mutex@1c016000 { + compatible = "mediatek,mt8188-disp-mutex"; + reg = <0 0x1c016000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DISP_MUTEX0>; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c01XXXX 0x6000 0x1000>; + mediatek,gce-events = ; + }; + + postmask0: postmask@1c01a000 { + compatible = "mediatek,mt8188-disp-postmask", + "mediatek,mt8192-disp-postmask"; + reg = <0 0x1c01a000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DISP_POSTMASK0>; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c01XXXX 0xa000 0x1000>; + }; + vdosys0: syscon@1c01d000 { compatible = "mediatek,mt8188-vdosys0", "syscon"; reg = <0 0x1c01d000 0 0x1000>; From patchwork Wed Oct 2 11:41:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819707 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 36BCACF31B7 for ; Wed, 2 Oct 2024 11:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=0kCRWUVsMe5+ruVnzqb/M8kOaOzFKMCz6CioUWe4Zic=; b=UZg4PrmzSt4uWb n36eA+4VXzckeMW9YmE5Lq7dg5aP8GKFTH/CqceaLq7xeQXLUEcY837WIkr3Tyz9OT8wimLj3BoB+ sQW8ooo+Hvp9lHBURrIDIsHHabIJt9RoQB2V4zvq4ovbMq+k1ZWroqZGj0GBpmsFDXarqlL6EvXSw i3B3GEJFkemwZow9WJpjxy/9LVe2nBr5QepKuwTAThMX9FJfg0p8hky1BrIXIckwRy/Yb15JCBtJo +GUGKmbE1f6c9B6P872WNx0lOHr051sb00R+7H+Z4rgTFC/V9GuaSZSHSttMgYPjLQSrRC9R09rq+ qLjlIPcGWZEvrry+McyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxxC-00000005k1l-3YEs; Wed, 02 Oct 2024 11:55:38 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxoy-00000005hwz-1Wlo for linux-mediatek@lists.infradead.org; Wed, 02 Oct 2024 11:47:10 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-71b00a97734so5747571b3a.1 for ; Wed, 02 Oct 2024 04:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869627; x=1728474427; 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=0kCRWUVsMe5+ruVnzqb/M8kOaOzFKMCz6CioUWe4Zic=; b=Y7hJDX5CbuUSfhHXneXWIWIN3/UtIRV5/9OtDYQt5qmzxfIuwa561rhFXhb6tjSSbt Ic575z/wDbjWLTn68S0aJzBl50KeGuJb8bKu6OEF3T8bEGxn/frqvFetQbt76QYPEgRw DFVmHC/s3KGZREkCeLxQtbllwY5EDHB/2IpzE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869627; x=1728474427; 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=0kCRWUVsMe5+ruVnzqb/M8kOaOzFKMCz6CioUWe4Zic=; b=NARwB7EKCDa+2tWcE4TDWMP7CTqKB1YWBDFe947XW6Ae+CmqZnHfGSlwbJKTXfHDQ0 wo4AakOdC9Et4riAnmV7pTOuSFAYYin0gTvrZAO90KkWXeCD3UHc8jWugKijTopu0kQP 4lAx8aiGjHHr8aYXIZ8m/9GZpCMREZL9xFF1soGkIDd6pj9rjc7pFN6ky8uGPpA0iFw2 tL2slBQERiNlF6g3+L7hdMB7Yy4IHaleQGRE5C/RbHkwnBrbnVCNhnuMLbScA8gf0zSv wI1XCPPr4Qrsni9U++eyMpRB4c8GzaokBsz8ZBIY1ko0vK5v7FhdQQ/4B4F4XldksEJw gArA== X-Forwarded-Encrypted: i=1; AJvYcCUVWA3FWIv9eSjcLRMZVgQpQ/vQJtwtFBR4aWpJb4y7mwK8bJTpkz0BRPonSSrItXYcHrd778Qwus/H9iwarg==@lists.infradead.org X-Gm-Message-State: AOJu0YzkL9d0IOUQLObcF0ImMnplOXlOUKOdcllu+Gs+5pFkIJufyng3 iKUIsEIbgk97BcdR1RO8SuTvNL+ekGHZ/HUdEPPqktrWBFW0LBMaU0C7PO8yXA== X-Google-Smtp-Source: AGHT+IGSKihjE2uix0MsFR+Y2YP02j39pJdlcIAUBAcjG7Two3aKYoPuMKCbMK/2BY64lg0nVErf5w== X-Received: by 2002:a05:6a00:1915:b0:718:e276:eea8 with SMTP id d2e1a72fcca58-71dc5c688f7mr4336293b3a.10.1727869627191; Wed, 02 Oct 2024 04:47:07 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:47:06 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH 7/9] arm64: dts: mediatek: mt8188: Add display nodes for vdosys1 Date: Wed, 2 Oct 2024 19:41:47 +0800 Message-ID: <20241002114614.847553-8-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_044708_430663_20A187E3 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the vdosys1 display nodes to support the external display pipeline. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 298 +++++++++++++++++++++++ 1 file changed, 298 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 79e007b619b7..5410469e5fd8 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -24,9 +24,32 @@ / { #size-cells = <2>; aliases { + ethdr0 = ðdr0; gce0 = &gce0; gce1 = &gce1; + merge0 = &merge0; + merge1 = &merge1; + merge2 = &merge2; + merge3 = &merge3; + merge4 = &merge4; mutex0 = &mutex0; + mutex1 = &mutex1; + padding0 = &padding0; + padding1 = &padding1; + padding2 = &padding2; + padding3 = &padding3; + padding4 = &padding4; + padding5 = &padding5; + padding6 = &padding6; + padding7 = &padding7; + vdo1-rdma0 = &vdo1_rdma0; + vdo1-rdma1 = &vdo1_rdma1; + vdo1-rdma2 = &vdo1_rdma2; + vdo1-rdma3 = &vdo1_rdma3; + vdo1-rdma4 = &vdo1_rdma4; + vdo1-rdma5 = &vdo1_rdma5; + vdo1-rdma6 = &vdo1_rdma6; + vdo1-rdma7 = &vdo1_rdma7; }; cpus { @@ -2505,6 +2528,16 @@ vdosys1: syscon@1c100000 { mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0 0x1000>; }; + mutex1: mutex@1c101000 { + compatible = "mediatek,mt8188-disp-mutex"; + reg = <0 0x1c101000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_DISP_MUTEX>; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x1000 0x1000>; + mediatek,gce-events = ; + }; + larb2: smi@1c102000 { compatible = "mediatek,mt8188-smi-larb"; reg = <0 0x1c102000 0 0x1000>; @@ -2526,5 +2559,270 @@ larb3: smi@1c103000 { mediatek,larb-id = ; mediatek,smi = <&vpp_smi_common>; }; + + vdo1_rdma0: rdma@1c104000 { + compatible = "mediatek,mt8188-vdo1-rdma", "mediatek,mt8195-vdo1-rdma"; + reg = <0 0x1c104000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_MDP_RDMA0>; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L2_MDP_RDMA0>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + #dma-cells = <1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x4000 0x1000>; + }; + + vdo1_rdma1: rdma@1c105000 { + compatible = "mediatek,mt8188-vdo1-rdma", "mediatek,mt8195-vdo1-rdma"; + reg = <0 0x1c105000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_MDP_RDMA1>; + interrupts = ; + iommus = <&vpp_iommu M4U_PORT_L3_MDP_RDMA1>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + #dma-cells = <1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x5000 0x1000>; + }; + + vdo1_rdma2: rdma@1c106000 { + compatible = "mediatek,mt8188-vdo1-rdma", "mediatek,mt8195-vdo1-rdma"; + reg = <0 0x1c106000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_MDP_RDMA2>; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L2_MDP_RDMA2>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + #dma-cells = <1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x6000 0x1000>; + }; + + vdo1_rdma3: rdma@1c107000 { + compatible = "mediatek,mt8188-vdo1-rdma", "mediatek,mt8195-vdo1-rdma"; + reg = <0 0x1c107000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_MDP_RDMA3>; + interrupts = ; + iommus = <&vpp_iommu M4U_PORT_L3_MDP_RDMA3>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + #dma-cells = <1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x7000 0x1000>; + }; + + vdo1_rdma4: rdma@1c108000 { + compatible = "mediatek,mt8188-vdo1-rdma", "mediatek,mt8195-vdo1-rdma"; + reg = <0 0x1c108000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_MDP_RDMA4>; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L2_MDP_RDMA4>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + #dma-cells = <1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x8000 0x1000>; + }; + + vdo1_rdma5: rdma@1c109000 { + compatible = "mediatek,mt8188-vdo1-rdma", "mediatek,mt8195-vdo1-rdma"; + reg = <0 0x1c109000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_MDP_RDMA5>; + interrupts = ; + iommus = <&vpp_iommu M4U_PORT_L3_MDP_RDMA5>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + #dma-cells = <1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x9000 0x1000>; + }; + + vdo1_rdma6: rdma@1c10a000 { + compatible = "mediatek,mt8188-vdo1-rdma", "mediatek,mt8195-vdo1-rdma"; + reg = <0 0x1c10a000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_MDP_RDMA6>; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L2_MDP_RDMA6>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + #dma-cells = <1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0xa000 0x1000>; + }; + + vdo1_rdma7: rdma@1c10b000 { + compatible = "mediatek,mt8188-vdo1-rdma", "mediatek,mt8195-vdo1-rdma"; + reg = <0 0x1c10b000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_MDP_RDMA7>; + interrupts = ; + iommus = <&vpp_iommu M4U_PORT_L3_MDP_RDMA7>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + #dma-cells = <1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0xb000 0x1000>; + }; + + merge0: merge@1c10c000 { + compatible = "mediatek,mt8188-disp-merge", "mediatek,mt8195-disp-merge"; + reg = <0 0x1c10c000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_VPP_MERGE0>, + <&vdosys1 CLK_VDO1_MERGE0_DL_ASYNC>; + clock-names = "merge", "merge_async"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + resets = <&vdosys1 MT8188_VDO1_RST_MERGE0_DL_ASYNC>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0xc000 0x1000>; + mediatek,merge-mute; + }; + + merge1: merge@1c10d000 { + compatible = "mediatek,mt8188-disp-merge", "mediatek,mt8195-disp-merge"; + reg = <0 0x1c10d000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_VPP_MERGE1>, + <&vdosys1 CLK_VDO1_MERGE1_DL_ASYNC>; + clock-names = "merge", "merge_async"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + resets = <&vdosys1 MT8188_VDO1_RST_MERGE1_DL_ASYNC>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0xd000 0x1000>; + mediatek,merge-mute; + }; + + merge2: merge@1c10e000 { + compatible = "mediatek,mt8188-disp-merge", "mediatek,mt8195-disp-merge"; + reg = <0 0x1c10e000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_VPP_MERGE2>, + <&vdosys1 CLK_VDO1_MERGE2_DL_ASYNC>; + clock-names = "merge", "merge_async"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + resets = <&vdosys1 MT8188_VDO1_RST_MERGE2_DL_ASYNC>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0xe000 0x1000>; + mediatek,merge-mute; + }; + + merge3: merge@1c10f000 { + compatible = "mediatek,mt8188-disp-merge", "mediatek,mt8195-disp-merge"; + reg = <0 0x1c10f000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_VPP_MERGE3>, + <&vdosys1 CLK_VDO1_MERGE3_DL_ASYNC>; + clock-names = "merge", "merge_async"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + resets = <&vdosys1 MT8188_VDO1_RST_MERGE3_DL_ASYNC>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0xf000 0x1000>; + mediatek,merge-mute; + }; + + merge4: merge@1c110000 { + compatible = "mediatek,mt8188-disp-merge", "mediatek,mt8195-disp-merge"; + reg = <0 0x1c110000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_VPP_MERGE4>, + <&vdosys1 CLK_VDO1_MERGE4_DL_ASYNC>; + clock-names = "merge", "merge_async"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + resets = <&vdosys1 MT8188_VDO1_RST_MERGE4_DL_ASYNC>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c11XXXX 0x0000 0x1000>; + mediatek,merge-fifo-en; + }; + + ethdr0: ethdr@1c114000 { + compatible = "mediatek,mt8188-disp-ethdr", "mediatek,mt8195-disp-ethdr"; + reg = <0 0x1c114000 0 0x1000>, + <0 0x1c115000 0 0x1000>, + <0 0x1c117000 0 0x1000>, + <0 0x1c119000 0 0x1000>, + <0 0x1c11a000 0 0x1000>, + <0 0x1c11b000 0 0x1000>, + <0 0x1c11c000 0 0x1000>; + reg-names = "mixer", "vdo_fe0", "vdo_fe1", "gfx_fe0", "gfx_fe1", + "vdo_be", "adl_ds"; + + clocks = <&vdosys1 CLK_VDO1_DISP_MIXER>, + <&vdosys1 CLK_VDO1_HDR_VDO_FE0>, + <&vdosys1 CLK_VDO1_HDR_VDO_FE1>, + <&vdosys1 CLK_VDO1_HDR_GFX_FE0>, + <&vdosys1 CLK_VDO1_HDR_GFX_FE1>, + <&vdosys1 CLK_VDO1_HDR_VDO_BE>, + <&vdosys1 CLK_VDO1_26M_SLOW>, + <&vdosys1 CLK_VDO1_HDR_VDO_FE0_DL_ASYNC>, + <&vdosys1 CLK_VDO1_HDR_VDO_FE1_DL_ASYNC>, + <&vdosys1 CLK_VDO1_HDR_GFX_FE0_DL_ASYNC>, + <&vdosys1 CLK_VDO1_HDR_GFX_FE1_DL_ASYNC>, + <&vdosys1 CLK_VDO1_HDR_VDO_BE_DL_ASYNC>, + <&topckgen CLK_TOP_ETHDR>; + clock-names = "mixer", "vdo_fe0", "vdo_fe1", "gfx_fe0", "gfx_fe1", + "vdo_be", "adl_ds", "vdo_fe0_async", "vdo_fe1_async", + "gfx_fe0_async", "gfx_fe1_async", "vdo_be_async", "ethdr_top"; + + interrupts = ; + iommus = <&vpp_iommu M4U_PORT_L3_HDR_DS_SMI>, + <&vpp_iommu M4U_PORT_L3_HDR_ADL_SMI>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + resets = <&vdosys1 MT8188_VDO1_RST_HDR_VDO_FE0_DL_ASYNC>, + <&vdosys1 MT8188_VDO1_RST_HDR_VDO_FE1_DL_ASYNC>, + <&vdosys1 MT8188_VDO1_RST_HDR_GFX_FE0_DL_ASYNC>, + <&vdosys1 MT8188_VDO1_RST_HDR_GFX_FE1_DL_ASYNC>, + <&vdosys1 MT8188_VDO1_RST_HDR_VDO_BE_DL_ASYNC>; + + mediatek,gce-client-reg = <&gce0 SUBSYS_1c11XXXX 0x4000 0x1000>, + <&gce0 SUBSYS_1c11XXXX 0x5000 0x1000>, + <&gce0 SUBSYS_1c11XXXX 0x7000 0x1000>, + <&gce0 SUBSYS_1c11XXXX 0x9000 0x1000>, + <&gce0 SUBSYS_1c11XXXX 0xa000 0x1000>, + <&gce0 SUBSYS_1c11XXXX 0xb000 0x1000>, + <&gce0 SUBSYS_1c11XXXX 0xc000 0x1000>; + }; + + padding0: padding@1c11d000 { + compatible = "mediatek,mt8188-disp-padding"; + reg = <0 0x1c11d000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_PADDING0>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c11XXXX 0xd000 0x1000>; + }; + + padding1: padding@1c11e000 { + compatible = "mediatek,mt8188-disp-padding"; + reg = <0 0x1c11e000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_PADDING1>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c11XXXX 0xe000 0x1000>; + }; + + padding2: padding@1c11f000 { + compatible = "mediatek,mt8188-disp-padding"; + reg = <0 0x1c11f000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_PADDING2>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c11XXXX 0xf000 0x1000>; + }; + + padding3: padding@1c120000 { + compatible = "mediatek,mt8188-disp-padding"; + reg = <0 0x1c120000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_PADDING3>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c12XXXX 0x0000 0x1000>; + }; + + padding4: padding@1c121000 { + compatible = "mediatek,mt8188-disp-padding"; + reg = <0 0x1c121000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_PADDING4>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c12XXXX 0x1000 0x1000>; + }; + + padding5: padding@1c122000 { + compatible = "mediatek,mt8188-disp-padding"; + reg = <0 0x1c122000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_PADDING5>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c12XXXX 0x2000 0x1000>; + }; + + padding6: padding@1c123000 { + compatible = "mediatek,mt8188-disp-padding"; + reg = <0 0x1c123000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_PADDING6>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c12XXXX 0x3000 0x1000>; + }; + + padding7: padding@1c124000 { + compatible = "mediatek,mt8188-disp-padding"; + reg = <0 0x1c124000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_PADDING7>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,gce-client-reg = <&gce0 SUBSYS_1c12XXXX 0x4000 0x1000>; + }; }; }; From patchwork Wed Oct 2 11:41:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819709 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 639E5CF31B7 for ; Wed, 2 Oct 2024 11:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=2J6IAMekTb4vqO9a374pLD/X7ddMa658jNggvdKpP9o=; b=BBwlOPCq+rZGVn Ry0++PJ9suvUuThSsa1dRoBnwJhBALI1Ft/hV87apSTlAGB6W/MhZuuIqHnAhEJVa03TvKloJpJ+i S3hTXB3DED693SLCFlX/OFl9HzaprN4vGty4J4/QDN19xAUsloxOwrvE1dcaYzcQ54FyD4gMbOu0z VsxDXXgBtbnFQiGmWZ4yRDtPoVPh7d/eU39OFEevLj/Z/WahjH13CxRdd6bU4Ve1AdGCjZz2WVTMJ 7jviUQ1AMxgIqDqEnDntQ491Us8ws1RFKWrnrI+9GOKidDxZ46nV/IluOJdrLEWsbpR1n3xhyZ27R 7j3FQS48RaiSFoidxUlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svy0q-00000005kwl-0EGm; Wed, 02 Oct 2024 11:59:24 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxp5-00000005hzQ-3Ewu for linux-mediatek@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=2J6IAMekTb4vqO9a374pLD/X7ddMa658jNggvdKpP9o=; b=ZzcAZde88/yRa65v1waPBfO7aj 8MHFgiHTOU1loISilC2+Mr1eYF6sQAisWHenP8fsAfXMf2x1pAXeKdsMyqkDTlU7w3izOSJRczMnE l5gVaW/ymknE4LPUVM1HqnUHhuGVWBWsOavldve6NqJWmAqKKuQW8a7FYeVB/6335N2lzwDY5BOSq bTWADxxjIM3LS4nZ3wj+/usqCH6ZaOhyi3xOfLqvnyj4xTXED0nw/rxVTMOxQpzArxHazZPqq9MA8 a5cYYWw0poHG93wOeZ0x5iWxEwGBA1p5UwlS3kg8wBfkzoL3njhhX/bRKfB1EuxLEU4ZWZPkNWbD3 3JhuDoeA==; Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxp2-00000003TmC-3Evo for linux-mediatek@lists.infradead.org; Wed, 02 Oct 2024 11:47:14 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-7198de684a7so4647732b3a.2 for ; Wed, 02 Oct 2024 04:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869630; x=1728474430; 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=2J6IAMekTb4vqO9a374pLD/X7ddMa658jNggvdKpP9o=; b=LDTtF6D2R38BhIlzyTOLoIPaxiP788ny5vztVRJQHqgjsuBK4PeQo1ErcKIb/nTdWE C9rvhvC5VXgJaFrAFTL927DitN/8L02J4fEzf1c9Pdn/G6Onr1YNlbOrRjLFVmJDeCuE BNJ9C+orDgUiwE/qhErNkZ+LLhP3C+RiYvy4U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869630; x=1728474430; 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=2J6IAMekTb4vqO9a374pLD/X7ddMa658jNggvdKpP9o=; b=OAt4yzpMROxAP+CtOfJKROMsk6SJ9iU3Z5C9wLsjZNn+zKANPsl9ck/u0bOQEBYjEA laiqrudAmGzaMl+glwzOM3d0vnhxEMvJuHgxLJ9AaV072gOz+WXsapM21en0ZWS/q8oZ B3hvafOwghItFKIEMZv8468jd72i4/HrtyIeLLz54sWKL6mL1AwsZg2dvWtKdLm6KpGH V81Mcz6TnS/nXkqvRobsK5ARUpNo7vXNQ5yZjd1ukERqq11xl3PukqgdCHWt979mNh4M Vcqm/sFUwwcnegY2Hbe9AQOhFggxiN5KaiAKw5Oh2qsREmHKd53CgmtnPCRkkMR9tBd2 Wizg== X-Forwarded-Encrypted: i=1; AJvYcCV5gL7mh39/WNPjEon5nAxJD0fqilijhvo2iw2MQj/CcLad5oSZBhYgb8pXABsGxDs15GJ1vCHJkiROt/vYJg==@lists.infradead.org X-Gm-Message-State: AOJu0Yz8OEqfz08v+MInxCXV4w23Q31Qln4jhYQBcN52AGMhEbav1O4x 5p6nHOLaNJ6UHkyl4y9EkYFWN4Fqc7Ztj+mcjCdzhFUEdJ51NofU/kQPOCMALw== X-Google-Smtp-Source: AGHT+IHxoSxlQF4L8vnk+9d+dcrFTwh2sgZBeoesnLzs4EQ03w9gCUtKP/Slm2w+wQYV4T7a2uPNvA== X-Received: by 2002:a05:6a00:4615:b0:719:1df6:c0fe with SMTP id d2e1a72fcca58-71dc5d5443cmr4531512b3a.21.1727869630106; Wed, 02 Oct 2024 04:47:10 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:47:09 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH 8/9] arm64: dts: mediatek: mt8188: Add DP-INTF nodes Date: Wed, 2 Oct 2024 19:41:48 +0800 Message-ID: <20241002114614.847553-9-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_124712_924595_E0731A10 X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the primary and secondary dp-intf nodes. These DP-INTF hardware IPs are the sink of the vdosys0 and vdosys1 display pipelines for the internal and external displays, respectively. Individual board device tree should enable the nodes and connect input and output ports as needed. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 5410469e5fd8..943333d2567f 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -24,6 +24,8 @@ / { #size-cells = <2>; aliases { + dp-intf0 = &dp_intf0; + dp-intf1 = &dp_intf1; ethdr0 = ðdr0; gce0 = &gce0; gce1 = &gce1; @@ -2448,6 +2450,18 @@ disp_dsi: dsi@1c008000 { status = "disabled"; }; + dp_intf0: dp-intf@1c015000 { + compatible = "mediatek,mt8188-dp-intf"; + reg = <0 0x1c015000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_DP_INTF0_DP_INTF>, + <&vdosys0 CLK_VDO0_DP_INTF0>, + <&apmixedsys CLK_APMIXED_TVDPLL1>; + clock-names = "pixel", "engine", "pll"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + status = "disabled"; + }; + mutex0: mutex@1c016000 { compatible = "mediatek,mt8188-disp-mutex"; reg = <0 0x1c016000 0 0x1000>; @@ -2713,6 +2727,18 @@ merge4: merge@1c110000 { mediatek,merge-fifo-en; }; + dp_intf1: dp-intf@1c113000 { + compatible = "mediatek,mt8188-dp-intf"; + reg = <0 0x1c113000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_DPINTF>, + <&vdosys1 CLK_VDO1_DP_INTF0_MMCK>, + <&apmixedsys CLK_APMIXED_TVDPLL2>; + clock-names = "pixel", "engine", "pll"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + status = "disabled"; + }; + ethdr0: ethdr@1c114000 { compatible = "mediatek,mt8188-disp-ethdr", "mediatek,mt8195-disp-ethdr"; reg = <0 0x1c114000 0 0x1000>, From patchwork Wed Oct 2 11:41:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819708 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 090D0CF31B4 for ; Wed, 2 Oct 2024 11:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=R67MOM4KKUTh0qCCt++0T4Ue+lkz0KBhSiql033WWVM=; b=XSbAHslpP/L44M LLKg2+R/jZxQy7Yyxv3Dj0K5Kupaqg6h2OtFqWHNGr8p5kdYvi6RaMBhGCo9E40uD17aQESvZkIDA QbVBalweqpsQqbk2lII163acILOErnbkK4wHY7vfhZl/d+ZW45b5yYOf9GqmHW2+tIRMKGbkrbrXb +Os1QR1UoXx5P7xP/bucdaF29SXsRa10UUPyqHW12VF5AuY3V5v6N8kiGBB0t2/iBcHGeI4vUUCKd 5fSlKxaiKOXVH+gQxkgyOq405C0DPvQ6G+pJ/o4Nk6XhPLyfho7NVnIZSf38kqWUhH0kMHdFvj1sF S8aIw+XjsGU9ttu5hzFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svy0p-00000005kwd-366v; Wed, 02 Oct 2024 11:59:23 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxp4-00000005hyg-0pS4 for linux-mediatek@lists.infradead.org; Wed, 02 Oct 2024 11:47:15 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-71b00a97734so5747631b3a.1 for ; Wed, 02 Oct 2024 04:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869633; x=1728474433; 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=R67MOM4KKUTh0qCCt++0T4Ue+lkz0KBhSiql033WWVM=; b=AeolyXJLdJkdFpAZvJQSVPjcvJcvFGLFGwBQlhLnTuKzENPCEWYdGPbHCrLMfrs0vp aaIEYeqC/Uo19sfYYsd/DVad73O5tqHAN3o7MRH3X6stMKgRJS8jMFJpvMcF7qCpazi2 HzMbj0XDTQvSuduGd6Dgw581lvp8fH6ZmHSF8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869633; x=1728474433; 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=R67MOM4KKUTh0qCCt++0T4Ue+lkz0KBhSiql033WWVM=; b=ApKiDdvXXaM9tv2AnWZv3xYq0perxTUm9x45NGJ6ABZvXxrjdo0nFkM7EZGwZZ4XV8 ynGCImrEAM4u0xzu3mSTASqJNRrviQtxc/sEHn9/OJNTMGwhJ+e2+TfEeY727/7rzlwb rZ1y2TmFdhbhm1zapFRzZf6g/sc4fViDnBM6hnUzMe8VuXzJBgoZnKbqGDZJksCADg46 cONecIVT0k5BpiaiUv7BDb3o9jwJG3A3OdwhpPWubxptXQLvrfDnhslg1xTIRIdIIe6e kzQa0CBfDwsQreCMaoFSQ/d7uvded6sEoxMNd1ukPG4+GkNNUwevyY5Ue5Q1ydYkxuMM w8yg== X-Forwarded-Encrypted: i=1; AJvYcCUwFZoLn0wvqN3CKTOGD2CLqd2XlQAg8YOb136vpGjjWSbi4hI8TcuUDp8bQHK7EGVSWpUm/okTUNfgScymcw==@lists.infradead.org X-Gm-Message-State: AOJu0YweIj+vo3ANNtQjMfZHYrVrEKv5RRxjpNQHuik9SFb2wOR/yw5t vMz8OJdHz4sKzTeQrntgXcV6bvGp7+PGR+OGeLbYIKs4rdq3EPHgLqIkVQetyQ== X-Google-Smtp-Source: AGHT+IG5W5PbB9Dg2pXJwidpYLDnewgtqTRSMPqWMUaOdFMbuHNinBNwjLa/SIhmMYymYMhGikQ+CQ== X-Received: by 2002:a05:6a00:2349:b0:719:1df4:9d02 with SMTP id d2e1a72fcca58-71dc5d6fab5mr4373727b3a.25.1727869632648; Wed, 02 Oct 2024 04:47:12 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:47:12 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH 9/9] arm64: dts: mediatek: mt8188: Add eDP and DP TX nodes Date: Wed, 2 Oct 2024 19:41:49 +0800 Message-ID: <20241002114614.847553-10-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_044714_264313_CC239B66 X-CRM114-Status: GOOD ( 10.26 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add edp-tx and dp-tx nodes for the Embedded DisplayPort (eDP) and DisplayPort ports to connect to DP-INTF ports and panels, and add the efuse cell for the DP calibration data. Individual board device tree should enable the nodes and connect input and output ports as needed. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 943333d2567f..67c539e5d146 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -2004,6 +2004,10 @@ efuse: efuse@11f20000 { #address-cells = <1>; #size-cells = <1>; + dp_calib_data: dp-calib@1a0 { + reg = <0x1a0 0xc>; + }; + lvts_efuse_data1: lvts1-calib@1ac { reg = <0x1ac 0x40>; }; @@ -2850,5 +2854,27 @@ padding7: padding@1c124000 { power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; mediatek,gce-client-reg = <&gce0 SUBSYS_1c12XXXX 0x4000 0x1000>; }; + + edp_tx: edp-tx@1c500000 { + compatible = "mediatek,mt8188-edp-tx"; + reg = <0 0x1c500000 0 0x8000>; + interrupts = ; + nvmem-cells = <&dp_calib_data>; + nvmem-cell-names = "dp_calibration_data"; + power-domains = <&spm MT8188_POWER_DOMAIN_EDP_TX>; + max-linkrate-mhz = <8100>; + status = "disabled"; + }; + + dp_tx: dp-tx@1c600000 { + compatible = "mediatek,mt8188-dp-tx"; + reg = <0 0x1c600000 0 0x8000>; + interrupts = ; + nvmem-cells = <&dp_calib_data>; + nvmem-cell-names = "dp_calibration_data"; + power-domains = <&spm MT8188_POWER_DOMAIN_DP_TX>; + max-linkrate-mhz = <5400>; + status = "disabled"; + }; }; };