From patchwork Sat Feb 10 16:38:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 199855 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2468486dyd; Mon, 12 Feb 2024 06:39:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6AveUeeqRc+V4QUEcVvGpdnnwQl7AZafdTb8wECRCfkF6BN1mlvhVCm0kDQzoruNQ6cvp X-Received: by 2002:a05:6a00:1743:b0:6e0:a346:834b with SMTP id j3-20020a056a00174300b006e0a346834bmr12084571pfc.1.1707748794590; Mon, 12 Feb 2024 06:39:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707748794; cv=pass; d=google.com; s=arc-20160816; b=d2Y+KcvXzGTf2PjQg1u/cGthl+OECywoQjvRD+lItuRYmO0UvnCZ3L0QphY0VGhnd/ bHJdTCkT3OEK3mNxYxh6Eb1pRUE26BbnkK4/Z741j8YdVGmoztBfmXYcza/v2dEG+bnZ unZeZTqsPqbeS0JMT0N+8yYcUV4FrZGQpShLBH4FbKlezUtyme5DW+GnueKRI0TNOqVN YAatqbSBDa5rQWdzIrGU4Ua4CTWeQ6db6fAbdtdtUpivE0YbRmuMlQEVS2ivCa71XRXO fmCIwgR8iaHG8mfMaIKbUHGwQbIwOi5KE8yHAurwWUhuFmtM3DBW7Gps5UeVfBl04w0B AMtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=wxpskk1LB/lBY5DuNzsca9HzYV6w/ceiQd+oOx6+OTs=; fh=0hgavl6CIEnBtjnQBb7/Ji78vu54yfrBCNufANOXT2c=; b=KJ1G8VMWwnX82XsxTzwGCiPSJWi7h72VbckDQjAhoYrFbbJdYEtbSi8lAOsxlly8gc pRE0g7KvZ2xnZKEhl8/8ROrOY9LZD8LH2cqlyNbbPJ9w6KkHFMVqqkQeUbZVjE8pV4d1 5xGhMaM3GBt69Qdz8QPsWNehK05e83xqartuIJe82N5DyPUehbSXlavPrjg3njmdPg4P EzSuOZd8wxCDyXD5wXJiRl7laF93Ci3r+qdbkeBIm8l7ekCsvXwGazvjc15cPr3fxRHQ H2Wu2oP15DvPSL1Pq4TBgrZI7Zpp7nGXbO6so2N8Op9Ni0hgvzdTL3JgMQ0bZKrqmiPn cq7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=AB17Nc0R; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-60463-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60463-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz X-Forwarded-Encrypted: i=2; AJvYcCVCA5PnfD9dyTmdEJ8M0yJX2BQQHCMVYJW5EyB7VlscrhR3l2VSwvr0Ukhw4DNfQ0/EqY2NCVWNyZsa/NJADWq2R20+kw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cm22-20020a056a020a1600b005dc528b8c93si342561pgb.242.2024.02.12.06.39.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 06:39:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60463-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=AB17Nc0R; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-60463-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60463-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 28C47284D6B for ; Sat, 10 Feb 2024 16:40:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E40405D72B; Sat, 10 Feb 2024 16:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="AB17Nc0R" Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7AB82B9C8; Sat, 10 Feb 2024 16:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707583151; cv=none; b=LFLaaWfwCZ24O+DVpOjDdS3ZV53bEvIlCQPpJa2Ws9zXjEX72ve6whjlzX8CfdKzi/ZYSkpEnVD4aGzvPLevcrZezbC6e4XUolx+dAY19ZGDugD9TJLevcKkhcooMdWs5Iv1mDCM6cjvSBz920YO8N05NKoRzvb9oBOZYlyBuJQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707583151; c=relaxed/simple; bh=Z0ejz2Z7KadDW8L5DtUsqa9+gFcYsfukyK6vqWCH2qU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kEE46Lp/Qa7dxU42KkJPIUMe7ZE5NeoJ/53g9afM3MqKfonuU0x5nyG1l9TVJR+/rDriw7lj0g2SQdH2cb1wgLyalUPVAc+7NPo2XNzhT0j487D/cJeC4LzuwBtkQiFpq6mLa4nmtsFoLNmFKUdttWuVolh2vswdfU0tx8/MTLQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=AB17Nc0R; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1707583147; bh=Z0ejz2Z7KadDW8L5DtUsqa9+gFcYsfukyK6vqWCH2qU=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=AB17Nc0RmHj3klVKrj1IsNpUmIxZe1/kCy8J+9uD8jij3g8BrFptG/atwQ+YtT+13 TqPrzdhEchku2RKuqLBfNJ63eVeUD+DOxSNYhD3UJZf17PlsFB0YL9somQTfy3TQvW 57oBxNISDh0HURSA4V6p1aOrS4cgtcdp5QaR9huU= From: Luca Weiss Date: Sat, 10 Feb 2024 17:38:56 +0100 Subject: [PATCH v2 1/3] dt-bindings: power: rpmpd: Add MSM8974 power domains Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240210-msm8974-rpmpd-v2-1-595e2ff80ea1@z3ntu.xyz> References: <20240210-msm8974-rpmpd-v2-0-595e2ff80ea1@z3ntu.xyz> In-Reply-To: <20240210-msm8974-rpmpd-v2-0-595e2ff80ea1@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Stephan Gerhold , =?utf-8?q?Matti_Lehtim=C3=A4ki?= Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1565; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=Z0ejz2Z7KadDW8L5DtUsqa9+gFcYsfukyK6vqWCH2qU=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlx6aoRiRisauepXEiWVHnu49b09eKAS1bnXrX7 jEvQCBqlRuJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZcemqAAKCRBy2EO4nU3X Vr46EACLtISs42mjjGJW4gCRA6r8/lZm3z/2tG+WrUKm9zBrVWLiXv1o+JEccOM4g1BPUv/fqyE +52k7YixnX5fG6yYrT+SbJVqcCahMqZEdVZlZ2zLhDOk6xIg/RXc1NCOzXaZuL3VraatW+63m5Y pNLeFrhGYsijhBNoFczuMOlQY7RfG78R06GZK221OWcXn7wUrEnoJVy8WvhNze9Gt9B3xRQ7kNE ffvZVRDvQJ++pEG9EwmHprPQcYsKlHfw7e/1GAgEl0r/vwzpJdcGc9sb6+0Ly0/43gJ/ru+1eJ2 ObFTS/a5fPAt82CthnAb4J9CgTr9G2pCzElf4n+noJGR00/2xrk2vRVSvlSSXk9VxjaZyXWyrio AyG2d4IipBbErgKEnkNjUzNh9XOM+kodStb5Eo1dHuVdUir2qY0ZY41euH+TRZV81XWKdBzlCJ3 15UYpjEVtJII5+3k/GW9MNSIjtzNmMGhW2MDraqzqavmysPqdxMuzEhX+SRmn59owTj/dm3UqC6 yzCGYWUqcPHW1Pb21D5WDk5YXw7DT5zi4UBe72eeAEwCp56edc6/x+ZW+c3+hIc3xCwNLV1dZqT drKZa/0PEzGW0Sx0IlI5npSpSEHxyoHTYlvq5ygn45FTAxt8wfgIQtPeT6+hyUMdLdrw1oCoOsC tyRDMnl0QwM9Pdw== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790604893068731549 X-GMAIL-MSGID: 1790704399859171873 Add the compatibles and indexes for the rpmpd in MSM8974, both with the standard PM8841+PM8941 PMICs but also devices found with PMA8084. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 2 ++ include/dt-bindings/power/qcom-rpmpd.h | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index 2ff246cf8b81..929b7ef9c1bc 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -24,6 +24,8 @@ properties: - qcom,msm8917-rpmpd - qcom,msm8939-rpmpd - qcom,msm8953-rpmpd + - qcom,msm8974-rpmpd + - qcom,msm8974pro-pma8084-rpmpd - qcom,msm8976-rpmpd - qcom,msm8994-rpmpd - qcom,msm8996-rpmpd diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 7f4e2983a4c5..608087fb9a3d 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -308,6 +308,13 @@ #define MSM8953_VDDMX 5 #define MSM8953_VDDMX_AO 6 +/* MSM8974 Power Domain Indexes */ +#define MSM8974_VDDCX 0 +#define MSM8974_VDDCX_AO 1 +#define MSM8974_VDDCX_VFC 2 +#define MSM8974_VDDGFX 3 +#define MSM8974_VDDGFX_VFC 4 + /* MSM8976 Power Domain Indexes */ #define MSM8976_VDDCX 0 #define MSM8976_VDDCX_AO 1 From patchwork Sat Feb 10 16:38:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 199454 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1946554dyd; Sun, 11 Feb 2024 06:20:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXfxIu99td/oL4gPHLKwzeY2EFfnVrUoHykTbvCPx2xJIY4Why19/zknAkpWhpop/qYTgDDALG8uqkKNDIddaP33wVK3g== X-Google-Smtp-Source: AGHT+IG5WEmNdeMiTBnsXIq9bc3m7P0jYeU6g34U0at0RORzeb9yV5KnHDxsuJGqJxYMag5ck7mT X-Received: by 2002:a05:6358:4316:b0:176:520c:c6a with SMTP id r22-20020a056358431600b00176520c0c6amr7942207rwc.9.1707661210334; Sun, 11 Feb 2024 06:20:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707661210; cv=pass; d=google.com; s=arc-20160816; b=0tFmrQsu8hiYUISQ3ff+broB0izOusdwFVnGwub3+wIL44cmRawT/ftN5xTJ18Hti6 wxJmm4yNdi3sxLJakqrH/AkoUDlyjt2zA21IhFEuSypMEIa7adYFHEJR1wrnzdYoe5SJ zf0HFVe12Tc3YnB5OPNjZKnc+sTHPkEiiQQGhLwsUSJnK4XlT0L6Lxho4SQ2LfEMpVut FSUL63Ga3B2MqGb5qQSDunAePxXAFUHPeLDDp8vf7VfcLoZ5IFQD0Y/xsrSZpr4+vIM2 l+l8JLUjJlZvmGT+LRFI1hONN5tkUGtSzYVpkseRcQLBNFCqAIkseAWVCF9naNZvgvQO UzRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=o+4ASeRXuWiEv/+Vv3bm+73RLlugXkImJQ+Z+pCTF9A=; fh=8VuVqF+KlTqvLef74n5nY3ItYoU4ZOZe7PDXL1bkS4w=; b=dRGkqlKZRe9roLUek0GkWcvRszT90yqwhzWuVqGJt8VHEAXyDN1yGCQLIGSk2AroJn gpk+9ZsZTWljhwYTRvshQmRKd1u0w1FC/QWePpps+YPfo1mspi55diCJYMrFB/8FvsB0 6Pypg9CvZg/OCfaict9B4gHdMc5+WgmSVgaJsYMdYI+v7lVWJdfX21Q75gQJgVrRMl4E xTKm33REp264I+7GdCLKzm+vix/FF3HMT03PhHaVfB1Pol0ACyipeHcoC6imXcrVH/+b Ctkvq+G9XTbobKJOawQpqGEL8ZV6fQ0vfFe8gbevhRM3RiZqU/vVc+5P7A50NkYw1+yD ReOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b="UG9Ug/JA"; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-60465-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60465-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz X-Forwarded-Encrypted: i=2; AJvYcCUoubwXL6oVIzZjZDtGmZWf/Oe4MpyRVOH8cyHMgz369y091bIZzc3t4Zwhd9r8QwxUz0EYc5N/hcNnqxkKmhF0PTnBeA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jp11-20020ad45f8b000000b0068c4ee6bb81si6299897qvb.61.2024.02.11.06.20.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 06:20:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60465-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b="UG9Ug/JA"; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-60465-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60465-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 86E821C23C2F for ; Sat, 10 Feb 2024 16:40:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2A985D758; Sat, 10 Feb 2024 16:39:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="UG9Ug/JA" Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A97C53815; Sat, 10 Feb 2024 16:39:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707583152; cv=none; b=aSqMAflbNExa7MB9Z8muCTPaXKjUausSUeNiVsEJwzTgxbdIcAXMViMHGINdVQYDfg8RoTLr0aNSGDR3kPPfC+CH/ixNyWQ4d5IbolPFBpIPxyAFlTJ8AwvaaO4m8beBwIkahWoyGGsJYqF7OOILb89Z3R14pMTWbDLYR+WVeEQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707583152; c=relaxed/simple; bh=Bqe9nG5QIKCNWmQCfAYO31zIO0yKG5ihxkdZCTLqWYs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tdC4866uSZFCQarRpBhdGiOR9yy2rFm8bwHh1YoasKNwPECeQPhsaDfI5CXudOBgZ4SX8j5q/DVwXW1z8QeJBa1jMULbuOxXRV/DWsjMHZakLUF15feOabGdUcIhBGdVrvzZfVbo0UvWGRX3T9IwFBKBKqVU9u49+L2QG8cjW34= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=UG9Ug/JA; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1707583148; bh=Bqe9nG5QIKCNWmQCfAYO31zIO0yKG5ihxkdZCTLqWYs=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=UG9Ug/JAnOhN5Ov4y323kq3XqF/g58hbJLSRxos6ZDplGYRlA2WDxtCT5M/APBPdF WM8LVQG4jiZS5xN3F75oaPn4G1AzZQQUmJaf7UjmLDJzmJavR2aN2R96rbVGn3S8gP 8wwvJVo9vPDuqXuG4PBrv3kAf/pQ1/GybOQVc/Ok= From: Luca Weiss Date: Sat, 10 Feb 2024 17:38:57 +0100 Subject: [PATCH v2 2/3] pmdomain: qcom: rpmpd: Add MSM8974+PM8841 power domains Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240210-msm8974-rpmpd-v2-2-595e2ff80ea1@z3ntu.xyz> References: <20240210-msm8974-rpmpd-v2-0-595e2ff80ea1@z3ntu.xyz> In-Reply-To: <20240210-msm8974-rpmpd-v2-0-595e2ff80ea1@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Stephan Gerhold , =?utf-8?q?Matti_Lehtim=C3=A4ki?= Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2874; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=Bqe9nG5QIKCNWmQCfAYO31zIO0yKG5ihxkdZCTLqWYs=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlx6apKNOxSZtGrGubtN7TRkNBkuCcJ0dkuvwbF sw9uXC91aKJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZcemqQAKCRBy2EO4nU3X VlKPD/wP7/T6WcgMkLn0WtjB6eKyxmg7YHynQTAIEvChvqmTX3W5e8WQlZC3s8OBtOM/kXwkcJx NoV2gMltS/xBlW+dGknr4W8rGby86u1yR+xOZtYCP0nSNR+efA6A2gvcniAko9RehADl14FSpSK 7rrkpNlmpbXua1t9fbK70XnZjVNXNGzayYxNE1X4aVQz+MnT8WaG9RkhP3/KWV1aRGOsFEAmRsP I7b11vmdS/GR7kpBp6T1BnYp6NtGvHkwPUauHdSCrQZNaAq9WAIrhsgHrHJLUKJqnnI2zhfflA/ JTWtZhxIlERjhLjUfZInQUHNzVrC7AvY0GHHI9BHTM29JnZU2EED1ZI4O8VJPsBoop7flAkFqXm tsPWVkZfmk8uhj1dD5idBYCcyGDGhRL8maPuHGnUgpi48QeQ4xyFrPlSBaQlokKtxL/4XGJH+4x gob5vasz/6yL22Sb7lWBL0qEDulhZ27wD2UiN5ehX2yEHXIfF9FIxSdv+Xc5xtDmRNdgwqoss6N yiHtAwiGVZQc/jLgHW6/nMOuYkDnZdcx8kMxWcZdc2U+3Y7pJl6Nw9fDUd/aHxORDRrLjj173YP nL4iCwwvagJqtDmqW2tJKNrH2oHa7m55ATU8iQjNaUTw4ViM1/18n3D2UTK2H+K96Wz+blqhVnw b4FYXMVtsA2ptpQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790533219638331786 X-GMAIL-MSGID: 1790612561185890457 Add the power domains CX & GFX found on devices with MSM8974 and PM8841. Signed-off-by: Luca Weiss --- drivers/pmdomain/qcom/rpmpd.c | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/drivers/pmdomain/qcom/rpmpd.c b/drivers/pmdomain/qcom/rpmpd.c index 7796d65f96e8..3fa6a0325fc0 100644 --- a/drivers/pmdomain/qcom/rpmpd.c +++ b/drivers/pmdomain/qcom/rpmpd.c @@ -226,6 +226,31 @@ static struct rpmpd cx_s3a_vfl = { .key = KEY_FLOOR_LEVEL, }; +static struct rpmpd cx_s2b_corner_ao; +static struct rpmpd cx_s2b_corner = { + .pd = { .name = "cx", }, + .peer = &cx_s2b_corner_ao, + .res_type = RPMPD_SMPB, + .res_id = 2, + .key = KEY_CORNER, +}; + +static struct rpmpd cx_s2b_corner_ao = { + .pd = { .name = "cx_ao", }, + .peer = &cx_s2b_corner, + .active_only = true, + .res_type = RPMPD_SMPB, + .res_id = 2, + .key = KEY_CORNER, +}; + +static struct rpmpd cx_s2b_vfc = { + .pd = { .name = "cx_vfc", }, + .res_type = RPMPD_SMPB, + .res_id = 2, + .key = KEY_FLOOR_CORNER, +}; + /* G(F)X */ static struct rpmpd gfx_s2b_corner = { .pd = { .name = "gfx", }, @@ -241,6 +266,20 @@ static struct rpmpd gfx_s2b_vfc = { .key = KEY_FLOOR_CORNER, }; +static struct rpmpd gfx_s4b_corner = { + .pd = { .name = "gfx", }, + .res_type = RPMPD_SMPB, + .res_id = 4, + .key = KEY_CORNER, +}; + +static struct rpmpd gfx_s4b_vfc = { + .pd = { .name = "gfx_vfc", }, + .res_type = RPMPD_SMPB, + .res_id = 4, + .key = KEY_FLOOR_CORNER, +}; + static struct rpmpd mx_rwmx0_lvl; static struct rpmpd gx_rwgx0_lvl_ao; static struct rpmpd gx_rwgx0_lvl = { @@ -663,6 +702,20 @@ static const struct rpmpd_desc msm8953_desc = { .max_state = RPM_SMD_LEVEL_TURBO, }; +static struct rpmpd *msm8974_rpmpds[] = { + [MSM8974_VDDCX] = &cx_s2b_corner, + [MSM8974_VDDCX_AO] = &cx_s2b_corner_ao, + [MSM8974_VDDCX_VFC] = &cx_s2b_vfc, + [MSM8974_VDDGFX] = &gfx_s4b_corner, + [MSM8974_VDDGFX_VFC] = &gfx_s4b_vfc, +}; + +static const struct rpmpd_desc msm8974_desc = { + .rpmpds = msm8974_rpmpds, + .num_pds = ARRAY_SIZE(msm8974_rpmpds), + .max_state = MAX_CORNER_RPMPD_STATE, +}; + static struct rpmpd *msm8976_rpmpds[] = { [MSM8976_VDDCX] = &cx_s2a_lvl, [MSM8976_VDDCX_AO] = &cx_s2a_lvl_ao, @@ -856,6 +909,7 @@ static const struct of_device_id rpmpd_match_table[] = { { .compatible = "qcom,msm8917-rpmpd", .data = &msm8917_desc }, { .compatible = "qcom,msm8939-rpmpd", .data = &msm8939_desc }, { .compatible = "qcom,msm8953-rpmpd", .data = &msm8953_desc }, + { .compatible = "qcom,msm8974-rpmpd", .data = &msm8974_desc }, { .compatible = "qcom,msm8976-rpmpd", .data = &msm8976_desc }, { .compatible = "qcom,msm8994-rpmpd", .data = &msm8994_desc }, { .compatible = "qcom,msm8996-rpmpd", .data = &msm8996_desc }, From patchwork Sat Feb 10 16:38:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 199455 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1953133dyd; Sun, 11 Feb 2024 06:36:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmqf8hSo36IRQ6moM/K5PgMfH/ED4uDDSKD6IWhax2tjNjbpis8Hf43StWW0eYeonsvdcolwWXkV7vC+n9I3bGdEpQhw== X-Google-Smtp-Source: AGHT+IHCVsikR12jYJ+RH8XjU1oAkRXOGssTw/nM28gGengCm9OW44GSuPUVj4KH18hEGivOz7le X-Received: by 2002:a17:902:ce92:b0:1d9:542c:ebf9 with SMTP id f18-20020a170902ce9200b001d9542cebf9mr4982562plg.45.1707662168658; Sun, 11 Feb 2024 06:36:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707662168; cv=pass; d=google.com; s=arc-20160816; b=reAg90veBmNRXMcUl42JuwSC72iB0cTUgHuYc9/vwlGvjhtpTDeqF6wJmQpp3gNiSP n1aOxkTMI4AIFIUQZE/tmpcwE3EIdCgCNwlnXqYLjSHGbZXVE7JGSqcNMkZlRXY4jwCl ZeFPJUFA+RMfglzG0m0KAcpazxKttaWyE0symTV0vtrrpjyWvPMXaEU1EFMze4E0LkuW +p1ucirBkdTUYPF71+QcbONCTUeWe1s6z3szvgo8v2sTFqiHR8hmEYymr94NwJwLIxBI YtF06xAiYQxudcRJ/hAYzNq2Wi9uvVH33AaJfDwUqgtGybFXM4LowBMgk5RTb5kZZ/qo RdTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=dd5IlXz23KR6fNaIk/CyavoEI/JhEmSS8NXimhAlWag=; fh=dnn4SBSSH7zz9GEKd9Nb7xILx1fM5+ZcV0HtmAr3Ng4=; b=E+3TvcsI86hISPtWO52wBSexfRXimCpMvnLvyWI2nAoBmPWWmNVFMGpzN50TMYt/Xe s/rGAEe6TPsoumTNzb4tqfcSIw9pWeoaeCEBQUUcjL4e2HpLe+PqYY8Kct6OUS2Lzesh R2/d6nvh1A+1C2QnEQ8ajt+QCF0ZFWk6KhIYNgbvUikt2FN9KgJ+ivpxKL2TcSw/0xNh IcelpqoP/+DaiWKtuVB3gQuyU8W5HUMgsMFAUlPth642oR+VYi07mr1/GQqsb7X9S5Fr JYZWszRFJQocVV5u9K3lLyDkRKmZswNbM+LY2yTE/w1EmNIT+w0UBH4qdNQoRH3l88YC 9Okg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=CgxKQ30o; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-60466-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60466-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz X-Forwarded-Encrypted: i=2; AJvYcCXWtHWI9cW7nSmSJ3zE2C8Nsg7hhVCbYoGaS6LhBF/IT19/hyuP393CFBd46QgzCiSKee/chWsUsLZ1+IWkUL/gx6+sUA== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x2-20020a170902ea8200b001d904d7c449si4820577plb.271.2024.02.11.06.36.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 06:36:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60466-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=CgxKQ30o; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-60466-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60466-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 33A74B23DD7 for ; Sat, 10 Feb 2024 16:40:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 251605D75B; Sat, 10 Feb 2024 16:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="CgxKQ30o" Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D04785C5E2; Sat, 10 Feb 2024 16:39:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707583152; cv=none; b=OcZVqeEqTRt0r8Ll4J0zPzxSborW6LG6h9+qidpC459ylqR31yn3pQkNbqBXkBffJr4nznoWGkydwKySyFql0jJoPqwUOGYfkVEsoKJi+o9jtNeejQ1/0qcUmYd5P3E6JkJOIhdHjEyMzxqQ2awixcutIps62PIRtr1Ozq2LUio= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707583152; c=relaxed/simple; bh=kgvAMPhT8w4j+/gc16d5E4a3wb/jg9/T4SXRJTUDi/w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Bq9X0pHZF48YLb18pm3J/png4c0E24nqTP7Lg5FBzcs2f4Jc95l1HlcdNgJzkwieXXmHAxk9kgunQ7KJocIYG2uZx93Pu8v3GmM4o0KJA3dNNMVt86BG1gV8j4yxx41rn5gJZcOGdpWIu08E334/gWfRdLGKGbKIzuCsK9skebs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=CgxKQ30o; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1707583149; bh=kgvAMPhT8w4j+/gc16d5E4a3wb/jg9/T4SXRJTUDi/w=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=CgxKQ30odRg8weEpgShVBLYP2myEEzO0LFQW8np5WbrvsfZPg0LsDVWmhvPjFLIey 2FFTyZRsFov5t+Y+qIO0R67gjt+AiweEB2utwcpK2kMvfxWDExKle8uaKsieuBERUg Xnf9QhC+9faQ+p/qylCSXkY/iMoCwxsALMk70TIo= From: Luca Weiss Date: Sat, 10 Feb 2024 17:38:58 +0100 Subject: [PATCH v2 3/3] pmdomain: qcom: rpmpd: Add MSM8974PRO+PMA8084 power domains Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240210-msm8974-rpmpd-v2-3-595e2ff80ea1@z3ntu.xyz> References: <20240210-msm8974-rpmpd-v2-0-595e2ff80ea1@z3ntu.xyz> In-Reply-To: <20240210-msm8974-rpmpd-v2-0-595e2ff80ea1@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Stephan Gerhold , =?utf-8?q?Matti_Lehtim=C3=A4ki?= Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2210; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=kgvAMPhT8w4j+/gc16d5E4a3wb/jg9/T4SXRJTUDi/w=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlx6aphrHa+N0dggsH13/iZNAuwr08JNoIsdJ0+ MYyk3kOGuKJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZcemqQAKCRBy2EO4nU3X VsHvEACk8q50ApttO6yx3gj3K6363npqMfi182GoUl1z8hdZcNwDoc/gBRE5IHfFWKcg2eU2RW9 6pZG9058GoQ6D+sDdmVdMKLV3821H+GrkHSJ4KLxNw0Wxoz51vIpsDNmNzVNgcGQMVVbB+VXp04 9DMZCSFP5+GbRXWeKu8OsjgLNEe4HuZ+50HJ+7EZRYxzXF1E61h/HeGnd51QNdAGil2ve9GoAoc kYyhGsp28NIB1+gOAxIGt8gLlMFxKtHwb0/+wCjU2WbRXfbOrepFr5jK5bbtBckZGMqeMDP8zru 1Jt/umoD1up6rRIPZRvJuuLTu9WR3A0UKD+61LSfzHVnWgFWidBceC20KwMGvYs8PfVJLV/jAZK 3iuwkmXmdlybBS5MpEq5d2XxslU971o7FrPF6o8f47xcb8w4Q+I1lyWn0qRtCJ9HYY/2jwJDIeK ZhTsVzNsHXdYXfE3i+hcwp8Ku2sHLL5VpKlp4Cl8CXgyT7CEu57LqORHrW/8zjJAJU10N48hGg+ y07v/WsIO0q4eTwWsb1N+luHYKyW1vvra+/GFsPTPRLKYwNIT+nze6iSiXD3wb9auvi7MXInnnN ZxWb0Wf4ZNhoVNfMkN9hx86XFf2jwWnO5EsVTflccQEb2akEJkblePELsqNs3OOiWD2LN040IwX gkUXmLj5pt4joVw== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790533285411087510 X-GMAIL-MSGID: 1790613566337656668 Add the power domains CX & GFX found on MSM8974 devices that use PMA8084 instead of the standard PM8841+PM8941 combo. Signed-off-by: Luca Weiss --- drivers/pmdomain/qcom/rpmpd.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/pmdomain/qcom/rpmpd.c b/drivers/pmdomain/qcom/rpmpd.c index 3fa6a0325fc0..2d47e3357f10 100644 --- a/drivers/pmdomain/qcom/rpmpd.c +++ b/drivers/pmdomain/qcom/rpmpd.c @@ -252,6 +252,20 @@ static struct rpmpd cx_s2b_vfc = { }; /* G(F)X */ +static struct rpmpd gfx_s7a_corner = { + .pd = { .name = "gfx", }, + .res_type = RPMPD_SMPA, + .res_id = 7, + .key = KEY_CORNER, +}; + +static struct rpmpd gfx_s7a_vfc = { + .pd = { .name = "gfx_vfc", }, + .res_type = RPMPD_SMPA, + .res_id = 7, + .key = KEY_FLOOR_CORNER, +}; + static struct rpmpd gfx_s2b_corner = { .pd = { .name = "gfx", }, .res_type = RPMPD_SMPB, @@ -716,6 +730,20 @@ static const struct rpmpd_desc msm8974_desc = { .max_state = MAX_CORNER_RPMPD_STATE, }; +static struct rpmpd *msm8974pro_pma8084_rpmpds[] = { + [MSM8974_VDDCX] = &cx_s2a_corner, + [MSM8974_VDDCX_AO] = &cx_s2a_corner_ao, + [MSM8974_VDDCX_VFC] = &cx_s2a_vfc, + [MSM8974_VDDGFX] = &gfx_s7a_corner, + [MSM8974_VDDGFX_VFC] = &gfx_s7a_vfc, +}; + +static const struct rpmpd_desc msm8974pro_pma8084_desc = { + .rpmpds = msm8974pro_pma8084_rpmpds, + .num_pds = ARRAY_SIZE(msm8974pro_pma8084_rpmpds), + .max_state = MAX_CORNER_RPMPD_STATE, +}; + static struct rpmpd *msm8976_rpmpds[] = { [MSM8976_VDDCX] = &cx_s2a_lvl, [MSM8976_VDDCX_AO] = &cx_s2a_lvl_ao, @@ -910,6 +938,7 @@ static const struct of_device_id rpmpd_match_table[] = { { .compatible = "qcom,msm8939-rpmpd", .data = &msm8939_desc }, { .compatible = "qcom,msm8953-rpmpd", .data = &msm8953_desc }, { .compatible = "qcom,msm8974-rpmpd", .data = &msm8974_desc }, + { .compatible = "qcom,msm8974pro-pma8084-rpmpd", .data = &msm8974pro_pma8084_desc }, { .compatible = "qcom,msm8976-rpmpd", .data = &msm8976_desc }, { .compatible = "qcom,msm8994-rpmpd", .data = &msm8994_desc }, { .compatible = "qcom,msm8996-rpmpd", .data = &msm8996_desc },