From patchwork Tue Jan 29 11:35:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 10786069 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 C4B9F6C2 for ; Tue, 29 Jan 2019 11:35:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6A09289C7 for ; Tue, 29 Jan 2019 11:35:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA66D2B338; Tue, 29 Jan 2019 11:35:45 +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=unavailable 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 62AD5289C7 for ; Tue, 29 Jan 2019 11:35:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726923AbfA2LfV (ORCPT ); Tue, 29 Jan 2019 06:35:21 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54760 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbfA2LfV (ORCPT ); Tue, 29 Jan 2019 06:35:21 -0500 Received: by mail-wm1-f66.google.com with SMTP id a62so17442095wmh.4 for ; Tue, 29 Jan 2019 03:35:19 -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=NFHpMSLlTtGiK00UH+qqUo8z2oUdMcYvkTVCpigpA7I=; b=HDUpzE1NgNKjdsPmb5TS0IZiPnerLAb3UiWYUn1v3YguBkEvphCGQ+bBSdaC4kgg9z 0/VTw53yaztyQpPjbYR92LL9yR2Z5Ah6jhMuQ+UGfIz9iOC3VlCP4XdASXZBURIFlfze TRr/dgzPiP6OQOIPe8cFfIz7P17p/VEGckJ7k= 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=NFHpMSLlTtGiK00UH+qqUo8z2oUdMcYvkTVCpigpA7I=; b=laSlcyLYK6+BZC6+RI1HG3tdhE0o7Yxrztf9bu2MMgDm1P4M7K/xpa5S38o2b8mYR5 kZkQs4fg3fbwwrpPtMX4blrXToDWopkm8Gu2if570yhBONzIQ4VPzFTPEaVkSYQa0Fzs p47V3uIdNx+MJ/4Pmqlr/dp/P2UXgRczRulySyw6C8BWTdL7VRxYB1k31TeYRS8UoVAc nu184mQcrmghdLgoHlasFnxJcOzzS4MI4mrEvxJg0PCrvhkmFWL0ce9aT7wa1gSRgpAW kNpChX2sfqqUG4F8GNGtfI7EME38xfSsK+Y19cWSOEdADbOkyCnFneo4rV44NiRIJAL6 tHwQ== X-Gm-Message-State: AJcUukf0O+dzBYwm+M4aOP995sa4EJeGfjFE4f+43qjABlb3ncukY1GC uz0Vy2ok8/p5W1GfCsGEdv+FyQ== X-Google-Smtp-Source: ALg8bN5QEnvmAi7Y1KyHyRmrB0L9BVh5IljLopTV18ZaYb4ehz4WJUqv5971II3qOUD/AJGytxFKCA== X-Received: by 2002:a1c:2c6:: with SMTP id 189mr20272610wmc.21.1548761719213; Tue, 29 Jan 2019 03:35:19 -0800 (PST) Received: from localhost.localdomain (233.red-81-47-145.staticip.rima-tde.net. [81.47.145.233]) by smtp.gmail.com with ESMTPSA id i192sm1960129wmg.7.2019.01.29.03.35.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Jan 2019 03:35:18 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, gregkh@linuxfoundation.org, mark.rutland@arm.com, kishon@ti.com, jackp@codeaurora.org, andy.gross@linaro.org, swboyd@chromium.org Cc: shawn.guo@linaro.org, vkoul@kernel.org, bjorn.andersson@linaro.org, khasim.mohammed@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] USB SS PHY for Qualcomm's QCS404 Date: Tue, 29 Jan 2019 12:35:13 +0100 Message-Id: <1548761715-4004-1-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 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 This set adds USB SS PHY support to Qualcomm's QCS404 SoC The PHY is implemented using Synopsys SS PHY 1.0.0 IP The code is losely based on Sriharsha Allenki's original implementation. v2: enable OTG mode detection move vdd voltage levels to driver use bulk_ control interfaces ss-phy-bindings [1] [1] ss-phy-binding discussion: - qcom,dwc3-ss-usb-phy exist for a generic usb2/usb3 phy driver that was never merged. Rather than trying to re-use these bindings (or delete them) I propose that we go ahead with the new separate bindings for HS and SS: if not now - investigation in progress- in the future it might be possible to have again a common phy driver for which these old bindings would be the binding agreement. Jorge Ramirez-Ortiz (2): dt-bindings: Add Qualcomm USB Super-Speed PHY bindings phy: qualcomm: usb: Add Super-Speed PHY driver .../devicetree/bindings/usb/qcom,usb-ssphy.txt | 73 +++++ drivers/phy/qualcomm/Kconfig | 11 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-usb-ss.c | 347 +++++++++++++++++++++ 4 files changed, 432 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt create mode 100644 drivers/phy/qualcomm/phy-qcom-usb-ss.c