From patchwork Tue Nov 21 12:50:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 167740 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp596065vqb; Tue, 21 Nov 2023 04:55:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IERqfkGAZFwnhvJ0++I4WTZuY2dyLcV7wZ9JvWSkV/rZZuVfCfhLwM4P35ZktMsIqLSqMoK X-Received: by 2002:a17:90b:1f83:b0:27d:549b:3e65 with SMTP id so3-20020a17090b1f8300b0027d549b3e65mr8296597pjb.49.1700571305357; Tue, 21 Nov 2023 04:55:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700571305; cv=none; d=google.com; s=arc-20160816; b=WLXJ10IXq+GWp1/qAc+Lt2m0cweShPakVkhQCCNM1Lgu8IdpmRl/Vd1pU+cO4f625b zxuMUSpo2iaVcV73JV3G7rBswYW5jgwxVHH0FTU8oOv91b8ku8IAiRDte8ubrE+X7mig +HSbg+GaidHlJoDzXBEvsW2wR8b3v4gHFwgCRIhg5Yg6IvdW24vWalqkT5147aHqfXeG gs9PPEdU6OfQROvU9IWPXW+YYoRVIe7Eqam24FfLuU4RL68mqJ9G5C3Z5kLJgKh+TWbT 7O2yVhxEMyysNn+r1+IQkcXboit63IBlN51TUbaPPjrPWL9JEnoihd3b69HaYgvdUOX4 hGVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g/wsfGTD4qIPzV9aYVLPlzsDTVh1NFbKfRsNkAhi+fc=; fh=m5p6pcg3y47Sg5VKYWXj0f0nOzgFq4l5+GGYwGce+t4=; b=ke2Q2SgCsQF1WUM5v/EFnCr1cAYYapi8uvDT5ODxPfthhNgKSipjvDGMoRXIMQPtN6 okW/Q6AYpoUvSpOv60toa5AUB89l+dFxphn48IEdWACzFfknQ8iAcZtw/m/AXUs9u7KE Y38qK2vNT4No0bZxbnRLs/ZFKiMnMth6/sTX4rKu1+MP4asyQ9MtbunG6p1uxSyBZABl 6DI2mxDjF8IhlsaWuHwseo1sctxqyhmizLMMtzCJgD7TxaQjNzg1Y/cvJGAiZUsHrxLI udqbs8uaRl5et1Aup/qVU8ECVrEPAkrD9ldKfckmD+0czg4VrZKjuOdLHxweDlQwWqSd D+8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=U28OlFbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u5-20020a17090a890500b002802928e7cesi10261202pjn.147.2023.11.21.04.55.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 04:55:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=U28OlFbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 483FF803E480; Tue, 21 Nov 2023 04:52:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233882AbjKUMwA (ORCPT + 99 others); Tue, 21 Nov 2023 07:52:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234004AbjKUMv0 (ORCPT ); Tue, 21 Nov 2023 07:51:26 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E0D31A2; Tue, 21 Nov 2023 04:51:12 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 33FE86607323; Tue, 21 Nov 2023 12:51:10 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700571071; bh=7Is9gmN9hkuGxy+sJrNkxtzwuNgilsJCxJ9IKhqUks4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U28OlFbjZWTNhHg7n02D3GbangEkkeyjxK6DU74A/EClsB8By4WT4sVVfgxWsgp3u K3PtCRCEyErdirpchxpVdaWmOgv0zH+J0EmCwQuYpLgJcBrke4Mw+D9uhcXDecYtpY mlMLS5/O4qI3dags8d5kyl5Z0epQKWQWukwIUm64L13KO1/KqDGEIXS1VRy6izcmV0 oNIkmKGEf3NXQ93+nrzm1qNF9qjKBQFhVvK50btDkoae3Oukd9GwDRNA5DI00Cznj8 lACrjJWfQl4wwVAw9ShgaRj+TGGekYNij6Xf72WugNXe4u+0U4vGhjzhVD5VVjVveB raH7B/hYytneQ== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, robh+dt@kernel.org, angelogioacchino.delregno@collabora.com, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, wenst@chromium.org Subject: [PATCH v3 19/20] arm64: dts: mediatek: mt8192: Add Smart Voltage Scaling node Date: Tue, 21 Nov 2023 13:50:43 +0100 Message-ID: <20231121125044.78642-20-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231121125044.78642-1-angelogioacchino.delregno@collabora.com> References: <20231121125044.78642-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 04:52:15 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783178256774442160 X-GMAIL-MSGID: 1783178256774442160 Add the MediaTek SVS node: this will lower the voltage of various components of the SoC based on chip quality (read from fuses) in order to save power and generate less heat. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 238f6eb25832..6dd32dbfb832 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -809,6 +809,18 @@ lvts_ap: thermal-sensor@1100b000 { #thermal-sensor-cells = <1>; }; + svs: svs@1100bc00 { + compatible = "mediatek,mt8192-svs"; + reg = <0 0x1100bc00 0 0x400>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_THERM>; + clock-names = "main"; + nvmem-cells = <&svs_calibration>, <&lvts_e_data1>; + nvmem-cell-names = "svs-calibration-data", "t-calibration-data"; + resets = <&infracfg MT8192_INFRA_RST3_THERM_CTRL_PTP_SWRST>; + reset-names = "svs_rst"; + }; + pwm0: pwm@1100e000 { compatible = "mediatek,mt8183-disp-pwm"; reg = <0 0x1100e000 0 0x1000>;