From patchwork Wed Jun 14 07:15:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 107761 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1060542vqr; Wed, 14 Jun 2023 00:34:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4UML7hHHZnR2dIPdxqu3OUzhH4Hzmb+GpYktH6z+eDQksDlENi1mTzbBDgsAl5+g1hiXWB X-Received: by 2002:a17:90a:ee44:b0:25b:e4dc:bd06 with SMTP id bu4-20020a17090aee4400b0025be4dcbd06mr884486pjb.18.1686728054840; Wed, 14 Jun 2023 00:34:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686728054; cv=pass; d=google.com; s=arc-20160816; b=yVP2bsWwfaDlUyUabHZocDirY3rQZ7fiiNNFuvXW7Cgo1H4QKe2/93Ze1O+/Dr3FrI 2MFCIEhCsnPMbaFnBXG6DqTf4o0TDy4iBhS6laW7pFKq7Qw5C1hw3DGFL4z84hm/0ji2 qfsFapGL7ufBdynzBL2ZRUuB6oCtcOOsXAlsneP3cXnPd5Gusr/5quVuzYCOYLwIimpo +HL2iXY7Zk6YDcgmvZYdItqKE3CDkmNGjqAfiPzGlQXMSgacI3Zem7P/QNB9KN9bJttQ pvlQwrtwwmDGbTvoBgsiJ+nDX+2/9Cne/a6/DrKxRuG7O1XKQnmKYzO9FHlw1RFKBSIJ sKIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature:dkim-signature; bh=SnuT9mNjf2+O/dYCq7swKzDbiqXYWdUY1V2NxdDwNUs=; b=eLjUhJF5cHUrLfz78s1CGWm4ilQy9I9/usuzId7/SlXMsmcDTCW/A3Br+O0RISArvS 90bmN9Dwjmelg6GVBudi2JdNVw7zMPAi0xrS4JAhPDdfabctT5S2or5cF5vyslrPBp3i xrugEOScSpX2Ni3pl84YqFqyXxQgYsl/jzNRzye2hJ1jflz/8sL8GF310isRXrigmz+c 6bFt1oPSP8kYiLoK81KyHGwfQPiprBKm8S+3t0ePvPOqif931jjXvBtsNcV7+mHJIy2d Iu8xI+FaW9vgSNczq5wDXIx9yLzRqChN2ITtFSBMeM9WRc8ABv1uCuRzDZFsFtR3WEwP bn6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=PbUKfGwz; dkim=neutral (no key) header.i=@gerhold.net; 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 pc11-20020a17090b3b8b00b002567ce1c798si7061087pjb.137.2023.06.14.00.33.59; Wed, 14 Jun 2023 00:34:14 -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=PbUKfGwz; dkim=neutral (no key) header.i=@gerhold.net; 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 S234311AbjFNHRH (ORCPT + 99 others); Wed, 14 Jun 2023 03:17:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243454AbjFNHQ0 (ORCPT ); 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 A92101FD6; 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=Yd6xFIrgt8oo8FWpH6sxmqxA584pYs5ODxxpmfnI9tFV5sIpQrHm6yISEow5XN8YCE Nm4agIipW5oSKtqPjnoWqq5IxEAu4BdA8IYvsSMmLbXDOsUQMS7kzuM0YkLd7Fx04CYD 2oG8VSdfi8miHfncDfUZItubr8CQTsnNwqXQg1Qy2gqGunsTOaJPULZLgTnzM3PpRPpE B8MK402aL+aMEA1Y7r1YkGnwlaaP5UHLedSKNbjnTf7G9w9h7eePKCBiFIh9sURXEmam uINZvCirSYiDEyECm5sG9BdB02YwYDYc9mSEudCYY+VcNblEWZu+DyQEkl7YDCnTs8vQ pGKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726977; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=SnuT9mNjf2+O/dYCq7swKzDbiqXYWdUY1V2NxdDwNUs=; b=I1p1qNLwM1rjiZ+y8a6hwKE60oh3fzs17CTbNbI/Drh0ABHcq6mA6aXVE0rsvq+fim E8rZypr1S5iI2fKGm0kl1U2adWYQUw/fMjeBulEx90Z5sXHTeF9DnhsjTNUYaQO5lA48 R1TUgetnQ3dcxzD/hdDbH+cvoAUrOVuMSTpYdkyBR6qf/Eu7VgYaLJL9pHz5XqoNKcLO EIDl5+rHa2rwOj3+0Qw5twoeR6vcPDXqeuCgvHgNSupHXn7JKQ4HfaDgLm+H9XDTmZ92 MmSsTObPGz2Ro1dcmDpbYN940FGmGSebrqFJ+oQ3rTiRNw2qviYYPC2/XNi1HMA3apUH Ry2Q== 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:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=SnuT9mNjf2+O/dYCq7swKzDbiqXYWdUY1V2NxdDwNUs=; b=PbUKfGwzVpPoLtoRM9dAxBYinZRYGLpxBuKEHdvmFEoGDnnpxt6lnU/W+nXJ6POGHv 8T+VPzGa7+n4+Hdka5bEbIpNJiyHSHBBkIHmtJAujZY4XDUyycWL9utjRgylRoR8++pE 7XUUg2VT2w3gFXRFAe76helMAJc+tpM+nlHhL+f4yHU8RmNSIncOIdKBFw9/UJ/OXzv8 1aHNk3y7r4z4q2SjXwfKTXBHMX7IY8vawGQmS4Nzs2PHzHe2VFFZJHfnLIxPJEOKrtLb fCzl7CNFUoqG1OXaNEioihy1F+7VlwvCRd5LTJhILeukbhBMI7Iv/U+FDxNLxy+VHlMz Y9QQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686726977; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=SnuT9mNjf2+O/dYCq7swKzDbiqXYWdUY1V2NxdDwNUs=; b=DXiqCf05kcnSTsXUqiAnt/u7OhnpoC2IxAIC547HFddf7OSzWccliUP0vHublmDppi xYHlOCoyVXUYrpE/VpAw== 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 Z82ec2z5E7GHb2c (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 Date: Wed, 14 Jun 2023 09:15:59 +0200 Subject: [PATCH 1/8] arm64: dts: qcom: msm8939-pm8916: Add missing pm8916_codec supplies MIME-Version: 1.0 Message-Id: <20230530-msm8939-regulators-v1-1-a3c3ac833567@gerhold.net> References: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> In-Reply-To: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Stephan Gerhold 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768662557187904029?= X-GMAIL-MSGID: =?utf-8?q?1768662557187904029?= Update for recent changes to pm8916.dtsi in commit 38218822a72f ("arm64: dts: qcom: pm8916: Move default regulator "-supply"s") and add the now missing pm8916_codec supplies to msm8939-pm8916.dtsi as well. Signed-off-by: Stephan Gerhold Reviewed-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi index 33e02f42f5e4..503c2dd5fe47 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi @@ -25,6 +25,12 @@ &mpss { pll-supply = <&pm8916_l7>; }; +&pm8916_codec { + vdd-cdc-io-supply = <&pm8916_l5>; + vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>; + vdd-micbias-supply = <&pm8916_l13>; +}; + &rpm_requests { smd_rpm_regulators: regulators { compatible = "qcom,rpm-pm8916-regulators"; From patchwork Wed Jun 14 07:16:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 107768 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1063980vqr; Wed, 14 Jun 2023 00:43:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6shAAQyxnZyWXQULnc14OWzENMeAPxnu+iKcIDXyThREjXxzAUxFn3N+OH74VUdoTu0oRm X-Received: by 2002:a2e:a0ce:0:b0:2b0:2d23:79b with SMTP id f14-20020a2ea0ce000000b002b02d23079bmr5945519ljm.3.1686728588700; Wed, 14 Jun 2023 00:43:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686728588; cv=pass; d=google.com; s=arc-20160816; b=ShIcx6g3H14vHX5iB0YeKSNE5dwSdRVPVr8YO0BPnTwUSELtmpwMVvOEmJk7AwhMs3 oy5UtZaAKELNjuQcz5qmHtLFX8Vx+5a+9wre/Ap/MsK8WjCG3ylrBQMA3p55Z8eo8aJT BhSv086y1vPyoX47sWi8Kv8/8hxp0/tAr4lEgRwi7s2fH6qCeQapUPJZqaUpI9M9+YHr +LV3wOExDZKn1ktuHXwEXIOz3EHtpiinaijVESo/46iDCqIaVFVkoufS7xvzf8zJcF20 H46jun0+4Qqr/KIE8b/a0Fj4BeQie+2sAwnPG6Y8cCVWReSL79qyRClpbQzWQSNWpb6n DXrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature:dkim-signature; bh=r7SgX1cnPFHFFUF629tLWSor9gaXRJcL/juQUpleFE8=; b=mrzP5tSZRwotPce1yLOoMmkH7+/wtTek7+DKIA4meJNFtfzdDg06NHWvGg09jrLGEj H+iAHlEzVrr8M6pRcNGvBtuahwMBEiRyrALHnb8SsE+g2nR1uBYUvsIBWj4tIDCIqzjn No1njdpv7a2af0JSfNImtL49c2M4m2On3zDqyb+cRKEIwR7sfSLfC3wyNqzHLEijUfGO iA1Fd+uOiiLwAXkHH3daQVuKuDLF0xErlV78Uc3BT042jSBtwvEc1+kAafj7yB+4aq2s aYa8ICG//YiDiEYNFfM6YZJwwohqvsyP69KEBghMowrbE9IytYhNRgSdYmKeO8IbWBx6 j1dQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=ltpgPgSp; 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 d19-20020a056402079300b00514b8935e72si8341023edy.660.2023.06.14.00.42.44; Wed, 14 Jun 2023 00:43:08 -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=ltpgPgSp; 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 S243400AbjFNHRd (ORCPT + 99 others); Wed, 14 Jun 2023 03:17:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243464AbjFNHQ2 (ORCPT ); Wed, 14 Jun 2023 03:16:28 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D5EE268A; 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=bEzKwn+50P4YOlrikEkWfuMJZQuy3ndxlaD2MNzus/io7TZDZKTcU2Oh0LEGh4zaBz SRwLwfTVYsS6DZmWPkVf5cEQsIietKXEdAekuMiM23TIft85bt2QB8HOs2J5ejApV3Dl rwnY6zLUF4ixxFSh2ony7SLk0+zUVANG6c+eDS1NrUxId5uJJEgNs+UxHNvQH416okzW JnxS9FtWqdndWjBlCvdKHBTHXuIduHgjtLo7rap5gQ0vNscu7W9VzwLaoK0H2H/ZoD4p 3EZMDcr+HMRwC1WIeyxHTMeM/0IyWVE2i1AATLxShHqIzI+FvEE390jZQ8EpZdHb0Rsq Eurg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726977; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=r7SgX1cnPFHFFUF629tLWSor9gaXRJcL/juQUpleFE8=; b=J0p+SwgOqKmEwyqBY8KrFOfLHtYspdF8yPwN2skhs+DO/tuXopvKdi0pH47TIPqJmI TOr5QnM1R1kOOw8EiN6I6xiWUB3qWeV+2QiAKkv//kaQIJ7pNMAlO0goRhtSj7ik3ToM NSDaTXGRXswl1ThYEY+9Qc/+s65lZaBy5K86t/6JdfMg18vtucq9xHHos+r3hJ3Uh+IS 45pH2Pqt1NtShoVPfhNuO36kdPpoqo3jtChXPlmVHLGkEefOXk1oVat1rA98zNII/znE +zYIC320ZzTRkj1DtrOKjfrxhm0elsfDwKm2bdY1RUzZw78oWPHmaE+4VveQJYLZ0bJM lcOg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726977; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=r7SgX1cnPFHFFUF629tLWSor9gaXRJcL/juQUpleFE8=; b=ltpgPgSpQ4CJjhgYU8s+9v2xyEWoHKi4yW087gqKIzFL2ff0Cms+1Ez8tPs7ctvSaT xY/ytFnrB0QeixYtkm5wFD85tza477mZv0kG+ci4yniunm8CUOLtYP4bHLKAdvaTEUSk mNBPyFdQ8IMKMnKiX4n1++vHwCohoDWsUQHyuDtWLgEhb0jkgWZQSJ+uNvgptT2yACbj YWaI1NAU1ylWhpjkt0TN56LK7NbqiQthMQG3RBKSMpfj+/meG/bH/kwy4nANpzpKhyxk ayI5hBJB6M42d7HG8UrxlZHm+FAODQ3OHoUdX2FLPZQNNCZu0yBBPh8S6+PxkRfkVvfu rNFw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686726977; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=r7SgX1cnPFHFFUF629tLWSor9gaXRJcL/juQUpleFE8=; b=V90qruhHNYzykL64jqlbBmawzvi66XRStgfYG5k7DtdFvc0L19iTXIpH8NNSsKGOam k1etbs1K0ocEXkFRWaBA== 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 Z82ec2z5E7GHb2d (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 Date: Wed, 14 Jun 2023 09:16:00 +0200 Subject: [PATCH 2/8] arm64: dts: qcom: msm8939: Disable lpass_codec by default MIME-Version: 1.0 Message-Id: <20230530-msm8939-regulators-v1-2-a3c3ac833567@gerhold.net> References: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> In-Reply-To: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Stephan Gerhold X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768663116293032885?= X-GMAIL-MSGID: =?utf-8?q?1768663116293032885?= Update for recent changes to msm8916.dtsi in commit a5cf21b14666 ("arm64: dts: qcom: msm8916: Disable audio codecs by default") and make lpass_codec disabled by default for devices that are not using the audio codec functionality inside MSM8939. Signed-off-by: Stephan Gerhold Reviewed-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/apq8039-t2.dts | 4 ++++ arch/arm64/boot/dts/qcom/msm8939.dtsi | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8039-t2.dts b/arch/arm64/boot/dts/qcom/apq8039-t2.dts index 2a39216ceef5..c8442242137a 100644 --- a/arch/arm64/boot/dts/qcom/apq8039-t2.dts +++ b/arch/arm64/boot/dts/qcom/apq8039-t2.dts @@ -135,6 +135,10 @@ &lpass { status = "okay"; }; +&lpass_codec { + status = "okay"; +}; + &mdss { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/msm8939.dtsi b/arch/arm64/boot/dts/qcom/msm8939.dtsi index 3c1505b69a6b..895cafc11480 100644 --- a/arch/arm64/boot/dts/qcom/msm8939.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8939.dtsi @@ -1608,6 +1608,7 @@ lpass_codec: audio-codec@771c000 { <&gcc GCC_CODEC_DIGCODEC_CLK>; clock-names = "ahbix-clk", "mclk"; #sound-dai-cells = <1>; + status = "disabled"; }; sdhc_1: mmc@7824900 { From patchwork Wed Jun 14 07:16:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 107755 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1054385vqr; Wed, 14 Jun 2023 00:18:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IzT66xCEZbSvLLDe/yCP1hfFwrBRE6XjrfmtUoDzkr4HxFaGnNHLwqnwl4By9QfiNme3I X-Received: by 2002:a05:6a20:8189:b0:115:197c:e7d4 with SMTP id q9-20020a056a20818900b00115197ce7d4mr679702pzb.35.1686727110304; Wed, 14 Jun 2023 00:18:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686727110; cv=pass; d=google.com; s=arc-20160816; b=tkEwY/C4M39Nzv7WHTrE5IAfDV2UVdochuKAmJYIN5kzCKj07JYEi89iVYPY2U40nM Sx1Db3WqpRtdpWZMdkgYBq2bkJNLn3h7jxtoN5R3W3nhs+iZMik89f7aIKqmKMUXbknr euIcod/Kpt44JfwbI8uu0xS91OU21OfJtFDGrvOG37JPW6x75wnCP5VrOs9kY95fpfda ulo4LOXSZM+9RtEUkwPabrWKl9qR8naoXGx7MQYOjpqL4lrfEseU96yXPzLWCpMRs85O S0M08BOBHZbVt+eClRiM0RqkVxXlM3B1+X5iAk+NWJD8WLks9V0CC6iD9YAtbhu9ZvWA RBnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature:dkim-signature; bh=v8HUS+pZdhRpBsfa2DBFbPmZyCwAPxZBJXa80UK4EoA=; b=MnMFUT28M0srXE62qIo+4fmNHE2VRawg+Cd8f3urnlj7sXJlvDYGXGyy8z7FUMF1AF Td+yT34yO2kqaPPl/F2fgKSsSFEBGTOuZY7IX23wrZ/o3d+mBTN7GUW09t6++O6JgvwV FRiEfpBHBy42+i6hdeHsgh3KVwYOc9xDp3iloItg3o9z7elLX1MUljMsEnuNLTTQT1hd Ch//uXEgHGOiYEO9v3bDvmU30ESSDHnu3BYEBZfO7DC7qX91UI16w/bndty1pGDwZ+gP y6A0VUXJT6dLX/nChgmBEeZiGnzvDwOPwIlXWMSha+M9UmFDORnyu2tIwXXtOFi6LD2i EU9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=QpdapDNp; dkim=neutral (no key) header.i=@gerhold.net header.b=gPU7OJBy; 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 kz14-20020a170902f9ce00b001a043389a7asi6453069plb.310.2023.06.14.00.18.16; Wed, 14 Jun 2023 00:18:30 -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=QpdapDNp; dkim=neutral (no key) header.i=@gerhold.net header.b=gPU7OJBy; 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 S243053AbjFNHRR (ORCPT + 99 others); Wed, 14 Jun 2023 03:17:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243462AbjFNHQ2 (ORCPT ); Wed, 14 Jun 2023 03:16:28 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3835F1FDD; Wed, 14 Jun 2023 00:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686726978; cv=none; d=strato.com; s=strato-dkim-0002; b=Ds9G89lxYkSZbNngFT2UU9u/oEkfYQNPTGRVABIg0mKoOekgoKoNgfjs+fDtALOmgQ R9UAkktWLnCIE9xZp/TsUafmVZQRDSgv76YHbRwWJtPEvY4jfknnJU79IFTNKlIH8MqJ 1+FDO66sXmY9TvYlWyLGkEe+UgIinyf89rbYg+U8GEjALveSYr+Q5I9VICehSXiXyXRS 4oYIyiai0gZKbHHNiI3wutLyOo6S4i9FrIrFacgpRgYL520kY6klrqcXNmsUdd7DW1oM +8X1exNW00yD2BAHJHcP7meGO4Eqph1iG+V0KmJ6QGyLdJeY4mVYNz9K03jJrG70eUAr wiog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=v8HUS+pZdhRpBsfa2DBFbPmZyCwAPxZBJXa80UK4EoA=; b=Zj5VJyjsJAYlu0SNJvBqCbABw9wRQeCeNuW+TlG9ypMg2pCi/RppYvsKbZ4JyqTL17 kExofKD2mrQgZSQxBU21L2YL02+/G9h/k0ypk/67soYpQ1gHxTHM4DULaPfBXLcGlAZC TQCUMEmLOXYtgYBJGrakDEf7k5PHirPnsel6K4WBpza1SH/ej4+H7PDPKEyV3wMRbnYu 83QyjSsYuu0FSZ3ExIaeQqntmwVBkFiB7GHYyYEanGQ1QNUC8g3PPl4eWHxMJ8mUTY7h 9XctjfZX68p+Lg9PGerOom5djrd6JcAwnt1gmqTgjAJXUFph/EQuyWd8EvPw98JE/Z0j gfEQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=v8HUS+pZdhRpBsfa2DBFbPmZyCwAPxZBJXa80UK4EoA=; b=QpdapDNpUVjlpgfLubLiG4XiqpnDFRRYfG2RlqmCz5qic2cdeQFLfyq1vUMrPraJfG 3mS8UAUU5LDPayeOA0rc6FU+z1OcZZzfvl3hoSS6oGOwEBMsOVwcgl398D3rmkJf0dRL IvQAyecI1yyWe5gm7rCxYPjadSu9CMxlTXOZz+NA4lOZTSwnpY7xqI0R6/e5ucjilqhy rlV69C97e/irRxYGjUGoBk47JPOeDpIBRA4xjP4cUitZDFcUmqTYb+eY2xapKCcsES1l 32CedLDQBh1Jy7J4SdgGeeRSHHvLs3Wlt0oFXWAzxXaNZnyioP3hfwbdj6BG9a2eNejB OStw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=v8HUS+pZdhRpBsfa2DBFbPmZyCwAPxZBJXa80UK4EoA=; b=gPU7OJBy/WyZyhF/LhtlyFTzuwYA4EhuL6vOvwhu/ElAbsdW3GXzH3zyGGaMtJY1tP IjAXXADKrlAvP5OMPoAQ== 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 Z82ec2z5E7GHb2e (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 Date: Wed, 14 Jun 2023 09:16:01 +0200 Subject: [PATCH 3/8] arm64: dts: qcom: msm8939-sony-tulip: Fix l10-l12 regulator voltages MIME-Version: 1.0 Message-Id: <20230530-msm8939-regulators-v1-3-a3c3ac833567@gerhold.net> References: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> In-Reply-To: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Stephan Gerhold X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768661566514735736?= X-GMAIL-MSGID: =?utf-8?q?1768661566514735736?= msm8939-sony-xperia-kanuti-tulip.dts has several regulator voltages that do not quite seem to match what is used in the vendor kernel. In particular: - l10 is fixed at 2.8V [1, 2] - l11/l12 are 2.95V max [1] [1]: https://github.com/sonyxperiadev/kernel/blob/aosp/LA.BR.1.3.3_rb2.14/arch/arm/boot/dts/qcom/msm8939-regulator.dtsi [2]: https://github.com/sonyxperiadev/kernel/blob/aosp/LA.BR.1.3.3_rb2.14/arch/arm/boot/dts/qcom/msm8939-kanuti_tulip.dtsi#L671C1-L673 Fixes: f1134f738fad ("arm64: dts: qcom: Add msm8939 Sony Xperia M4 Aqua") Signed-off-by: Stephan Gerhold Reviewed-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts b/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts index a9df8dab5481..dc5b8cd5b9f4 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts +++ b/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts @@ -110,20 +110,20 @@ pm8916_l9: l9 { }; pm8916_l10: l10 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; }; pm8916_l11: l11 { regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; + regulator-max-microvolt = <2950000>; regulator-system-load = <200000>; regulator-allow-set-load; }; pm8916_l12: l12 { regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; + regulator-max-microvolt = <2950000>; }; pm8916_l13: l13 { From patchwork Wed Jun 14 07:16:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 107766 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1063122vqr; Wed, 14 Jun 2023 00:40:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5WDqli4hgOoy/bY2xstW4gl9VIgxf1zM7vs86OhMA+afTy9zVS4/fm2K3LJeo4/vQKoszS X-Received: by 2002:ac2:465b:0:b0:4f6:1805:6080 with SMTP id s27-20020ac2465b000000b004f618056080mr8652446lfo.4.1686728449929; Wed, 14 Jun 2023 00:40:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686728449; cv=pass; d=google.com; s=arc-20160816; b=efjgwlNvDLXBbgEmoZcCATZe/6iWGepjkpbA/wK/K0DNYlae6YYjthFtk9BL1rcMTc wllFlblmGmz/tLIkp//tiVB0eybg79fgzSgQ5MLaAlm8pZPPAbA0QTAR/Mxrqb+5zKh9 NjHSTOHPEsuFZVSrWbpJ5+z4LQqF+I5plwsCcb3WmPT6WVXOEVtkTn+md624L6YlTibA ycDN2zQqT2St22VwsMOyMppIPcT+VPspB4IwsE4zmg+jVvDDL4HzlRtuolUIPnj8O4Bb Rxr0w2YEQlMkIemG3p3v/PLQnNIz4ocORfNnx5lDbdBxod05N3bsCtu2Nwsc7QEWhp4l rq/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature:dkim-signature; bh=JHAPAqFoqpIjl7hLiOzzxkyRcrXXkapQRDWT6x2deJw=; b=s/FrALWeMdBCRvW+EH4D3gaHEaQP5WR1D4Q2eUdweqWeNt8A3VhbiHG2vS8bQEadhM bsExrw0A3qUUz1IKyfa/+yCJb7ClDtye4eU5rk0ymLkDHBk22UiqDTV55EPVT+UB3sxv dzDpKrjBWcJIuzbs0OXrA3Cg2voTu52//3bHBcczKE0/5lQDcvMmB+L+tvEwNwHwQMsC lDsXoIsoyIZgEWElUpt+gQlVM+UhCwsjRaKrKsI47tKZ1Uu3EVlEAnwdzyoU2MKGE7Ws mp6B8GEw7EknkIsPZ/fMxEIxYsRhkOjGniDHRlbzqhbN4Pf2jlivc60TGkIlaXSMCp8v Av4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=WAyrNmym; 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 z11-20020a50eb4b000000b00514b21c93f1si9110317edp.357.2023.06.14.00.40.25; Wed, 14 Jun 2023 00:40:49 -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=WAyrNmym; 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 S243391AbjFNHRb (ORCPT + 99 others); Wed, 14 Jun 2023 03:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243466AbjFNHQ2 (ORCPT ); Wed, 14 Jun 2023 03:16:28 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [81.169.146.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9955E268C; Wed, 14 Jun 2023 00:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686726978; cv=none; d=strato.com; s=strato-dkim-0002; b=AIvkxxTKI/2j9+oIv30My4CL9ZhJtvqyrM5fyoNpc5JnnzQDnz8/pBOB8QDVbqrZ5N biT9thid79/SsI6JVLV+GiaFvB8Eh7E9HiMv3qjUvNjK63XN7ghmauz12StnFO41582n L7HCga4ij82j7ViWWdfTUZ+dDz8ahtZJd7a2/QB98eDl6hrf6h5puoROhDUMGf5g2KQn wW59C1OO1gF4XcjIY3kIUL51KWOslPuZlturRcaTKgojgp+kbdDppKR7uLUlSjA+VNib dxvGpYjExoulhYNv/cHM3xtodKtTdKgTG2vKs1gsQanUpU2rWlTCU1TX/ULTBNCHW6LE 3GfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=JHAPAqFoqpIjl7hLiOzzxkyRcrXXkapQRDWT6x2deJw=; b=hp6VOrz1dhztk3jDfI+sVzoztfKNSZpDsc9SheDrmI5jx37nHsBh7SpcE6D0aYYlRI i4TF3k4GL6K8HjRaFOJrKX/NegdY47fJB3JSwczKGUJd2rN5/KNjKdbK6Br1aHm47C+l IKd2s0J9HtEqEXCqwAYQeoORK5oluR/wTrkvJz2keDfyU5zDD9CkXFvB4oi7cV4tw2KD F18zX4mtdVfEUKn4w7rXuDY+G43eAcwR+8pE2hhxbzK4iCWsaJjyXzKs3RKlN5uqNznG 7UAWXsFOixKAq1X01yXJpDESTHW9k9WoAw33T+qUKhcItvx241Esmg2g1pSEqDvEbzSr qPrA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=JHAPAqFoqpIjl7hLiOzzxkyRcrXXkapQRDWT6x2deJw=; b=WAyrNmymv/JANaByyLnOLugPC6X/cGWDH3HMq3yLN21bOTzgj3MDbuRZy5kbCVEO5D DZakz+9+hcrZ+UAHyqvO3UbWiadj9pZ8BBrfoi09qEI6+wExq85Kw0tncl95Ld75g3x9 QlFCGeyUuJ9t2oLaF8LFxSmwJnbRkHy59LTpb0f0oonOF994JTGpZ5GIleGlYX2x5yOA WefE4Z2RZem62lb95638nX8eC5vZLd5Ii3RCI4OCL0qS81+KZAhdDkulnwaNFChDEEC9 jydCHWb2dbanAFsv0aD3J79zpCYp9r/clNrwVVMZZeVmAzQ3ZV63Do+KhlRQXFB4DlQk 7mRw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=JHAPAqFoqpIjl7hLiOzzxkyRcrXXkapQRDWT6x2deJw=; b=m5TlfemxBm7lZJcBrnKhIwiIMIT5zotQg7g/1/1+JOZrHwk5n94/mU7l7syN2VbKR7 qF/mry8hNoXzXVfLmVBA== 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 Z82ec2z5E7GIb2f (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 14 Jun 2023 09:16:18 +0200 (CEST) From: Stephan Gerhold Date: Wed, 14 Jun 2023 09:16:02 +0200 Subject: [PATCH 4/8] arm64: dts: qcom: msm8939-sony-tulip: Allow disabling pm8916_l6 MIME-Version: 1.0 Message-Id: <20230530-msm8939-regulators-v1-4-a3c3ac833567@gerhold.net> References: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> In-Reply-To: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Stephan Gerhold 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,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768662971038332619?= X-GMAIL-MSGID: =?utf-8?q?1768662971038332619?= The vendor kernel from Sony does not have regulator-always-on for pm8916_l6, so we should be able to disable it when setting up the display properly. Since sony-tulip does not have display set up currently it should be fine to let the regulator disable until then. Signed-off-by: Stephan Gerhold Reviewed-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts b/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts index dc5b8cd5b9f4..509abcdad287 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts +++ b/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts @@ -91,7 +91,6 @@ pm8916_l5: l5 { pm8916_l6: l6 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-always-on; }; pm8916_l7: l7 { From patchwork Wed Jun 14 07:16:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 107758 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1054528vqr; Wed, 14 Jun 2023 00:18:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Na4SEJvZAihew0cyUGLI5eX5wPWCks8hFTN/7GoRy9pT6ENiQmBKua65bZhdq4djEteiY X-Received: by 2002:a05:6a21:78e:b0:105:fd78:cb41 with SMTP id mg14-20020a056a21078e00b00105fd78cb41mr579573pzb.54.1686727134860; Wed, 14 Jun 2023 00:18:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686727134; cv=pass; d=google.com; s=arc-20160816; b=NLZeztsS8PFVdF4yytKhTxkauQmCOxf2OpyvDf9VBmnuT7UyYEqKYCpXvQz0k5Xbxc VxexoCiY5qG0DbfCLWkLMWP4byVSix7lSEahZItBqLZBvFNgNiib6NAjz5sV7RkmUQ+Z MNkQq1hOVxqmlr4HDYlZ1kBaIXfDI4Vpbx+X90Z0ttlGZ78UjY90oz0XC8fpOkKcMAo+ XUg75MGKS9PxCtXUcOJu1fG31vi+zotVjnfiYvmq3kucOUs0zk02sDd0EO7uVjn2Wgs3 +pX8HtQ5dFNkYN+FZv43H6LTmO37lJU5n30xXXOg1nS3vhL3XpO3HvAe2XXEqr8Yrgz1 HTGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature:dkim-signature; bh=eAj6hVmQDmaa5jtLRmGV91szbVOhkquRc27tXxX5I7o=; b=fMaWRVzpTBS2Trscre7Ki8VvaMrhKqbQIahpKvbSGYe75aNgb12YSp5jbkF8P3rkmz ctUyRUG+/sVuAHOtjWGWTkq5zsDxq2qS1aKuLVZ7s8cpAUDGvCqhohB3L7XixfZWFo5H DKulhO5xTp8QahhXP9+Kph3ygDzV69J3rggMtOrLgbxGAV7AZGW+PAHClqFT6wJage1o OzUqJmLXSYIL+D8SlzdgwbpxM4BUz0KaqJqhyHIOJvGyifdsKSolkA2izfEZuNYZi5RO LwI65+ngJ5gYUy1SnyQJ1qQMPRycVZYSSp1e6uiTkbr8hUeAopEUIIREkLgcy8h/jQ8c fBQg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=EYYHHvZG; dkim=neutral (no key) header.i=@gerhold.net; 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 y30-20020aa79e1e000000b0064dbf7cdec2si6940011pfq.186.2023.06.14.00.18.30; Wed, 14 Jun 2023 00:18:54 -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=EYYHHvZG; dkim=neutral (no key) header.i=@gerhold.net; 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 S243363AbjFNHR2 (ORCPT + 99 others); Wed, 14 Jun 2023 03:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243469AbjFNHQ3 (ORCPT ); Wed, 14 Jun 2023 03:16:29 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5376268E; Wed, 14 Jun 2023 00:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686726978; cv=none; d=strato.com; s=strato-dkim-0002; b=EcE22T1SRQkJWwBvamYpD7K6oBeArzZaAA0KrfgBcbexFMw5bP3N9i3X8c7bV/fyFK V6cCsN4BonYNpcezaXhONh3tsO0NkYNYkFgU+03o1nlxC3Fyl84eUX24ZDy/nJz7OM7l Tna4ZmiOLD2lNOSQjaS9oD9c7Q+ZDq+IjI2V47zH0yr3UT0fLI+FdBAJIArgkuWXanZm haiqktXzCcFGKmziOlCJouVlCrIIWeB/ZheqmqggiA/8ftM2XaKA1pz8u2zGw8QWgxTZ mRvlMEtldcYe3OQeG9nVq9sVzv8GRncyFu8Xhx0TsR7O+S6NAZiYM/NMZvg6yvhuNlg+ t2vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=eAj6hVmQDmaa5jtLRmGV91szbVOhkquRc27tXxX5I7o=; b=W8Iq/InpT2nqSoyH47vH3wDXQ3jkGEIEq8iRZWVEw72OH7LGCX1mTIeMVQ4VQ5uI6D EcgW4GMO84TYJehqJRyzsNmkBh3YhFaSDbPHzyEKo0PGanxypd+PJ0l6TQ6M04chXvMg GhY9gXzioCWJAGpCCq8l2zxltyW99BLglbhO2OUSFfXwPHmoInn1fs3qmZey+51RB9mv 6FiIhb6YXAqYEcMJm5Ae2x1XphLiiWwEbyedaEQfchhAa33Ke6XetyBIjMmtjnBqDZRA 2tIbgdUBnrdeb+uwWHwZDoBPzUCFkgpXcYheCYOi13SkhDlsV5oF9M2rQrJe0aMD0Xtk RRvA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=eAj6hVmQDmaa5jtLRmGV91szbVOhkquRc27tXxX5I7o=; b=EYYHHvZGHAXle8fbiaYjQ5p4AhjDD/vPqcCGPnH996yfm49UNZXdF8jKybpbHjhJPh kgxbVlN5INCBUTjHtXpO6TQsG55fhTYUvINBLudikPAnqN1n6ejVxcN7zLsUgAs5zZWB oJzGEfYnRMPAy0bbTgTKoAyVRmMauSyKx57m4L20CvKN8ZTdEr9GwYwwyvBNuTLQ+z00 YZEUeLVyzXGAbKMq7EDCYFSrDqXmbv3vVoYYeMkwdPhuPoyTK3g9VzIz33PZiJCV1Pv3 UMXKPx+aCeSTrj3zsABJWUasPf9tsc9u3FaEdLYYkp3r75m6+LDgIsORGOKv5C2jKNup V6EQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=eAj6hVmQDmaa5jtLRmGV91szbVOhkquRc27tXxX5I7o=; b=0LKYt3KzL1klfKmWt6U8X/1K9oHnqGUOHYdj/xG96CGTZkz2PW/EA59TmhWejfIcvO 1dvxdqXCxm/XdVU3WuCQ== 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 Z82ec2z5E7GIb2g (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 14 Jun 2023 09:16:18 +0200 (CEST) From: Stephan Gerhold Date: Wed, 14 Jun 2023 09:16:03 +0200 Subject: [PATCH 5/8] arm64: dts: qcom: msm8939: Fix regulator constraints MIME-Version: 1.0 Message-Id: <20230530-msm8939-regulators-v1-5-a3c3ac833567@gerhold.net> References: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> In-Reply-To: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Stephan Gerhold X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768661592425045431?= X-GMAIL-MSGID: =?utf-8?q?1768661592425045431?= The regulator constraints for the MSM8939 devices were originally taken from Qualcomm's msm-3.10 vendor device tree (for lack of better documentation). Unfortunately it turns out that Qualcomm's voltages are slightly off as well and do not match the voltage constraints applied by the RPM firmware. This means that we sometimes request a specific voltage but the RPM firmware actually applies a much lower or higher voltage. This is particularly critical for pm8916_l11 which is used as SD card VMMC regulator: The SD card can choose a voltage from the current range of 1.8 - 2.95V. If it chooses to run at 1.8V we pretend that this is fine but the RPM firmware will still silently end up configuring 2.95V. This can be easily reproduced with a multimeter or by checking the SPMI hardware registers of the regulator. Apply the same change as for MSM8916 in commit 355750828c55 ("arm64: dts: qcom: msm8916: Fix regulator constraints") and make the voltages match the actual "specified range" in the PM8916 Device Specification which is enforced by the RPM firmware. Signed-off-by: Stephan Gerhold Reviewed-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/apq8039-t2.dts | 12 ++++++------ .../arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8039-t2.dts b/arch/arm64/boot/dts/qcom/apq8039-t2.dts index c8442242137a..ceae83b1480b 100644 --- a/arch/arm64/boot/dts/qcom/apq8039-t2.dts +++ b/arch/arm64/boot/dts/qcom/apq8039-t2.dts @@ -164,13 +164,13 @@ &smd_rpm_regulators { vdd_l7-supply = <&pm8916_s4>; pm8916_s3: s3 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1300000>; + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <1350000>; }; pm8916_s4: s4 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <2100000>; + regulator-min-microvolt = <1850000>; + regulator-max-microvolt = <2150000>; }; /* l1 is fixed to 1225000, but not connected in schematic */ @@ -201,7 +201,7 @@ pm8916_l7: l7 { }; pm8916_l8: l8 { - regulator-min-microvolt = <2850000>; + regulator-min-microvolt = <2900000>; regulator-max-microvolt = <2900000>; }; @@ -216,7 +216,7 @@ pm8916_l10: l10 { }; pm8916_l11: l11 { - regulator-min-microvolt = <1800000>; + regulator-min-microvolt = <2950000>; regulator-max-microvolt = <2950000>; }; diff --git a/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts b/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts index 509abcdad287..2905dd8d4bf9 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts +++ b/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts @@ -64,13 +64,13 @@ &smd_rpm_regulators { vdd_l7-supply = <&pm8916_s4>; pm8916_s3: s3 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1300000>; + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <1350000>; }; pm8916_s4: s4 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <2100000>; + regulator-min-microvolt = <1850000>; + regulator-max-microvolt = <2150000>; }; pm8916_l2: l2 { @@ -99,7 +99,7 @@ pm8916_l7: l7 { }; pm8916_l8: l8 { - regulator-min-microvolt = <2850000>; + regulator-min-microvolt = <2900000>; regulator-max-microvolt = <2900000>; }; @@ -114,7 +114,7 @@ pm8916_l10: l10 { }; pm8916_l11: l11 { - regulator-min-microvolt = <1800000>; + regulator-min-microvolt = <2950000>; regulator-max-microvolt = <2950000>; regulator-system-load = <200000>; regulator-allow-set-load; From patchwork Wed Jun 14 07:16:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 107765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1061771vqr; Wed, 14 Jun 2023 00:37:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qoBn8cejExRpxkbDSJp6IQTKZBtVpewIu84CeP+1Qs8Smtcpo1kurW/FWmcFFuO1fBx3O X-Received: by 2002:a17:907:6292:b0:982:3b43:6f23 with SMTP id nd18-20020a170907629200b009823b436f23mr4622777ejc.28.1686728244097; Wed, 14 Jun 2023 00:37:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686728244; cv=pass; d=google.com; s=arc-20160816; b=oiBfGfRm9+V9z+Ya1FE5AhwSPbtTE3MvICLiZeLHdGp0yrG6SqSphBuw7TWC3N78JM HIZTfoic+2Jwv8K8Q2s/+dBt6bDWZyaM0bnh6Al2I4RC2hKsInz0G1YgDkM0zjtvHubm FYeK0nDzmXLu98rFLlDDv1dNOmnM/q3/LKmiT4w7cWzdJkSmwlindKyWVVY7bTOodUHO NDPuPljgUBjWdv0Tf5BYsj1ji00WtDVEt9EDx4REm5QuFfZfktojYCQWFrGsp9ieCSRZ XKPLkAvWF3XOp0akGFSI5LIOrKcjYZpP+JRN6FYL+mmNsT0CKrxo5Mi1//IZz2dfxJhD BWSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature:dkim-signature; bh=n1QwpBKhx2xV2lQyfawqqn478D1c1Rjobt5H25DdQ0E=; b=nPQkP9hwYH2OA7w8wwcEWrUJOCUwR9bCunGOg9HxCdT3Z5qe94T5CA1m4Xk9+T6WhN Gw4nSWvl80UYtUOFNtucWK/t7vqypAXIZBbE69XnoxFmsyIo9sIxivQJzdUP1PmI9Ow5 8FrbPyXHnLDBBcdCrnK2DCICdkLLwF7CidTIIxRT+Z19iWsMTEJf+PyQi2qh+GE05jkD t2XIUlGnWcYFd56iEUfWRUJnxgt2osyeFHwp3TBRX6TzanA6fFxtqA7RvBMaP2+46rz6 Lrt1gCfFdT3+DQm2JWF809JBoRYL4HmgiKqpb2hjjTaFHqiir9LfV4PvFMgJqfP31ETb i/Sg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=YBLCM9YW; dkim=neutral (no key) header.i=@gerhold.net header.b=gP9XAUWQ; 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 i3-20020a170906264300b0096f81ae0ac9si7557981ejc.34.2023.06.14.00.36.59; Wed, 14 Jun 2023 00:37:24 -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=YBLCM9YW; dkim=neutral (no key) header.i=@gerhold.net header.b=gP9XAUWQ; 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 S243413AbjFNHRf (ORCPT + 99 others); Wed, 14 Jun 2023 03:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243473AbjFNHQa (ORCPT ); Wed, 14 Jun 2023 03:16:30 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [81.169.146.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E46DC1FE5; Wed, 14 Jun 2023 00:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686726978; cv=none; d=strato.com; s=strato-dkim-0002; b=JGaVQqE6t0TUX8HwOBAeU2nE/dBLD8ftlyl+DUw+2sOP9bbozHcolAhTmKIrbwtEyQ WB986fGwmfu4nHixJ5MfWFZhYTPXv6VM7WP29Cp5LheQeEV0vZVryBJEMLRj8YE9rOPV tvNCg/MrBXkD9SZ0I1xYtlpzgR0n5IrxOCWQU9NRJXeeRNPmlTnVCWyzOzOe8E5z0tr6 gopeAzhLByguUgTdTWZn5k6xli65wxz/XcCjLQ2u6YIwY32784mc3dtAZ9JLxl6ncbgF ZcN2jQAKpwK5pH5wjsbhcCuW5pagNB1noyhwF9dDNdLGMKLFA69TVmQ/F46m3Xqa9iQ6 gMMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=n1QwpBKhx2xV2lQyfawqqn478D1c1Rjobt5H25DdQ0E=; b=bIXNzUDXINO0bC4ka2nRZiUNCaWH7wH/H5Y6hvvyJC7Yyv0D4uaSJMpQyLNOK2Es2B NAlIbRdsWK4Z73L+3WWy89dj7lNDDXY86lvjDrG790V/4mggRv6f7auKauRizdKFjjkm TXglKDbo4kK1QoWBPkd5xFGhNPPZaCiLTGefdAGgiEX/2geBDNv2C/KDFHne7TEwaPA3 8vjuiDcxjS6MWN6j1WUnbU3c6guFkzsa3NDJWQ9Doxi8KwPW/ZoS9GzIyVBX7xgDIcc/ lTlAIn/DjUfnIdP3GzowYVOc9DsMcqE4EZsL5qBJ3yKep/5mXmMqMzaSH+4NxE27Onta 3nTQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=n1QwpBKhx2xV2lQyfawqqn478D1c1Rjobt5H25DdQ0E=; b=YBLCM9YWOIsGc5dJiI9psjLWs0KaRTwNyHBlmqdzQSZHKY11Ag34500L4glH0ic22P rx09s8+QIQMtvTori7i29koQwKO54m+a9b2UDA+6aZJkuH09tEuQgml6wxQC1c4lXYkE tUMHqefpsXM3l2EXRjhpj60raix5d4Sl1oGl1GDX5LhT6RRon1csK4ohbcAdWYzhSr/r BX3/mmmdRljYCuTbmSV5PlruKAUHujQHAtEo0nUGZw66SCdMonkrrwr+0cS6lJbG3fc4 fjCokOLlAkCiDWJ96b3EmKJRPcQD4qBznBc+DIQWzsO/cWjN9/G+dMRvGDsYvDi7V/QE hTxg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686726978; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=n1QwpBKhx2xV2lQyfawqqn478D1c1Rjobt5H25DdQ0E=; b=gP9XAUWQ4wl6h8ki71N9DFFBCMttwL6TI83CrCt/0UcXBks5UyTQlQa7OYaZKgGsZw qv8DI1J+ZiulejJW+XBw== 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 Z82ec2z5E7GIb2h (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 14 Jun 2023 09:16:18 +0200 (CEST) From: Stephan Gerhold Date: Wed, 14 Jun 2023 09:16:04 +0200 Subject: [PATCH 6/8] arm64: dts: qcom: msm8939-pm8916: Clarify purpose MIME-Version: 1.0 Message-Id: <20230530-msm8939-regulators-v1-6-a3c3ac833567@gerhold.net> References: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> In-Reply-To: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Stephan Gerhold 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,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768662755251061123?= X-GMAIL-MSGID: =?utf-8?q?1768662755251061123?= Add the same comment to msm8939-pm8916.dtsi that was added for the MSM8916 variant in commit f193264986b5 ("arm64: dts: qcom: msm8916-pm8916: Clarify purpose"). Signed-off-by: Stephan Gerhold --- arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi index 503c2dd5fe47..3bede1a23603 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi @@ -1,4 +1,12 @@ // SPDX-License-Identifier: GPL-2.0-only +/* + * msm8939-pm8916.dtsi describes common properties (e.g. regulator connections) + * that apply to most devices that make use of the MSM8939 SoC and PM8916 PMIC. + * Many regulators have a fixed purpose in the original reference design and + * were rarely re-used for different purposes. Devices that deviate from the + * typical reference design should not make use of this include and instead add + * the necessary properties in the board-specific device tree. + */ #include "msm8939.dtsi" #include "pm8916.dtsi" From patchwork Wed Jun 14 07:16:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 107759 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1054560vqr; Wed, 14 Jun 2023 00:19:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5aZ66NdGdcG0Q39wMgzn+XGBxkc1wF/zcLamVYKeBDz3G9JpVOX0ohexbSYGq4H9CryGJY X-Received: by 2002:a17:90a:f982:b0:256:831b:8f45 with SMTP id cq2-20020a17090af98200b00256831b8f45mr711298pjb.16.1686727139706; Wed, 14 Jun 2023 00:18:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686727139; cv=pass; d=google.com; s=arc-20160816; b=k9Rl3LWu7oTaXfqnzbTpxI/HIvsFTdKCxHDmE17q8zk87ANhABO0jTk8pE4R9ZKCdC 2B1GfOhMvGIytqfxoqwsq9DRDiUfld45Se//tGjqEJdq8Z1vC951FFN799qfPCw8kG9p FM8zFDNjhzGZFq76L4E/I0tNH6pJHNyJTilH+MebikFuvnsuVtM8HwL5tAWbJbLmvHWA sjmAhnMB20yQUWhC5CS7GyUQz2nomgsMporzrTAcWxrCzLQXkgECU2hzuuUbm82Lf8v4 LpK+MKSxrT7MxePXWK0ItyoKSicmpmCg5rd7j86zfJeiehHBvl0dk2Eed2c7gtiPxV/z ky0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature:dkim-signature; bh=uGcBvgux5Z42TfLlC6oP/lRzzRra2rIpJSo5SSIQARE=; b=X2TsIJpg8B1O2NXgI1fGVtsrAxW1/rzWi6Y7b4YX844kcMUUX5VuR4iC37PEh29asq aZltRrdAv3Napl/wcjyavIg6a7+J0J7tDtwJo4FfswtRhbiC51n4QGisEDQ1YMMYYx9R aNC5uNk0KDf5wE/ParaXxtBWtmf+Uw52WHgK1Qr+RZwBRwYzUE0yVCS/RfE13ijRLLiV Vj/4I6z6DwLHah70BKzSOoBG3ud8M035MSz3xHgeeKZ6jaMjju1NE/ytfdq6FyH4DxHE YuxJToTW5P9EpBm8HPSpOXCjz1Ywl5ug3i/8dpeZK7h5JNxgiQWYnGXO9PRVqoGH94o8 B0dQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=jTybxx3k; dkim=neutral (no key) header.i=@gerhold.net; 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 2-20020a630b02000000b0053f2551834esi10446125pgl.735.2023.06.14.00.18.38; Wed, 14 Jun 2023 00:18:59 -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=jTybxx3k; dkim=neutral (no key) header.i=@gerhold.net; 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 S243422AbjFNHRh (ORCPT + 99 others); Wed, 14 Jun 2023 03:17:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243139AbjFNHQf (ORCPT ); Wed, 14 Jun 2023 03:16:35 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [81.169.146.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED3092693; Wed, 14 Jun 2023 00:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686726979; cv=none; d=strato.com; s=strato-dkim-0002; b=iwL1ubNluX9p1lXtdbK++kLGzzjqaAPbdWwMj0ITOAp+jjmyDW9SqNlJSnBohlACbM DFhZJvbpGVc8YjA35c8wHrgc0CRZ/1DloPZ9WT0ZzSo0tW/AipaiKmTdpklWJWF9G1mC NL9lR3p9jviKtrfYNXwERUbmoJOxTfJZaRA/YCchwc7r270vdWewFXX4EU0Ywtzaelts DtaVxrPxjtb/WR3WRCF3ZN7rKlU24kyJ1WNszX/ywzAJ1CqI9hYJymV9UAXIux6irdwk iEhbtbDcdQ1pSsUcxYK88otoXA3pnpA370EwvewmiymntjPTv7T5hBEuBhHH5SOjMJKh 11NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726979; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=uGcBvgux5Z42TfLlC6oP/lRzzRra2rIpJSo5SSIQARE=; b=QAyd7ml+X7KA6UR95iJRUNmhlo2OPsP21rId1ZWxNTQWIq0BBxoRgWUgzU4A+KUWa/ pawbeoqOfJLdmi7HT4SdAHLzKPU/avyOJnrNo7LsqTzb50qJSaLk23WMzgqaUTrPQHu3 b6+YpMHedqW7gxAY2vP0f8A6UCLo9cZo4uUMHrSCYpGAwmNMT+3nlqbDn3SKTnXf+q2M u1dldNQINKXnAlaADqZ//3AZd6BIuvGU3NJOruPdibR2p+QJHYHSSc4vocXWhWKyYcSz G+dBfnjIdBPU5OnEY5QtL9ww6fcV7N/P2i4dxDLmKzIRiSqOiYR6utpm06GTu7Q6Mn32 CrKg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726979; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=uGcBvgux5Z42TfLlC6oP/lRzzRra2rIpJSo5SSIQARE=; b=jTybxx3kx2G+HjXjwbWFjt+Fj5qSSU2nU1aCFlFfVRfsSZkuWx1g3DmE+NwHiOIqYS X1I87ncP0YsXvNjzw1wdghBJz6TFfXlbJJNSqB57a2RjdEZNS6JLC4NKtitzrS5mr83Q 7dgFqqeDpZY/0DXkN1oS640yguqwI7P+qXttxdVVcK06bR04bd2PyQbOyoU/U+zg46s2 uUPx/noUNmcg9J9Y5Jb40iIj0kfebrtsXzaTqbBx33nFu8HdgStRNyg4RSp7UIHBk01a d6/+exd/xO+3xQPYnAuVFl5N7+oxmbAjLhXtOhvOixUZG6S9hCKfax0sOGPPcB2EkQE7 nqAw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686726979; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=uGcBvgux5Z42TfLlC6oP/lRzzRra2rIpJSo5SSIQARE=; b=wWEWAC6+dfatXLxehGDeTDodApVJH/1Mqe59rISM+bdC7n3DGGRppxHEtYoaQqYo41 y95MHMybR3UpiXcQfVDg== 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 Z82ec2z5E7GIb2i (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 14 Jun 2023 09:16:18 +0200 (CEST) From: Stephan Gerhold Date: Wed, 14 Jun 2023 09:16:05 +0200 Subject: [PATCH 7/8] arm64: dts: qcom: msm8939: Define regulator constraints next to usage MIME-Version: 1.0 Message-Id: <20230530-msm8939-regulators-v1-7-a3c3ac833567@gerhold.net> References: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> In-Reply-To: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Stephan Gerhold 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768661596867137395?= X-GMAIL-MSGID: =?utf-8?q?1768661596867137395?= Right now each MSM8939 device has a huge block of regulator constraints with allowed voltages for each regulator. For lack of better documentation these voltages are often copied as-is from the vendor device tree, without much extra thought. Unfortunately, the voltages in the vendor device trees are often misleading or even wrong, e.g. because: - There is a large voltage range allowed and the actual voltage is only set somewhere hidden in some messy vendor driver. This is often the case for pm8916_{l14,l15,l16} because they have a broad range of 1.8-3.3V by default. - The voltage is actually wrong but thanks to the voltage constraints in the RPM firmware it still ends up applying the correct voltage. To have proper regulator constraints it is important to review them in context of the usage. The current setup in the MSM8939 device trees makes this quite hard because each device duplicates the standard voltages for components of the SoC and mixes those with minor device-specific additions and dummy voltages for completely unused regulators. The actual usage of the regulators for the SoC components is in msm8939-pm8916.dtsi, so it can and should also define the related voltage constraints. These are not board-specific but defined in the MSM8939/PM8916 specification. There is no documentation available for MSM8939 but in practice it's almost identical to MSM8916. Note that this commit does not make any functional change. All used regulators still have the same regulator constraints as before. Unused regulators do not have regulator constraints anymore because most of these were too broad or even entirely wrong. They should be added back with proper voltage constraints when there is an actual usage. The same changes were already made for MSM8916 in commit b0a8f16ae4a0 ("arm64: dts: qcom: msm8916: Define regulator constraints next to usage"). Signed-off-by: Stephan Gerhold Reviewed-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/apq8039-t2.dts | 98 -------------------- arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 100 ++++++++++++++++----- .../dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts | 98 -------------------- 3 files changed, 80 insertions(+), 216 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8039-t2.dts b/arch/arm64/boot/dts/qcom/apq8039-t2.dts index ceae83b1480b..40644c242fb7 100644 --- a/arch/arm64/boot/dts/qcom/apq8039-t2.dts +++ b/arch/arm64/boot/dts/qcom/apq8039-t2.dts @@ -158,104 +158,6 @@ &pm8916_gpios { "PM_GPIO4"; }; -&smd_rpm_regulators { - vdd_l1_l2_l3-supply = <&pm8916_s3>; - vdd_l4_l5_l6-supply = <&pm8916_s4>; - vdd_l7-supply = <&pm8916_s4>; - - pm8916_s3: s3 { - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <1350000>; - }; - - pm8916_s4: s4 { - regulator-min-microvolt = <1850000>; - regulator-max-microvolt = <2150000>; - }; - - /* l1 is fixed to 1225000, but not connected in schematic */ - - pm8916_l2: l2 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - }; - - pm8916_l4: l4 { - regulator-min-microvolt = <2050000>; - regulator-max-microvolt = <2050000>; - }; - - pm8916_l5: l5 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - pm8916_l6: l6 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - pm8916_l7: l7 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - pm8916_l8: l8 { - regulator-min-microvolt = <2900000>; - regulator-max-microvolt = <2900000>; - }; - - pm8916_l9: l9 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - }; - - pm8916_l10: l10 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - }; - - pm8916_l11: l11 { - regulator-min-microvolt = <2950000>; - regulator-max-microvolt = <2950000>; - }; - - pm8916_l12: l12 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <2950000>; - }; - - pm8916_l13: l13 { - regulator-min-microvolt = <3075000>; - regulator-max-microvolt = <3075000>; - }; - - pm8916_l14: l14 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - }; - - pm8916_l15: l15 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - }; - - pm8916_l16: l16 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - }; - - pm8916_l17: l17 { - regulator-min-microvolt = <2850000>; - regulator-max-microvolt = <2850000>; - }; - - pm8916_l18: l18 { - regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <2700000>; - }; -}; - &sdhc_1 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi index 3bede1a23603..12538211bc72 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi @@ -40,32 +40,92 @@ &pm8916_codec { }; &rpm_requests { - smd_rpm_regulators: regulators { + pm8916_rpm_regulators: regulators { compatible = "qcom,rpm-pm8916-regulators"; + vdd_l1_l2_l3-supply = <&pm8916_s3>; + vdd_l4_l5_l6-supply = <&pm8916_s4>; + vdd_l7-supply = <&pm8916_s4>; /* pm8916_s1 is managed by rpmpd (MSM8939_VDDMDCX) */ /* pm8916_s2 is managed by rpmpd (MSM8939_VDDCX) */ - pm8916_s3: s3 {}; - pm8916_s4: s4 {}; + pm8916_s3: s3 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <1350000>; + }; + pm8916_s4: s4 { + regulator-min-microvolt = <1850000>; + regulator-max-microvolt = <2150000>; + }; + + /* + * Some of the regulators are unused or managed by another + * processor (e.g. the modem). We should still define nodes for + * them to ensure the vote from the application processor can be + * dropped in case the regulators are already on during boot. + * + * The labels for these nodes are omitted on purpose because + * boards should configure a proper voltage before using them. + */ + l1 {}; + + pm8916_l2: l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; - pm8916_l1: l1 {}; - pm8916_l2: l2 {}; /* pm8916_l3 is managed by rpmpd (MSM8939_VDDMX) */ - pm8916_l4: l4 {}; - pm8916_l5: l5 {}; - pm8916_l6: l6 {}; - pm8916_l7: l7 {}; - pm8916_l8: l8 {}; - pm8916_l9: l9 {}; - pm8916_l10: l10 {}; - pm8916_l11: l11 {}; - pm8916_l12: l12 {}; - pm8916_l13: l13 {}; - pm8916_l14: l14 {}; - pm8916_l15: l15 {}; - pm8916_l16: l16 {}; - pm8916_l17: l17 {}; - pm8916_l18: l18 {}; + + l4 {}; + + pm8916_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8916_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8916_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8916_l8: l8 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + pm8916_l9: l9 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + l10 {}; + + pm8916_l11: l11 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + regulator-allow-set-load; + regulator-system-load = <200000>; + }; + + pm8916_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8916_l13: l13 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + }; + + l14 {}; + l15 {}; + l16 {}; + l17 {}; + l18 {}; }; }; diff --git a/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts b/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts index 2905dd8d4bf9..8613cf93dac5 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts +++ b/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts @@ -58,104 +58,6 @@ usb_id_default: usb-id-default-state { }; }; -&smd_rpm_regulators { - vdd_l1_l2_l3-supply = <&pm8916_s3>; - vdd_l4_l5_l6-supply = <&pm8916_s4>; - vdd_l7-supply = <&pm8916_s4>; - - pm8916_s3: s3 { - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <1350000>; - }; - - pm8916_s4: s4 { - regulator-min-microvolt = <1850000>; - regulator-max-microvolt = <2150000>; - }; - - pm8916_l2: l2 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - }; - - pm8916_l4: l4 { - regulator-min-microvolt = <2050000>; - regulator-max-microvolt = <2050000>; - }; - - pm8916_l5: l5 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - pm8916_l6: l6 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - pm8916_l7: l7 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - pm8916_l8: l8 { - regulator-min-microvolt = <2900000>; - regulator-max-microvolt = <2900000>; - }; - - pm8916_l9: l9 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - }; - - pm8916_l10: l10 { - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - }; - - pm8916_l11: l11 { - regulator-min-microvolt = <2950000>; - regulator-max-microvolt = <2950000>; - regulator-system-load = <200000>; - regulator-allow-set-load; - }; - - pm8916_l12: l12 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <2950000>; - }; - - pm8916_l13: l13 { - regulator-min-microvolt = <3075000>; - regulator-max-microvolt = <3075000>; - }; - - pm8916_l14: l14 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - }; - - pm8916_l15: l15 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - }; - - pm8916_l16: l16 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - }; - - pm8916_l17: l17 { - regulator-min-microvolt = <2850000>; - regulator-max-microvolt = <2850000>; - }; - - pm8916_l18: l18 { - regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <2700000>; - }; -}; - &sdhc_1 { status = "okay"; }; From patchwork Wed Jun 14 07:16:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 107757 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1054439vqr; Wed, 14 Jun 2023 00:18:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4q5nDiBV8Z7L5bH0Cusl+4Lk4mEqEboOkznd7gG56JyE9w2dlqTFJRUUHJ7Ceo+RrzYJnC X-Received: by 2002:a05:6a00:14d3:b0:64f:6c01:d580 with SMTP id w19-20020a056a0014d300b0064f6c01d580mr1521767pfu.14.1686727120223; Wed, 14 Jun 2023 00:18:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686727120; cv=pass; d=google.com; s=arc-20160816; b=O6A0KwOltBJzywbKashBCxTCOU82R/Qp804QXKr5RB6ZazAK0/dXo2QV5BsgDOTQlY jiBgKWlfoo8S3p99zxLU4wEUUgIXzC+c56CcF7xo2vZM904cEf9RT/Mez91GWKZ9H3v5 GBMAI5t1vXwUe1PzSmv2P9IDDNwBwG98R3E1wH5x6OLRMnpRUyU/OUN7qkiZiQdbi6mK xoR6jBVENGrb/F8OuNAOkbz7o8brCW1TxUCr56rVaXboRjrwCb8MIKQuW/4E1lAD6Cv8 N8VhAwE885RkhuBTDcDdLP0ePxOi/Uz3mG4+UQ5Ssi81ULrkxI/AhtrG3P9flrmEO8VZ SKyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature:dkim-signature; bh=Z643LN4iyCKvjK5j6XP9XQLu7ScuQMBkvKKX5tWCT6A=; b=0MwHgLafv3gXG5ykKpkQrmowqdaLHqYJJ+AV38gLz+V0OfFVVmxaVnLHcUiQdX9ObS MQQhGfhevqCJo0rZEQ/A4obE8WfiK7qPfPwIanJEB8b7vzpvU9ni84hRQA/JZupkq4AT 8P3X2VLGuBGc6SjXOH+UaKBAw3lK6i3IBNMdJHpw6JPuAoymd+OaxNa7lpci1G74YcAU CjHgFL0T4yAEKSBNFaXCPsqVvLokPEYIdMhajjMoEpwmA/BnPqe03UWKngfe2pAyWYP9 uUWhFx/2virxirLJXM50ppQy3WYCzGO8+c9KyW7ghkpWSBAE5HT9b/epEB4DmnnZpmv3 ETJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=cH+nJlxR; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003 header.b=Zc8HuGxt; 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 k12-20020aa79d0c000000b00625c6092a12si10236260pfp.215.2023.06.14.00.18.27; Wed, 14 Jun 2023 00:18:40 -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=cH+nJlxR; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003 header.b=Zc8HuGxt; 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 S243354AbjFNHRY (ORCPT + 99 others); Wed, 14 Jun 2023 03:17:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243470AbjFNHQa (ORCPT ); Wed, 14 Jun 2023 03:16:30 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [81.169.146.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E80E1FE2; Wed, 14 Jun 2023 00:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686726979; cv=none; d=strato.com; s=strato-dkim-0002; b=LSOXVt9xjPH3jOL8WmwYhWJAt7aSQnLL7b4yjO22ZqqhfY5KRll5pWRn6xlQ0X8MRJ Py6gk/2EkKJRRT80N8RQyF8wa+MHE99fmmmOZCcSaVUhwk2bwcyQmh7ZEd+mSgCTId4M s3rG5PT9zGr3uWgUCA+h2mCBGV1jGw5OCLpeFbKvBLbpFcoafSgTQEn/RZimUPjMNFvM vx6OZO0+D4WrNw+V+z0ciAA3iX1uymwhe8gP1+YgzcOhVpWDqKuvUT5X1QuFH5nt7nMC u4WaMm6MvKOs0w24NUkNEP3H1cHcoNfIBs8if+MRnTqVgHtCm9AJLSZKPhouOuJ/skzk nzpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726979; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=Z643LN4iyCKvjK5j6XP9XQLu7ScuQMBkvKKX5tWCT6A=; b=tDGOzK21aTpQxVJr3j3riKw4EvjFpKhK/YJptAmQ8KFtaivVxOnFv6sdVRgyRcHxg+ /FEo5vD1jgI+tYOcWeLcXxVljwwXMUMrDHH/H74/kNMw0rkGMtVkS5KIYzbrBIFjUX85 xhgN3pgmmlhL55T4zXam0swrUmbf+PNs9KTb35cOQIZoAk60TaNLbCyDYs68K9SFs9Er lWqzUeNGxq1puNfCRNV/VtfKm9OhIEYGBrCAPIz8xujXEDi8GzVZUgqBMxZN4Tex85oZ gaYFrl9vWr5i4Hb8zzMf5N1ob+FLfowgDqYKrdE2yJrRvRhKy0YwXizAUCx7EuYaJfWJ 2ofA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1686726979; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=Z643LN4iyCKvjK5j6XP9XQLu7ScuQMBkvKKX5tWCT6A=; b=cH+nJlxRgvHSKumxuBlpsSvDelba44hrefij7yPtZ9SiJzVDYBRjzvpqs/KNx0bUbu 4U3I9TCyzSyAzWQ5PEAbzUvaDYGhCHwlGLfrBSqGsTHJcyQ6K6Ne97n+iVug1X2eDwje GTtu9IT2PGY4dSkfJJEF9D3OxIfZvMKckVenEuWZWBMAuaPgZMWPUmknINht4QkFcRTt HMmxXyaWYKn4lVkZ7d2tSs8WtELo5GtzwEw8J0MECGXtljN5WL5NR5qF4OEriRpjyWDI xZglsKpj7RoAzqrcSaRxGkPFm105uTBlNipeBUKOGZPCVcYwVyWl6iM4kc75fUDeMWqu E4qA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1686726979; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=Z643LN4iyCKvjK5j6XP9XQLu7ScuQMBkvKKX5tWCT6A=; b=Zc8HuGxtaeZi2LX/FBGgscgGvRRizrvppB8RTvCOlGXZqdq6jdIs0HPKqN+FJV/mJO 0omNxlBwnpdGt5asuNBw== 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 Z82ec2z5E7GJb2j (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 14 Jun 2023 09:16:19 +0200 (CEST) From: Stephan Gerhold Date: Wed, 14 Jun 2023 09:16:06 +0200 Subject: [PATCH 8/8] arm64: dts: qcom: msm8939-pm8916: Mark always-on regulators MIME-Version: 1.0 Message-Id: <20230530-msm8939-regulators-v1-8-a3c3ac833567@gerhold.net> References: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> In-Reply-To: <20230530-msm8939-regulators-v1-0-a3c3ac833567@gerhold.net> To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Stephan Gerhold 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,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768661576979944198?= X-GMAIL-MSGID: =?utf-8?q?1768661576979944198?= Some of the regulators must be always-on to ensure correct operation of the system, e.g. PM8916 L2 for the LPDDR RAM, L5 for most digital I/O and L7 for the CPU PLL (strictly speaking the CPU PLL might only need an active-only vote but this is not supported for regulators in mainline currently). The RPM firmware seems to enforce that internally, these supplies stay on even if we vote for them to power off (and there is no other processor running). This means it's pointless to keep sending enable/disable requests because they will just be ignored. Also, drivers are much more likely to get a wrong impression of the regulator status, because regulator_is_enabled() will return false when there are no users, even though the regulator is always on. Describe this properly by marking the regulators as always-on. The same changes was already made for MSM8916 in commit 8bbd35771f90 ("arm64: dts: qcom: msm8916-pm8916: Mark always-on regulators"). Signed-off-by: Stephan Gerhold --- arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi index 12538211bc72..adb96cd8d643 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi @@ -51,10 +51,12 @@ pm8916_rpm_regulators: regulators { pm8916_s3: s3 { regulator-min-microvolt = <1250000>; regulator-max-microvolt = <1350000>; + regulator-always-on; /* Needed for L2 */ }; pm8916_s4: s4 { regulator-min-microvolt = <1850000>; regulator-max-microvolt = <2150000>; + regulator-always-on; /* Needed for L5/L7 */ }; /* @@ -71,6 +73,7 @@ pm8916_s4: s4 { pm8916_l2: l2 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; + regulator-always-on; /* Needed for LPDDR RAM */ }; /* pm8916_l3 is managed by rpmpd (MSM8939_VDDMX) */ @@ -80,6 +83,7 @@ pm8916_l2: l2 { pm8916_l5: l5 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; /* Needed for most digital I/O */ }; pm8916_l6: l6 { @@ -90,6 +94,7 @@ pm8916_l6: l6 { pm8916_l7: l7 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; /* Needed for CPU PLL */ }; pm8916_l8: l8 {