From patchwork Thu Oct 3 07:00:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13820711 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 3F0A1CF855E for ; Thu, 3 Oct 2024 07:14:40 +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=4SF5nwE8q+scLV0tbzUby7efs2QPmWoOdROYf5aDp40=; b=pjzzSMNuhd1lk5cGRkvgRxu8nZ qi53kYZJX2kJ0gk7qAav8OWFL2oyePLn6RrEjdkgIdleTy7DgncWCR7NQd9LjWPGM4qNhMXBpawm9 mCEN33cXv3rml2DTRwawtld7E8bWACo7pRXAQ2b0pqp7A0WtTGLXshn88kIXdCWmD3jTDAGbA1Kae mz98gkZFP+oSvM8nyPirT1c99Km0Ehnkt46y1hRN/dfNPsrV4FiRsVHfHnRCn+h2Uvz2MEx+ap4A0 rwc1o03x/RsvEahosBv6DYYmosgHrEoMK13MmmvdyEELZh0ARMcn0PnS0xmHLZdacMAcH4p9zqNxV sPs903mw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swG2e-00000008N0W-1y8I; Thu, 03 Oct 2024 07:14:28 +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 1swFqi-00000008KZQ-0jYI for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 07:02:10 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-718e285544fso525886b3a.1 for ; Thu, 03 Oct 2024 00:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727938927; x=1728543727; 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=4SF5nwE8q+scLV0tbzUby7efs2QPmWoOdROYf5aDp40=; b=UbY7GHEaAzZkbnYFuB0154BdVKTDG5YDuGGH/NPW/YOf8rEkjz7LOiXys8I2PvecEO smjiBr0b6IpFFu1oVv5uEh2e/VMxh4IvOsiTO58dz/9/yJRbIaqQlQPRDwRr+Cw8ytDX MXtsY+2+LDuTRGMJtJvDbgV+1dqr973dOpT38= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727938927; x=1728543727; 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=4SF5nwE8q+scLV0tbzUby7efs2QPmWoOdROYf5aDp40=; b=ecXGk44GQIrFGO1zFeTs44Wl6wLvRNj2b6j+p6VgFr0RM7pI6xALtb2mLTJ2l/S3Q+ riNkOoAybNhpDf0BrAC88DlW6E8efVfhYJexDiSLAqSLILMqAneJ7WDHOohBirEYljsI WvjS1XJMwJXHXBHkghQgWEUzSbM0O60dtYRULPHtMYUF5MdrSpCeknIbdnjLdHbvUTeA lpqJo4q/tSAxWFNedBN8N0q9GKLRln00lUeIlmD5+mya1YmgU4ZLuednFHophZanpeFa 20Jk8TfDoEe0armYm96nPBAa0JBOHrSRusG2sRetMg5EP7SmHgso6SAEp7zApKcdiXKk nprg== X-Forwarded-Encrypted: i=1; AJvYcCXL4sDX0FObTiuvUYbUGVMfVoGFJzcfvohLhyHjeLB9Kc+2vk+1q2gzxoK4+ZlO6AMndr2ubk783iSHYQl98Fwn@lists.infradead.org X-Gm-Message-State: AOJu0YwuV5htDVBsaiXjlRCiKWAF2za8tZv5ZgexDJFX6XvNKxxVPd3p m0EwsW4HcxXbNjNikSG9JOZKFU+jQsEbmCb9vi39j87pQPpUgwiBnWn1iU5D8A== X-Google-Smtp-Source: AGHT+IG4DLzVoYDK294Ku6Vjd08TVjHsUCzPROxKoUjkMR0faA4MYffuLo4qVtm78hvUVl9MUuy5bw== X-Received: by 2002:a05:6a00:23c6:b0:714:1a74:9953 with SMTP id d2e1a72fcca58-71dc5c9bc6fmr9630693b3a.16.1727938927450; Thu, 03 Oct 2024 00:02: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-71dd9d8e473sm633782b3a.81.2024.10.03.00.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 00:02:07 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 8/9] arm64: dts: mediatek: mt8188: Add DP-INTF nodes Date: Thu, 3 Oct 2024 15:00:02 +0800 Message-ID: <20241003070139.1461472-9-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241003070139.1461472-1-fshao@chromium.org> References: <20241003070139.1461472-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_000208_319345_38B204E8 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 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 --- (no changes since v1) 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 541eaed59e8b..e77bd2b76128 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; @@ -2450,6 +2452,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>; @@ -2715,6 +2729,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>,