Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3219744iog; Mon, 20 Jun 2022 14:23:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uin9XZK6mIzlf1bNgyHvs1t3co9ugHLj/dlf5T+3Ajzjorr/9CnrOq/2asWq/lXIF5gwcJ X-Received: by 2002:a17:906:5352:b0:712:3916:e92 with SMTP id j18-20020a170906535200b0071239160e92mr22441318ejo.756.1655760192954; Mon, 20 Jun 2022 14:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655760192; cv=none; d=google.com; s=arc-20160816; b=JwC1N3jNIoaGiyufdMRojo29190DicmDUloyr/LZ86K570m/99i119rD+nxOjJ9RwX NmlF46+NFA89AOfeCqQ8fdY/UMrdM1DtE0eF2/La91C3qAJ7XYCQcfPpdlckvwx8GLzP x7W+v3hYXcejfpc9D4dY/qnklLR9sIvlX5Y/yuQfQQ81EMSpysFNJvmGfcV0tfTHU1OC Nx6b4WGuW1NFsGOYx7ypkNuL2QeFVfW3SjnFeMg58IwQdaoAVx24aSkgGpzNKimtE3+d JSJcmPjChOe6xz5voPK4XgXqjxOxPMtYPABF2EWQRL2ZWndYMS9eJlDNFaXF14BYiW8o 7H+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=SX9RlO4acyg1Ppn/a54WMudOCNtUmP6TZnbGBxDd6YU=; b=0WICg+nLG5ZErJCqnOgEfUfpTAGb9XtgvkhA3yJxgHrak0kUNqluvAtHyfTpVRZcwY QlaeczR7HQb6n0mvJCKltoaC9SwqeRxUbTptyh+B+9m3nK4YiQVMgxOgm8CRaCp3s9xt gUkdoozySvY58+aRYzap2gA4nRVravWz7Zit6AP3NEE0SpOOGFLRYQc9r9LQuRY9ScEv y6EOeD+2Zhd8an0YCze2n2/aF4bz+NOJq8wW1r/5AK6e/n1IQgTICjao/lod0NiApRsJ 1wAirCe9DDUzqYmo9p5EJywRfVX4i0B6dkJajbDOB5BhcO/+nspgQK20pP3vsqZ1OnpJ W7Hw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020aa7cd0e000000b004357523b6a3si6935396edw.550.2022.06.20.14.22.47; Mon, 20 Jun 2022 14:23:12 -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; 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 S242073AbiFTVMY (ORCPT + 99 others); Mon, 20 Jun 2022 17:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243206AbiFTVMT (ORCPT ); Mon, 20 Jun 2022 17:12:19 -0400 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [IPv6:2001:4b7a:2000:18::163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB7681A83C for ; Mon, 20 Jun 2022 14:12:15 -0700 (PDT) Received: from Marijn-Arch-PC.localdomain (94-209-165-62.cable.dynamic.v4.ziggo.nl [94.209.165.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id B3F632013A; Mon, 20 Jun 2022 23:12:13 +0200 (CEST) From: Marijn Suijten To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: sdm845-akatsuki: Round down l22a regulator voltage Date: Mon, 20 Jun 2022 23:12:12 +0200 Message-Id: <20220620211212.269956-1-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 2700000 is not a multiple of pmic4_pldo's step size of 8000 (with base voltage 1664000), resulting in pm8998-rpmh-regulators not probing. Just as we did with MSM8998's Sony Yoshino Poplar [1], round the voltages down to err on the cautious side and leave a comment in place to document this discrepancy wrt downstream sources. [1]: https://lore.kernel.org/linux-arm-msm/20220507153627.1478268-1-marijn.suijten@somainline.org/ Fixes: 30a7f99befc6 ("arm64: dts: qcom: Add support for SONY Xperia XZ2 / XZ2C / XZ3 (Tama platform)") Signed-off-by: Marijn Suijten --- .../arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts index 36ff1178b705..3839850cf7dd 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts @@ -22,8 +22,9 @@ &vreg_l14a_1p8 { }; &vreg_l22a_2p8 { - regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <2700000>; + /* Note: Round-down from 2700000 to be a multiple of PLDO step-size 8000 */ + regulator-min-microvolt = <2696000>; + regulator-max-microvolt = <2696000>; }; &vreg_l28a_2p8 { -- 2.36.1