Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1143011img; Tue, 19 Mar 2019 01:03:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxt/U6zuddj9VNWuinIA4GvKVc5Ftq9jPgYySqrkskn3rbN+YFwZCwE9QASVdyDie9cyG7V X-Received: by 2002:a65:41ca:: with SMTP id b10mr1034513pgq.146.1552982621045; Tue, 19 Mar 2019 01:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552982621; cv=none; d=google.com; s=arc-20160816; b=XctMhLGq87XR7ToQCXPXIHHeMOVBiED1BtCxiIKhXTAbo2fp4zWSewZRCYKWY0DH4U +5UHtThQaJXFekdtdan5eZ/EPm1SpZJXSErPWSVRAwGwb4b6rq4VBXispNH5ewyV9yCJ xNNWCC8dX0x1LUi1TBpX0038RulE0kU/CwegU9bFP8vOK3nNjj5o/qDee79ha+/JpGNH crGUCrXGbtRXzX5bsluApPCX8iwO4Lf8gPt9LOlK2jUJwFpxNMS5BtHjciWcY9gjlCCN rLNzFWjnMlS4V6p1FT9V5vioMvWtOR3psfjNPwsTP0f0S3t/DAaOLCAw7q6XYNZkchgx vbpw== 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=3GmECaMZsrvwNQr1W1My4D1XFUZQyvNuubkNWKCr+Jo=; b=xcA6AOImVgu+bBmzLvoRNrgtSEvt6ZLdMCJ4exW8WAXH5gkVC8R70H0VK8p7CRcGBF fZfV9Bp2IDERB7OlzgpuXfI358Rqyc/JXAUZT09dsH1NAdoVhRR9FlUpBdAunOx0526V rUdeCY1O25fKOZwpWw7j4HwYu890z3PVZujJ3OWlemRrOdqaHuOfJqykT3AkCvcOZV7z MDa7nuwci6qcVMvly0MtxCwMVtFYmZAUU7j5ij9+OJ9iBZkUUBYtEPYKx9JsZ5NWDbwT FwUf6b6l7Fl45ByYTASDDQEN6N/poLYVX3akfG1DVPeog4g46eagL34R+iofwugFW4yg EdOA== 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 t23si10618255pgv.63.2019.03.19.01.03.26; Tue, 19 Mar 2019 01:03:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727375AbfCSICH (ORCPT + 99 others); Tue, 19 Mar 2019 04:02:07 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:39390 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726916AbfCSICF (ORCPT ); Tue, 19 Mar 2019 04:02:05 -0400 X-UUID: 46f47f5a0d0f4ff6aea39ba7703f718a-20190319 X-UUID: 46f47f5a0d0f4ff6aea39ba7703f718a-20190319 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1211746939; Tue, 19 Mar 2019 16:01:56 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 19 Mar 2019 16:01:56 +0800 Received: from mtkslt210.mediatek.inc (10.21.14.14) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 19 Mar 2019 16:01:56 +0800 From: Weiyi Lu To: Nicolas Boichat , Matthias Brugger , Rob Herring CC: James Liao , Fan Chen , , , , , Weiyi Lu Subject: [PATCH v5 00/14] Mediatek MT8183 scpsys support Date: Tue, 19 Mar 2019 16:01:26 +0800 Message-ID: <20190319080140.24055-1-weiyi.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 Resend scpsys patches from v4[1]. Based on v5.1-rc1 with MT8183 dts v9 patch[2] and MT8183 SMI dt-binding v6 patch[3]. [1] https://patchwork.kernel.org/patch/10792071/ [2] https://patchwork.kernel.org/patch/10856987/ [3] https://patchwork.kernel.org/patch/10816827/ changes since v4: - add property to mt8183 smi-common - seperate refactor patches and new add function - add power controller device node Weiyi Lu (14): dt-bindings: mediatek: Add property to mt8183 smi-common dt-bindings: soc: Add MT8183 power dt-bindings soc: mediatek: Switch to SPDX license identifier soc: mediatek: Refactor polling timeout and documentation soc: mediatek: Refactor regulator control soc: mediatek: Refactor clock control soc: mediatek: Refactor sram control soc: mediatek: Refactor bus protection control soc: mediatek: Add basic_clk_name to scp_power_data soc: mediatek: Add multiple step bus protection control soc: mediatek: Add subsys clock control for bus protection soc: mediatek: Add extra sram control soc: mediatek: Add MT8183 scpsys support arm64: dts: Add power controller device node of MT8183 .../mediatek,smi-common.txt | 2 +- .../bindings/soc/mediatek/scpsys.txt | 14 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 62 ++ drivers/soc/mediatek/Makefile | 2 +- drivers/soc/mediatek/mtk-scpsys-ext.c | 99 +++ drivers/soc/mediatek/mtk-scpsys.c | 603 +++++++++++++++--- include/dt-bindings/power/mt8183-power.h | 26 + include/linux/soc/mediatek/scpsys-ext.h | 39 ++ 8 files changed, 757 insertions(+), 90 deletions(-) create mode 100644 drivers/soc/mediatek/mtk-scpsys-ext.c create mode 100644 include/dt-bindings/power/mt8183-power.h create mode 100644 include/linux/soc/mediatek/scpsys-ext.h