From patchwork Fri Jun 21 08:43:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Lu X-Patchwork-Id: 11008729 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6C7881580 for ; Fri, 21 Jun 2019 08:44:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A265289D7 for ; Fri, 21 Jun 2019 08:44:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4ACDF289E0; Fri, 21 Jun 2019 08:44:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F0F4E289D7 for ; Fri, 21 Jun 2019 08:44:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8ntQEKsxLzWd/xX5McCZhq+6nCfFHYgl5AD/z/yZzbc=; b=dfPC10mPrMZLCE oNEmY2gU1oM0t4naQdydUPgMWMSP5ArQ6W9ydkEJIbqYjAwnKR0x6GrGqO1BZAZxvX2E54XbHmkcN Hz9egJ7Q3I17Hqci3dxJuCbp+mZl9SpbtYNuWXsFpyEK2BRkGxKpkQr9WVYy9QQ55ux7/VuYJbeok gasg4vWnP2FB/Ngjt35Ckgah25c882X6OgqEwLHs82AdS68df0q0gO8eTKI2OMXfYaD8Xs4KNKYLl JoNMuWJ/jBNI1iVD0sVgJ/nFGgEPmHZH6JFftvpBCHLofdQSDlxOnd3qYLznlI2IRTpUMbdZzH+as swwXUy6XIXnTfGfY9xYw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1heFAB-0004XW-NI; Fri, 21 Jun 2019 08:44:51 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1heF9j-0004Hh-KH; Fri, 21 Jun 2019 08:44:27 +0000 X-UUID: 6fe4b00a311843618598cb43eb21476d-20190621 X-UUID: 6fe4b00a311843618598cb43eb21476d-20190621 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1156321735; Fri, 21 Jun 2019 00:44:11 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 21 Jun 2019 01:44:10 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 21 Jun 2019 16:43:56 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 21 Jun 2019 16:43:56 +0800 From: Roger Lu To: Kevin Hilman , Rob Herring , Nicolas Boichat , Stephen Boyd Subject: [PATCH v3 0/2] PM / AVS: SVS: Introduce SVS engine Date: Fri, 21 Jun 2019 16:43:46 +0800 Message-ID: <20190621084348.16834-1-roger.lu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190621_014424_284702_35E88B87 X-CRM114-Status: UNSURE ( 7.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Nishanth Menon , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Roger Lu , linux-kernel@vger.kernel.org, HenryC Chen , Fan Chen , linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP SVS driver use OPP adjust event in [1] to update OPP table voltage part. [1] https://patchwork.kernel.org/patch/10946069/ changes since v2: - Improve SVS driver: For power saving point of view, disable SVS main clk when probe fail. Roger Lu (2): dt-bindings: soc: add mtk svs dt-bindings PM / AVS: SVS: Introduce SVS engine .../devicetree/bindings/power/mtk-svs.txt | 88 + drivers/power/avs/Kconfig | 10 + drivers/power/avs/Makefile | 1 + drivers/power/avs/mtk_svs.c | 2093 +++++++++++++++++ include/linux/power/mtk_svs.h | 23 + 5 files changed, 2215 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