From patchwork Thu Jun 20 02:37:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyi Lu X-Patchwork-Id: 11005765 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 3C59114E5 for ; Thu, 20 Jun 2019 02:42:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DE2226BE9 for ; Thu, 20 Jun 2019 02:42:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 22152274A3; Thu, 20 Jun 2019 02:42:39 +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=unavailable 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 D1DCC26BE9 for ; Thu, 20 Jun 2019 02:42:38 +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=FnBQ10T3bKVA5PASAcPbJzTZ7NvVBfuLjWllth545Tc=; b=Nspbo0NtpnFDZz 35bFXqpeqFZpbc3uYD0DXy0E6OsUhufsmlIXNYVP6DaQBhEF6ivNh8xvqbSqCFaSrnPX18hRkhrJI pfknxw1zjhPUr+LeyzICEmc0lAYAORLBTnBD12IlrBhTat4mcsEKmD+83iGHvMpc1ccg0Aa8NRXbb 6mIn+XUADk9NbDzMW6IFB83eGrSEnO9tYi7Yxvh/DU/4V9ZKESiCK9i3A1k70olNHmdZZS7fOIKYj eb9fRF71st209a5p+f+lrrKeojc9ChP9iJ9Sf/vdKk5I0ORftE0i1SwZxUCKqKo6PywWukZxBJqcL MabDHQIcjAbXkTwnti9g==; 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 1hdn26-0002JX-Bu; Thu, 20 Jun 2019 02:42:38 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hdmyJ-0006Ax-9y; Thu, 20 Jun 2019 02:38:45 +0000 X-UUID: a802d20be26741abb9af734a776d218f-20190619 X-UUID: a802d20be26741abb9af734a776d218f-20190619 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 850899427; Wed, 19 Jun 2019 18:38:21 -0800 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 19 Jun 2019 19:38:20 -0700 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 20 Jun 2019 10:38:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 20 Jun 2019 10:38:18 +0800 From: Weiyi Lu To: Nicolas Boichat , Matthias Brugger , Rob Herring Subject: [PATCH v6 00/14] Mediatek MT8183 scpsys support Date: Thu, 20 Jun 2019 10:37:52 +0800 Message-ID: <1560998286-9189-1-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190619_193843_442873_BB56A73F X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James Liao , Weiyi Lu , srv_heupstream@mediatek.com, linux-kernel@vger.kernel.org, Fan Chen , linux-mediatek@lists.infradead.org, Yong Wu , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series is based on v5.2-rc1 with MT8183 dts v11 patch[1] and MT8183 SMI dt-binding v7 patch[2]. [1] https://patchwork.kernel.org/patch/10962375/ [2] https://patchwork.kernel.org/patch/10984743/ changes since v5: - fix documentation in [PATCH 04/14] - remove useless variable checking and reuse API of clock control in [PATCH 06/14] - coding style fix of bus protection control in [PATCH 08/14] - fix naming of new added data in [PATCH 09/14] - small refactor of multiple step bus protection control in [PATCH 10/14] 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_id 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 .../memory-controllers/mediatek,smi-common.txt | 2 +- .../devicetree/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 | 591 ++++++++++++++++++--- include/dt-bindings/power/mt8183-power.h | 26 + include/linux/soc/mediatek/scpsys-ext.h | 39 ++ 8 files changed, 745 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 --