From patchwork Thu Aug 22 06:46:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Agarwal X-Patchwork-Id: 13772740 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 5266FC5320E for ; Thu, 22 Aug 2024 06:47:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D01F310E76F; Thu, 22 Aug 2024 06:47:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="bRPevxC1"; dkim-atps=neutral Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0464D10E76F for ; Thu, 22 Aug 2024 06:47:05 +0000 (UTC) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-7bb75419123so312037a12.3 for ; Wed, 21 Aug 2024 23:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1724309224; x=1724914024; darn=lists.freedesktop.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=a6VhPMtectai4hGqbUSp0dB+6VO3NOuS573R5ytgFYI=; b=bRPevxC18IaaCrMC41ZADyTfolPuYo+kKrnID5j84NMxavn9qtjoWz5zTQvC7ZWVA+ oJMrhJW7qsSd3VJw1X1sRgNd+lCOehhnvAKtjGXWmQp+4yfcafND/VbN6KJyJWdDfOrT Nm9VaowEHDG5wTKOvsk5AL0o2y3fLRv6klFDU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724309224; x=1724914024; 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=a6VhPMtectai4hGqbUSp0dB+6VO3NOuS573R5ytgFYI=; b=SNZ9uZ43354JJoFPdhmWChKFt66KQZo9ZoMUITKluPlczZ87UlQ2TREKvy4WLaC1lt jCj9UNCtaBf7vKsMhKBrhDFsesTGl3G+UyrO0OTQNEJDtLFR9qGf1cHgXkZwi7HwKhZ/ xAPdd2n8faz8RZwUHKcg7pBhBapCYp9AJxZOCWg9IRd8O37qyIc9p+m/FeJqwj4oNRGG iE0zY9bwUsTBtXCWKuTEnqX0mvYWDcXTh8qNvOzXglokURJF9heqAnrbH9tKFnCjt3WP 8WB5av8T1+amv5yABBBfLprGGWcYWNaee++KAXmbyh/Fb1qdppZjVH/dRvm/uaBECFuX rJ+A== X-Gm-Message-State: AOJu0YzB1rCxBGWpPJVdtYajuzv2Y6mEkhwhprjTVQ7UfwBhFG9Mj5pA SWHN6+rrY1v6Oe2ZM7Xp4AoMQKHjgtXVhlXVhK54AE/R1ZsCIqjNf/2VKU1/Pw== X-Google-Smtp-Source: AGHT+IFOTThZc7Acbudhp76jsdVEtyD08nopL5PxkAb/g8HYG8h8pM7szn8X6lzKGkKTXkFY44I14Q== X-Received: by 2002:a05:6a20:6f8a:b0:1c6:a656:84c9 with SMTP id adf61e73a8af0-1caeb1d6a60mr1116121637.16.1724309224283; Wed, 21 Aug 2024 23:47:04 -0700 (PDT) Received: from localhost (185.174.143.34.bc.googleusercontent.com. [34.143.174.185]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-2d6136fc523sm856946a91.9.2024.08.21.23.47.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Aug 2024 23:47:04 -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 v3 1/3] dt-bindings: display: mediatek: dpi: Add power domains Date: Thu, 22 Aug 2024 06:46:48 +0000 Message-ID: <20240822064650.1473930-2-rohiagar@chromium.org> X-Mailer: git-send-email 2.46.0.295.g3b9ea8a38a-goog In-Reply-To: <20240822064650.1473930-1-rohiagar@chromium.org> References: <20240822064650.1473930-1-rohiagar@chromium.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Thu Aug 22 06:46:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Agarwal X-Patchwork-Id: 13772741 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 7230CC531DF for ; Thu, 22 Aug 2024 06:47:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E282D10E772; Thu, 22 Aug 2024 06:47:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="iVp34vY7"; dkim-atps=neutral Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0D3C510E771 for ; Thu, 22 Aug 2024 06:47:10 +0000 (UTC) Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-2d3bd8784d3so356220a91.3 for ; Wed, 21 Aug 2024 23:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1724309229; x=1724914029; darn=lists.freedesktop.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=Iox3pW+t1+/mCNWqBkSwh8gOTlOVaTTolmdqxDRdGuE=; b=iVp34vY787e2nj0GS8TZD2TG+acLV+bCQu1GyAqtRtsrTt/z88eIX/THTNAgXm6MFe QVUj0p0YgeAepUv8Y4hswnxoU7qhtT5RDxTbC/+XN2wS5KEkEg5E9k3IY7LMoFQqywiP AaDZizDvMil3FepDSA4jFExjHoaI2rI4ufDpo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724309229; x=1724914029; 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=Iox3pW+t1+/mCNWqBkSwh8gOTlOVaTTolmdqxDRdGuE=; b=FxQPVKLIvuRPCwj79rkoQizgjXmMW9/fVRL4fTrYMMCGBnNrV/jrzJuV4HJfvqwhLr sf7uyPH8wZCqnW13ZxCwgB19l7gZrEv37dAQXsDpGrwEbSb5LJUAzSn/T7MHPTvejjfR 5nZDxbDYYkOYxfGrV/m0hWLS+cE3u7FfoABssQthyY2xSd8pg8AGzkF/Z4JjkGEkkOXs f8ATG4bG6VAYwAlN5WTRBK/uaZCkp0r0AZWOc9CK3yYGVTfcLhe7Kbp8xjXuMBNLt89c zN6rSfwDKg4/wS77di1hMGJJvXRiTj1jt/z9TS9JMfRckjiS6gdwpkdDWa8anaB3Tb/7 dOig== X-Gm-Message-State: AOJu0YxmvN3LoL5mRGBXN0e2hvS3lplz6aRfj/GKAaQzp5simyU7Y37x pYrr/1vQjYJIUZbFohDyboyuFhxFzTGfRe56nXDTWyEPrHF+rsT1+IvnY0yr5A== X-Google-Smtp-Source: AGHT+IGDm0aYL8ExBHHTkePgeJ1dnpbTcM/gseUSEQPj47QfaHrXBDFNOT0Ci3LVj6t5wZrZxdp1CA== X-Received: by 2002:a17:90b:4f89:b0:2d3:dca0:89b7 with SMTP id 98e67ed59e1d1-2d5e99fb6d1mr6084906a91.3.1724309229382; Wed, 21 Aug 2024 23:47:09 -0700 (PDT) Received: from localhost (185.174.143.34.bc.googleusercontent.com. [34.143.174.185]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-2d5eb90c542sm3166866a91.18.2024.08.21.23.47.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Aug 2024 23:47:09 -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 v3 2/3] arm64: dts: mediatek: mt8186: Add power domain for DPI Date: Thu, 22 Aug 2024 06:46:49 +0000 Message-ID: <20240822064650.1473930-3-rohiagar@chromium.org> X-Mailer: git-send-email 2.46.0.295.g3b9ea8a38a-goog In-Reply-To: <20240822064650.1473930-1-rohiagar@chromium.org> References: <20240822064650.1473930-1-rohiagar@chromium.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 4763ed5dc86c..e27c69ec8bdd 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -1824,6 +1824,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 Thu Aug 22 06:46:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Agarwal X-Patchwork-Id: 13772742 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 744FFC531DF for ; Thu, 22 Aug 2024 06:47:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EEE7D10E771; Thu, 22 Aug 2024 06:47:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="m3e8yp4X"; dkim-atps=neutral Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6353010E771 for ; Thu, 22 Aug 2024 06:47:15 +0000 (UTC) Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-2704b6a6fe6so297020fac.1 for ; Wed, 21 Aug 2024 23:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1724309234; x=1724914034; darn=lists.freedesktop.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=VF9PjinJER9wjMA+9D6wXT2j5101Rcr5iAVO00wcnuk=; b=m3e8yp4XDGq9NRFgFNuxk094K7otv6BokieMGy5g116rbrYMOYhyW/M4PpCu3Hwvvj bri1GG09d8C3soNa0PeVs5L4OD5q8Ovwx2/9KBxnQfgqDG3HhZFEGNpj1rN5syLgyBUt fwYd8tVsKf8n5PytcC9PeEWa0kmglvQLs2hdo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724309234; x=1724914034; 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=VF9PjinJER9wjMA+9D6wXT2j5101Rcr5iAVO00wcnuk=; b=Nzs7PWzchj4haWqmPZGHb/Lx9+ve8QBzEQ4V8hbc4E1wEIwwORI9zlCb14pUNHADoL 7jzOGqegktfBys5uTKHUdHOrdAwrcdmDoQte0fi830rHP1cQNHCuGYXs4QfU70DC0GYQ 6eS56CZlynQnVRhrJBmiwQ/QL+cZQ0dNBYStwvg8G9PVfX15IBLk0iH5Hk8OHgm3oqox NhxAHIqcT0qsG8PVLSFhvJJydjwZsPetUiRa7/mPVHcqziMCP+avnHNxqSisriQIDuQk /xRxL/A0aPbOxwCD6EVOCOSGVcEIR3Yp2qbwmgOShunyZ3WHL5S5aoZDQB9+e2GATMP3 +21g== X-Gm-Message-State: AOJu0YyFmEKVonvBZaRkz4wCTTmsVOD407bURsIyXhSDQyqj1YaOT+BV U7o1JlAbTkpLS0yi2OTtN4EwAkvoHmPyeTr6oBHaErtCyajzsE6H9T6d+MOX0w== X-Google-Smtp-Source: AGHT+IGrUfTOkboBsPUwPI3QFIqP0YcLyJ19ev6z6avzO4hsPA9b8UhcQhr91d3x2cfdkibvPWSpUA== X-Received: by 2002:a05:6871:1cb:b0:25b:6d53:d294 with SMTP id 586e51a60fabf-2737ef7d20bmr5327067fac.23.1724309234476; Wed, 21 Aug 2024 23:47:14 -0700 (PDT) Received: from localhost (185.174.143.34.bc.googleusercontent.com. [34.143.174.185]) by smtp.gmail.com with UTF8SMTPSA id d2e1a72fcca58-7143424a530sm698129b3a.51.2024.08.21.23.47.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Aug 2024 23:47:14 -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 v3 3/3] arm64: dts: mediatek: mt8186: Add svs node Date: Thu, 22 Aug 2024 06:46:50 +0000 Message-ID: <20240822064650.1473930-4-rohiagar@chromium.org> X-Mailer: git-send-email 2.46.0.295.g3b9ea8a38a-goog In-Reply-To: <20240822064650.1473930-1-rohiagar@chromium.org> References: <20240822064650.1473930-1-rohiagar@chromium.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add clock/irq/efuse setting in svs nodes for mt8186 SoC. Signed-off-by: Rohit Agarwal --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index e27c69ec8bdd..a51f3d8ce745 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -1361,6 +1361,18 @@ spi0: spi@1100a000 { status = "disabled"; }; + svs: svs@1100b000 { + compatible = "mediatek,mt8186-svs"; + reg = <0 0x1100b000 0 0x400>; + interrupts = ; + clocks = <&infracfg_ao CLK_INFRA_AO_THERM>; + clock-names = "main"; + nvmem-cells = <&svs_calibration>, <&lvts_e_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>; @@ -1676,6 +1688,14 @@ efuse: efuse@11cb0000 { #address-cells = <1>; #size-cells = <1>; + lvts_e_data1: data@1cc { + reg = <0x1cc 0x14>; + }; + + svs_calibration: calib@550 { + reg = <0x550 0x50>; + }; + gpu_speedbin: gpu-speedbin@59c { reg = <0x59c 0x4>; bits = <0 3>;