Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp337167imu; Wed, 2 Jan 2019 07:38:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN4kXNXlDySJlQ3cJ9nYawDkRsaOzTTj761c7F0p7PBWhmUk0KxuRTbqh3oZEz7vCHzlsMlz X-Received: by 2002:a17:902:850c:: with SMTP id bj12mr42931413plb.46.1546443503810; Wed, 02 Jan 2019 07:38:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546443503; cv=none; d=google.com; s=arc-20160816; b=l/JGqD8DU9OYQ5IRviKxKhilwWAp++d6qPilK1wq1zrVQgsM7L7GXySFtXPGRiq+fs K7OvxBPedhqwKGCX+DW7H0J7QGlH0VBkpnJGwwsFazbSJzyLiBPJzs7xkUxXTb6yzf/0 sqXQluYcn7jOzXGletI/sl/LEXLcV3uWiek1zWPXYGlTL74NN3r9yyzUXz6m18YuGomt xWiS8d8IeJmPnvW3PRzIf0olThtbIPVi2Q+c6rUa3kLMgs6nH+6eYzZZTMBbEO1f7vUS K5c9o8hWzPdV3Pqd17tAHBbfowDG5q4dShD72HGV70gpI7pGQjFn5j5WqAoxVyqs25K5 NxJw== 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=cI8b36MIel5G9O3fFwnR2dTdwRTW/Rn55SWYC/SCfiw=; b=LxWk2E2WAod3cAl05WhcitAV8KDpVE1BAJI3NLGkiYa+qfTO5HlC/HyscFCMvMsSAW 0+39dD7rial3pvJs6RpDgAdN3uW4HApjJjPnFzSwUdHNQxeq47R+K6lvfJPSfuZWtkio muFL+SljogMPCADZoW2P4lW309mSbyMDk6tcuZbL/rUiB3qV3DqD6efbIEWVukeUtUTW ygsLK6sKwXTdxC40rLDtSjDeobP0w05+H28DP3pkJf2PwjXTnoP719mvB2uJDd2YnILO Ob/85HNE8lXzjiF01Fvn87ppRhROoEJFYXM1Z34ReOcsdbXI+5kgANusxNqBbl8SyORj R9yw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m75si4098281pga.432.2019.01.02.07.38.06; Wed, 02 Jan 2019 07:38:23 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729684AbfABOKq (ORCPT + 99 others); Wed, 2 Jan 2019 09:10:46 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:39997 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729498AbfABOKl (ORCPT ); Wed, 2 Jan 2019 09:10:41 -0500 X-UUID: 9b4dce0da76648e0a34fe008980aabd2-20190102 X-UUID: 9b4dce0da76648e0a34fe008980aabd2-20190102 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 352485292; Wed, 02 Jan 2019 22:10:33 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 2 Jan 2019 22:10:26 +0800 Received: from mtkslt205.mediatek.inc (10.21.15.75) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 2 Jan 2019 22:10:26 +0800 From: Henry Chen To: Viresh Kumar , Stephen Boyd , "Rob Herring" , Matthias Brugger , "Ulf Hansson" CC: Mark Rutland , Fan Chen , Weiyi Lu , James Liao , Kees Cook , , , , , Subject: [RFC RESEND PATCH 0/7] Add driver for dvfsrc and add support for active state of scpsys on mt8183 Date: Wed, 2 Jan 2019 22:09:51 +0800 Message-ID: <1546438198-1677-1-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 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 The patchsets add support for MediaTek hardware module named DVFSRC (dynamic voltage and frequency scaling resource collector). The DVFSRC is a HW module which is used to collect all the requests from both software and hardware and turn into the decision of minimum operating voltage and minimum DRAM frequency to fulfill those requests. So, This series is to implement the dvfsrc driver to collect all the requests of operating voltage or DRAM bandwidth from other device drivers likes GPU/Camera through 2 frameworks basically: 1. PM_QOS_MEMORY_BANDWIDTH from PM QOS: to aggregate the bandwidth requirements from different clients 2. Active state management of power domains[1]: to handle the operating voltage opp requirement from different power domains [1] https://lwn.net/Articles/744047/ Henry Chen (7): dt-bindings: soc: Add DVFSRC driver bindings dt-bindings: soc: Add opp table on scpsys bindings soc: mediatek: add support for the performance state arm64: dts: mt8183: add performance state support of scpsys soc: mediatek: add header for mediatek SIP interface soc: mediatek: add MT8183 dvfsrc support arm64: dts: mt8183: add dvfsrc related nodes Documentation/devicetree/bindings/opp/mtk-opp.txt | 24 ++ .../devicetree/bindings/soc/mediatek/dvfsrc.txt | 26 ++ .../devicetree/bindings/soc/mediatek/scpsys.txt | 42 ++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 29 ++ drivers/soc/mediatek/Kconfig | 15 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-dvfsrc.c | 473 +++++++++++++++++++++ drivers/soc/mediatek/mtk-scpsys.c | 60 +++ drivers/soc/mediatek/mtk-scpsys.h | 22 + include/dt-bindings/soc/mtk,dvfsrc.h | 18 + include/soc/mediatek/mtk_sip.h | 17 + 11 files changed, 727 insertions(+) create mode 100644 Documentation/devicetree/bindings/opp/mtk-opp.txt create mode 100644 Documentation/devicetree/bindings/soc/mediatek/dvfsrc.txt create mode 100644 drivers/soc/mediatek/mtk-dvfsrc.c create mode 100644 drivers/soc/mediatek/mtk-scpsys.h create mode 100644 include/dt-bindings/soc/mtk,dvfsrc.h create mode 100644 include/soc/mediatek/mtk_sip.h -- 1.9.1