Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp583038ybe; Fri, 6 Sep 2019 04:15:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPY1X1QroXWkWjHzdeFlS/XL7hX8MniTd+fAzt0aGSTYB2RTQ4YcuwQ/lzOpbCOuOfkGfw X-Received: by 2002:a63:6f41:: with SMTP id k62mr7519649pgc.32.1567768529984; Fri, 06 Sep 2019 04:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567768529; cv=none; d=google.com; s=arc-20160816; b=mhDWBC2VlHb9ZE80LXNxRzGGPG6Vd9xXYx2NG1SA0/py7NQtBk247+GlvXzghrF2aM jE3/dh4d9W4V7etVRC1x/kOoHKGk2EgStaXjM4YU0MtwehOr3rNEijdAx+Sv6GK9GZrZ WvIq7ArcobrsI2J40Y2HGNlf/FrZhgQrSj+JvKkczb5SxGeK2JdpejTJN3uobvy4UHKu xpqHb9aLkYUVxAMYqLazw+5+FOKyqw5maYyAA8ya8M8TALANtREqD/qmgsxRJWJMfbip IkTgSEqZxtWXcPdblTP9+jwv07J/ntZdMc43zDRnaGgS1/RpWj7V/4XZ1HoAjnEdTxaX yllg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=XnsfuQ4goWVlT87g6OiZ4wSoGjxeSU9QEGjIV4o0wmI=; b=D2cIqyxBvf2AklcHvi09eTbi8EZx6vFTe/aeO9yFZvB/bAFeOFtKEsi2yLLQw/x4QP t4tHKWCTVVqKpHgqMCYzTK5neMCblCofo3gDWbrcj61wGoXZ0bbPZMG9s4TzSPF1T8ZO HcMm3NSXhXoJx6RTM9wCqtnJfrJqAa8HcdtK/hdM2PUnxJUohNle2JPcZ87CrSQlE8tn 8yQAFVlisIBbSEdc0zdpeUHf2KLIRFFdO4G9cV0C1ieIJ2SiuC6R0f5l9Xo0MRllytFh 3KTbyzZ+xE9Fb77i/hHFYigxs4kDX6ssLZe9O9Ta9ARpxul3wE8Ndd+f7BHV8i01GjrY AgLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x126si3933146pgx.356.2019.09.06.04.15.13; Fri, 06 Sep 2019 04:15:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387641AbfIFKFr (ORCPT + 99 others); Fri, 6 Sep 2019 06:05:47 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:11213 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728254AbfIFKFq (ORCPT ); Fri, 6 Sep 2019 06:05:46 -0400 X-UUID: b3a6b3957d3e4cfe992546802938b40c-20190906 X-UUID: b3a6b3957d3e4cfe992546802938b40c-20190906 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 627805015; Fri, 06 Sep 2019 18:05:37 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 6 Sep 2019 18:05:33 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 6 Sep 2019 18:05:33 +0800 From: Roger Lu To: Kevin Hilman , Rob Herring , Nicolas Boichat , Stephen Boyd CC: Fan Chen , HenryC Chen , , Angus Lin , Mark Rutland , Matthias Brugger , Nishanth Menon , Roger Lu , , , , , Subject: [PATCH v5 0/3] PM / AVS: SVS: Introduce SVS engine Date: Fri, 6 Sep 2019 18:05:12 +0800 Message-ID: <20190906100514.30803-1-roger.lu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 1. SVS driver use OPP adjust event in [1] to update OPP table voltage part. 2. SVS dts node refers to CPU opp table [2] and GPU opp table [3]. 3. SVS dts node refers to thermal efuse [4] and PMIC regulator [5]. [1] https://patchwork.kernel.org/patch/11092245/ [2] https://patchwork.kernel.org/patch/10934123/ [3] https://patchwork.kernel.org/patch/11132381/ [4] https://patchwork.kernel.org/patch/11093655/ [5] https://patchwork.kernel.org/patch/11110493/ Roger Lu (3): dt-bindings: soc: add mtk svs dt-bindings arm64: dts: mt8183: add svs device information PM / AVS: SVS: Introduce SVS engine .../devicetree/bindings/power/mtk-svs.txt | 88 + arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 16 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 38 + drivers/power/avs/Kconfig | 10 + drivers/power/avs/Makefile | 1 + drivers/power/avs/mtk_svs.c | 2075 +++++++++++++++++ include/linux/power/mtk_svs.h | 23 + 7 files changed, 2251 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/mtk-svs.txt create mode 100644 drivers/power/avs/mtk_svs.c create mode 100644 include/linux/power/mtk_svs.h