From patchwork Thu Oct 3 06:59:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13820701 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 E5599CF855E for ; Thu, 3 Oct 2024 07:08:13 +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=HEQbIZ1kOEPpCwOKFUVGo0GWUflsfubNyX6zy8z13EU=; b=3jZx3a/d8SYodW0KvoKGQr2B3R QvO88PLIRmeJ4+6+6AQDpT6FGm1tJqGUgOzKxVB95GXDnYYogn9rSCn5eCrh3nqrQYkPb/oVIS9aK ix0SAEbyftjb//Ocp6LArqk+welpkoLVVkJUiI6Fum78EPOZ4qgs0pfhqpKL6rYqcuoQQz09T2Uq7 dii5m5ljRQYsvAbR/8kFN0qM0aj+5AQC7xMp30L0Cfd02lnUnnougegTiIOwKboRdjQ5yDUpE949D StRS6HBM1Aoz2snpeooWDb7uNmD0SJ0aKwuEnYWQbhQmkRqv09nvC27TCzdlTMcOHxm2ePvUv+KIp zj9It5Kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swFwQ-00000008LdP-0tW0; Thu, 03 Oct 2024 07:08:02 +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 1swFqV-00000008KSv-2cPB for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 07:01:56 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-71b20ffd809so582964b3a.0 for ; Thu, 03 Oct 2024 00:01:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727938914; x=1728543714; 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=HEQbIZ1kOEPpCwOKFUVGo0GWUflsfubNyX6zy8z13EU=; b=C+rTa8NrV9gloMgi1glvhCS6axsWDqrckWf+ZxT+D34Y4kyNVIvZv8n1LhK4H7uh2G QjWGWzc8vsj19VFX9F1AerHTggrO6SOy1tA8GPx0+Ou4/p2x8+sf++Ta006FdTOOinX3 UCui1db61xvq2YIsGl1tkrEFu1u4JWX62pGzU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727938914; x=1728543714; 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=HEQbIZ1kOEPpCwOKFUVGo0GWUflsfubNyX6zy8z13EU=; b=aCyLh+H2VsHFCSJSiUcRCv3+sz8muaL7+Pq5N4nAykgpctsBTmdfPKTqH5FOZuoInf VA6HOnxljiFtMBGGHr6k9p9rWXrTe7Q/53ba3zDjKKFhF/gFjNFbe/sXkRqw56bFq4Yv cTV0KMog6bXKXbW1S3ioAS9pyL6crbOl48RFuZdG1sW10gu8HS4ZaSE7+ubgr539EWwU P09PpjW5xTHJ4SaOSramiGSvOQ/DvwFJybpURxKtXVOnh5dJWbv3rCtgR+2YjQRITzov 1Vy5BpCJhahEu6hC9cE7aBdQdjp09qUWuJ98uZ2x/dfxx/qBtQAPVJJXKUjAuGva12g0 C0Kg== X-Forwarded-Encrypted: i=1; AJvYcCXwmUK40X0z8x93HqSWVn6uA2SW89IwrAsrXAWL54pQfaSyuDnO+RO9rX8LVlYG3qzshsIwJpomXR+rvvt9eZWB@lists.infradead.org X-Gm-Message-State: AOJu0YxDCweoL8v4MXHY/qVFU0ojU4OiKFINqRmpwxkRhrdLyO8A7PsE 4TcSq+szrlGfrMOdvcb9yv/HHvHY3Uq0B9Rs8QpX7elM0ashG7Oy686OoQZknsfSvZjd9xjEdEF jvg== X-Google-Smtp-Source: AGHT+IHOgHjrlMxD2zoM2IlOxDAItRRWCVLa9fyphfermgyfQ3vL8yGSyzT4jH4vijnNVzmVtvYQDQ== X-Received: by 2002:a05:6a00:178c:b0:70d:2fb5:f996 with SMTP id d2e1a72fcca58-71dc5c67164mr8309063b3a.11.1727938914540; Thu, 03 Oct 2024 00:01:54 -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.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 00:01:54 -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 3/9] arm64: dts: mediatek: mt8188: Add MIPI DSI nodes Date: Thu, 3 Oct 2024 14:59:57 +0800 Message-ID: <20241003070139.1461472-4-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_000155_716197_4275E7A9 X-CRM114-Status: GOOD ( 11.18 ) 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 --- (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 23101d316c4e..719d2409a7db 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1839,6 +1839,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>, @@ -2224,10 +2234,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>; };