From patchwork Mon Sep 27 04:48:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 514656 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp3778134jao; Sun, 26 Sep 2021 21:49:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLtztKySo1afRhLMRi6VinqQ/KHFd3L6sdEDKoOCLLAH2eyR+zXvt36vFGd5DedHBOvDhj X-Received: by 2002:a17:906:4c8c:: with SMTP id q12mr24530385eju.254.1632718154056; Sun, 26 Sep 2021 21:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632718154; cv=none; d=google.com; s=arc-20160816; b=lh0zT+QvK98A1d/IyB93f6DNX3ditN6+JOfpCHiIDm3TK1x8BGhAWB1RQ7vb97JNWz 6R3HaG5q0nC21BYXtTM9TreJU2T1KggbRV4xh22X+VNql04l92mJlHQR3gEeuuc9G5LW OXI8CTJHIAnEdB2IVG/P8xLa1zdnLPeEY/TSz2ydLZGa9FUsaTz5oF5Oc/oba4Cg9IzU 89ohRi6O12HHcNVQ6axz9gOIkZ5/Bvz4UDmfsaFZt2P/Zb/+LSKb1GMEEoAz5V4h3On/ FvqDDBluEFOjBoFWg1R7dlOT+YOXqcFy/A+AQ2nHM7Xj3ttgnUNj8wUn6AawOtRAJCp5 uQ8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=5Q6nf8LqPhvSki/U84FqSlnRaUL+lc1QseYK12PdV5o=; b=ndozTVRyA0AAVUgHwm1C41mZwYWwkmF20UFNh1MDujFEz10etrGPImKYIOZ5QZsoUu 2yFuXYLqCLlnZnFnJ6Klqg07EtqQNyc8CJVYybUJwTiSeOz//OoHUM/Ac1Z/FMZWrk4a vWgeje9TTTEGIvn8rcdZgqPthEfTiPhEA2EuUM6qT/7c3qRR48LSWrQrU3kSbForqdxk AcaKkJhMALfrQgCKVZ5d5OqYBJSS1Ba4MmZWzExzVpzlusVqVf6p95YXGfbM11DbkZE1 cvfHoUsEyB4O5bUJqarCP+eEarflOG2SYrd2UJg8r8mFpy0Kv8LKOY0y8z6nLSjttbMr J0Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yH7ocNJo; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si20261766edv.565.2021.09.26.21.49.13; Sun, 26 Sep 2021 21:49:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yH7ocNJo; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232638AbhI0Eus (ORCPT + 17 others); Mon, 27 Sep 2021 00:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232526AbhI0Euq (ORCPT ); Mon, 27 Sep 2021 00:50:46 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4597C061604 for ; Sun, 26 Sep 2021 21:49:08 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id d13-20020a17090ad3cd00b0019e746f7bd4so9171151pjw.0 for ; Sun, 26 Sep 2021 21:49:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5Q6nf8LqPhvSki/U84FqSlnRaUL+lc1QseYK12PdV5o=; b=yH7ocNJoNnGbreRdSzpzAaX3MbEHhAM4lHvCdNiZ/rIgjhzwD6JQGTv6FgV/p4A+8c 8duNd3qs3jhMGodK3rkRMxa6CdbZ5LafPySRP5endGozYT0awQKqLlHoEoCoBfrLkdLa xVshzimso3M1rqxe2XdU0OQd8gekKOr6yFKbYlN2eeEekS4xUzp3HkUBhsw521UHEBjZ a9WpSeT7TtgqiQ509ueMLjm1ER/MffOo2Yp9eXl11mT0ecu1S4C1Pre5M09BRI/FuI0M Gn/Vv1/StIe0NGCGnZLeXiCm1R+7DxriXDU0Ekv6aTovlu4zb6hb3IVPcILEvktSY1na Jwng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5Q6nf8LqPhvSki/U84FqSlnRaUL+lc1QseYK12PdV5o=; b=YdER8c9PnIwPG7LiGDJixuJS7S3NOVSrjAYq4J5u/JhFLwaegybKFYJIwbFKoFqjF8 cmkVDo1Yo8pucjxUBvKx+IVyV2vCcVOpmwuQXLP35E8kB9iDVKMSWhwKViMEoQjns/M+ kwBcOHuMFXaymH6qfVX8ArGAqk2OKIXxdYCBHPt+waMRoi4roSrqrBsRrRQnsQrdNIJf tkEN2lQPfPGYxPuICXKOPghDVfVHccwdD5EVKotrvd37QvDu8RZ0MrTyLl7co5vEzoOU ojy60pR0afXKOQ7y9fgQJzHb2CgwZbjf75w+v/H+iwsnJ9nsFFCippWuc8yOlOlaV9YW DVaA== X-Gm-Message-State: AOAM533FtlQKMLzwPZFv4PfkEu6Y1ITdDOKUdrNiFPGVU+M63GaZQ7vg uwXlmSNasxtxgyttboCK826VWA== X-Received: by 2002:a17:902:934c:b0:13d:c685:229b with SMTP id g12-20020a170902934c00b0013dc685229bmr20786774plp.25.1632718148423; Sun, 26 Sep 2021 21:49:08 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id o8sm14550651pjh.19.2021.09.26.21.49.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Sep 2021 21:49:08 -0700 (PDT) From: Shawn Guo To: Vinod Koul , Bjorn Andersson Cc: Manu Gautam , AngeloGioacchino Del Regno , Konrad Dybcio , Jeffrey Hugo , Jami Kettunen , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH 1/3] dt-bindings: phy: qcom,qusb2: Add missing vdd-supply Date: Mon, 27 Sep 2021 12:48:22 +0800 Message-Id: <20210927044824.30246-2-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210927044824.30246-1-shawn.guo@linaro.org> References: <20210927044824.30246-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Besides vdda-pll and vdda-phy-dpdm, vdd-supply is a required supply for PHY digital circuit operation. Add it for correctness and completeness. Signed-off-by: Shawn Guo --- Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml index 48ae604b2194..96e31f582fc9 100644 --- a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml @@ -51,6 +51,10 @@ properties: - const: ref - const: iface + vdda-supply: + description: + Phandle to 0.9V regulator supply to PHY digital circuit. + vdda-pll-supply: description: Phandle to 1.8V regulator supply to PHY refclk pll block. @@ -157,6 +161,7 @@ required: - "#phy-cells" - clocks - clock-names + - vdd-supply - vdda-pll-supply - vdda-phy-dpdm-supply - resets @@ -175,6 +180,7 @@ examples: <&gcc GCC_RX1_USB2_CLKREF_CLK>; clock-names = "cfg_ahb", "ref"; + vdd-supply = <&pm8994_l28>; vdda-pll-supply = <&pm8994_l12>; vdda-phy-dpdm-supply = <&pm8994_l24>; From patchwork Mon Sep 27 04:48:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 514657 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp3778158jao; Sun, 26 Sep 2021 21:49:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUwxEKXzIxK4KO7AED/g2DYe+H94dAEL6jEE+mxV7A3R/4fkvmVw1mefV3JT7WdlWgo4fN X-Received: by 2002:a17:906:b6d0:: with SMTP id ec16mr1597430ejb.229.1632718156901; Sun, 26 Sep 2021 21:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632718156; cv=none; d=google.com; s=arc-20160816; b=WbD5qq7NJDcA19coiHo0OmciDmQU2donYdFSlnYCS9sgwOHxM6rK34Vwdeom93NXr1 CzIihTuz+wKeECDMhFlQ6NjHfzs6qtgNANpyq4kus8WXfLPE6XbomFjdO594lVIRZDVP G/dE/39vJ7FEfpqcZToceg7tks2FxE6ZKOkT8ug0r8I37zDXv1gU3QLDkPtzJEvWDc3S VbRSmOI+fM1T/blxHTLzLZEpdyY7Y3qfWN6NVYtCRtMTyp3BqJ1vdTLspn7+Qon2Yg6A ADIRCMehBK8bZhkGOGUfn+3gjOfxB0Zmt4gGtjr7k9XB6kYi8qnUJRFGSkt3VkaVUkAi ZGtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=yqut9De+8qKtl1UwHb70hm3Lp+Eib/4T+4ZznburE20=; b=pwCc83OGFS740v4ZCIgkKfRRYuSREcQilW31RRlPMrdLf3rDjYW8nctA+28quHy2FH BkCQxBsxfWDkvHzQe2bDEgRSAUZneVAb0XZpvzKHnvba1BAgEhjyhnkssor68JLhqXUv N+77lChTDq1M6flxI2YOO0qU3tVXod2QsqLqYjvBTJBsbNA+kjQ8ZDzRbXXjHbjVN/Rb I0kedWQ/5UVHjnVH6OWsCpf+2PjsgAbCjN6NDoW/FEr5sVdBc1UIUuUFRJcoBRqKNdGH uMOG1shLf+WX5z6nO6p0v+OQJdhJg1nr611zAlB+BeqnVPBx+j2/8nFWqV882B7H4yHy 13+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B+jaGLcW; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si4839649edc.603.2021.09.26.21.49.16; Sun, 26 Sep 2021 21:49:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B+jaGLcW; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232663AbhI0Euv (ORCPT + 17 others); Mon, 27 Sep 2021 00:50:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232614AbhI0Eut (ORCPT ); Mon, 27 Sep 2021 00:50:49 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A14FC061570 for ; Sun, 26 Sep 2021 21:49:12 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id x4so3413456pln.5 for ; Sun, 26 Sep 2021 21:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yqut9De+8qKtl1UwHb70hm3Lp+Eib/4T+4ZznburE20=; b=B+jaGLcWqs5eaW1Zz7HJ5ZpRIcABigLjJ8jgI3gc+6UyUZjhZznJvDGZwWows5qK7f cY/lLDnR9u0gryCmklGfZBYrI7DA0WpJeIrw8jHh+0et3FA5mJ8LC31xZR7ioYrI/NUq tJ6umUpk+UlGiqx5W3/We8pZNrxG49sAft3lpk83nZXxMtBnyjML+dBv0529ys2RMu8Q kKOgczBrg52oLdBTPR4HkyjZQ+UVbbc+mqikypJ9EBAn9wsipLagu2FmLMOU33KKOFr0 jOZRMvpfhgLTnkcII6Fo+jOEGRFt+8Sua16G5fhS2ehhza9fmiYA6YdAoI/3a0lpSUuG OKPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yqut9De+8qKtl1UwHb70hm3Lp+Eib/4T+4ZznburE20=; b=D0iWHrLRIQtul5HPQVsHovQ73XRxBaPWBmZk0Ihp0TyEDlwGJnHnlx9QtWl1n9IyUb NM/V0fwT55dCLXxOxsLqXnu2zTcHLnkpNGUU2z7MT2lULfOIR9fYPg30A8LfbemwjHGg CV9rUbk0SqbVPzieBdSuys8RA4CesbL0hekoMWnT8CVT+Sobg4r9PJKC2LHoQVoC3Rkh b2HU1EPJ6GWjIHFeqVzobIiT7v5iu6SVyxstZpR4FJmFtFqs+bXabX0b1bF4ef8Ck9ZG sqm/pugMHSu3VbZKBUebsz8i23PVz3B70RNyEig2trl+r7IX0qGu5e575Wncw4UVSlCp i2iA== X-Gm-Message-State: AOAM532wpFDInOikFIpqjy2vTH80mHVfMNOtDWWuXAM9/yF0IMt62Ko6 34XPtQFEZtoDfylJbOUKV+Lwcg== X-Received: by 2002:a17:902:d34d:b0:13e:25e6:f732 with SMTP id l13-20020a170902d34d00b0013e25e6f732mr4337542plk.58.1632718151608; Sun, 26 Sep 2021 21:49:11 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id o8sm14550651pjh.19.2021.09.26.21.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Sep 2021 21:49:11 -0700 (PDT) From: Shawn Guo To: Vinod Koul , Bjorn Andersson Cc: Manu Gautam , AngeloGioacchino Del Regno , Konrad Dybcio , Jeffrey Hugo , Jami Kettunen , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH 2/3] phy: qcom-qusb2: Add missing vdd supply Date: Mon, 27 Sep 2021 12:48:23 +0800 Message-Id: <20210927044824.30246-3-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210927044824.30246-1-shawn.guo@linaro.org> References: <20210927044824.30246-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Per downstream kernel, beside vdda-pll and vdda-phy-dpdm, vdd is also a required supply for QUSB2 PHY digital circuit operation. The driver works right now likely because firmware already sets it up. Add it for correctness and completeness. Signed-off-by: Shawn Guo --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c index ae063a8b3e28..7a8e4333babe 100644 --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c @@ -371,7 +371,7 @@ static const struct qusb2_phy_cfg sm6115_phy_cfg = { }; static const char * const qusb2_phy_vreg_names[] = { - "vdda-pll", "vdda-phy-dpdm", + "vdd", "vdda-pll", "vdda-phy-dpdm", }; #define QUSB2_NUM_VREGS ARRAY_SIZE(qusb2_phy_vreg_names)