From patchwork Fri Aug 30 08:45:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Agarwal X-Patchwork-Id: 13784633 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 DF957CA0EF8 for ; Fri, 30 Aug 2024 08:47:56 +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=BNhoisuk/jUSOFe52sR46QCIHvi7hEsksA7LiMmuHN0=; b=SSCo72/XNKG2ATzip1HCdu0dIc MMj1wNuK9X25arUEIIQC8fCaMJd+YZ2XlCwyJ5xZMeIX47qEDXwPYA9l6vuznYyWJhaOfLdXs1W3B FC9aQAKbpoiO0VUlsc3gc+kbWV9DzxVreRPAf/+2WU/lZZyK6RFEfWq/T1gE/uAtYKffn8zaOJ0lx amzUKZLkRfMejK1pa8eocHJBbrHCLN41ghYZ6CgiNVenQaBY8++BoRDoOnPVyf5JC5c1ButmCguSx Fs9TregCgeePYv0vIKIAIwmiWcTjl/CKZP8UJm0QTv5KpIpPqxr1MTIqqAXitDKdX4rcg/i0sg5m1 +6bu7Ulg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjxIF-00000005QIt-0I9F; Fri, 30 Aug 2024 08:47:43 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjxGh-00000005PnX-1amu for linux-arm-kernel@bombadil.infradead.org; Fri, 30 Aug 2024 08:46:07 +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=BNhoisuk/jUSOFe52sR46QCIHvi7hEsksA7LiMmuHN0=; b=jCrzT2wW1o+lMdUC4afLsi3hlx NUx74c1stpYxbEprAWwT792vwKrVOn33J5E5tqbzEqQMwPDUhaQa+D5iuegHneE8iZn3kMEXOM6Bk 87rpKx9nGoMek7hkvwusoDtqoNmIUh1ekXnMP9t/jHAOPZxte95PM3pqHgYsYWVJGGVLznNXKfLay XclqcUAHlbvK2ZfdWhv4OBlYSkKEL+Qvh8xJDlcOkD5NWjkxtHRBEpfdGUz1yykLM3eSQ8uMT6mUG xpQpbdQUyWIa7EA5D2dCT2cVyPeiHB3yPjIykc32Xa9o3F1CB4dxrXqvFLVOER7N5W1JKSu75AHha yQq7czHw==; Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjxGb-0000000Bc8Y-1mTn for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 08:46:05 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-714263cb074so1178164b3a.1 for ; Fri, 30 Aug 2024 01:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725007558; x=1725612358; 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=BNhoisuk/jUSOFe52sR46QCIHvi7hEsksA7LiMmuHN0=; b=nuCPvJZTpjmOkeY4CzEig8CSlwd6i0GjFN6+V+Ttayr+6gyCc8+L1Kn//u+baiBQIH TvZFePWNEMcGlUjq3hdycFkW4hZKIqs30CwobtZ5VGyVKP2unx8gATHkAvheoPkyt8gJ Mia8ghEj4dY8DdtfxToRC9h3eqQf3pHpF658w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725007558; x=1725612358; 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=BNhoisuk/jUSOFe52sR46QCIHvi7hEsksA7LiMmuHN0=; b=K0j0DnStuq9W/E/snbUeYuRI3eqIqP7MZiQ8S25tWCsg+cQb8J1fYqZhfuHIcmwoFT wKGL5WQZvY5yjwtG/QjzIDCw+oDRRoZvU9mA6Mt9bi7X+m38+gkywYjMFZZtZXT0sAoU RLOO45Igs4NSDW2Fqq8HaAa1Rp3X0MqbtToynmoFdkEHJ5bjzsNEepgoHPDQvB2nenb2 Fsyk3rIW0RkN475pX5fbutsKEVxeZo5H7GGY2jxnSRz1wYT9DbZBnPgLV71AWYC1AKPL ml5ECJNpBaOMcC+kzv1iAHHuLTFw5sdIl1x9a3ma5Oo9r4o5wuxByRx2pm3zHmIDgVw0 /9Jg== X-Forwarded-Encrypted: i=1; AJvYcCXbKkmvQ9SKiL9lMOPmcUgRu3cOBGokMchNHMYkQp87U6TOkoGNRiDzYcgRgsnXy9axn4hM11d1rzX/lCs9aIAT@lists.infradead.org X-Gm-Message-State: AOJu0Yy7edOKyLhlUQzIqxRA4swaaCB3zm8aBWrRmGfbfU0llD8l/qTq Hq3zdOtN6TACeO1Yn8Q1ymI02yQv/KeV47pE2/4zsMy7pVMv02D2GlncNKn8qw== X-Google-Smtp-Source: AGHT+IHJFS1jtvkTZ22k5pD+Kn9bReufF91Us6y0WLt5aVVQ6EqMEnI6zYAJ2oR7UwfAiAfac5+tAg== X-Received: by 2002:a05:6a21:2d07:b0:1c4:a1f4:3490 with SMTP id adf61e73a8af0-1cce10a7fd4mr4563290637.39.1725007557633; Fri, 30 Aug 2024 01:45:57 -0700 (PDT) Received: from localhost (117.196.142.34.bc.googleusercontent.com. [34.142.196.117]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-2d8445d5bb0sm5784248a91.1.2024.08.30.01.45.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Aug 2024 01:45:57 -0700 (PDT) From: Rohit Agarwal To: chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, ck.hu@mediatek.com, jitao.shi@mediatek.com Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rohit Agarwal , Krzysztof Kozlowski Subject: [PATCH v4 1/3] dt-bindings: display: mediatek: dpi: Add power domains Date: Fri, 30 Aug 2024 08:45:42 +0000 Message-ID: <20240830084544.2898512-2-rohiagar@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240830084544.2898512-1-rohiagar@chromium.org> References: <20240830084544.2898512-1-rohiagar@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_094601_698553_79BFB005 X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. 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 power domain binding to the mediatek DPI controller for MT8186. Also, add power domain binding for other SoCs like MT6795 and MT8173 that already had power domain property. Signed-off-by: Rohit Agarwal Reviewed-by: Krzysztof Kozlowski Reviewed-by: CK Hu --- .../bindings/display/mediatek/mediatek,dpi.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml index 5ca7679d5427..3a82aec9021c 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml @@ -62,6 +62,9 @@ properties: - const: default - const: sleep + power-domains: + maxItems: 1 + port: $ref: /schemas/graph.yaml#/properties/port description: @@ -76,6 +79,20 @@ required: - clock-names - port +allOf: + - if: + not: + properties: + compatible: + contains: + enum: + - mediatek,mt6795-dpi + - mediatek,mt8173-dpi + - mediatek,mt8186-dpi + then: + properties: + power-domains: false + additionalProperties: false examples: From patchwork Fri Aug 30 08:45:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Agarwal X-Patchwork-Id: 13784745 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 58876CA0EF4 for ; Fri, 30 Aug 2024 08:49:44 +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=MG9yE55j5lJtqIWbVs9SHCJ5Kc9kTWgC1tP2vOkNljE=; b=ukzShViV4ECXOV+VXEz75+LCWf n4+Yw/LyKyom39Ez9Yfy6LN6UTI+Oi1FdoqQ5u5eH8GZ1Y/m3Wl/1piEHnBFXPaKxtnPFj3pOSLPk EoQ/QyLcGiRb/p7R45Do6z2YUDi5i1m3ifp0b1hIPK3EFkKBZBxCAyw9DC237Y3oKoyfzw/eefCFQ SQZd49hVwM8Ksm5bpjW0kuf6RBfgnCZt2wAhF+m7oNy4wPMy71DvmLDlORKwBrbnu9whQbZOH0GbG fTLvXVTufCDR5/lLX4hi8RxwyJ3d6pHaitKtggeW9WsFwTj2eLyhrU2uEOK7ZIBmHzcxU2LJ5wDru gqngDncA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjxK0-00000005Que-3xoN; Fri, 30 Aug 2024 08:49:33 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjxGw-00000005PrS-0H7C for linux-arm-kernel@bombadil.infradead.org; Fri, 30 Aug 2024 08:46:22 +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=MG9yE55j5lJtqIWbVs9SHCJ5Kc9kTWgC1tP2vOkNljE=; b=UVDuGGLjWJO4mfUe5uPkLR5S9K dbMqb/GrBY6JMSrrqufG4d1JDqqRvWoPrQ2cY7VApUh3ICifj+vv66H61BvfaYgVgzG34HlJOzFBW gAcfn8gOWbHl8Xf/8fqmKdsE14SB0tF7AMCWT4wJa7xzFxsU8HFFcRoJsiBTcmw60K/qUVK5IVL1f zM0oZFZggrNrl2TQ+vDPJdpL5yXoBDC1cvpZBxksi1liIItRXNJZAF8dfketJ/q9/EzDFuVd5KMkT o+mU7vN64we/RouvCbSFI7nRgcf0kVJWZS2P87qGjYDWz1QAD+yJf87Jnrb/5nf+hiUzNLFXBcXPw SGXRPRsA==; Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjxGg-0000000BcCV-0DoE for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 08:46:13 +0000 Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-7cd895682fcso651283a12.0 for ; Fri, 30 Aug 2024 01:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725007563; x=1725612363; 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=MG9yE55j5lJtqIWbVs9SHCJ5Kc9kTWgC1tP2vOkNljE=; b=Ard20w8f8p+WtzHMyWfsK/1lG4PPz3vUQZEFjvo1XlR+1Yl2bi9b4AdvdKFZ5lXTeH V4wxh17vaRrbMuPg/sWLiwWwO9KXonHr8Jqy6XVeXqHUeF7Ff8YdEDurXfXKKcOk3NPH sRfHdRo2rC+RbxlbwSdIPnZwzNTXwQSF2uV1g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725007563; x=1725612363; 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=MG9yE55j5lJtqIWbVs9SHCJ5Kc9kTWgC1tP2vOkNljE=; b=qhiotVauGsz2jPijylVHR1C16N309f6o89AR2D25qmfxKYBB7Gdmm2ivQNt5bVKF9K lXvbwJMvin5ubBiWivs/KuOSkViexXtBx+pML0ioIFlKwCmpHEYRMgf9YSzhWHJioHQb kdiglSa09WHouow7/VCT+8LxF6DjxlUiA/wB8Up/IVELDO1MJSqbr40TKJC0LFMEmimt dtsbQaRrJcJdT6TZUQ/H584lb0xsOxwDytcXUJtbV5uAhljvfp+93O08RhYz/SxF+n41 04wCLuB3+y5vAaMzlf2YD3snWyZPlWpIiWyJi6692ZMD0lhHO+g3lMxT+CuieLK9RLgH c7OA== X-Forwarded-Encrypted: i=1; AJvYcCXvGx55mAICEoCagLMq2yAH2c87KabIijytyW0fdePgZBpOWKFQpRkyC4dv8L9qt30eDkeFveSQDQhwS5Sj7GRj@lists.infradead.org X-Gm-Message-State: AOJu0YxVpmeC3MWWsT8Jd2fw1UbdSWUTLjv9sX0Ju4H0/RoW6zbGlfXn WhaaDToRy6+7Z24Y586kWb1fof+bJJkESzPeP7/zXTrKNYCcOk4zmXiAClAngw== X-Google-Smtp-Source: AGHT+IEc629GXImBuNOILo97YU6aaZaMx2RzjoxMwdEEvSYsu0H0uErl6hhdNvBxFRkjzwhSGg98Rw== X-Received: by 2002:a05:6a20:d486:b0:1cc:dd3a:ed43 with SMTP id adf61e73a8af0-1cce100b087mr4623425637.12.1725007562833; Fri, 30 Aug 2024 01:46:02 -0700 (PDT) Received: from localhost (117.196.142.34.bc.googleusercontent.com. [34.142.196.117]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-2d85b0fdf44sm3192373a91.6.2024.08.30.01.45.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Aug 2024 01:46:02 -0700 (PDT) From: Rohit Agarwal To: chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, ck.hu@mediatek.com, jitao.shi@mediatek.com Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rohit Agarwal Subject: [PATCH v4 2/3] arm64: dts: mediatek: mt8186: Add power domain for DPI Date: Fri, 30 Aug 2024 08:45:43 +0000 Message-ID: <20240830084544.2898512-3-rohiagar@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240830084544.2898512-1-rohiagar@chromium.org> References: <20240830084544.2898512-1-rohiagar@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_094606_596461_3BA8807C X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. 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 power domain phandle to the DPI controller in mediatek mt8186 SoC. Signed-off-by: Rohit Agarwal --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index caec83f5eece..85b77ec033c1 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -1843,6 +1843,7 @@ dpi: dpi@1400a000 { assigned-clocks = <&topckgen CLK_TOP_DPI>; assigned-clock-parents = <&topckgen CLK_TOP_TVDPLL_D2>; interrupts = ; + power-domains = <&spm MT8186_POWER_DOMAIN_DIS>; status = "disabled"; port { From patchwork Fri Aug 30 08:45:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rohit Agarwal X-Patchwork-Id: 13784634 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 16DA7CA0EF8 for ; Fri, 30 Aug 2024 08:48:47 +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=c0MSD/vKECgZ6ipsqTjNJm7AvSs0y8L2jz9lADbJGXw=; b=rup6g0stwSWrzcAfXrCye7p5Bb ymZgZI2mOJky27KB7wU1VHKEVCtuZ+9F9rWHeelBtDh+J2CDgZwu2yd4L+ULb+nTeSwQjttRM9C7m Jn9u03Rsh/IMysRx16l5UJk2zb+ihSXFng+zCCus1kOa/nO2/vGbhLPrsXJD5zeJC/xuhuQMu3IBI nCsm9ksZdwUgUtEpMN1ZeJZuyLEYDcNqTWpgmSAchtStSNmNB3yR6ygk+uw3KZcE+9/R3CVzQxdIh pdHy9pi79gKSrPuNKs9Wyd6EZ26R/yI8QzbqQ0AVZIt2ooD6tJ2GI5/f1uJpBo9y3eIEq35xU+3dG Hjh+gVGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjxJ7-00000005Qc2-1iaX; Fri, 30 Aug 2024 08:48:37 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjxGp-00000005PqA-2evB for linux-arm-kernel@bombadil.infradead.org; Fri, 30 Aug 2024 08:46:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=c0MSD/vKECgZ6ipsqTjNJm7AvSs0y8L2jz9lADbJGXw=; b=IVH6eygP0/LdnsdcTT+hpNuUwK 6pj9gcmO61+cVXJxje965sPtA5mFWUCZrX/L2PxcJ5iqScmU6ZO2eWuIcS4GkpSV0fPcUk+Jsop9X XBvdWTpEFxuagRIl0ZsTvyB9owN1zFnKudECkzSYUXNWdqHT0IYjQk6HC87hy3B/IAvRgaclq9w/z 2H7xDXDlGECa2nWJB0jvl1OsfG9CZ0HjOElItn8BGvy0akG+xPTJvLRK4AfZbjliY71OSECQ5Zjtz U7k/ke5KQXPf+eT49Hiz4lr1z8i9xe+6+pf/ay0FqjbHnofz5JwlRVaGGo0geDj7Nou2Ai8W2/Gzv pCYmLMqA==; Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by casper.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sjxGm-000000034MC-03ra for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 08:46:14 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-714226888dfso1300027b3a.1 for ; Fri, 30 Aug 2024 01:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725007568; x=1725612368; 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=c0MSD/vKECgZ6ipsqTjNJm7AvSs0y8L2jz9lADbJGXw=; b=WwNjkB1CR5cZvATsOQiDFm5xzW15/4BNsIMw3ncg57iNer6cGtq52F3gFJ0gctaP5c 35lvvwQLtS29I4sFEZuOZ+IGmsJtHQE9sX+PdXab8eFvVnO1t/LCR6Id9z0pbWWjmqoK HCVM9OzrbynfUIq9R9QCazVME7k9aLVbkHFo4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725007568; x=1725612368; 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=c0MSD/vKECgZ6ipsqTjNJm7AvSs0y8L2jz9lADbJGXw=; b=TE2kib04Zj7UG3Xsb3QvblUOyrM1DbShx5xJ3961jVVCSrJ0mUeYNbIJOFDAnIFWs7 lopB+H9+0p/O4cXo8jBaZM85MymshAaEW1ZOjqY9uw6USxsCmT6iYB6t93wNASViB6W/ /g6dcKqXqaGNQzB5GgoKpd+x2PHK0W0ZHRMszMaPuEVyrndtTAXuGvRpPeTNacwHJLk6 qMPVBe0SMSLym2IUnnwY/P2COzahhPANw2eAkHVwgw1UdLYGj8mdcQbS/CCQmvLJUlER fa6vtNQuiqzdPAiIm2BAnzxzIIvhCiqzAxqWZpghGvEqbJNsVMPw7OBlwDrJBOfQEjRW QuAA== X-Forwarded-Encrypted: i=1; AJvYcCXds2W3ZfxSzctGOlhvtwQ9WRAN+GeX5KsRslAuhQClyqvy0FFfTmxup7c8xJagMmVd11GTjZDGfkm3n1WNDbxl@lists.infradead.org X-Gm-Message-State: AOJu0Yxz5Trbdbnux+t4/4rpXopfFliyvaviCIgSTKe5KkkXTl4lS8iO JsZlNBTQ40qpe8ErkudntAEdxhfKC1LQTYkNxwAdxN88fmavqAvGmVzznjcxiw== X-Google-Smtp-Source: AGHT+IF/Ev+xp5G1M+ToeusxjN0ThDIfMD72jH6J5Y7yXu9dlnTUI7Td1DwM8MVKcLVb5RSdY4uPIQ== X-Received: by 2002:a05:6a20:4386:b0:1c4:214c:cc0d with SMTP id adf61e73a8af0-1cce10ab1ccmr4853891637.36.1725007567866; Fri, 30 Aug 2024 01:46:07 -0700 (PDT) Received: from localhost (117.196.142.34.bc.googleusercontent.com. [34.142.196.117]) by smtp.gmail.com with UTF8SMTPSA id d2e1a72fcca58-715e55a3a7bsm2288304b3a.47.2024.08.30.01.46.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Aug 2024 01:46:07 -0700 (PDT) From: Rohit Agarwal To: chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, ck.hu@mediatek.com, jitao.shi@mediatek.com Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rohit Agarwal Subject: [PATCH v4 3/3] arm64: dts: mediatek: mt8186: Add svs node Date: Fri, 30 Aug 2024 08:45:44 +0000 Message-ID: <20240830084544.2898512-4-rohiagar@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240830084544.2898512-1-rohiagar@chromium.org> References: <20240830084544.2898512-1-rohiagar@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_094612_075028_261167D8 X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. 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 clock/irq/efuse setting in svs nodes for mt8186 SoC. Signed-off-by: Rohit Agarwal Reviewed-by: NĂ­colas F. R. A. Prado --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index 85b77ec033c1..3bd023cdcac0 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -1372,6 +1372,18 @@ lvts: thermal-sensor@1100b000 { #thermal-sensor-cells = <1>; }; + svs: svs@1100bc00 { + compatible = "mediatek,mt8186-svs"; + reg = <0 0x1100bc00 0 0x400>; + interrupts = ; + clocks = <&infracfg_ao CLK_INFRA_AO_THERM>; + clock-names = "main"; + nvmem-cells = <&svs_calibration>, <&lvts_efuse_data1>; + nvmem-cell-names = "svs-calibration-data", "t-calibration-data"; + resets = <&infracfg_ao MT8186_INFRA_PTP_CTRL_RST>; + reset-names = "svs_rst"; + }; + pwm0: pwm@1100e000 { compatible = "mediatek,mt8186-disp-pwm", "mediatek,mt8183-disp-pwm"; reg = <0 0x1100e000 0 0x1000>; @@ -1695,6 +1707,10 @@ lvts_efuse_data2: lvts2-calib@2f8 { reg = <0x2f8 0x14>; }; + svs_calibration: calib@550 { + reg = <0x550 0x50>; + }; + gpu_speedbin: gpu-speedbin@59c { reg = <0x59c 0x4>; bits = <0 3>;