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: 13819693 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 F1E38CF31B4 for ; Wed, 2 Oct 2024 11:49:34 +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=JAY/dXsUs9CkME3PSfZ8rKUo2mav2/+CmW1Y+16arGU=; b=wHzXGTWUtNA4Kju6vN/9obp1OF 5VBdhrC4sv2JXmPiLo6PkwhSfuMsGaEoxPuQM7wHswgWFQrkPkswoisMFo1mMN6nl0xeNopnDuVnX Laf7cgCMlE0OZGyXecC2E2f0rV6HmXo8zadqu5Fa0o+ff9igsmv2gfrH2GpnUZz+zrWvLNLvk1tqw QspCL4U3PLVSzG4wh1bTUob7lmjyXCKWJMd4N9PAd9f+UUnamhBHdYdYyR03/WFNWHUNg6rjlyNR7 uymMYRYn4G/OU0YK4IZBIQLe+lJI4gUeYGNqMBKgQNY/030XzQkCCt7aueuInc3pLAQKzgrl699a+ 2JjCmTOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxr9-00000005ifK-3x2z; Wed, 02 Oct 2024 11:49:24 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxoi-00000005hrz-2KiV for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:46:53 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-71dc4451fffso1120080b3a.2 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=Y2KG6SNcNgy5liOHjxeuQMhlT2LDLaqqZafhG/6FvyEQHLzmZRHLGLkvtxv4BNxciK hAChHPC/hZ6YuZclYzUpGGncwImwisczzCC3xdGlyLCMqZ/9rDiRPcald1gn3KYG9o8+ rC1ErhRon6tQ9euvd4AoHnbEvLNXQBD8dNkBt5DQo83noj25KCUv3Zz11urBFE8M/j4Z zqIjS75vPoR3aRNL/G/m8wEefh8SDRqAHXxJsnAuHejdb8yl3Fev61/Bbx5piVRIfaf6 SQvC15epRFlB5JA6o2lkSxfXq4FTCsLto3xt0CkVWrT3RhosCHI2CWqmalqYB76sk/l+ Ds8w== X-Forwarded-Encrypted: i=1; AJvYcCX6RWhpOapmy+BsKals4RMImLWXcdVhljeGgnpoMYbbvCZQyzlSe4n+Px1BX9S8PzohcGIH1tpxWBEYcE9xCeks@lists.infradead.org X-Gm-Message-State: AOJu0Yz/HZ4nh6MIqJ3rPvubYHu3/FJAPZVxIwhrqAFgDgNIkPHICnMz zwdTq5FKJSnEpb/IM391HBkrmyyaGwVgtJs4eE5Z3jVIEt7J4j4lx+zV9D65FQ== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_619311_E120EB1B X-CRM114-Status: GOOD ( 10.97 ) 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 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: 13819703 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 18C2CCF31B7 for ; Wed, 2 Oct 2024 11:52:05 +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=Zqcv24UnbKvuBwfI70WgH+r7YGyISN8r86eb90rkpPo=; b=Vxcs1MyoSHgVU70gMc5wAwXLtY qskauwfGnUdeAcNSb9IpFI1dgKnsdXHfDcid9C5+Wafc0MPS2LRF10lPA+2rxFmVZWxwNVe32uXJA W5oVswVv9qmv1MQbBkuuVCvOlRj6YzABkgwHT03q7VJIR3POxWk42jFhKTPAltseHJNPNjbh3GCYi 59lmhl/o/ZIFG+bdGC95HMrSNgVSS1vQ2bj2A1iAcy6CnJhr1iLteYV4KL32nWdaL74Exn8iurep+ 5Cp1+9BOFGaTZw/CWmMuCM3Xq+fowHIpn4463rneQD1t1oJri4+M/DPVQDbUuVF40SZZTWN1uaKQP 9K8p0k2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxtZ-00000005j7D-100y; Wed, 02 Oct 2024 11:51:53 +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 1svxoq-00000005hun-2hKY for linux-arm-kernel@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:00 +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=Zqcv24UnbKvuBwfI70WgH+r7YGyISN8r86eb90rkpPo=; b=ck9ilLDtwykOnh3J1CHlB7lVfR sh0pJRlhpxbdr6gFJ6JdTZqxQnp1fL8ZeqLLfmqudVDODQXvckkC4vM8RwkYqANx8JSz7L/DqJUVQ hXE7gERVUNTOOfT90NP+sMLIQZ/m15g302Lctw1TlB73GTe7G1FEjLDFzq8pqykDySquzuxCCfU9K y84mFkKvJO9HtnRHVruA8XA79e3zT10pCs8l1lwOY2O6adTJeRtq0Q0GoWqkGgNLxXbz4dnYKWm2n LyH3c7bdTevQIpr7Rh2huNXk2Y90M4FErY58Y7motS4n46y9XgkfAWTd2bElgO+9ejvDzYhRQiQb1 muJ5REfQ==; Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxom-00000003Ti2-2yfq for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:46:59 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-71dba8b05cbso1794140b3a.3 for ; Wed, 02 Oct 2024 04:46:55 -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=woisk/piG264oYL33+N2H/vItIix9L2XP4uDoo8nSvVd5aTMPTpyrE3673dIdgffSj 0xspJ2lMLWlKSEfOTy8SZoSzsnePSCG3exen3739oz39lHt0tsMd2ajKrYV77xF88D/d kLELsv2oiUO5InJoFP80msViQsvixkO/V3SYVzRo8wHKLRjS4+g2XCpnnB7sbozpI/4x EE99Bb9jKo+Cr0LgOR/vtN5FZIV1c7S6QIxA7Y+vKb8uVz+vK2/uMd61/LOB0WpxVDOr X8CTj9IX6VZHHKJzSYuWK+s2Ul5ox4XIzxqTK6OM6tOc5KjIpwiNtW+Ef6CQKynpcKX8 I8NA== X-Forwarded-Encrypted: i=1; AJvYcCWmQhpAHKL7u7QFzGPz3oO3o99Vrgp1U1VGsDx+BEjslF30uGM9TEAt+csYOZQ0pv1ZHKNV8qBJwftCCyix+GiO@lists.infradead.org X-Gm-Message-State: AOJu0YytKtwXcVq9bB0+vJ7Vl+7kQVi0+8r9JzHcdXjHXCF51gi3lv4U mQsCEWQdlgxMBTM/P9Laeq/+EWZs7fSYOGlxi9kN5BixzMmUd3GqjqbYdPlMEQ== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_124657_141986_1F01C319 X-CRM114-Status: GOOD ( 12.15 ) 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 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: 13819702 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 74E3CCF31B4 for ; Wed, 2 Oct 2024 11:50: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=lLxnIBg1s/2Zk6Wq5rMoMKrQWoBI+Wl7X5KlhfrQsNI=; b=jdsuEbFmgH/Cl/W2W3Ny2WPX6a 2CUnPyArE3TLpnPg/JLBZOze6rA9Cr+dPsNkTCDmvcuBA5a7Fo90Wu5ldux/rqCzHBRjZnIcSoliA aBcl4kqA3Zff9EVRFTfr0bhqnOrpPR0MtAK/AoVL2aQA8yUHH4cys4CCTYmI1a2c2amr6ZUP2DgJA 6Zu71OTpbeod5UPlojh+MurmvyOWXCzXJb7wX5PQydT6eJKNLZgIcjmYtQEwP+vCRaM1i2uhDrgWD 6kNfYlp/yXpXri9gg1OZIu3vo6cG93LudjicC8UyNU1h5OgxoJ7CBGw4KMfaL8yCPb6dNKnEgRQFe N5bUUMMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxsM-00000005itw-39Dl; Wed, 02 Oct 2024 11:50:38 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxon-00000005hu6-33et for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:46:58 +0000 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-71b00a97734so5747453b3a.1 for ; Wed, 02 Oct 2024 04:46:57 -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=VbsEP8joHPvka7v9IuA1sN9+WIzyBmkOrUZt+JLsfLpvW987xnlQvAfpEA1Vcah+IU zMYCHapQyf+nYfO+Nax+Su5fWCmbVi1m4KamDdlPfQK5PYZZGa3OS4ZDKKJBqlsTVUfV d1/kGlZjUyNVqqL8Vq5A+zP0k6O7e+POMtyUmkbi2shz8vlr/VyYwZA90S+dSbY9n6T1 h9tkCwIMpyFHbQZ6CrC8I/oYV+qJoLJ2sRXqxKx5Z5RYdC5m9e9kFEuJ2b6AW+3qc1Lt Vwgpd2U7wGTr78vk6T+2lX3FyiU38NZMnx/z2TJvx38Y+dIZ9+H3EZyD8uMnecZZkeW3 uF7A== X-Forwarded-Encrypted: i=1; AJvYcCUCoTxxhcSuMWgnwxJc1/YaV1Rot9649vMphycji+89SCIxKDhL3rltIfeoX9m6490ZPwzCWfrYlPad03hCdYUw@lists.infradead.org X-Gm-Message-State: AOJu0YzFspXjXNvFgd8u4hMVZSIxJanzbFrTSyErphmn4wzbkDLOSLXr ztbQGGtGgVk52XeQMlZF8Dv99fXKD6XseLOPZa7sREhqw5svLcND4yJuCc3Iwg== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_044657_787540_5DD6880A X-CRM114-Status: GOOD ( 11.76 ) 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 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: 13819704 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 505CFCF31B7 for ; Wed, 2 Oct 2024 11:53:20 +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=4eL/XnvWSRIF7ErhZle48teJZLAeJmMXd6nPwZPH1JI=; b=mWFAao4EaApnDoGWIyzXwDFOMJ 5iNHQvl4e6jFb7USOGe2WmmDeF8TWX8I45BhlHAqp3BDaNTfPXRRx0w5OmJ3o0mycGMwYo9Qj3GX9 81GOobPfcxQuU9Wig2YlH+RpIGy77wuuX5ox8SIcGz6lizSdkdXnJ+cPmAry+n2CzNTzpyvwv673y p+I4qyMPNtpyrmejWppsBQYtKJs8sXTm8N/YSeq0nTSIxV9QDIH3GAEEolu4afzLE2EBPm1SYwdn/ uKWk7B7Ty0gvUfsCwsIGuBPY4r6MTk8NwRzWNc8rkZKNhEDRV+/A+h+dYQ4YlCu2gfCx+rMEaxGix N+iiCgvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxun-00000005jSE-0QlF; 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 1svxou-00000005hw3-3UT8 for linux-arm-kernel@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-x42c.google.com ([2607:f8b0:4864:20::42c]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxor-00000003Tig-3l2O for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:47:03 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-71dba8b05cbso1794194b3a.3 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=Pb6+90XfeDl/LSDMei7omSzrlQtU3ZTr4uwl4EvlQXXrPSJVFAe3KNSikyj1aR7it0 0duFXZhvrQypvXo6bi5JoJg7FwivREnify40PFHSm/o+U6xIOIjxAdAy5xbL4m+fVYbr BRNhKBVoYEWDPkf+rU/a9zgGKGHNf6+HJVWMX3GiXPi9NvSIXSefkVKJ70HQSEyScIc8 HZcBKlik/HXE2VhQ/cynUVm3YxvRxu2STXICeyAxS1+rAiB3Zqj1URVPLO3bpS5Nd4kI lVWt64jotREL4eoPlbqqOXIU/Qi2MvWwbfTHFJpt/YzGlWjCQrEm7rxTO1do5Ntp84BQ poMg== X-Forwarded-Encrypted: i=1; AJvYcCXcA1ToRK5GrXjK//z/UHzUHyTiNNMWck/AVvw6Cvw8cADEzcmVz3iFtuvVbYFnBLLTCOZB9pLQwqqmqFYxKy+q@lists.infradead.org X-Gm-Message-State: AOJu0YzKFmJDw7+UYk1OWCGBNhkOZesKkhao/kf6nNv983ZELDWfU2gt 9Dwd+XUeMfmqczbVoBa1ihEsaHBrVt5XQfW+SPv5CN1z7tDBDME/i0gZ4HVsUQ== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_124702_006721_D2946577 X-CRM114-Status: GOOD ( 11.07 ) 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 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: 13819710 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 146D0CF31B7 for ; Wed, 2 Oct 2024 11:55:48 +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=M1kvp0VcH49Dd7pUdjrxa7BKtPwxncHiMFzmQPvOHBw=; b=h4znY6srgA5dc/O4MbGhWh1KAt Wi5KjbsottTyLLl1rwkcGOXoCpmcMp9nPt6l2NzUM/iZi+xXwrX6NL72FaR2RTkMliguW/REmS8tb iqI+vBUwKwVt4wiDQEraqpxJoH5iJcSyUTIfdRJE29WfbZfA26BcsmzKXUYtJtBmF0U/exBpuPn0g 6J4/gYa+nZ/sY3GTXBOo6H3nV62xvT33E24ULKBLGTC6LuNktEwZUmUkz/4RBsjF2t58wkcBtR8Ek GYvEWlOXCXMww8SGPOSXNPL9Wk+biX/2wqv5fwQRQ66jJUHc/MKItJivm3BbB9j7DA+eBoFsLEKb9 aCyauCDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxxC-00000005k1R-1FMA; Wed, 02 Oct 2024 11:55:38 +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 1svxoy-00000005hww-0JeW for linux-arm-kernel@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:08 +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-x42e.google.com ([2607:f8b0:4864:20::42e]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxou-00000003TjU-2jRl for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:47:06 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-7179069d029so4737122b3a.2 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=Txl5wg6+Ob5ShCF4GVts/BgCxYlsl5VhVD3UYxyVHaS1M4OeOy3jicrTuy+cbfrb5X rBw4zYdseVzaSoZ/MqFJLvxvBPTVYgW+PiOFaNPXaHSf4/NvY6GbujwoO1e+le7al8g1 YKswPDaFvrihlKJHciCHXnwBpQv4WlRbJP6/Xu2BOw8OBGv4tfj4gQy7Inma+TAskV2q C2x/puQGC8iZ3yG7Iy3IjwCKhxjOWtpnIwipb0kd+jJZhIrSbNbmEJLDWJF+xynFYdHJ jAEembXz32AfyU6QKwr0keVE7Ihl2tS2hSGbZvdtot+AHUD/BREgGCwrYgsK9z/YD69P uQ9g== X-Forwarded-Encrypted: i=1; AJvYcCVmb9PMzLYAbf53b7dGmMeNtRSzJs/aNDdbzS/zb9jgUdjVnNmywB60OJ1XdW/zH761ppc0LuZ9DRIa5RmPGWxo@lists.infradead.org X-Gm-Message-State: AOJu0YxMf1tAkkVf75MmO/Zh2L1BGL8IockktpNdc2ztA6j21BITvreM Vkqib+3+d+XeXRpQLuzVd8Qm7rCjU7Tf+Nz+/wnsMX3hFXcwEq6tr02FjNNgxw== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_124704_916064_77E651EA X-CRM114-Status: GOOD ( 10.62 ) 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 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: 13819705 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 CF43ACF31B4 for ; Wed, 2 Oct 2024 11:54:31 +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=ouP/AAURWlpM5gHEUts5ppp9KSn3cI1xAL6qgbhoUpI=; b=lTfS+5GApHsRBzP9d4hoQJTrnl S15Xw8gdoGC6NeG5PCDRq7Vx1IqKqHtHQPZipMk0S4vGiLKnh8qPupPjrSFL5iTyuj0tLmN2CtI5a n3WTkOl39Brsfsh0Yc7iUqOWyrE6ZDDXlhKpSAb3wa58Wh9d0VezVEF5Rr+77YQNlmhPzNRZ52xPd pmytHCF94+OMq2Re+P8rGHuKcRTO3WB7mwIxJqKOBSqaAsjLK8aBYmVBWje1sdg4Hqu8jBIZ2XJAW uB9IvglthG+0Yz81Nc8xQkNvHOkkQ1zJ+RR7VNhOwa7kCjw1/U5kQIzLHzR1Ll8KM5WZl3nuF7qbU z6mJQYZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxvz-00000005jmK-1uHC; Wed, 02 Oct 2024 11:54:23 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxov-00000005hwG-22M7 for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:47:06 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-6e7b121be30so4348873a12.1 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=V0Oejc9V1Al6uGP/4R8+bWaFjo7uvwGp7RLSOYeavGy2UTH0kxJae2RfqLP1sSb6yV xtlQEkSiG/q9dARPPXFj7Chz4tKjRI8EpzlZuF/WKLfmFb+jJihbpwYr4fdol7WUMGfe eFNPX1PE01MZTQwrIXQmrUkldd98vBV1f9G94Ak2VDFcNoMAqN6g6kqaQ7lBEEe8vrH3 D2xd8Hvo8q2NQ5ABlIov59qtzQqSQhOxH7SqO4m840qB0eQ3esl6VlN8XMqHJQhrxgRK GaXjLE2cSYVUUnZuzV6ud9Y4Lh25kG0gY0yQOlSbQ6ZoEMF85oDNDxcHWtYOTJtkbFNf jcJQ== X-Forwarded-Encrypted: i=1; AJvYcCX3Tm4DaUmU5V9383CWa7QHnLVBwjEYrNmTktbl7NGJGU9fIuQSAvYRzGxwwLW+T/w2fYpkZ+MIEkswuIqnpfHZ@lists.infradead.org X-Gm-Message-State: AOJu0YzpvyHkSn5a8OHambm6QWrK0PciDfNn7ZRZWBGHjenO+ndxoMsM LQtPSKxXYCezov0Gv2hVfWRtyIksHEk77dYxqbLbgbbtqOgDij9fUtBSj+r6dA== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_044705_547808_220B0776 X-CRM114-Status: GOOD ( 11.32 ) 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 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: 13819711 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 59D0ACF31B4 for ; Wed, 2 Oct 2024 11:57:02 +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=0kCRWUVsMe5+ruVnzqb/M8kOaOzFKMCz6CioUWe4Zic=; b=OteFvO0F2vfKSo0IeE2lvvPPJv cFQQtWUiNqIb2Eau2Nxq/2Okg4JzTD4eKbNalWXTqW0Kp5Yh46gSr0AIS0ZGOGgrWqJ26gaWelBSJ bvMpp7rnUiNlTbVFrUXoF7rfoje7KDBQ88C1f8wTG9BHghI243UJbCQQFjH+zNmY8lyhs+ejI0f8U RGJ0ewu4XF3aWf5oo01SJZ0t9U8mvfnm0hRicgJck62cxEuQuUU8NyK4vyTU5v5vflp5nik4ptrBG 6881zEKlfVjwBuJiR1rknpvAgnbucYibVE6sKmN9o90T1hHqeAaopSPEcXyw3TpC5wysedb/onlX/ bv+TU09g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxyP-00000005kKF-1nCZ; Wed, 02 Oct 2024 11:56:53 +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 1svxp3-00000005hyU-065w for linux-arm-kernel@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:13 +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=0kCRWUVsMe5+ruVnzqb/M8kOaOzFKMCz6CioUWe4Zic=; b=MVv57tfNT/UUKnMlZdlsqsxkIh UwJSh0yuVPXOMrokfOif/EM3yYaSy3k/3KeRsxoBfrTBkWOyseEG5iFT0L70HA7r/xavDN0UUJJl0 Vo3UAISoCfvqSvZHKobxKYeT+x+T0X4HnGzJNwwnwGC72xxsZ+bAjxfbIJ8tGQFwUu4Xl83S3z+f7 hJpDY5suW1dRcZd3jyrZskCj5ClP+Z/Tb7ubFJ/QMF7de4KDQiOVya+5cywBCx5CNAb1fcj17q8K7 bClPCzMn62nWiTUGWUu55ZUyn1nXsrHRrkMSFPaZtVI0zw9Ljr08mfALvTQ6C6uq1az0trXqqF8Cx iuPp4fyw==; Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxp0-00000003Tli-0C4o for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:47:11 +0000 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-718f4fd89e5so5943932b3a.0 for ; Wed, 02 Oct 2024 04:47:08 -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=bGL9JkpkUY5nNKKV1FEeQGi7fRScai+UNM/cZY0b5plQxBVGiIPjVWEs2tli2kv2uD tB6SrCTRFms9h1JlYsF+I9znWyKkOxQRLoOzXB3QfiOEdeim5TV26P+ItY+c5OszizkF nOpsE4hX1g1sFgYLVVwwofY155r4XgrQOhqcbNIqaChjkRq5Gx0bfJ+mK9Lum0s/KbOE aHt8MYucWTEPlvHMyJB7nnGunX2jXSSTLkD5NO38WbNeP+Hny7IUVRonPyp8No6w4SV1 nsIGcPnYVbtyCHQhLq62HJMDmXo2XoUQ7YAksgl3SyU9gd1/UbquC4g7X66XVOkWD7Pm JuCg== X-Forwarded-Encrypted: i=1; AJvYcCWCzUcbZwNY8t5e6mNmSDzM2dd9QGGJM7tJ1+Wt7lk9DGub4CaxrkWHIauNTtBWej4GIoF0sRk7swV2n7POJWXX@lists.infradead.org X-Gm-Message-State: AOJu0YwrdrkI9ZnrOO/9TlM+NcyP4gu+ChbzXd2ALqDb7ucd7cquH8B8 VEFXSvmKaLE1O5rJCwlMc72WGc7Qyt6dzKJP1UO6Mpw2+7g8mjLBZo7jnx4JoA== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_124710_221991_CE6E847D X-CRM114-Status: GOOD ( 11.22 ) 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 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: 13819712 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 46A85CF31B4 for ; Wed, 2 Oct 2024 11:58:17 +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=2J6IAMekTb4vqO9a374pLD/X7ddMa658jNggvdKpP9o=; b=O5FmIMx4eKGNevi0tY6yEJGkjO CO4O5x2WFgfs6VBCxAdkKAuX0OatzpeYldJhWm7yuR6/DztKfS+djGmKVyuh0Q5Iai7kvl53PvW/s xaihQibPqWYGC+1G5PJkYL3vUzA+Ts63gwVQ8XjNzmj8kB9hanisAeYxDOwQZcseuukIT2LWi0VGk 5SK1xpeibCmUgGOtFq8Ef/VcvB17MoXfa4h825Rdcf/fqp42aKkwOb9BX5mHe1xUUGRC4lzyWg32V e1TtLE0RFVyjAa2vEdEBH+W2vOJA5BXmOpYiYi+kEq7ZbaHjwOR8YYqjCFUwhQGaeNetVo+i26jdR mHiAzwOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxzb-00000005kaa-0abH; Wed, 02 Oct 2024 11:58:07 +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 1svxp4-00000005hyi-2o7d for linux-arm-kernel@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:14 +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-x431.google.com ([2607:f8b0:4864:20::431]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxp1-00000003TmD-2RKp for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:47:13 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-7198de684a7so4647731b3a.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=UOu/SyZ5jWflul7xS/IBYDtm/q5Bvae/l9WX77cQdz0YaP2r1FDpWqN4axttYcvt3l Wv1mOKHXQpBJJGUnoloBcLRP6+BnoTbk7fI42cJpEvKq4s//VfvzLBJhsZhbqhnhj3Gx ekts/IvjuBLPSt+Cu2ncagZV5qXFQQb6774zxG1DShi5KRn/ZV9Fo/NCF3FdqM9Sl4h8 aSuXYruzd+9aT3EJgGOg93AlP7G5o0pVPoAuzF3/LK4X8wKIW6I4A/tPzZjpe08BKbHC bR6yBPdo7Se7+LkabiSppriXrnJ2OzC+XJ99Blqo50QTtkb+O+fW7ZUZ33Eq7vlgJZOm IBWQ== X-Forwarded-Encrypted: i=1; AJvYcCU1tygJ1umqx3hEwW/aT08FUbBrHmfkeOLHrQEp2ISWLhFO8rgeSr975BfGgsFINo/Pe9L2xacSsQm1sKOZEQ9R@lists.infradead.org X-Gm-Message-State: AOJu0Yy8Yu7/rTcQmaZ9D3sLWLDE4nD2lCWMLkreOHDSEgW7LEbXxchJ aU6fmVN46gCGNtEw1jYMEjtO9+KUWGv1zHMNjZywbaKqYRLxB+oqcfqsGfKoNnarnyE8kJgHTst +Fg== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_124711_771470_56D48B36 X-CRM114-Status: GOOD ( 11.03 ) 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 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: 13819713 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 58E8FCF31B4 for ; Wed, 2 Oct 2024 11:59:32 +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=R67MOM4KKUTh0qCCt++0T4Ue+lkz0KBhSiql033WWVM=; b=y/Tg4vCg+GKxy0nc+CIHpHZwcU k3W90+Dfsa0xa5pl6iarjVPjcAmM/Z43rI5FXD8TPVs+2Ys8JSfb/pM7etm/M4EpvaKkwKKL+Nu9W LmefM9tfYCAVtWwkNqIfEDSwg0vFgiGEKaBBD2Iq/9TX9Xh1xWs5kLVO941Y/7gh2oPrn6yvci2zd XbF41ZBOL0bjBxBs5ZJ1jPc+4o6swKzvyIeFRmkSjjp3GMVJvxNuAVW/fvcAJXY9WInbRgKuYd4Fe znjnbbygcEDL8jzYwC5Hc5CpSdLLnMmo2wplIr08Z0NiWBlqU33cGlDV7DJ2PNboBR7z3j45L8FSM lvKsp1vQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svy0o-00000005kwE-42Rn; 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-00000005hyf-0pGJ for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:47:15 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-718d704704aso5549816b3a.3 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=dXy3iBaUdxmE/kF3DB0RkoCCAjDOGnqgpEz6vTsHsb9kq7ASH4w0DxfrxXh/hd1ZyN j0RaFhQRFmR95TlO7Ktg0rvvDRTwXE9n6MaL1WfVJzKAUFd9OI6PhwKu7etdLVk7OZt1 YBoll4IqmAZLmH7Fgpm/4OAp/qkJuVOoaPYRTEKLuFPSuUJLODzu8z4KMyfEF0N5gAtG HltZosk89kE15zxSsBgpbboo0dIJNlrN5NIHPCNUWW1Obn0yZmZrh29X7XudppuzeQKM KYRj97vT7x6oCdkYBKh/gibGZBLg7+n4Ck0zC4N2iglnrYOwEQgvqyA2Q/uqaXK/ucGE +01A== X-Forwarded-Encrypted: i=1; AJvYcCXyikLW/HZLhnKsRz6p9JSLh87Ji9Ri9ROOgb9dVwvybtH66lZDiNU2jZ2OCvLv5LmrVpj1kqAXmQsF7xUyxC8B@lists.infradead.org X-Gm-Message-State: AOJu0YzGQJiIaFiuxJA6UQFVhTur27141/MpIsji9foqCKI2tgHR48xv sin7XhPCzdW2PAKprMrKStJ5Af6adE93BayhySVgyX9r7tD596PcHzj03vpAUQ== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_264290_47232588 X-CRM114-Status: GOOD ( 11.56 ) 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 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"; + }; }; };