From patchwork Tue Feb 8 00:17:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 12738024 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 0226CC433F5 for ; Tue, 8 Feb 2022 01:06:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344075AbiBHBGj (ORCPT ); Mon, 7 Feb 2022 20:06:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343973AbiBHAR3 (ORCPT ); Mon, 7 Feb 2022 19:17:29 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE985C061355 for ; Mon, 7 Feb 2022 16:17:28 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id i17so15857764pfq.13 for ; Mon, 07 Feb 2022 16:17:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ump4WlSip5V2JlqWQTgJOZSUupb4pYUV+n/5B2TGlus=; b=iaHPcaPkhBgkbkHPw3lGkAeU7GfjdIaqcg5gfIllnqQXy+yFLmejaQasUxyh+E0t6V SoWmD8LzI/NWCJAY+kb9S7b3QKo6nmxuUGgn9DlYbhP33gnbjeuwH0rs6opMWpwZRd84 OSKxOvIWXeoxsMj/3FJxSJVc/vvuEWExu2ERY= 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:mime-version:content-transfer-encoding; bh=ump4WlSip5V2JlqWQTgJOZSUupb4pYUV+n/5B2TGlus=; b=pAV5R4mOCTDzw4YbRbp8sPbLZWOdlgtOBkdhg/MvvfP7BuGK/bxyQWdY31loheFEP5 YHK1f3D66vwnMPEJxeq9UN9Xumgb5Bazh7XNV7NaZ6OCaN+wj/ShYBAH8aibTE/qthbE ePXTvV14OPoAzrLPAXakUnM4xjHc5uui7WpFPXOi50EWGsWzBOX/PXtEl4HToZn58sXo DKKJjZIWrHgfIxpr4a1sSa6e6cht7f/qpZ3cPDEjUETaOrQq7o515EMRhJ/G5t36X4ur K0DXLa3sEczzix42i0UXYmaQVaII2QKJUX/1C9UKu6hBoBIOTynGRi7v4AOm4bc4aZlM zTWA== X-Gm-Message-State: AOAM530TmftyDnIuXvHwGXVV08GjOEY88GLAJrCt88fD4xJTQ4w4DaPd htQrMaIapVIijBCuJOXGcCtDoQ== X-Google-Smtp-Source: ABdhPJysUN14OWRaS0gjx3vzBZsCwjAimW7jy/Y/9xx2AVEP2bk4Yk+URPQwsV73f1oA9YO2VwdQmA== X-Received: by 2002:a63:4605:: with SMTP id t5mr399414pga.41.1644279448156; Mon, 07 Feb 2022 16:17:28 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:6c4d:c442:5b4:f597]) by smtp.gmail.com with ESMTPSA id mz4sm456185pjb.53.2022.02.07.16.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 16:17:27 -0800 (PST) From: Douglas Anderson To: Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson Cc: quic_mkrishn@quicinc.com, linux-arm-msm@vger.kernel.org, Sankeerth Billakanti , robdclark@gmail.com, quic_khsieh@quicinc.com, quic_abhinavk@quicinc.com, linux-phy@lists.infradead.org, Stephen Boyd , Douglas Anderson , Andy Gross , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [REPOST PATCH v1 1/3] dt-bindings: phy: Add eDP PHY compatible for sc7280 Date: Mon, 7 Feb 2022 16:17:02 -0800 Message-Id: <20220207161612.REPOST.v1.1.Iee1d505f0a35c2805f0468625b117d2e0f0ad339@changeid> X-Mailer: git-send-email 2.35.0.263.gb82422642f-goog In-Reply-To: <20220208001704.367069-1-dianders@chromium.org> References: <20220208001704.367069-1-dianders@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Sankeerth Billakanti Add compatible string for the supported eDP PHY on sc7280 platform. Signed-off-by: Sankeerth Billakanti Reviewed-by: Stephen Boyd Signed-off-by: Douglas Anderson --- Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml index 9076e19b6417..a5850ff529f8 100644 --- a/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml @@ -16,7 +16,9 @@ description: properties: compatible: - const: qcom,sc8180x-edp-phy + enum: + - qcom,sc7280-edp-phy + - qcom,sc8180x-edp-phy reg: items: From patchwork Tue Feb 8 00:17:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 12738022 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 E0CC2C4321E for ; Tue, 8 Feb 2022 01:06:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236488AbiBHBGa (ORCPT ); Mon, 7 Feb 2022 20:06:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343977AbiBHARb (ORCPT ); Mon, 7 Feb 2022 19:17:31 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E5DDC0612A4 for ; Mon, 7 Feb 2022 16:17:30 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id e6so15868918pfc.7 for ; Mon, 07 Feb 2022 16:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nTlV3k37gSPHQGzmdqOm/GQ1i6HEcGZeJS3MfQHco/Q=; b=M5IpI7YRyKlWY4qBdZy1pKA9RYnZ+Ebe1N0CcXRXZlljjHQ4/zokdaM2NCNybfFofw lxmzOksfUzhLpcPbp+YuUqxl+teCZFbXQH+POfhpO/FOimCe6m+UAfM0ghM9ljIv6Xhm q0/JbWU8GqMIChOD0YZNK62Kfw/7SdPt9d/S0= 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:mime-version:content-transfer-encoding; bh=nTlV3k37gSPHQGzmdqOm/GQ1i6HEcGZeJS3MfQHco/Q=; b=vJFZAUXHAMTxUchKGpPGuIMPLr6Z8xUEIjKzC3hp+pm1BQuHYuh5q0uXgzopqPQFoV jwoHzRzPHiFMlXQVRO5O8MrTTG+ZI8RrrSQ+6WESRqtCoMH3ytcKzNPIhjzAJyLngGvb hkeg3pyU8S5g/c8QEDe+7uoXmTVUF72FUixbsZdza+z/WXi+j0OIuyEziw4tHXrZqV2U XpzV5hkxKV900JpyKJC3W5gPf5uPg2MgTi0WWHv/+mm8SfWo8782aT698sZ8KzhZliFE H1Vo+X+1hgYURcyZSMnAHhKfUCjyq8MvQulad28oTcw4pwqSVb6YYqNWziIxHSRGfDoB 7TIw== X-Gm-Message-State: AOAM531yV0chM7AG7yvTYNZG0APX1hNb4ewNzo+766gSDbuZrnncbCwQ SLen4G7hMK4p2HT7UTW0JkNyoQ== X-Google-Smtp-Source: ABdhPJwG98yng7p3MlBGXtlfXIidY+MiUfzYLK2chW7OnBZeCQhdaEAEQTFW4ym+ghAdjmC8mLTLQQ== X-Received: by 2002:a05:6a00:23d3:: with SMTP id g19mr1808125pfc.27.1644279449844; Mon, 07 Feb 2022 16:17:29 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:6c4d:c442:5b4:f597]) by smtp.gmail.com with ESMTPSA id mz4sm456185pjb.53.2022.02.07.16.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 16:17:29 -0800 (PST) From: Douglas Anderson To: Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson Cc: quic_mkrishn@quicinc.com, linux-arm-msm@vger.kernel.org, Sankeerth Billakanti , robdclark@gmail.com, quic_khsieh@quicinc.com, quic_abhinavk@quicinc.com, linux-phy@lists.infradead.org, Stephen Boyd , Douglas Anderson , Andy Gross , linux-kernel@vger.kernel.org Subject: [REPOST PATCH v1 2/3] phy: qcom: Add support for eDP PHY on sc7280 Date: Mon, 7 Feb 2022 16:17:03 -0800 Message-Id: <20220207161612.REPOST.v1.2.Iff75c0ea8499f0baf2aa5800f2c45c4128e2415a@changeid> X-Mailer: git-send-email 2.35.0.263.gb82422642f-goog In-Reply-To: <20220208001704.367069-1-dianders@chromium.org> References: <20220208001704.367069-1-dianders@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Sankeerth Billakanti The sc7280 platform supports native eDP controller and PHY. This change will add support for the eDP PHY on sc7280. Signed-off-by: Sankeerth Billakanti Reviewed-by: Stephen Boyd Signed-off-by: Douglas Anderson --- drivers/phy/qualcomm/phy-qcom-edp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index a8ecd2e8442d..21cafbb623f8 100644 --- a/drivers/phy/qualcomm/phy-qcom-edp.c +++ b/drivers/phy/qualcomm/phy-qcom-edp.c @@ -654,6 +654,7 @@ static int qcom_edp_phy_probe(struct platform_device *pdev) } static const struct of_device_id qcom_edp_phy_match_table[] = { + { .compatible = "qcom,sc7280-edp-phy" }, { .compatible = "qcom,sc8180x-edp-phy" }, { } }; From patchwork Tue Feb 8 00:17:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 12738021 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 57C61C4707A for ; Tue, 8 Feb 2022 01:06:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237026AbiBHBGe (ORCPT ); Mon, 7 Feb 2022 20:06:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343979AbiBHARc (ORCPT ); Mon, 7 Feb 2022 19:17:32 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D767FC061355 for ; Mon, 7 Feb 2022 16:17:31 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id e28so15886262pfj.5 for ; Mon, 07 Feb 2022 16:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=U33ZTHwgHmjIzYzVW35GSTUErZveTsvzYRI78IuL0pI=; b=PKAr0GJCu78ei+S4Lat41so9TQfJkESk2YAtsBLsuDgdCKYbchdWWZO0zcikvlM4qp SEL9aoQ+G7EDbuJwajYjmQXILX6hHHyQxcI3O/cOVfV8sA8Da7g621rfx5Mqzcf4Qh5D 6SNG+Ui/OunaDApsqN5YkvnAB5mfr8npQe+iw= 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:mime-version:content-transfer-encoding; bh=U33ZTHwgHmjIzYzVW35GSTUErZveTsvzYRI78IuL0pI=; b=u2jps74fEbSFlvHfW/pERXxhcn4vV84rdnoPm/thzWzY2HoZYzjeGbj6s9mOolrBbw X4ZvQYNng4WvhvidpAdyy8l8JT0dFbBSSeMsABDJxYt1RXV7uLCre8ZV6Iva4B3sRHO7 f/UTJFo0/KUUaczgf+6pyObLrZv3B31rZYxOdLE/hxijekMmS4YvFYhhNDImdujPCUrv ueWqVcptDGQesapCxlEAjp3jGpfzF9iOiY/cZCQOXo9sKqtDu0FCdBlnBJ5WKkr6f4wO rUSm0yZyxYmrwTT9PyBJm+J4rhQwmr+MKUMIoZmN4E6FBeNfEdzPw7XXrQuXHupoPgcP mejg== X-Gm-Message-State: AOAM532hiGfOgxVxjF6l5CixPreG2mIY8RFJx1SN98U2eAJIxF1YwJ/I fzwxHBdvNNurPXP35iOQpBwdcg== X-Google-Smtp-Source: ABdhPJyat6mgLk+B7LHmqgM/oZQI4LpOtABby6iQ3FD5YT8iXzyLG2E7KhwkS5O6kFxtifv6r+5mAg== X-Received: by 2002:a65:5801:: with SMTP id g1mr1479962pgr.43.1644279451436; Mon, 07 Feb 2022 16:17:31 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:6c4d:c442:5b4:f597]) by smtp.gmail.com with ESMTPSA id mz4sm456185pjb.53.2022.02.07.16.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 16:17:31 -0800 (PST) From: Douglas Anderson To: Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson Cc: quic_mkrishn@quicinc.com, linux-arm-msm@vger.kernel.org, Sankeerth Billakanti , robdclark@gmail.com, quic_khsieh@quicinc.com, quic_abhinavk@quicinc.com, linux-phy@lists.infradead.org, Stephen Boyd , Douglas Anderson , Andy Gross , linux-kernel@vger.kernel.org Subject: [REPOST PATCH v1 3/3] phy: qcom: Program SSC only if supported by sink Date: Mon, 7 Feb 2022 16:17:04 -0800 Message-Id: <20220207161612.REPOST.v1.3.Ie81d594ec2327dae6410db359cc492484bab171f@changeid> X-Mailer: git-send-email 2.35.0.263.gb82422642f-goog In-Reply-To: <20220208001704.367069-1-dianders@chromium.org> References: <20220208001704.367069-1-dianders@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Sankeerth Billakanti Some legacy eDP sinks may not support SSC. The support for SSC is indicated through an opts flag from the controller driver. This change will enable SSC only if the sink supports it. Signed-off-by: Sankeerth Billakanti Reviewed-by: Stephen Boyd Signed-off-by: Douglas Anderson --- drivers/phy/qualcomm/phy-qcom-edp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index 21cafbb623f8..cacd32f6e0cc 100644 --- a/drivers/phy/qualcomm/phy-qcom-edp.c +++ b/drivers/phy/qualcomm/phy-qcom-edp.c @@ -335,9 +335,11 @@ static int qcom_edp_phy_power_on(struct phy *phy) writel(0x00, edp->tx0 + TXn_LANE_MODE_1); writel(0x00, edp->tx1 + TXn_LANE_MODE_1); - ret = qcom_edp_configure_ssc(edp); - if (ret) - return ret; + if (edp->dp_opts.ssc) { + ret = qcom_edp_configure_ssc(edp); + if (ret) + return ret; + } ret = qcom_edp_configure_pll(edp); if (ret)