Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp131938ima; Fri, 1 Feb 2019 00:32:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IaO7cW4yWSwIjA0gJW93CpVW/Z6CYotJUXWtpCv5q8kYqw8LLzGhIB0HekOeM5uoDm9UgHr X-Received: by 2002:a63:5ec6:: with SMTP id s189mr1309370pgb.357.1549009927488; Fri, 01 Feb 2019 00:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549009927; cv=none; d=google.com; s=arc-20160816; b=pMpZV99JwbJhgpZ07YVKjzDRfUwejDPgFPdcYKzfTGNNoAm5ZkxnGXtCqsC9YwRLaW VlVQa+ijUxt7UDMtVQvZJ2boRlNF79tRRV/wS8U7sMSiqFfleGt2i1eIXji2QnGFO6Rq Jl4m4Siq7Eq4N96Q7Tk8Tv/QGymp464oEqvzcJ9adPrUYX6BY8J42ZKlkGsU8It0bkzo Dp6hhENDxJHEqH7fgmuTQvZo+ItUUW0d2NTADgSTDUpmesj2yZrnic8fAmxOhCBtcCRE icSbn91J0AN3bCN/O8n1vTAkJw0ZS3LGU2LTZZPa5BZNIO149rL3m0FlCN7TCDUIieOH FSZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=qQ/eHnSlSojaytoIirMGMaOi7lBLOosIxAmZy6kd5tM=; b=IRyutJwBwX1lO36Rt5xFZUvp2pFOg87V0ekWTtIXj1AaoNagO7tUaRXkd2w/MLyV0Y wdNhIxItu9qdn9lHn/Dz73z3tmr76oC/K6JU5A5d4HZzi7lr4dKUPCiqaqZVzkAw3U0y zrtyeRDAEfzcLxvFZCaa1JsGr/z4pPX2qRY8m5aYoF1I3S2Jo7qeZ+ryWEntclvLnoD3 47l63V3lT4CDmB+qmCaqn5gNsij4DTySX5I3PI2Xp6bhLkBffIqey/SnlQGK93Qwqm+S THIx49l1whf/M8dQ6z3rGGDSuKhJlii/VOFrTn8Dqpsq830t2Jz6hOsOQN8AxVGKKUOG Zj1g== 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 s5si5201381plp.139.2019.02.01.00.31.52; Fri, 01 Feb 2019 00:32:07 -0800 (PST) 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 S1729089AbfBAIai (ORCPT + 99 others); Fri, 1 Feb 2019 03:30:38 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:22478 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727395AbfBAIae (ORCPT ); Fri, 1 Feb 2019 03:30:34 -0500 X-UUID: a52b2f0ab67f4201a461df9528d8dfae-20190201 X-UUID: a52b2f0ab67f4201a461df9528d8dfae-20190201 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1361260376; Fri, 01 Feb 2019 16:30:26 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 1 Feb 2019 16:30:24 +0800 Received: from mtkslt210.mediatek.inc (10.21.14.14) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 1 Feb 2019 16:30:24 +0800 From: Weiyi Lu To: Nicolas Boichat , Matthias Brugger , Stephen Boyd , Rob Herring CC: James Liao , Fan Chen , , , , , , , Weiyi Lu Subject: [PATCH v4 00/12] Mediatek MT8183 clock and scpsys support Date: Fri, 1 Feb 2019 16:30:04 +0800 Message-ID: <20190201083016.25856-2-weiyi.lu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190201083016.25856-1-weiyi.lu@mediatek.com> References: <20190201083016.25856-1-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 581B28452E237DACE233EE183FEC79EF4AC44A0EC67C20D4425C1D1D9338C9642000:8 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.0-rc1 and most of changes are extracted from series below (clock/scpsys common changes for both MT8183 & MT6765) https://patchwork.kernel.org/patch/10528495/ (clock support of MT8183) https://patchwork.kernel.org/patch/10549891/ The whole series is composed of clock common changes for both MT8183 & MT6765 (PATCH 1-3), scpsys common changes for both MT8183 & MT6765 (PATCH 4), clock support of MT8183 (PATCH 5-8), scpsys support of MT8183 (PATCH 9-11) and resend a clock patch long time ago(PTACH 12). change sinve v3: - add fix tag. - small change of mtk_clk_mux data structure. - use of_property_for_each_string to iterate dependent subsys clock of power domain. - document critical clocks. - reduce some clock register error log. - few coding style fix. change sinve v2: - refine for implementation consistency of mtk clk mux. - separate the onoff API into enable/disable API for mtk scpsys. - resend a patch about PLL rate changing. changes since v1: - refine for better code quality. - some minor bug fix of clock part, like incorrect control address and missing clocks. James Liao (1): clk: mediatek: Allow changing PLL rate when it is off Owen Chen (4): clk: mediatek: Disable tuner_en before change PLL rate clk: mediatek: add new clkmux register API clk: mediatek: add configurable pcwibits and fmin to mtk_pll_data soc: mediatek: add new flow for mtcmos power. Weiyi Lu (7): dt-bindings: ARM: Mediatek: Document bindings for MT8183 clk: mediatek: Add dt-bindings for MT8183 clocks clk: mediatek: Add flags support for mtk_gate data clk: mediatek: Add MT8183 clock support dt-bindings: soc: fix typo of MT8173 power dt-bindings dt-bindings: soc: Add MT8183 power dt-bindings soc: mediatek: Add MT8183 scpsys support .../arm/mediatek/mediatek,apmixedsys.txt | 1 + .../bindings/arm/mediatek/mediatek,audsys.txt | 1 + .../bindings/arm/mediatek/mediatek,camsys.txt | 22 + .../bindings/arm/mediatek/mediatek,imgsys.txt | 1 + .../arm/mediatek/mediatek,infracfg.txt | 1 + .../bindings/arm/mediatek/mediatek,ipu.txt | 43 + .../bindings/arm/mediatek/mediatek,mcucfg.txt | 1 + .../bindings/arm/mediatek/mediatek,mfgcfg.txt | 1 + .../bindings/arm/mediatek/mediatek,mmsys.txt | 1 + .../arm/mediatek/mediatek,topckgen.txt | 1 + .../arm/mediatek/mediatek,vdecsys.txt | 1 + .../arm/mediatek/mediatek,vencsys.txt | 1 + .../bindings/soc/mediatek/scpsys.txt | 14 + drivers/clk/mediatek/Kconfig | 75 + drivers/clk/mediatek/Makefile | 15 +- drivers/clk/mediatek/clk-gate.c | 5 +- drivers/clk/mediatek/clk-gate.h | 17 +- drivers/clk/mediatek/clk-mt8183-audio.c | 105 ++ drivers/clk/mediatek/clk-mt8183-cam.c | 63 + drivers/clk/mediatek/clk-mt8183-img.c | 63 + drivers/clk/mediatek/clk-mt8183-ipu0.c | 56 + drivers/clk/mediatek/clk-mt8183-ipu1.c | 56 + drivers/clk/mediatek/clk-mt8183-ipu_adl.c | 54 + drivers/clk/mediatek/clk-mt8183-ipu_conn.c | 123 ++ drivers/clk/mediatek/clk-mt8183-mfgcfg.c | 54 + drivers/clk/mediatek/clk-mt8183-mm.c | 111 ++ drivers/clk/mediatek/clk-mt8183-vdec.c | 67 + drivers/clk/mediatek/clk-mt8183-venc.c | 59 + drivers/clk/mediatek/clk-mt8183.c | 1285 +++++++++++++++++ drivers/clk/mediatek/clk-mtk.c | 3 +- drivers/clk/mediatek/clk-mtk.h | 3 + drivers/clk/mediatek/clk-mux.c | 223 +++ drivers/clk/mediatek/clk-mux.h | 89 ++ drivers/clk/mediatek/clk-pll.c | 53 +- drivers/soc/mediatek/Makefile | 2 +- drivers/soc/mediatek/mtk-scpsys-ext.c | 99 ++ drivers/soc/mediatek/mtk-scpsys.c | 602 ++++++-- include/dt-bindings/clock/mt8183-clk.h | 422 ++++++ include/dt-bindings/power/mt8173-power.h | 6 +- include/dt-bindings/power/mt8183-power.h | 26 + include/linux/soc/mediatek/scpsys-ext.h | 39 + 41 files changed, 3757 insertions(+), 107 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,camsys.txt create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,ipu.txt create mode 100644 drivers/clk/mediatek/clk-mt8183-audio.c create mode 100644 drivers/clk/mediatek/clk-mt8183-cam.c create mode 100644 drivers/clk/mediatek/clk-mt8183-img.c create mode 100644 drivers/clk/mediatek/clk-mt8183-ipu0.c create mode 100644 drivers/clk/mediatek/clk-mt8183-ipu1.c create mode 100644 drivers/clk/mediatek/clk-mt8183-ipu_adl.c create mode 100644 drivers/clk/mediatek/clk-mt8183-ipu_conn.c create mode 100644 drivers/clk/mediatek/clk-mt8183-mfgcfg.c create mode 100644 drivers/clk/mediatek/clk-mt8183-mm.c create mode 100644 drivers/clk/mediatek/clk-mt8183-vdec.c create mode 100644 drivers/clk/mediatek/clk-mt8183-venc.c create mode 100644 drivers/clk/mediatek/clk-mt8183.c create mode 100644 drivers/clk/mediatek/clk-mux.c create mode 100644 drivers/clk/mediatek/clk-mux.h create mode 100644 drivers/soc/mediatek/mtk-scpsys-ext.c create mode 100644 include/dt-bindings/clock/mt8183-clk.h create mode 100644 include/dt-bindings/power/mt8183-power.h create mode 100644 include/linux/soc/mediatek/scpsys-ext.h -- 2.18.0