From patchwork Thu Sep 21 05:26:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Tseng X-Patchwork-Id: 13393643 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 3DA42CD494E for ; Thu, 21 Sep 2023 05:27:25 +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-Type:MIME-Version: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=AwmaUUhkEaQmbRXLi0fx5iHxlyssYThhpAR9/2J7T8Q=; b=kIwGLSvgDjWUyURPBdI5Sh049B 4YpNajDCbebCfHYmVlvRK6NM/1ooUl4Rmap5Hrqytn9anyHIpRbOwuIYO7TS1K432vrQdbTPZA69S LVDd3pu8X5cwccuQZn61BblKhc/d+h7EkpZlIf6/do1KCisznQI11454TUDgksJFV46rwFSu4awTe E1xeeCue7jwQ5kBUS3OQ95hzzCDPV79WM7KVyJ1f2xUeTKNEiQlhlRFQBTUD482Mk84tmUqgJRkY2 50fbCx3qjlZ81AzpPmkVLIZuLvbmnCftENg1fMs7Sr3Ke0L2P3X1YUTNOmahAznd6PacrSuqIqMhl Qsb1nE6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjCDk-005ATy-0T; Thu, 21 Sep 2023 05:27:24 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjCDh-005AQu-0n; Thu, 21 Sep 2023 05:27:22 +0000 X-UUID: 8542a8f8583f11ee9b7791016c24628a-20230920 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=AwmaUUhkEaQmbRXLi0fx5iHxlyssYThhpAR9/2J7T8Q=; b=AYjBmq9kh2bhW5P+QjhoDE4LyS6b4+Vdh620yh13vIwxXtP86FjBWmnu/gNraclqsHZCXsx5FmvyOXCbnv8GsC+kMMnsYsJxclc5RZnCZhCe8MU7xymH7QhwqBtJ9k2b7WB6OEQWXS/tt8E56knvDufbisq0/o8QzVROl7e1/XM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:f2b38567-5474-4d9d-9d01-e7a2ff5c4d37,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:5f78ec9,CLOUDID:684a17bf-14cc-44ca-b657-2d2783296e72,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 8542a8f8583f11ee9b7791016c24628a-20230920 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 768417437; Wed, 20 Sep 2023 22:27:13 -0700 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 21 Sep 2023 13:26:38 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 21 Sep 2023 13:26:38 +0800 From: Mark Tseng To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Roger Lu , Kevin Hilman CC: , , , , , Subject: [PATCH v4 0/3] soc: mediatek: svs: add support for mt8188 Date: Thu, 21 Sep 2023 13:26:34 +0800 Message-ID: <20230921052637.30444-1-chun-jen.tseng@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--5.651000-8.000000 X-TMASE-MatchedRID: msJaThnkmNaUYaO/E+T/Q7Gj3LN0+Ey9MZm0+sEE9msY0A95tjAn+6TT MgD+EF6Mt6h/5bQ4cfk486vsentZ7yY0eULsNBXlngIgpj8eDcBpkajQR5gb3savT21DsLD/UEh Wy9W70AEgBwKKRHe+r42/LML0lZwJXU6WEuGZ75CeyQmfiMLyaC/+W0uWJBj8vgnKFRxxFmo= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.651000-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 512EB21A3D506CEB24845C79D732D95861D2463192AB94854A880DFF3B2B976C2000:8 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230920_222721_287631_505E6767 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org This series supports MT8188 Smart Voltage Scaling (SVS) hardware which used as optimization of opp voltage table for gpu dvfs driver. Changes since v3: - separate the voltage bin support from the MT8188 support Changes since v2: - Add Acked-by & Acked-by in patch Changes since v1: - thermal name change to lvts - fixed voltage bin flow - using svs_get_efuse_data() replace nvmem read API in mt8188 efuse parsing Mark Tseng (3): dt-bindings: soc: mediatek: add mt8188 svs dt-bindings soc: mediatek: svs: Add support for MT8188 SoC soc: mediatek: svs: Add support for voltage bins .../bindings/soc/mediatek/mtk-svs.yaml | 1 + drivers/soc/mediatek/mtk-svs.c | 184 +++++++++++++++++- 2 files changed, 181 insertions(+), 4 deletions(-)