Received: by 10.213.65.68 with SMTP id h4csp1396908imn; Thu, 29 Mar 2018 04:07:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/4POpl0Z/kap8rbeiMX299Ug7zw8PpBXPDrv558lX6IQ6lsht1wqGPdTU7h44xKLoHTcHW X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr7906961plo.162.1522321635631; Thu, 29 Mar 2018 04:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522321635; cv=none; d=google.com; s=arc-20160816; b=nHJwyjq7lvJbRddSljatTPb+JtwNAC6z9VGiMSSLOimMZ3CEMXw++ENDgZFJd1rZz1 H0ircbQsDz0y/ujHjpgDAvXwykfk7u9G2FoKKDrX9lRiRXQ+Hx+2h+HjwkQt5yIUvcVS HwwrGSnQjl4tpWVgM9IpcOF0xWrxlAQZig/hP5ZQQQDNdhEwvAfPaXnc8jpSmoNmsVgQ 7hB8HpT2DD0cZTPaBvWW6gSljNgscSKPeKWu7IbWSYqc0mTBuY/fu0jFGl3pDpZMv5Ph tzuBpt9mk8zRPZvzCkESO+k30vC4R7QM5F4zLBNKZtKOrdrT0wYNDQnUJ+bTG047MGRu a7XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=p8p3l9kQeJ6tq61woIxTZbO8qaNE/GYE0lw4ctMkcOs=; b=c3VDMxbkTFcZqKNRMxbEkKxL6MFTBwz/HLXQXDipXPkqImD5D8pAy0jM0IFPOd7dYY FSaG0BEMe+2cJ7zE313ROG34/S+1UYlknY0WIWbTXd14wguOpkCWkHauLYc2M4DMmhy7 FGw7FN8nhGku790Q+lB+AhCSGBlPju6jGEFzLK786UoKB7PLWinAHezmFc/bqtpM2bJH cZ+bZszOu3aCbSNRq66FUenlZVmarpqlCz/tHhDjsR3sYCnH1AeE68iMRGGLLudn+0GL TK9546o6EMPHK6S65vKtmyxR6Ylaod3/vOYq2dwOns3dRCjntsox54ip9LeUMSV5PX6o /eZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=dNsP0XSR; dkim=pass header.i=@codeaurora.org header.s=default header.b=dNsP0XSR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si3882772pgr.603.2018.03.29.04.07.01; Thu, 29 Mar 2018 04:07:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=dNsP0XSR; dkim=pass header.i=@codeaurora.org header.s=default header.b=dNsP0XSR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752319AbeC2LFx (ORCPT + 99 others); Thu, 29 Mar 2018 07:05:53 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43040 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751182AbeC2LFu (ORCPT ); Thu, 29 Mar 2018 07:05:50 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DE09060F6B; Thu, 29 Mar 2018 11:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522321549; bh=hof7TSHaXjauMOkR/5L4fkpDtO+vli0DEv0ei17clDU=; h=From:To:Cc:Subject:Date:From; b=dNsP0XSRhxxs8gDXPkqJNtj+rZWHsug/tdC3U5aqafHLkDv/3nVqgtNVJwUckWvrV ZMxuiPjKOkeEWTiZ0ZI+7tPsuGemm0kkFmNQwpEO4ov7OkO/lOkwNPkcIPjB8zH2Rm NfltvczSU+1W1aGsnpKzBcwFzkPxoIG3GQJQOxOQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mgautam-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5C82C60C66; Thu, 29 Mar 2018 11:05:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522321549; bh=hof7TSHaXjauMOkR/5L4fkpDtO+vli0DEv0ei17clDU=; h=From:To:Cc:Subject:Date:From; b=dNsP0XSRhxxs8gDXPkqJNtj+rZWHsug/tdC3U5aqafHLkDv/3nVqgtNVJwUckWvrV ZMxuiPjKOkeEWTiZ0ZI+7tPsuGemm0kkFmNQwpEO4ov7OkO/lOkwNPkcIPjB8zH2Rm NfltvczSU+1W1aGsnpKzBcwFzkPxoIG3GQJQOxOQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5C82C60C66 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mgautam@codeaurora.org From: Manu Gautam To: Kishon Vijay Abraham I , robh@kernel.org, sboyd@codeaurora.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, vivek.gautam@codeaurora.org, evgreen@chromium.org, dianders@chromium.org, linux-arm-msm@vger.kernel.org, Manu Gautam Subject: [PATCH v4 0/7] phy: qcom: Updates for USB PHYs on SDM845 Date: Thu, 29 Mar 2018 16:34:19 +0530 Message-Id: <1522321466-21755-1-git-send-email-mgautam@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SDM845 has two USB instances each with QUSB2 and QMP PHYs. One of the QMP PHY is USB-DP (DisplayPort) combo PHY where as other one is single lane UNI-PHY (without DP support). Changes are related to PHY configuration for electrical parameters tuning to improve eye-diagram and some fixes. Changes since v3: - As per Doug's review comments added device tree parameters to handle board level differences in PHY tuning values instead of adding separate device tree bindings. - Replace PHY version specific bindings names with SOC name as no one is going to use generic binding names. - Update halt_check to not check for pipe clock status that allows to simplify pipe_clk handling in QMP driver. Changes since v2: - Use separate phy_ops for USB to not register power_on op. - And other minor changes as per review comments from Stephen. Changes since v1: - Updated qusb2 compatibility name as per comment from Vivek. Manu Gautam (7): clk: msm8996-gcc: change halt check for USB/PCIE pipe_clk phy: qcom-qmp: Enable pipe_clk before PHY initialization phy: qcom-qusb2: Fix crash if nvmem cell not specified dt-bindings: phy-qcom-qmp: Update bindings for sdm845 phy: qcom-qmp: Add QMP V3 USB3 UNI PHY support for sdm845 dt-bindings: phy-qcom-usb2: Add support to override tuning values phy: qcom-qusb2: Add QUSB2 PHYs support for sdm845 .../devicetree/bindings/phy/qcom-qmp-phy.txt | 3 +- .../devicetree/bindings/phy/qcom-qusb2-phy.txt | 19 ++- drivers/clk/qcom/gcc-msm8996.c | 4 + drivers/phy/qualcomm/phy-qcom-qmp.c | 169 +++++++++++++++++++-- drivers/phy/qualcomm/phy-qcom-qmp.h | 5 + drivers/phy/qualcomm/phy-qcom-qusb2.c | 116 +++++++++++++- 6 files changed, 298 insertions(+), 18 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project