From patchwork Tue Sep 5 16:19:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 720426 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC2F0CA0FFA for ; Tue, 5 Sep 2023 18:33:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231161AbjIESd5 (ORCPT ); Tue, 5 Sep 2023 14:33:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239360AbjIESd4 (ORCPT ); Tue, 5 Sep 2023 14:33:56 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8FC31AE for ; Tue, 5 Sep 2023 11:33:28 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-500cd6261fdso4970227e87.3 for ; Tue, 05 Sep 2023 11:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693938740; x=1694543540; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u65I1O1lKLMNJ/qEOfucgBHMYGAUrWEEbV/2ps7wmMA=; b=xgAlYApI3Zd08N+8+gDgq/+p2VnwQ0rbJxyr5WhdOJAdmJrDW0vyXYQhrZFvTp+wX6 +VYUfZ9wBr/jaQmCmPVgJt5wLfkBCykhms7LkFc2W4mkbgCLQujch/VLdfqK/SNNiVA4 65UEZj67rcbZzxyullZ6FIIVpTMYE3AZGEq1/E+dmIzAYxjTwUN+pxUddcXrSr5FzuHx 3/6hOKfX80mLWuYx2gYDApiJWW4KH3J9xUFrLlclvCi/hMEQLmezoiCwJiDKZ4o31n1c uI6derSD5fF3FN8qaINgiAX6Ldr9Z729k2zpjY/K/91CJrA+UUpZAHBjS1NgTLeH+XUH d8eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693938740; x=1694543540; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u65I1O1lKLMNJ/qEOfucgBHMYGAUrWEEbV/2ps7wmMA=; b=eES6YJLfyPZTzi+2sAFVEsGlKykHbZXputa290FzFRXKNA9P8MLhlLJ+lAycvBX0/P oDMfnPGytXe07zWUfuIfkriuMvVrZGfJTFnVpvJhBsYhtCMGfQz0w8LfIoDctZ67/1Ii mbZ397NKAfYOlcBZei1GwX3Od61blHx6s/Yhs0fIL2n8OMdZYHi8aOdAOy2caD5yhsQg sbLtUnfXnGmr/s3aGXltM1y8nBalzAx9OplRkcFdRnAP11y2nDTnm/csXTTgLm++2Lwv UpKVV1DM4S7Godg2ReIhNz0Z88ubWC3ttQC/P/zxce+VHl3Ih1exse/hSXXCgMvqdwGG NiKw== X-Gm-Message-State: AOJu0YySW68flnCvO18C9n6XQF2rc+rlyYKbJ+osazJaVmOuYODDBF1U Z2dfO0Iat5yE2+C1WYcz3H5Ol0H1SJOIaHBKW6k= X-Google-Smtp-Source: AGHT+IE8+CDJh2xbtEx7uZ2aluglM/hJtEE/udwXwpOfMHa6iUNE1WT8MTjjF9i5oQB7WOBdc1L1zQ== X-Received: by 2002:a17:906:31d2:b0:9a2:2635:daab with SMTP id f18-20020a17090631d200b009a22635daabmr268509ejf.47.1693930775682; Tue, 05 Sep 2023 09:19:35 -0700 (PDT) Received: from krzk-bin.. (77-252-46-238.static.ip.netia.com.pl. [77.252.46.238]) by smtp.gmail.com with ESMTPSA id v26-20020a170906489a00b0099cc36c4681sm7743165ejq.157.2023.09.05.09.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Sep 2023 09:19:35 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 07/12] arm64: dts: qcom: msm8996-gemini: correct UFS pad supply Date: Tue, 5 Sep 2023 18:19:15 +0200 Message-Id: <20230905161920.252013-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230905161920.252013-1-krzysztof.kozlowski@linaro.org> References: <20230905161920.252013-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The Qualcomm UFS phy switched from dedicated driver to QMP phy driver. Eventually the old driver was removed in commit 02dca8c981b5 ("phy: qcom: remove ufs qmp phy driver"). The original driver and its binding used vddp-ref-clk regulator supply, but the new one did not and left the supply unused. The Qualcomm UFS phy bindings were also migrated to newer ones and dropped support for vddp-ref-clk regulator in commit dc5cb63592bd ("dt-bindings: phy: migrate QMP UFS PHY bindings to qcom,sc8280xp-qmp-ufs-phy.yaml"). It turns out that this regulator, although with inaccurate name vddp-ref-clk, is actually needed to provide supply for VDD_PX10 (or similar, depending on the SoC) used by UFS controller. Bring back handling of this supply by using more appropriate regulator - UFS controller host supply. This also fixes dtbs_check warning: msm8996-xiaomi-gemini.dtb: phy@627000: 'vddp-ref-clk-supply' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi index bcd2397eb373..9a4c11c33a17 100644 --- a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi @@ -419,6 +419,7 @@ &ufshc { vcc-supply = <&vreg_l20a_2p95>; vccq-supply = <&vreg_l25a_1p2>; vccq2-supply = <&vreg_s4a_1p8>; + vdd-hba-supply = <&vreg_l25a_1p2>; vcc-max-microamp = <600000>; vccq-max-microamp = <450000>; @@ -430,7 +431,6 @@ &ufsphy { vdda-phy-supply = <&vreg_l28a_0p925>; vdda-pll-supply = <&vreg_l12a_1p8>; - vddp-ref-clk-supply = <&vreg_l25a_1p2>; }; &venus {