From patchwork Sun Nov 29 21:22:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 1407890 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=xjpwCSJz; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=hKr1UKx0; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CkhCv5RTBz9sVC for ; Mon, 30 Nov 2020 08:22:51 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject:From:To: 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=3LIvEKPQQv1EHMviDwcgmMVqZDTRlmjc56yvT3LLX34=; b=xjpwCSJzW1VQjX3ileww+ykY/r ffnHDdLDPyZ73u5TUo0xaN1HocesTkkkH6ETAWa12IYZ9KS4nH775zXeqr6L/LUNhz5g5RNK+TYuJ +tDu0xH5Xp9RLE3QJ9JtoQfhkCnoaRO9T7fKkLR2mFp/Qn3c54yZoVas8TUalHL/wMVab/p0KN8n2 wz61s7+b5lDoeKum4p0FfuNC0ylkP874G8xnsVeMo+w18N+xJg+jfVD5pXZMPbAJn1mdKBlBkFKeu fVaEbaZ1NI6/b412J9LGylsGBYyZgUtMtevO+Ws/ES/iEUFuCcTZuWHr+5idEo+OkvsysBPPyNG6/ 8Xqo/Ubw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kjU9M-0007Cj-67; Sun, 29 Nov 2020 21:22:28 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kjU9J-0007By-6B; Sun, 29 Nov 2020 21:22:26 +0000 Received: by mail-ej1-x62a.google.com with SMTP id 7so17180995ejm.0; Sun, 29 Nov 2020 13:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=8zPXm1FBDR9qfVumeaUOjP3wuQsBIpEAySwImCtGpPc=; b=hKr1UKx0pDGx7PEAKapmxdpIOuF2VjB1mXd8MGEMMRIiGtzYAE6nFsiF1BfySdyhEC Ur2OuyrAghYdfNvDuTAkcz5yfvgVdYob8+pgIO/nVjWpiC8KY0xUYf8gcNE5fVBhxu36 yN6szorqQHIgYCA2qV1Cbc01Nqm+I8F6AFSmcoUFARbiXdY7oIrHXzA811OHViAoUYLf ys+ysh4t42DKS9ebj1xYv5tWZjf4k8bokJXamj9TlfmYrTRBPBOctAOLMSog57IuXj2W Fz34D9ewvbEKTslczDOaWo82Ut1RJDBf70a4jd23jlMAqnnTeWR+5gTcS6kVVogFob/b wbrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=8zPXm1FBDR9qfVumeaUOjP3wuQsBIpEAySwImCtGpPc=; b=eRli6Zn7YYOZrimRXHvVw4jIWq6dDqu1Q/JwLrqLHbrZQTdMw+FT8gGBdhOaUDh3ga JpMlrMS7hwW8uGFfc/cxCH8Elv1uuw/feKVItMhdqomuD9sqaCPhobI89VT3wiRxLpCM AeTUU1TuNFZarnLuXeraAoaA4ftblu2zkFf4jtmukn0YSwmzIlPQacmqo+YOjbecXfMk XGVFeWoZAbte4FCaPN7hpdlLW/IcIZxqzE1YNB1j0Wn7UreHcX9uV9rjvyinZjfQ/BI1 XpUEY9Y0bZVXIs/3X0k4bpQZsKfr+itGbmndgnGvEroLnLzY4w+7vmeId0ycBoICnS7X OBCA== X-Gm-Message-State: AOAM530GePoG2RT4ZkFRPVrVwZHZzweKVYfCcZv/eTPjkHSavF0beduw L4sfTwEfNVJVAMOc6+omfA4= X-Google-Smtp-Source: ABdhPJzevcx/WzHeFiw1cNVO5mrWErqDpdFenCCaJuFtBmfR2FpmE6dpM9+NTHxiR3b2EerILyZfaw== X-Received: by 2002:a17:906:3899:: with SMTP id q25mr2796412ejd.173.1606684943998; Sun, 29 Nov 2020 13:22:23 -0800 (PST) Received: from ziggy.stardust ([213.195.126.134]) by smtp.gmail.com with ESMTPSA id z29sm8169733edi.1.2020.11.29.13.22.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Nov 2020 13:22:23 -0800 (PST) To: arm-soc , SoC Team From: Matthias Brugger Subject: [GIT PULL] soc: mediatek: changes for v5.11 Message-ID: Date: Sun, 29 Nov 2020 22:22:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201129_162225_324537_679B8409 X-CRM114-Status: GOOD ( 24.02 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:62a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [matthias.bgg[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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: Chun-Kuang Hu , Nicolas Boichat , Weiyi Lu , "moderated list:ARM/Mediatek SoC support" , Yongqiang Niu , Enric Balletbo i Serra , Neal Liu , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi Olof and Arnd, Please find below the commit for the MediaTek SoC drivers. The most important changes are the inclusion of two new drivers. Devapc is an TrustZone interface found on the mobile phone chips to identify malicious accesses from bus controllers. Apart from that you can find a new power domain driver. We have the old scpsys driver for quite some time around, But it has some limitations, that we could only overcome with a brand new driver with a new binding. Right now these new driver supports mt8192 and mt8183 but the plan is, to move all SoCs to the new driver model and later on retire the old driver. Please beware that I had to create a stable branch to share some include files for the driver between the dts64 and this branch. Regards, Matthias --- The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/ tags/v5.10-next-soc for you to fetch changes up to cc6576029aedc79ce87b9fcb22cbd396d47f2852: soc: mediatek: mmsys: Use devm_platform_ioremap_resource() (2020-11-28 00:37:12 +0100) ---------------------------------------------------------------- power-domains: - add support for new power domain driver. - add support for mt8183 and mt8192 devapc: - add support for the devapc device found on mt6779 to identify of malicious bus accesses from a controller to a device mmsys: - move DDP routing IDs into the driver cmdq: - drop timeout handler support as not usefull scpsys: - print warning on theoretical error ---------------------------------------------------------------- Chun-Kuang Hu (1): soc / drm: mediatek: cmdq: Remove timeout handler in helper function Enric Balletbo i Serra (5): mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function. dt-bindings: power: Add bindings for the Mediatek SCPSYS power domains controller dt-bindings: power: Add MT8183 power domains soc: mediatek: Add MediaTek SCPSYS power domains soc: mediatek: mmsys: Use devm_platform_ioremap_resource() Matthias Brugger (10): MAINTAINERS: change mediatek wiki page Merge tag 'ib-mfd-mediatek-v5.11' into HEAD Merge tag 'v5.10-next-pm-domains-stable' into HEAD soc: mediatek: pm-domains: Add bus protection protocol soc: mediatek: pm_domains: Make bus protection generic soc: mediatek: pm-domains: Add SMI block as bus protection block soc: mediatek: pm-domains: Add extra sram control soc: mediatek: pm-domains: Add subsystem clocks soc: mediatek: pm-domains: Allow bus protection to ignore clear ack soc: mediatek: pm-domains: Add support for mt8183 Neal Liu (2): dt-bindings: devapc: add bindings for mtk-devapc soc: mediatek: add mt6779 devapc driver Nicolas Boichat (1): soc: mediatek: Check if power domains can be powered on at boot time Weiyi Lu (3): dt-bindings: power: Add MT8192 power domains soc: mediatek: pm-domains: Add default power off flag soc: mediatek: pm-domains: Add support for mt8192 Yongqiang Niu (1): soc / drm: mediatek: Move DDP component defines into mtk-mmsys.h .../bindings/power/mediatek,power-controller.yaml | 293 ++++++++++ .../devicetree/bindings/soc/mediatek/devapc.yaml | 58 ++ MAINTAINERS | 2 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 3 +- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 34 +- drivers/mfd/syscon.c | 18 + drivers/soc/mediatek/Kconfig | 21 + drivers/soc/mediatek/Makefile | 2 + drivers/soc/mediatek/mt8173-pm-domains.h | 94 ++++ drivers/soc/mediatek/mt8183-pm-domains.h | 221 ++++++++ drivers/soc/mediatek/mt8192-pm-domains.h | 292 ++++++++++ drivers/soc/mediatek/mtk-cmdq-helper.c | 41 +- drivers/soc/mediatek/mtk-devapc.c | 308 +++++++++++ drivers/soc/mediatek/mtk-infracfg.c | 5 - drivers/soc/mediatek/mtk-mmsys.c | 11 +- drivers/soc/mediatek/mtk-pm-domains.c | 614 +++++++++++++++++++++ drivers/soc/mediatek/mtk-pm-domains.h | 102 ++++ drivers/soc/mediatek/mtk-scpsys.c | 5 +- include/dt-bindings/power/mt8183-power.h | 26 + include/dt-bindings/power/mt8192-power.h | 32 ++ include/linux/mfd/syscon.h | 11 + include/linux/soc/mediatek/infracfg.h | 107 ++++ include/linux/soc/mediatek/mtk-cmdq.h | 10 +- include/linux/soc/mediatek/mtk-mmsys.h | 33 ++ 24 files changed, 2243 insertions(+), 100 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/mediatek,power-controller.yaml create mode 100644 Documentation/devicetree/bindings/soc/mediatek/devapc.yaml create mode 100644 drivers/soc/mediatek/mt8173-pm-domains.h create mode 100644 drivers/soc/mediatek/mt8183-pm-domains.h create mode 100644 drivers/soc/mediatek/mt8192-pm-domains.h create mode 100644 drivers/soc/mediatek/mtk-devapc.c create mode 100644 drivers/soc/mediatek/mtk-pm-domains.c create mode 100644 drivers/soc/mediatek/mtk-pm-domains.h create mode 100644 include/dt-bindings/power/mt8183-power.h create mode 100644 include/dt-bindings/power/mt8192-power.h