From patchwork Thu Dec 20 01:01:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10738417 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 12DC46C5 for ; Thu, 20 Dec 2018 01:02:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4AA32851B for ; Thu, 20 Dec 2018 01:02:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3C50285F0; Thu, 20 Dec 2018 01:02:39 +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 78A1F2851B for ; Thu, 20 Dec 2018 01:02:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729043AbeLTBCd (ORCPT ); Wed, 19 Dec 2018 20:02:33 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45535 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727387AbeLTBCd (ORCPT ); Wed, 19 Dec 2018 20:02:33 -0500 Received: by mail-pf1-f195.google.com with SMTP id g62so15401pfd.12 for ; Wed, 19 Dec 2018 17:02:32 -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=UThqOMSj/e32khQsvP+4qgV2MNKq1vax+X8KO/NkEnw=; b=KBWJRoI7dQlfaCd75ztTRWpVcrwXoKWiwYq9iDR55ZVrPL4jnRPD6KzJw6Yd3/3zdl rrtRtbVsiFp4Pem7I/ebH5DydGDjqM0q7P/baeGH27wFO77IeRG6F71u1Rgvh9ats4ip mYmmwe4S5rc15iq1nl0FXO0XZAn5YB4/qp1X0= 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=UThqOMSj/e32khQsvP+4qgV2MNKq1vax+X8KO/NkEnw=; b=QHd/Z3a69YQLhhMVzGmEh5YhsHOsqmK7e9T280VEMrZib/R8ROp1wxVe8FyAZ05DAg eih97iTXSdhNFn35WUdoC3ac4+aXQkH7RcOnlaSI2aqWnvyTpy+XOdWd/qv3G1XAqXQx TOIBt44yeiqzod3pj/8GmHZm3BWXj2B8eHiUWT0BvnZ6cP7WwVb6kM0hCPKVDe2KVEHK YOxOyYkrEsJ8EX5quZ6TkrSmSwmEFDe83kJIi1WnyyE6L7bw4Z+RbIThp+/3u9agair0 +CU/mhUSoJiUdkt1fAsD0o1DXkrSHUW43TeA/pVlRvUwsD89JE6YQGSWdg7xNTKz/MwR XTsQ== X-Gm-Message-State: AA+aEWbeGE73LpHwcdE8KY4s+sEqmzJagZJcMG4RY6JV5miom/H3ywPr ogjrDVdSylZAMh/8bu+SXTJl4g== X-Google-Smtp-Source: AFSGD/V2uUN5i5lTJ+JmC3TovgCNfPIn/LRCyQlq4hWc86BBX5n3wUj2x4foRueFE/xlE3UBzCnPRg== X-Received: by 2002:a62:42d4:: with SMTP id h81mr22420635pfd.259.1545267752568; Wed, 19 Dec 2018 17:02:32 -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 e16sm25334392pfn.46.2018.12.19.17.02.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Dec 2018 17:02:30 -0800 (PST) From: Shawn Guo To: Kishon Vijay Abraham I Cc: Rob Herring , Sriharsha Allenki , Anu Ramanathan , Bjorn Andersson , Vinod Koul , Jack Pham , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH v6 0/2] Add Synopsys High-Speed USB PHY driver for Qualcomm SoCs Date: Thu, 20 Dec 2018 09:01:10 +0800 Message-Id: <20181220010112.16824-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 v6: - Fix the typo of "snsp" in driver file name. (Thanks Jack) Changes for v5: - Drop mb() call from function qcom_snps_hsphy_init_sequence() and qcom_snps_hsphy_por_reset(). Changes for v4: - Kill device tree property 'qcom,init-seq' by moving the settings into phy driver as device match data. 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 | 87 +++ drivers/phy/qualcomm/Kconfig | 10 + drivers/phy/qualcomm/Makefile | 1 + .../phy/qualcomm/phy-qcom-usb-hs-snps-28nm.c | 529 ++++++++++++++++++ 4 files changed, 627 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-snps-28nm.c