From patchwork Fri Nov 16 14:55:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10686413 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 60F60109C for ; Fri, 16 Nov 2018 14:56:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CB792CCFC for ; Fri, 16 Nov 2018 14:56:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F5EC2D123; Fri, 16 Nov 2018 14:56:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C105A2CCFC for ; Fri, 16 Nov 2018 14:56:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728481AbeKQBJD (ORCPT ); Fri, 16 Nov 2018 20:09:03 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46048 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728425AbeKQBJD (ORCPT ); Fri, 16 Nov 2018 20:09:03 -0500 Received: by mail-pg1-f195.google.com with SMTP id y4so10705426pgc.12 for ; Fri, 16 Nov 2018 06:56:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=WSirrXbsFxARB56mv91wGf6iKQQ0otMzx5RVBqcCFzo=; b=j+0K6lJzduFb6jufCD4Qr/NMbxESt+I21rpfmJ+UFdaS1hK9MQiHT4M2/A8VeZd3o+ PQMl6WD2eSRYSBFIHcQKxcuW9J0mcbxD/squkxOWW5XSqyzaubltiztkGKCcS2oZ11/K e0F0MlUrVAVtUTP3vh1diEuFjZD413NdOT2/g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WSirrXbsFxARB56mv91wGf6iKQQ0otMzx5RVBqcCFzo=; b=BSniwhwW8DF6ZZMZQFPP+fKeFHhLBz7+76OWetg4+Yv+F4+GZelEYw2ef2m4M2CR6P T7FqZ4jGoKKOZzCd9ta9KL+qKokU7TbsMiUDwIFbOfizCmNd/J2MpS9mlEYjgwXebWfj gXFH4RaKaBa9t++p6qjV9x9kp1B8JMLfBqn778n0bEW6AA1yXF6z1xpM1t6l04Ac0cIa /7DJd7NEWKZDOZhZ+78hmAhkBsgZUlDdZPv9/PazWcyWJeTRulDC4RUDOmUGd1BcLNkp ydkQKsYZPUVMcTpvMeL+fm9A/+p61/Kq0zxqByeyC163xJ8Vxx+kj8EdN77OIyZm4nwc kBTQ== X-Gm-Message-State: AGRZ1gKls11/r5i0BNtz+7yHPtSNZIfnjDvAaKD6aQAZfAZr4eTJNCPr pJ3UWam88z4Ff6UGQTBm+GSLHg== X-Google-Smtp-Source: AJdET5cMri/SoXgCeGynbZ8KkXJ4iBl8wocvmFyId9UIaZ60eB/9xiPBv48XwffILPgomSY7Rrg2ZQ== X-Received: by 2002:a63:5b48:: with SMTP id l8mr10298980pgm.80.1542380181149; Fri, 16 Nov 2018 06:56:21 -0800 (PST) Received: from localhost.localdomain (61-216-91-114.HINET-IP.hinet.net. [61.216.91.114]) by smtp.gmail.com with ESMTPSA id u6sm31591670pgr.79.2018.11.16.06.56.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Nov 2018 06:56:20 -0800 (PST) From: Shawn Guo To: Kishon Vijay Abraham I Cc: Rob Herring , Sriharsha Allenki , Anu Ramanathan , Bjorn Andersson , Vinod Koul , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH v3 0/2] Add Synopsys High-Speed USB PHY driver for Qualcomm SoCs Date: Fri, 16 Nov 2018 22:55:57 +0800 Message-Id: <20181116145559.31876-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It's based on a downstream driver from Sriharsha Allenki that uses USB phy framework, and gets rewrote to adpot generic phy framework together with quite some cleanups. Changes for v3: - Use SoC specific compatible "qcom,qcs404-usb-hsphy". - Use OF graph instead of extcon bindings to model the link to USB connector. Changes for v2: - Add a pointer to phy/phy-bindings.txt for property #phy-cells. - Roll back voltage settings in case function qcom_snps_hsphy_config_regulators() fails in the middle. - Add a comment for init-seq tuple which consists of 3 numbers. - Sort include headers alphabetically. - Sort register definitions in order of offset. Shawn Guo (1): phy: qualcomm: Add Synopsys High-Speed USB PHY driver Sriharsha Allenki (1): dt-bindings: phy: Add Qualcomm Synopsys High-Speed USB PHY binding .../phy/qcom,snps-28nm-usb-hs-phy.txt | 108 ++++ drivers/phy/qualcomm/Kconfig | 10 + drivers/phy/qualcomm/Makefile | 1 + .../phy/qualcomm/phy-qcom-usb-hs-snsp-28nm.c | 513 ++++++++++++++++++ 4 files changed, 632 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,snps-28nm-usb-hs-phy.txt create mode 100644 drivers/phy/qualcomm/phy-qcom-usb-hs-snsp-28nm.c