Message ID | 20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1054326vqr; Wed, 14 Jun 2023 00:18:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ZoEzpA19lB66p1lblubxoPxPes4i95MFvk6aqE6fCIqlPkbzg5uNPbyr0WpR8LdWYDWwx X-Received: by 2002:a05:6a20:1588:b0:119:e18c:ea9 with SMTP id h8-20020a056a20158800b00119e18c0ea9mr1173955pzj.50.1686727102544; Wed, 14 Jun 2023 00:18:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686727102; cv=pass; d=google.com; s=arc-20160816; b=RhqpVxcdeA2VUbUc4g3qGxudl4SyW8BJ+aLrlBAxb508fHL5lcB/wztzFadJfWQFjQ UboNsPzv6lpIR1iHOhrVs05ZrA6Xe5l4WBLsFGSvZ16GRQdRPvAVuLBIa1GR7MCdNqHp ZguSuUMy/Q2q57XUW6Xn17gYrYW1dj4JroJhS5x9lPUuhLCnKB7erXuENA1W2n48BMJ0 pbKX3YuTN3iuMm6DxwKeUWvqeNteZiYkddCOCI7d3jX7mK4IR380pFiCUUG7nEuHnbPH Ao3odQI+8PNCEXTNmop26cqr02yWGT6lOTbRJgbUtYgF+5E6+1UarQEWJK7eRouXzQRJ UIdA== 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=i8YC6tp8nBn/Qy4GjguWpkkfo/DEZjrAMvoC2diYw24=; b=A9RayzVKXe6wIsFYAipsxQfW8nnBD+QEDkY3ls1y8VQ3FbYuF/KWaXMsSoHvBfshM7 TSkRTKJYAXTOJZ32PqTx7MhueWmZ7z1Xhgsurr3LcytPzOxf+8L2wMGZGGfdwZQnxVvg DrJf3okZjb3HGTxjm8ushDH6b+eGcVl2QT4ZsrjC+TbJy8sCpQ3NF8x+wrv8qgaRx8hm F5fi7ao/pH2z3erg7Pqfckfxvln2PBW9QY9M+SHS+bJNv1ixWo/VSQiwuunD36lsc+Cv R4MeKsurN24iQxRARcBmCyxHn4cz+NOX7osAr4H8eyfPyKRq1coi5ZmzPiQ3xL/9xdoq PH8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=itVWlsD6; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m123-20020a633f81000000b0053051c56825si10041674pga.777.2023.06.14.00.18.09; Wed, 14 Jun 2023 00:18:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=itVWlsD6; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243302AbjFNHRL (ORCPT <rfc822;jesperjuhl76@gmail.com> + 99 others); Wed, 14 Jun 2023 03:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243456AbjFNHQ0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Jun 2023 03:16:26 -0400 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B3E1FDB; Wed, 14 Jun 2023 00:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686726977; cv=none; d=strato.com; s=strato-dkim-0002; b=mdTkdsPTRusY1VP3SYlgfwbZRAW7aMB4DfTJI7NQHCoQsaJ5MUirrDfB1n4d2lDl1n FLsIvHO+nTVkJT05N3ckrBbeUDhEHNgTFR04JhFr7nDcW6gZ5q1DyLFJ2SLjQgyv4nps DkEpRWckYoWZ4wuIqS6MCrdjKdT2UdHoAaCSKeLSS3KOYTqqYaU2R7c1r0ES7kMus1lA u3L4T6jMtTy0MmEG9fWhG4OUND2qavWx4yZHnLfMWFW0ub878UgeFKSyq4SkrUR5btG2 WTR8T69e2s5FM+/SdqcmVbGTU9yaNXxx0fD5tAfAaD9B4HldFc8b9207EAcgvwKPAsF7 Jieg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726977; s=strato-dkim-0002; d=strato.com; h=Cc:To:Message-Id:Date:Subject:From:Cc:Date:From:Subject:Sender; bh=i8YC6tp8nBn/Qy4GjguWpkkfo/DEZjrAMvoC2diYw24=; b=OajH/yExRE7qXRfaCs3mzZcv2X0IY3SoBrWo+1zh6fSLC6plLmY42AsHePbZvdU6gr dRR9PwKnd5NPKhDCN1AOF97AYDEJWvtC7n45PMHyIijPG9eXHclY4ODkmEmfDGfaym6K a100uKCPeQRvJoOMjaxR+LWL7ig+fTjyCvnL/ExZDYKaw+WPHy2A9tZeDnx0NUV2ijmK vSnu1RM08mTIb3jPHGa3zigS6GirzZa5Cuk76WsrkKJFieGjkPWiTGsKetF15bv/gcvs Y+OcJDBB8BYcJuwKG0xTgasqDBfLQk8AiNbSportXglU1GGSP4eILAIDLejBlyuz75n+ o5CQ== 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=1686726977; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:Message-Id:Date:Subject:From:Cc:Date:From:Subject:Sender; bh=i8YC6tp8nBn/Qy4GjguWpkkfo/DEZjrAMvoC2diYw24=; b=itVWlsD6wwY339UaD3QnyoWjU0Px20tsaYvBDKtz61XjbRL+8Z7oscsNt1xNFH1l8C CSKGQ/nUiQiB4rIk/LRKrAiMgh/1gBzBXM+TnnHsXEg6PwSqK0OxbW5Wlnsvpsi6bEvq 0dMy5gI+uDxqxkVDrHSe7chbfxxpZFsqNJCcdr6xtqdSvn0W+0PikHcSayazquvWLlbS 8TR+nStPLDstVtTmYNU88V+r8LYBian+eO7k0umQspVk65Pg/PriwYKROHeYC4k7OcUs bsi6w+0y5GBDoBNvJp+U8IqGpSpoH871hasM9SEcObW+jyujXXcvvzx3IS1NllJOVigk zLvQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686726977; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:Message-Id:Date:Subject:From:Cc:Date:From:Subject:Sender; bh=i8YC6tp8nBn/Qy4GjguWpkkfo/DEZjrAMvoC2diYw24=; b=kn/agUoirTdA84+Kx1/UQGhuc4D0Avp4DsBmxviWo3ypdtwBo9Ut13vYVP57++ayKq iZv/ecbkPPtAKZdGKZAw== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQjVd4CteZ/7jYgS+mLFY+H0JAn8u4xxmw==" Received: from [192.168.244.3] by smtp.strato.de (RZmta 49.5.3 DYNA|AUTH) with ESMTPSA id Z82ec2z5E7GHb2b (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 14 Jun 2023 09:16:17 +0200 (CEST) From: Stephan Gerhold <stephan@gerhold.net> Subject: [PATCH 0/8] arm64: dts: qcom: msm8939: Rework regulator constraints Date: Wed, 14 Jun 2023 09:15:58 +0200 Message-Id: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAC5piWQC/x2NQQqDMBAAvyJ77kI0to39SukhJhtdiLHs1iKIf 2/ocQaGOUBJmBQezQFCX1ZeS4X20kCYfZkIOVaGznTWXK3BRRc32AGFpi37zyqKMd5s69w9pT5 ADUevhKP4Euaali3nKt9Ciff/6fk6zx/rEFGHeQAAAA== To: Bjorn Andersson <andersson@kernel.org> Cc: Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Stephan Gerhold <stephan@gerhold.net> X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768661558451101545?= X-GMAIL-MSGID: =?utf-8?q?1768661558451101545?= |
Series |
arm64: dts: qcom: msm8939: Rework regulator constraints
|
|
Message
Stephan Gerhold
June 14, 2023, 7:15 a.m. UTC
Rework the regulator constraints for the MSM8939 device trees to be
closer to reality. There are several mistakes in there, some of them
taken over directly from Qualcomm's vendor kernel. Fortunately, none of
the mistakes is absolutely critical because it turns out that the RPM
firmware also validates the voltages and silently clamps the requests
to a proper range. Still, this behavior should be clearly represented
in the device tree rather than pretending to apply the wrong voltages.
Apply the same changes as previously for MSM8916 [1] and move the
voltages for the standard components in the SoC to the shared
msm8916-pm8939.dtsi. With this only the actual board-specific
regulators are described in the board DT.
[1]: https://lore.kernel.org/linux-arm-msm/20230510-msm8916-regulators-v1-0-54d4960a05fc@gerhold.net/
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
Stephan Gerhold (8):
arm64: dts: qcom: msm8939-pm8916: Add missing pm8916_codec supplies
arm64: dts: qcom: msm8939: Disable lpass_codec by default
arm64: dts: qcom: msm8939-sony-tulip: Fix l10-l12 regulator voltages
arm64: dts: qcom: msm8939-sony-tulip: Allow disabling pm8916_l6
arm64: dts: qcom: msm8939: Fix regulator constraints
arm64: dts: qcom: msm8939-pm8916: Clarify purpose
arm64: dts: qcom: msm8939: Define regulator constraints next to usage
arm64: dts: qcom: msm8939-pm8916: Mark always-on regulators
arch/arm64/boot/dts/qcom/apq8039-t2.dts | 102 +-----------------
arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 119 +++++++++++++++++----
.../dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts | 99 -----------------
arch/arm64/boot/dts/qcom/msm8939.dtsi | 1 +
4 files changed, 104 insertions(+), 217 deletions(-)
---
base-commit: 818e1fca81bfd773144d42f4fbe52b287235e8b4
change-id: 20230530-msm8939-regulators-dd631887ff4c
Best regards,
Comments
On Wed, 14 Jun 2023 09:15:58 +0200, Stephan Gerhold wrote: > Rework the regulator constraints for the MSM8939 device trees to be > closer to reality. There are several mistakes in there, some of them > taken over directly from Qualcomm's vendor kernel. Fortunately, none of > the mistakes is absolutely critical because it turns out that the RPM > firmware also validates the voltages and silently clamps the requests > to a proper range. Still, this behavior should be clearly represented > in the device tree rather than pretending to apply the wrong voltages. > > [...] Applied, thanks! [1/8] arm64: dts: qcom: msm8939-pm8916: Add missing pm8916_codec supplies commit: dce9254511d6c9ea0d5ed7e4f21e6206e2ca35ce [2/8] arm64: dts: qcom: msm8939: Disable lpass_codec by default commit: 6002a78023cded6f02eac7c812b076046cab8060 [3/8] arm64: dts: qcom: msm8939-sony-tulip: Fix l10-l12 regulator voltages commit: 209aea1ad505519faf018b596e4fdca0d0569469 [4/8] arm64: dts: qcom: msm8939-sony-tulip: Allow disabling pm8916_l6 commit: 8771308c91cefc072f36415cec0b802ee55b1d96 [5/8] arm64: dts: qcom: msm8939: Fix regulator constraints commit: 9187d555c4ba9544c7f117062d241aa085f59a06 [6/8] arm64: dts: qcom: msm8939-pm8916: Clarify purpose commit: 88028fa047fb72826dd206b51550be780777718c [7/8] arm64: dts: qcom: msm8939: Define regulator constraints next to usage commit: 5cdab9a8c70c4d979909dd1bb6d1f3eacd9fa270 [8/8] arm64: dts: qcom: msm8939-pm8916: Mark always-on regulators commit: ecbfba694b5baf2b854689c63ef011e905810c59 Best regards,