Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2997395ybg; Mon, 28 Oct 2019 05:55:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGuoMhmq0dRVvYecatYCHhKdJXZNnoZQJC15q8ew2Xs1gnSdmDdFRt+k4srlAbxSzsBq3C X-Received: by 2002:a50:cd53:: with SMTP id d19mr19118050edj.197.1572267319474; Mon, 28 Oct 2019 05:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572267319; cv=none; d=google.com; s=arc-20160816; b=ltAHUupEVt+fE9ernWuF/wS6xudUqseqfxOVGcsclB3L4qyoE1phFlvQrEKOCKjvcW qWYc+y1MYJMAgXcpCs/SXpaLwACGqD6tlyHf9wELxJpG4XzE2yV2KNTK2dLZf4T1zaN2 GwLEVy8h6XSuBt5mZ/HNBzuhhBnFnAUdvjYKV10e6888Grqxi9dH5YznKbYiDj+irshW 4/kKhZYfZ80afL6GP5pfXsh68LRaKs4+hmXj1FToHPKh5WqmDEZNc19yYERLWukN2xHJ KSV/bpugmAiUKmKoD0VJ6fErrKktreuF3K5VgmuCz/fw30PU5g5Bv7kUe0Q67bcH5tV+ VOjA== 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=9epImn3mjPBC389Hh+FoCJ04Mb4gZHGux67Xk78PM/A=; b=C9ygbZ05yOEXXV4PyS52aV2mubiYBLIDzwC1i/o1AQZ8eEwlHJit7UbcWUynpAiOaP xO09vwSOq7s7pQxYYoZKiclA6CHw2RynAj3w9jlWS+m0+Ak2esCgPcgxVBeo3TNO5jXb 42fpoYHd/dQjlsO847TEtOemFgsSfQX6fBPEXn4hOus0F8CHjrywKkCyd5t0UXKfGB0e Z4i7WY/o/Q/1VZGhvpg1HeBSYq4qFTe6B0PAz7jKSTuy/7JP7XFKnel5HcCLazlXZTe1 jcaJFzb1QFLgkLN2sajKqP9KZk+FFbct2DgiNjwpa7GfT/lgq+wxiuRdkm5CFYfvkoca SXtw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si6880020edd.8.2019.10.28.05.54.55; Mon, 28 Oct 2019 05:55:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730526AbfJ1Csd (ORCPT + 99 others); Sun, 27 Oct 2019 22:48:33 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:8347 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726934AbfJ1Csc (ORCPT ); Sun, 27 Oct 2019 22:48:32 -0400 X-UUID: e1cfa5f3336c4e5eaa45b5fe7802b51b-20191028 X-UUID: e1cfa5f3336c4e5eaa45b5fe7802b51b-20191028 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 981587691; Mon, 28 Oct 2019 10:48:27 +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; Mon, 28 Oct 2019 10:48:24 +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; Mon, 28 Oct 2019 10:48:25 +0800 From: Weiyi Lu To: Nicolas Boichat , Matthias Brugger , Rob Herring CC: James Liao , Fan Chen , , , , , Weiyi Lu , Yong Wu Subject: [PATCH v8 00/14] Mediatek MT8183 scpsys support Date: Mon, 28 Oct 2019 10:48:04 +0800 Message-ID: <1572230898-7860-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.4-rc1 changes since v7: - reword in binding document [PATCH 02/14] - fix error return checking bug in subsys clock control [PATCH 10/14] - add power domains properity to mfgcfg patch [PATCH 14/14] from https://patchwork.kernel.org/patch/11126199/ changes since v6: - remove the patch of SPDX license identifier because it's already fixed 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: 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 arm64: dts: Add power-domains properity to mfgcfg .../memory-controllers/mediatek,smi-common.txt | 2 +- .../devicetree/bindings/soc/mediatek/scpsys.txt | 20 +- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 63 +++ drivers/soc/mediatek/Makefile | 2 +- drivers/soc/mediatek/mtk-scpsys-ext.c | 99 ++++ drivers/soc/mediatek/mtk-scpsys.c | 575 ++++++++++++++++++--- include/dt-bindings/power/mt8183-power.h | 26 + include/linux/soc/mediatek/scpsys-ext.h | 39 ++ 8 files changed, 745 insertions(+), 81 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