Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp127495pja; Thu, 9 Apr 2020 15:56:41 -0700 (PDT) X-Google-Smtp-Source: APiQypLD/tgccvZZIBbagP4rewHkiDLebN/cIBIpAd/VfvTwuNeg6co+SX+K8V57orfIBiQ5V4ih X-Received: by 2002:aed:2625:: with SMTP id z34mr1823836qtc.70.1586473001637; Thu, 09 Apr 2020 15:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586473001; cv=none; d=google.com; s=arc-20160816; b=XYPPSWZ7zOu2iXIRor3aFPbGE2rQ8TKEuOI7QQKHrtIJZezgy3wmx1oGxPgbszSSDs ohsDpc83oefCuDsGgs7VHHk2PrRlOy0bmyKWn9yAleZQMo9gYocHKx/RlZuVOF/Zgw82 jp05XgV4tSdQuyhN7I98TqyAnR5SO53UZyOK30DLurlTyQNwyMfRZVGrwRwCjBmrE+q1 SlywomUpwOnIsxqJpIlKmSlDS9J71ZuQh0zTAThd9npLBsjEz5e+WE1ImWPGhwSRBCSa WADzR7CGQZ5qDUOXQlmzyGZ6qCAN5JoXC8xGnMzhDzZcomkwqKLk0lXYMDR3424Kd10I cZrg== 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; bh=4VHVn9nVFsUQOnjsMQdKD/QU88hkBjHogDQBbcbmW8I=; b=JhNMZnpIl0tiV5z5NQ+5Bor4UAfujDlr1Lj7hd+WrPPawfR1NriD0poM+E0gNeozn1 Wv5SzlNG1l91gP0Lkx8ZHtzGdqdqLP+SqKCmNLb7oEdFof9PPWYTrCTaO6y6t3T+B44g B2mzKv/6UJe2SUoi7D5F/yGBG8fvkh+YBDMePJ6XryNHaRskrBo8THoonenKWWXE+3ED IbB3RaBxj6XVyzsJyTK2X3f3BmwylhrHOkgXaf1H6K2fbMxsTSzTaMi/5QRIH/LW1Wo/ A7mt1Asnn17jf7FDHnkNy/m3waMpngDVl0P3CupfX9xXqw95wZLQb6cpCO4FPc6Lswf3 w2/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=YqtRTHir; 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 1si12382qvc.166.2020.04.09.15.56.26; Thu, 09 Apr 2020 15:56:41 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=YqtRTHir; 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 S1726722AbgDIWxA (ORCPT + 99 others); Thu, 9 Apr 2020 18:53:00 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:51121 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726933AbgDIWwm (ORCPT ); Thu, 9 Apr 2020 18:52:42 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1586472762; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=4VHVn9nVFsUQOnjsMQdKD/QU88hkBjHogDQBbcbmW8I=; b=YqtRTHirIkJqSuHlHWn2Bc+2J+5a695cTEhODTOIlOU2N2OlzPD73NH016ZjKVLBEF+60gEs YS1C5LaGgf8YVgGYz9QUWAy7Nw03fAH301FwZCkhVCLKnBY4vPQgBEGKdd+ft8u5yJefTFPJ svmJheshrU97T/yNIueVxKLzgG4= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e8fa734.7fc2fd9e6810-smtp-out-n04; Thu, 09 Apr 2020 22:52:36 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id AA462C44788; Thu, 9 Apr 2020 22:52:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from wcheng-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wcheng) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9F809C433D2; Thu, 9 Apr 2020 22:52:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9F809C433D2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=wcheng@codeaurora.org From: Wesley Cheng To: agross@kernel.org, bjorn.andersson@linaro.org, kishon@ti.com, robh+dt@kernel.org, mark.rutland@arm.com, p.zabel@pengutronix.de, mgautam@codeaurora.org, vkoul@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Wesley Cheng Subject: [PATCH v6 0/5] Add SS/HS-USB changes for Qualcomm SM8150 chipset Date: Thu, 9 Apr 2020 15:52:24 -0700 Message-Id: <1586472749-18599-1-git-send-email-wcheng@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 This series adds support for the Synopsis 7nm HSPHY USB driver being used in QCOM chipsets. The HSPHY register map differs compared to other PHY revisions. In addition, modifications and updates are done to the QMP driver to add new registers/offsets, and to update the initialization sequence for enabling the SSUSB path on SM8150. Changes in v6: - Addressed coding style errors in phy-qcom-snps-femto-v2.c Changes in v5: - Reorganize IF check for when to use the proper PWRDOWN CTRL offset - Rename UFS specific offset definitions in the QMP PHY driver to clearly denote they are UFS specific - Rename the phy-qcom-snps-7nm driver to phy-qcom-snps-femto-v2 Changes in v4: - Fix POWERDOWN offset for QMP PHY exit routine, and check for has_phy_dp_com_ctrl instead of !has_phy_com_ctrl Changes in v3: - Use devm_reset_control_get_exclusive instead of referencing index for reset handle Changes in v2: - Fixed YAML errors caught by dt_binding_check Jack Pham (1): phy: qcom-qmp: Add SM8150 QMP USB3 PHY support Wesley Cheng (4): dt-bindings: phy: Add binding for qcom,usb-snps-femto-v2 phy: qcom-snps: Add SNPS USB PHY driver for QCOM based SOCs phy: qcom-qmp: Use proper PWRDOWN offset for sm8150 USB phy: qcom-qmp: Rename UFS PCS QMP v4 registers .../bindings/phy/qcom,usb-snps-femto-v2.yaml | 77 ++++++ drivers/phy/qualcomm/Kconfig | 10 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-qmp.c | 193 +++++++++++++- drivers/phy/qualcomm/phy-qcom-qmp.h | 238 +++++++++++++++-- drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c | 296 +++++++++++++++++++++ 6 files changed, 779 insertions(+), 36 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml create mode 100644 drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project