Message ID | 20230912-spmi-pm8909-v1-0-ba4b3bfaf87d@gerhold.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp317007vqx; Tue, 12 Sep 2023 03:49:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEvdwQJX5AKWn5oxm+HAUdqeOlx9ac1qgL3RMmkLr4kLAVc+VsmyxRj1APYXdkmisnCOvY X-Received: by 2002:a17:902:d484:b0:1bb:77a2:edda with SMTP id c4-20020a170902d48400b001bb77a2eddamr14252068plg.36.1694515744204; Tue, 12 Sep 2023 03:49:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694515744; cv=pass; d=google.com; s=arc-20160816; b=CfKQcCnTmXgn8U5eqBwM94CjFPzUG0GJZf8qt4XlvJT8DYp9p1CaFNDHjnD3AJWu6h SbddntpT0fFg76X1t1NtFdR1+D8VF0PXYtpZOjQ3rZPNfbiYlrFcBTGZ7PI11/O4NQ6L wtzJika/c/ZCosM1A65Wlz0GGdui4Rkn+FRW2dQYP0dfNUUD73BnuPLbJKqkdBRjRA83 wSNjDOIa3rPL55OYH8oQL5l2SnW1EhyZ3yIgScRX95HTffQUME91CiUCwffjNJB5fliG ey9jcLK5kjpH1ez/Fm3aKuBxKxIW4LMG5xrd+o5tuoKPIh2GIZKpAG5lSH4VtuuYS1Ou n3Fw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature:dkim-signature; bh=jSjCvcuGUtmDVM5LebemKIMbXYQsSZIFLfVWBoighTA=; fh=GylhPReoJ41e26WaMzpkK04zMiJ739hw46eo5KjngQw=; b=FKqbeE7O3GqcYZlM1Kyo8XzPKXjEHVsRfqbOA+lhJfDihTx6etUac82TZ4piqp6j4M VELYTjoSFw/hEiQH6BOvc9G0IKWeBQ9IPlp8GmnZBX316LKzivjHQf3MVmQf1HPuZGsK wfqL3MfaGIEHnPF+ZRttMF+h+TsupGmvLWrUjuXH/Zns7uehJyBuXCCXh/g5U6vSpM5O Vg/MT3WK6R+N/t6hXJYr+eItlz/+lTX2EvBfWeim/Yffv87LsIG9sKfJ2OCiAsyFMX9i um7tehM+rwTanPb8C4vCTQIrDuxnn0Hb9rba9l2+gnnm+paoYObN6CXnQgqbP43FARc+ eB4A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=X58wvMl1; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003 header.b=lLkdfdVG; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u2-20020a170902714200b001bdb748e616si7549557plm.7.2023.09.12.03.48.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 03:49:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=X58wvMl1; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003 header.b=lLkdfdVG; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1202C81F35B1; Tue, 12 Sep 2023 00:50:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231834AbjILHu2 (ORCPT <rfc822;pwkd43@gmail.com> + 39 others); Tue, 12 Sep 2023 03:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231802AbjILHuY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Sep 2023 03:50:24 -0400 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 259EA10C2; Tue, 12 Sep 2023 00:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694505010; cv=none; d=strato.com; s=strato-dkim-0002; b=DmXgqBUdp8c0XCJ9K3rW2asByY2yNYSpKXLkUQsGKqXQP2ZILmFaVZDT3Pf5RvHISI PdJD7StLS8MUkZawg8eByT57bisbaCd6pRZ1NhsR5gydNZ2dmNayUfYC63jcCV6l73Fk xWN77yPFs7iPiV6GMrGp/hI+lxu71b6wsA85fUkv1ITCnx92n//gTvk3ysbAj3DSBElz ESv5i6z8upH+lo5Z2W1KZnUx0OYRNNKzVGmkUUZZKWbcmORfJjf92ATxpZ+Wc4puo09f XrAvapo1kaUzYihBn0KlysVhr92J2UBssiF4lETOM+n+wdwnUarnTzhRSIutyqkoPx5/ /yOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1694505010; s=strato-dkim-0002; d=strato.com; h=Cc:To:Message-Id:Date:Subject:From:Cc:Date:From:Subject:Sender; bh=jSjCvcuGUtmDVM5LebemKIMbXYQsSZIFLfVWBoighTA=; b=iGUSK+mFpxJLB9NXXDczqt+dn0Wty+fF6tbpihoOZ2JwV5OAV0Htaj0lMQur5dv35b uZxUCHHLZd5/5LsRfGlihI8Vn8bMJpeHW+xz7yMnDDV5s9BQTreJSgTCYr0iqjnJnGU+ i7Dn3RNesN4QUzkgrq2huUiCNmpTJXFco7iSYn5Q24RXrw3oPnCLIf9FYew+y32l1tGE /375bcO1cFz1MSkFauenMZBlz0/PF2C59ILiM/LL5m+N7HOE6APY09WynkOWH9atEIlq NXx4QxwW70E/tHfCX9AHFny+7jpfuODBZStYPyJFV+5C12eWxK1cuzKj0fMcwoexAXF4 Hyvw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1694505010; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:Message-Id:Date:Subject:From:Cc:Date:From:Subject:Sender; bh=jSjCvcuGUtmDVM5LebemKIMbXYQsSZIFLfVWBoighTA=; b=X58wvMl1YInii6yl+OMTBHNe+t+tGjaQsFFHVMkSJzuKicsrURIkTdJ7RQCbDepbEB 0yutOKmOTTeUSPEK4Wy6zksHJsCgZLgOtC82i42wOuQpCb0IKKzEFIi340T8Y6zoJ0d+ AgkIBg2iffQnIb2cUk7PAqS0Ch6fyl1be2PrN14g8JlcF2Gh+DY2jHjt/MmuyF24n77F FPo/sfTG8qg1/264QXTU8GORl58aOUAv6ZXgSntOqpNZ1Er94RUzAyz54P0pAQrrteFH 6fwhM5XS/lrwtLQUVh3Q3eMHyhw5VGbUJjqY9lxHzIblpIynUBp2XMG5bhZkUyOd0/Q0 OfAg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1694505010; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:Message-Id:Date:Subject:From:Cc:Date:From:Subject:Sender; bh=jSjCvcuGUtmDVM5LebemKIMbXYQsSZIFLfVWBoighTA=; b=lLkdfdVGIQom/dXOgHMlTrGeJjq6Qu7P9OtCQ0r7xVViMJPJiqvxg9q5m7k1QPt5e4 9TWxQr3HVgvjHLWhwXAw== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQjVd4CteZ/7jYgS+mLFY+H0JAn9VOL7nT0=" Received: from [192.168.244.3] by smtp.strato.de (RZmta 49.8.2 DYNA|AUTH) with ESMTPSA id 60372az8C7oAcKl (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 12 Sep 2023 09:50:10 +0200 (CEST) From: Stephan Gerhold <stephan@gerhold.net> Subject: [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Date: Tue, 12 Sep 2023 09:49:48 +0200 Message-Id: <20230912-spmi-pm8909-v1-0-ba4b3bfaf87d@gerhold.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABwYAGUC/y2NQQqEMAxFryJZG6gOo9ariIuoUbOwlgZEKN592 sHl4/3Hj6AchBX6IkLgS1ROl6AqC5h3chujLImhNvXHWNOg+kPQH501FpeWmKqmoy9ZSMVEyjg FcvOem3eVi2x94FXu/9cwPs8PHDXiLHsAAAA= To: Mark Brown <broonie@kernel.org> Cc: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Robert Marko <robimarko@gmail.com>, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Stephan Gerhold <stephan@gerhold.net>, Stephan Gerhold <stephan.gerhold@kernkonzept.com> X-Mailer: b4 0.12.3 Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 00:50:42 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776828540986628352 X-GMAIL-MSGID: 1776828540986628352 |
Series |
regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084
|
|
Message
Stephan Gerhold
Sept. 12, 2023, 7:49 a.m. UTC
Add the necessary definitions for the PM8909, PM8019 and PMA8084 PMIC to
the qcom_spmi-regulator driver to allow reading the actual voltages
applied to the hardware at runtime. This is mainly intended for
debugging since the regulators are usually controlled through the
RPM firmware (via qcom_smd-regulator).
These PMICs are used on totally different platforms (MSM8909, MDM9607,
MSM8974/APQ8084). Each PMIC addition is independent and useful on it
own. I only bundled them to simplify review.
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
Stephan Gerhold (6):
dt-bindings: regulator: qcom,spmi: Document PM8909
regulator: qcom_spmi: Add PM8909 regulators
dt-bindings: regulator: qcom,spmi: Document PM8019
regulator: qcom_spmi: Add PM8019 regulators
dt-bindings: regulator: qcom,spmi: Document PMA8084
regulator: qcom_spmi: Add PMA8084 regulators
.../bindings/regulator/qcom,spmi-regulator.yaml | 68 ++++++++++++++-
drivers/regulator/qcom_spmi-regulator.c | 96 ++++++++++++++++++++++
2 files changed, 163 insertions(+), 1 deletion(-)
---
base-commit: b03f047d9f28d6e68dce6ca66383b80ad66ec1ce
change-id: 20230906-spmi-pm8909-d7aea168a5a9
Best regards,
Comments
On Tue, 12 Sep 2023 09:49:49 +0200, Stephan Gerhold wrote: > From: Stephan Gerhold <stephan.gerhold@kernkonzept.com> > > Document the qcom,pm8909-regulators compatible together with the > necessary supply properties to allow interfacing via the hardware > regulator registers directly via SPMI. This is mainly intended for > debugging since the regulators are typically controlled via the RPM > firmware (qcom,rpm-pm8909-regulators compatible). > > Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com> > --- > .../bindings/regulator/qcom,spmi-regulator.yaml | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > Reviewed-by: Rob Herring <robh@kernel.org>
On Tue, 12 Sep 2023 09:49:48 +0200, Stephan Gerhold wrote: > Add the necessary definitions for the PM8909, PM8019 and PMA8084 PMIC to > the qcom_spmi-regulator driver to allow reading the actual voltages > applied to the hardware at runtime. This is mainly intended for > debugging since the regulators are usually controlled through the > RPM firmware (via qcom_smd-regulator). > > These PMICs are used on totally different platforms (MSM8909, MDM9607, > MSM8974/APQ8084). Each PMIC addition is independent and useful on it > own. I only bundled them to simplify review. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/6] dt-bindings: regulator: qcom,spmi: Document PM8909 commit: 6f20872035378ab2311cc901f8f94f8718f1b17f [2/6] regulator: qcom_spmi: Add PM8909 regulators commit: 813d01a40ae7c0c67681c82edce8463fbbd84b08 [3/6] dt-bindings: regulator: qcom,spmi: Document PM8019 commit: 350aab7f8f2c7d7368d2bbc47717696a51014078 [4/6] regulator: qcom_spmi: Add PM8019 regulators commit: 5b30cb2a317a8e2636f724e8ebf5cbe3849e786e [5/6] dt-bindings: regulator: qcom,spmi: Document PMA8084 commit: f72d04235781cf89410ffd750109f4b9931c50ea [6/6] regulator: qcom_spmi: Add PMA8084 regulators commit: 317aa3c4fe708fcbee5b9fe5fc25e1b9e92b83f5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark