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: 11005751 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 E295014E5 for ; Thu, 20 Jun 2019 02:41:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4EDB26BE9 for ; Thu, 20 Jun 2019 02:41:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C976E274A3; Thu, 20 Jun 2019 02:41:02 +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 76B3F26BE9 for ; Thu, 20 Jun 2019 02:41:02 +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=8c3U/0ovBSm/YQ/qXFT2igCj0MytBEyQCsJaJc3hq+A=; b=lG8xhzy4fPNH9t 6sD5980834cc1E4oWbhdoPgn/g0mVpKkTeIYUFu5sKS2C93dA6bhYbBt1yMjXjMsUPqYMrtHo6O6h HsQnlswBCdL6lyJu8cYRRcsZVOvxOkwuCES4MizxuthRZkFUFqDFTMLrrwfLl2WAgzfEHHBe3xaau WY+TPb4SXLL2lgS4jpQr4sd/0YVJ5rh6thvsBAFmlo+9DTF+MxZSZ8Enw/wVaEyeLj9KBB9q6BiUL XDe06eU3V0WBj74haSlbLqJ0BQB9+N3ibgzzI4udEcQuKmOTGsMTBKiwZB4Q9m8c9dFSRkk76cASE 5r7D8GUrTjCt9kdUb4fA==; 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 1hdn0X-0000p7-5a; Thu, 20 Jun 2019 02:41:01 +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-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: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 --