Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2603772pja; Thu, 2 Apr 2020 19:24:47 -0700 (PDT) X-Google-Smtp-Source: APiQypJzUopkS0NJNK54wkHCKKxhKYmsEWUe/acgFjzLW/ICxv9DPIZ2nqBEepnw17yACyPstqlP X-Received: by 2002:a05:6808:b3b:: with SMTP id t27mr1532144oij.5.1585880687670; Thu, 02 Apr 2020 19:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585880687; cv=none; d=google.com; s=arc-20160816; b=YwPdNyQBwjQaHWpUMuCqWyPlmt6f0rEYQGyuXaWXxshwlId5IxM65Co5+FR/DNX7+x Z2MptPqyWvzxV/UA1tFtuMEQlloG9DOO1Z4cgi3VuDiJdPn/vxHDZ9CaG8gQ3NGybZ2O gEvIFAMHEQYOhNfHSGrPdWZAMeK2XCubeLSqqkeEAiSBMavOU91392SlX9RQTfkUyUut xgxFLA6qzFVMxYGcVJxWy+ajWPYTbRfFGMnK538fbfOXPYFs9VFuygP/hoTyyWdRiiHV r6JOeWIg/Cw9EFoBjX72/jSwPQ4kYYkwxH4WH/h+HNgwB2TpngWPD+IaICOO2dqZa2WT U3lg== 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=DMURI7uSqquMZ4DFgynEvf92DjLWrulMRmZyai24vI4=; b=02FpyHxYsCe91YfHnaoAMa9kkdwU7YuPjc8ldf+2UkgAeEkNnNt9ZXOGVwYZHYf6h+ hBo1WJRgV1MNVQOZE7V48/E2Hx7Fa5tYMqkFPgb4DKyA7dkRkxyA9oHveXG+/sg2inDF /LUWPu7QNp9H3lLJ4wqZAUSVJIS2TSNZDrKeVfGTrnSJXpCcHry3BVzXWQ1oqsmhEciQ SmkrQKRYIG0Zdo+QEjmp9sMIaa1CQ+7BKiZtMcjwSi1wfH8fL+YOJnoGspRm/vynDHU8 DqsPxRwRri8c3DCx55BtZHWykT9yOEzJmz5zYmn8z6g5iPc3Go+4E649Rm5LwhvHEHKK Rvhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=HDm78rO8; 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 r205si3089932oig.174.2020.04.02.19.24.34; Thu, 02 Apr 2020 19:24:47 -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=HDm78rO8; 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 S2390177AbgDCCYJ (ORCPT + 99 others); Thu, 2 Apr 2020 22:24:09 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:26396 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389171AbgDCCYI (ORCPT ); Thu, 2 Apr 2020 22:24:08 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1585880648; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=DMURI7uSqquMZ4DFgynEvf92DjLWrulMRmZyai24vI4=; b=HDm78rO8nhfBStErDPfd0JEEvF6HLLzJwE4lyRU1lH/pwhM8pv3lX0gGROfmkRvj5vtWf0DX eDJTte7JTnLcOTlD3bnY20vGRJkuBLiYX921Ii5aFIpFoWbPwr928BGKT9x8priwbjLS5UJ7 qUm2lq4nXeBtbT+iVwWWv4H7q8g= 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 5e869e47.7f5db41e77d8-smtp-out-n03; Fri, 03 Apr 2020 02:24:07 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 39234C4478F; Fri, 3 Apr 2020 02:24:07 +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 0EDA8C433D2; Fri, 3 Apr 2020 02:24:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0EDA8C433D2 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 Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Wesley Cheng Subject: [PATCH v5 0/5] Add SS/HS-USB changes for Qualcomm SM8150 chipset Date: Thu, 2 Apr 2020 19:23:49 -0700 Message-Id: <1585880634-15222-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 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 | 297 +++++++++++++++++++++ 6 files changed, 780 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