Message ID | 20240210-msm8974-rpmpd-v1-0-de9355e6842a@z3ntu.xyz |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-60416-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1488223dyd; Sat, 10 Feb 2024 06:14:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEr5qIU/IgDZTKs33kb8ihmZIyQ2WpSs+yQ8Cq0wD9Fw6LBWWjXut9tXt3Veak5njMqEytQ X-Received: by 2002:a17:90b:228f:b0:296:3a5:6fb8 with SMTP id kx15-20020a17090b228f00b0029603a56fb8mr1069450pjb.25.1707574496693; Sat, 10 Feb 2024 06:14:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707574496; cv=pass; d=google.com; s=arc-20160816; b=Tr17WaervJUXUU0tKjCnSpxca/UsjMuZwkKmugHZSPWMgCVHyzQwyJMxO+FUtDVbqI HPltKtRVPPAjmXCEaEgvxDN1ny433wsuqpfQKi8Wun09uZuvsvWcWWIZDLS3IwsUv760 o15OXhmAqhpddJowEeLjjkpym+1LGowv4F983oOLxjCPeTeorq4BqThuxoQnqrOnLSYg smgvy8XjIdxLuUwni71+00TBdlb+6B0TjXcwn4BzI2aPWjC7EvCJPT4SrGWpBqd8aB+7 BMteTA72p8Ya6VfPgqGysSu0DtzbTTwWi/KLi22ZwGYCHddsVSWMOEUOOZNERCUEiZyt Stag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=8F3YLf/0CElOANZtEglQP+hqxNrNYSl80wrkR4ZnWi8=; fh=mj9JMUWQKkbrhhdTtbWauA+tmIRJsTPkR8lxmld+Lo4=; b=C9ShFru9l9z1205vpncfas2vAjfRCJpoL4+7raRvgKvqoSfI8QNSao4cGoqLWN/DM1 ge4EXrZwZXy2xfh8kdjTKK8LDNC3xaWyiGq8TAZfOqN3wcuKbcAiRvkVIA0jffk0DPH/ QHkhtay0sYq+kluoaBIkaT5zIKr3po1+oBCA52+NPPSf57MOjEnUQ9MWOqiI5ePjM8sY kqT+VRgUxYcAipuuK0zjN/G4trLJlaVCm8b/MNXy6X0kyqLQMXiVndo7IYMW06DqCX7i 867WZLAtHLI/FrxGfDqedqGFR7qXkddtaQ6K4n1omXSuedpqqNWBlvlgaZLjM3+q/a7n AheQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=rjd1A5Yw; 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-60416-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60416-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz X-Forwarded-Encrypted: i=2; AJvYcCVJ+sCeOJsEE/0dKP+1v2Rw2AkRSvgjjQGImK8InGds9oUw4+I1uAK7Nb4N57ObYM93vofhZgrfIJcoZtZsiQM/vwU1IQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cu22-20020a17090afa9600b00296dc470775si3369613pjb.128.2024.02.10.06.14.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 06:14:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60416-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=rjd1A5Yw; 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-60416-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60416-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 3DEEA284439 for <ouuuleilei@gmail.com>; Sat, 10 Feb 2024 14:14:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DC0E54BF1; Sat, 10 Feb 2024 14:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="rjd1A5Yw" 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 DADD753E03; Sat, 10 Feb 2024 14:13:26 +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=1707574408; cv=none; b=a3Ltp+T+vvzWLeRIqVvDznObLynDKu8+CrMxz762fqnRvlv1b7GCF3kJzN6tybHBarMX9Ibv+SrSEDMkGybVgwUDAg9Ya6u6wy0fytZ/wzCu3EcB8UOcLZ9zF2djS08MM0aYfn/0xW5Fmqoz15f3qR8ozbE/aAN6FNj74jBpYU8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707574408; c=relaxed/simple; bh=k0BTFLmUwPs99wnDROHreAYsJESy48xS/LYqqLEr4a0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=f0MTfX8G/AbtQ1Cx7UNqQlpJULgaoqAe9S4dyqVSO6fBz3xqekAoLpifdnC/Px438zRqCNpkeh1HBaQB+8uUHT8eE2tKiEsYmBv/bgANGDZKHR0UMYyXJn8z6TFxaZXxtvTB+FfTKHb6mBCKLvLk4lEqGNdfqNKrkJzbG4UG1p8= 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=rjd1A5Yw; 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=1707574398; bh=k0BTFLmUwPs99wnDROHreAYsJESy48xS/LYqqLEr4a0=; h=From:Subject:Date:To:Cc; b=rjd1A5Ywu7n7HM2uIpGlOd2FuSo1hIcY+at2qg9wwmb97ARaCTRuJvX4bVOtXgvD/ x0g7dWFSVPL07Qzxc8oMgswMk84AzKnMY/czwoHX4Jwnaz5wvgRYMX/6n4CDSAGs4m srb1pRa5fxcSGgVf2Rcxu0AhJBUzdUayJsOLLVHY= From: Luca Weiss <luca@z3ntu.xyz> Subject: [PATCH 0/3] Add RPMPD support for MSM8974 Date: Sat, 10 Feb 2024 15:12:54 +0100 Message-Id: <20240210-msm8974-rpmpd-v1-0-de9355e6842a@z3ntu.xyz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGaEx2UC/x3MQQqAIBBA0avErBPULK2rRIvIsWahiUIE4t2Tl m/xf4GMiTDD0hVI+FCmOzSIvoPj2sOJjGwzSC4Vl4Izn72ZtWIp+mjZhMo4HLSSeoTWxISO3v+ 3brV+DaNGL18AAAA= To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org>, Stephan Gerhold <stephan@gerhold.net>, =?utf-8?q?Matti_Lehtim=C3=A4ki?= <matti.lehtimaki@gmail.com> Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Luca Weiss <luca@z3ntu.xyz> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1021; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=k0BTFLmUwPs99wnDROHreAYsJESy48xS/LYqqLEr4a0=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlx4RpGyQjD6B2c76jO4pelr2m8P6IQkQZtJdLu kvN5P3NSJaJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZceEaQAKCRBy2EO4nU3X VjF2D/wO52RLi/5TYtuH1Zdr8fA7quTFv0SyiHlxH3UNVddW5sIJArMzGUokxqtQEwF2Yrcu+JA 8Fl5+bRyONjbzvdUvfAIAQPrZrrWSDD5VZoE/XOdI4+/QuQikfr8VQItU1nYpPMG8Bx/N/MdEQj sG8LIP4W/mGWoTpl/OnRKtBeia9zoOKPYFtSwqmtTFV/I47HOdoY+5m1XwM7vRAMqpLVgRnuXbV 0Mfi8GDM6zpgOU73Zk/XmdX2TTP3ozB2rOQO5mDO7m904+BNA6RmqUm8tfLLdXaCYZLlZpKHOTM XX9WA2r+Kdcm8U1c+sFZHQnK2qTZ/Vx0mNN923FUmTicXOQ5d/ipoX56s13N8+ri/3tffj3HwFV cnqnM4dQUZ3uNjPUuDRD0TuA76o61vNp+x17muC4dpXLgHwzKi7E067uWaeBk8S21bJxzLKZA+z 0dlQ6x+wpEG4xR/9F98xUGY9fJSvEqwlaWOd7HyTeTN1mWLPevOr15ObG296x+7Rqhv+Cm28Tmq 8HiiBXxR/fl/bQV39YdzVv49u/STVbfM/n+5ku0EfOkuEehOgPCzOfekVe2c/aedPBiXod1ukSV nyo9NTMNt4oLt0K0xdx3LDfreg4nyz+ttJcSIBqQ7hIThtIpVeqn8GbWmU5D1bts+8mm/XzHwuH UVJMCyP4oOnwqGQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790521635074697044 X-GMAIL-MSGID: 1790521635074697044 |
Series | Add RPMPD support for MSM8974 | |
Message
Luca Weiss
Feb. 10, 2024, 2:12 p.m. UTC
Add driver support for the RPM power domains found on the different
MSM8974 devices.
Devicetree integration will come at a later point since also some
mostly remoteproc drivers need to be adjusted.
Also the MX power domains on this SoC seems to work quite a bit
differently, we'd need to send raw voltages to it, so these are ignored
in this series.
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
Luca Weiss (3):
dt-bindings: power: rpmpd: Add MSM8974 power domains
pmdomain: qcom: rpmpd: Add MSM8974+PM8841 power domains
pmdomain: qcom: rpmpd: Add MSM8974PRO+PMA8084 power domains
.../devicetree/bindings/power/qcom,rpmpd.yaml | 2 +
drivers/pmdomain/qcom/rpmpd.c | 107 +++++++++++++++++++++
include/dt-bindings/power/qcom-rpmpd.h | 8 ++
3 files changed, 117 insertions(+)
---
base-commit: 6e3fa474051f3d276ea708bdb8e8e1f66d1d3ee5
change-id: 20240210-msm8974-rpmpd-6e48fe374275
Best regards,
Comments
On 2/10/24 15:12, Luca Weiss wrote: > Add the power domains CX & GFX found on devices with MSM8974 and PM8841. > > Signed-off-by: Luca Weiss <luca@z3ntu.xyz> > --- [...] > +static struct rpmpd gfx_s4b_corner_ao; > +static struct rpmpd gfx_s4b_corner = { > + .pd = { .name = "gfx", }, > + .peer = &gfx_s4b_corner_ao, > + .res_type = RPMPD_SMPB, > + .res_id = 4, > + .key = KEY_CORNER, > +}; > + > +static struct rpmpd gfx_s4b_corner_ao = { > + .pd = { .name = "gfx_ao", }, > + .peer = &gfx_s4b_corner, > + .active_only = true, > + .res_type = RPMPD_SMPB, > + .res_id = 4, > + .key = KEY_CORNER, > +}; I don't see a s4b_ao downstream.. Though it's very unfortunate we didn't choose to add power-domain-cells or sth and set the bucket through that.. Konrad