Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1377813ybi; Wed, 19 Jun 2019 19:38:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLFApWk1YjvZ/twahBNxTMw7woPi/iLEaJx+7apMHAGYajsWCVV5wBGPauIRcvdaDIF8PH X-Received: by 2002:aa7:90ce:: with SMTP id k14mr11517565pfk.239.1560998338923; Wed, 19 Jun 2019 19:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560998338; cv=none; d=google.com; s=arc-20160816; b=eCjvIEiPA8O7xEMzxltAJJinYV3TSwjUBsYaASvI1GhbZHoH6vcZ7jr3PWL687k6YO GPrDTFYCj3/yioi/4K7TMrOCKxk8AO1Lh12gBrD7J2NxtkBRUPX98pvsH+wTpq70frOE 0jlTLz5rGTtXN56ObrbJnY4oNdLoGaGchHfNrKEwQJGmCGz3PdnSTREa6uu5lt75jXAl mkEOhe9WxAcbItkM9H6R9+sDOfFG7PQX0v9mYNY9bT/2QQLkSQsyMSJ/PgGC5Ml0XVF2 xp5vu8mu3UGu/Go3pWgR/zC9pZZPjAXu05NBBBREO4BA+qFSy7HpJK5nFlVfZbAKEpEh 8GKw== 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=4cYF9x87oDIziFdP3OWnYB0knEB826vYImm/bM42zGQ=; b=TZfZhud7rDQmMEKWCVeJAGyo231TSJIKEJIaH3wL1OKd9lqOnTy6epNqn4WQyLE+dL Sd3n+2Uesj3nDbbxWRRablL6Tml98rsfIfEBwn1pbXKW6yOGckoHkAo/hadue91YCoju GvpTdIkms3m9f2LFoot8Hw2FjHOzxzvs+lVWL+blokFZz8UA+yfDFZ8kOd3IvVnGiPP7 Fp4MZ/wmwyEul4uHDrpzU65bCXV8kQOVk4xxZALwRKEHuoqmbwh5rhRqxv+k+XkjB6v4 fDcrEZ35Rmy5OLZ3jcMJg7iNo2vsz9rECc9C/S/D1muncPeuGiYlUoHmyew8tYv4Yo4Y LU2A== 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 j124si18049308pfb.151.2019.06.19.19.38.43; Wed, 19 Jun 2019 19:38:58 -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 S1731446AbfFTCie (ORCPT + 99 others); Wed, 19 Jun 2019 22:38:34 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:23282 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726647AbfFTCib (ORCPT ); Wed, 19 Jun 2019 22:38:31 -0400 X-UUID: efcc64dd7e834a389f3965ab3229804f-20190620 X-UUID: efcc64dd7e834a389f3965ab3229804f-20190620 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 354100473; Thu, 20 Jun 2019 10:38:19 +0800 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 CC: James Liao , Fan Chen , , , , , Weiyi Lu , Yong Wu 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 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 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 --