From patchwork Tue Nov 22 20:27:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 1708005 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=uMDIaoZw; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=TSmwtgWV; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NGwn64GTZz23nR for ; Wed, 23 Nov 2022 07:28:10 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From: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=nZbsbYa7wRPNSVukFKjEMuUo+QJ8iuWb2AejTjbCPkA=; b=uMDIaoZw236igR 9mr3AAmti7EP/6GCvDNXSFFZ8NXf2GmY3ZkxUsoi0SXYJXkJXLJRkajAqEk9ZdxMFeAms5s5bpc5H 3f5YBCfZR4/GqL9M3jklvjBXYow5OhgKfqqWMUCwnuwNQ4xtLtvn2as03M3ksIuEmLxDki6ZKKhzR kpIj+QBx/Fq/rjMHczZ8nTlUQjKG1ffkmwr77OgLVFscUQuahu2EzwOqRGW5gIeKaupO2BiUHEnIz WuR2QfH0/ake7/chr2VjURibSvPnHklioDoLjFQj4zSsI6Ci2Tp3vvGmq7tmUbC1bGKCRi2zg5Z09 G1XRfm6JNtGxd9tHxo9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxZs4-00BnT7-Ux; Tue, 22 Nov 2022 20:27:57 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxZs1-00BnRP-4d for linux-arm-kernel@lists.infradead.org; Tue, 22 Nov 2022 20:27:54 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B0040618D3; Tue, 22 Nov 2022 20:27:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A95EC433D6; Tue, 22 Nov 2022 20:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669148871; bh=HnL6D20Guct6F7wgkJsqE72js3NaiOgCCnv2hxPRg38=; h=From:List-Id:To:Cc:Subject:Date:From; b=TSmwtgWVbqda0C2OPQsO752Pj2TZYZ2Bk1ooUBDDBZDd7Rzo5+SJ1omxGXLfGUo8V DsycX4PRqfW77kVlazxO2GFa+9glQy7q9QrvIzt6EPu2g2fUvHYGbCrqv0jgaEaP29 H34w9uO8Bj1TxzEraZUhs/7qFv4fTvmg5Qw+VfLJDk7l9lSRnZ5xyxiq08CprRclS2 Pqf+TQmoy26E8Y07buHvEK/AescogJRvAOP4emuP+tUUFbUM/0FezRg5ob0wNAdqK3 a6qOKfVKk3q+XnGHHHj2WttMyxCpuvtsK/7H4iFBjGQXN8NkBhmfd8smY9l/9VnEv/ WdhdaQrFiRboQ== From: Bjorn Andersson To: arm@kernel.org, soc@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andy Gross , Arnd Bergmann , Olof Johansson , Kevin Hilman , Krzysztof Kozlowski , Maulik Shah , Melody Olvera , Konrad Dybcio , Luca Weiss , Richard Acayan , AngeloGioacchino Del Regno , Stephen Boyd , Vincent Knecht , AngeloGioacchino Del Regno , "Gustavo A . R . Silva" , Jeff Johnson , Jiasheng Jiang , Lina Iyer , Luca Weiss , Manikanta Pubbisetty , Wolfram Sang Subject: [GIT PULL] Qualcomm driver updates for 6.2 Date: Tue, 22 Nov 2022 14:27:48 -0600 Message-Id: <20221122202748.1854487-1-andersson@kernel.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221122_122753_281462_09778993 X-CRM114-Status: GOOD ( 16.64 ) X-Spam-Score: -5.4 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780: Linux 6.1-rc1 (2022-10-16 15:36:24 -0700) are available in the Git repository at: Content analysis details: (-5.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [139.178.84.217 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780: Linux 6.1-rc1 (2022-10-16 15:36:24 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git qcom-drivers-for-6.2 for you to fetch changes up to aa9f474014b1e2665194a97dc4675aa187534bb9: dt-bindings: firmware: scm: add sdm670 compatible (2022-11-11 21:28:52 -0600) ---------------------------------------------------------------- Qualcomm driver updates for 6.2 The qcom,msm-id and qcom,board-id DeviceTree properties are documented, to allow them to be used in configurations or devices requiring these and the socinfo driver is updated to reuse the introduced identifiers. The rpmh-rsc driver is extended to register for PM runtime notifications from the CPU clusters, in order to submit sleep and wake votes the last core in a cluster is being powered down. A mechanism for keeping rpmhpd resources voted until sync_state is introduced, this ensures that power-domains required during boot are kept enabled. The rpmhpd power-domains for SDM670 are also added. Support for the new QDU1000/QRU1000 platform is introduced in the rpmhpd and socinfo drivers. The APR driver gains missing error handling. QMI message descriptors in the PDR driver are made const. Support for the RPM found in SM6375 is added. The SPM driver gains support for MSM8939 and MSM8976 platforms. The stats and command-db drvers are marked as not having PM support. ---------------------------------------------------------------- AngeloGioacchino Del Regno (3): dt-bindings: soc: qcom: spm: Add compatibles for MSM8976 L2 soc: qcom: spm: Implement support for SAWv2.3, MSM8976 L2 PM dt-bindings: soc: qcom: qcom,smd-rpm: Use qcom,smd-channels on MSM8976 Bjorn Andersson (1): soc: qcom: rpmhpd: Use highest corner until sync_state Gustavo A. R. Silva (1): soc: qcom: smd-rpm: Replace zero-length array with DECLARE_FLEX_ARRAY() helper Jeff Johnson (1): soc: qcom: pdr: Make QMI message rules const Jiasheng Jiang (1): soc: qcom: apr: Add check for idr_alloc and of_property_read_string_index Konrad Dybcio (3): dt-bindings: soc: qcom: qcom,smd-rpm: Add a compatible for SM6375 soc: qcom: smd-rpm: Add SM6375 compatible dt-bindings: firmware: document Qualcomm SM6375 SCM Krzysztof Kozlowski (4): dt-bindings: arm: qcom: document qcom,msm-id and qcom,board-id soc: qcom: socinfo: create soc_id table from bindings dt-bindings: soc: qcom: smd-rpm: add PMIC regulators nodes dt-bindings: soc: qcom: smd-rpm: add qcom,glink-channels Lina Iyer (1): soc: qcom: rpmh-rsc: Attach RSC to cluster PM domain Luca Weiss (4): soc: qcom: spmi-pmic: convert hex numbers to lowercase soc: qcom: spmi-pmic: add more PMIC SUBTYPE IDs dt-bindings: soc: qcom: aoss: Add sc8280xp compatible soc: qcom: llcc: make irq truly optional Manikanta Pubbisetty (1): dt-bindings: qcom: smp2p: Add WPSS node names to pattern property Maulik Shah (4): dt-bindings: soc: qcom: Update devicetree binding document for rpmh-rsc PM: domains: Store the next hrtimer wakeup in genpd soc: qcom: rpmh-rsc: Save base address of drv soc: qcom: rpmh-rsc: Write CONTROL_TCS with next timer wakeup Melody Olvera (4): dt-bindings: power: rpmpd: Add QDU1000/QRU1000 to rpmpd binding soc: qcom: rpmhpd: Add QDU1000/QRU1000 power domains dt-bindings: arm: qcom,ids: Add SoC IDs for QDU1000/QRU1000 soc: qcom: socinfo: Add QDU1000/QRU1000 SoC IDs to the soc_id table Richard Acayan (3): dt-bindings: power: rpmpd: add sdm670 power domains soc: qcom: rpmhpd: add sdm670 power domains dt-bindings: firmware: scm: add sdm670 compatible Stephen Boyd (2): soc: qcom: cmd-db: Mark device as having no PM support soc: qcom: stats: Mark device as having no PM support Vincent Knecht (2): dt-bindings: soc: qcom: spm: Add MSM8939 CPU compatible soc: qcom: spm: Add MSM8939 SPM register data Wolfram Sang (1): soc: qcom: move from strlcpy with unused retval to strscpy Documentation/devicetree/bindings/arm/qcom.yaml | 120 +++++++++ .../devicetree/bindings/firmware/qcom,scm.yaml | 3 + .../devicetree/bindings/power/qcom,rpmpd.yaml | 2 + .../bindings/soc/qcom/qcom,aoss-qmp.yaml | 1 + .../bindings/soc/qcom/qcom,rpmh-rsc.yaml | 5 + .../devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml | 28 ++- .../devicetree/bindings/soc/qcom/qcom,smp2p.yaml | 2 +- .../devicetree/bindings/soc/qcom/qcom,spm.yaml | 3 + drivers/base/power/domain.c | 26 ++ drivers/base/power/domain_governor.c | 3 + drivers/soc/qcom/apr.c | 15 +- drivers/soc/qcom/cmd-db.c | 2 + drivers/soc/qcom/llcc-qcom.c | 2 +- drivers/soc/qcom/pdr_internal.h | 20 +- drivers/soc/qcom/qcom_stats.c | 2 + drivers/soc/qcom/rpmh-internal.h | 9 +- drivers/soc/qcom/rpmh-rsc.c | 146 +++++++++-- drivers/soc/qcom/rpmh.c | 4 +- drivers/soc/qcom/rpmhpd.c | 71 +++++- drivers/soc/qcom/smd-rpm.c | 3 +- drivers/soc/qcom/smp2p.c | 2 +- drivers/soc/qcom/socinfo.c | 271 +++++++++++---------- drivers/soc/qcom/spm.c | 46 ++++ include/dt-bindings/arm/qcom,ids.h | 161 ++++++++++++ include/dt-bindings/power/qcom-rpmpd.h | 16 ++ include/linux/pm_domain.h | 7 + include/soc/qcom/qcom-spmi-pmic.h | 17 +- 27 files changed, 817 insertions(+), 170 deletions(-) create mode 100644 include/dt-bindings/arm/qcom,ids.h