Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp577985ybl; Wed, 28 Aug 2019 02:13:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvctKaLPXtq4lHs6dY0WUHw8dvdf9skVzc+5Tb1qA8buO+ljday0Xc0pn82Qkw0hOjQCFq X-Received: by 2002:aa7:8f17:: with SMTP id x23mr1459449pfr.28.1566983591207; Wed, 28 Aug 2019 02:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566983591; cv=none; d=google.com; s=arc-20160816; b=JLhmouXd4yDQAFIa3E8pAMeUj2f78qqSmPog7w9P+WdPdMlyl3lRxZHdmhHRV+V69F y2sBuRnJQnAZ8HI3OAoFaAROOhJM+OBTZvdDnAr78+zfogw8X/IEzRhmlRZoO9G0FLMp 0dysMq3UFbrF8yTEUhfdts2MpM5lkhARgHyabE6Mq7pveoG8zSJ2stMJh0yR7UoXuIKw P9nlPi3zY5GIjZ7CMTI53cRvPf+c9LxOAhUP7T6/eqnhzDNNElKsFwR37TyB4rs/h5SI C0mH25Idu4YrdIXV+rUpmnKQO9IuE0e3ErTCfJo/HjbN9Cs5+GfaH3NBvfbLvgJViyqV 6LWA== 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=n4ZTgZDl0qbGn3rJ7hoGF908imY3xu2obmHNz3hsIl0=; b=G7bL2Kc301rs0nqvAT//IIygqF+z9AFUxnxS5Xc8k95JjuRYpcytGeOTBAFsirCb6X xyGZ3nB7SGzhabTytp/iokvtNY6B0s2QtBCzE0iGVOD/UZHdgUSolyCDtcuwEw0OvRoc 9ntpGkopqbel/djZBqy0THuTAQoYncEBXGePLAiLz4bQ3mj8N8vrKQj3IxOwbnX6qoTh rPNcWC3CyJzedSbZpofCypbmq6hckRTO5Yzc635b4crvuUw/Plu7yKXqaqYlBLD2u62h rqrMLVJEd4FpLgzwt16D0UuADpWikkKsfGEc9gyg8Otu/idWinEzE1UCr+TQyvHTsr9a 1M3A== 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 z14si1462095plo.298.2019.08.28.02.12.55; Wed, 28 Aug 2019 02:13:11 -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 S1726676AbfH1JME (ORCPT + 99 others); Wed, 28 Aug 2019 05:12:04 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:52746 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726246AbfH1JMD (ORCPT ); Wed, 28 Aug 2019 05:12:03 -0400 X-UUID: e42c72d1f271448e818dfddf04097030-20190828 X-UUID: e42c72d1f271448e818dfddf04097030-20190828 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1919572274; Wed, 28 Aug 2019 17:11:58 +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; Wed, 28 Aug 2019 17:12:03 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 28 Aug 2019 17:12:03 +0800 From: Weiyi Lu To: Nicolas Boichat , Matthias Brugger , Rob Herring CC: James Liao , Fan Chen , , , , , Weiyi Lu , Yong Wu Subject: [PATCH v7 00/13] Mediatek MT8183 scpsys support Date: Wed, 28 Aug 2019 17:11:33 +0800 Message-ID: <1566983506-26598-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.3-rc1 with MT8183 SMI dt-binding patch v11[1]. [1] [v11,01/23] dt-bindings: mediatek: Add binding for mt8183 IOMMU and SMI (https://patchwork.kernel.org/patch/11112769/) 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 (13): 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 .../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 | 575 +++++++++++++++--- include/dt-bindings/power/mt8183-power.h | 26 + include/linux/soc/mediatek/scpsys-ext.h | 39 ++ 8 files changed, 741 insertions(+), 78 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