From patchwork Wed Jan 30 18:50:29 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: 10789147 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 10EEC1390 for ; Wed, 30 Jan 2019 18:51:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0105B2FB9B for ; Wed, 30 Jan 2019 18:51:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8B342FC69; Wed, 30 Jan 2019 18:51:00 +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 96DA62FB9B for ; Wed, 30 Jan 2019 18:51:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733267AbfA3Sul (ORCPT ); Wed, 30 Jan 2019 13:50:41 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37994 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733261AbfA3Sul (ORCPT ); Wed, 30 Jan 2019 13:50:41 -0500 Received: by mail-wr1-f68.google.com with SMTP id v13so633506wrw.5 for ; Wed, 30 Jan 2019 10:50:40 -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:mime-version :content-transfer-encoding; bh=ZpbNrACNP/GKX+WIXeaKSjWt/fW5blabksjd3PN5CXQ=; b=I8Vvc3JXEHAVndQQIv6NCfHM0FgWDmjbGfKo0mmcicM3yIc/5Mis5KyrYislXKaRxh XtKN3F6ZKekxbC2G5bOFps0byNiKLemvdPF3yE0BWrBzGfno63c+QQwm0kxTvL/BIN64 /7K6Jmm4XpiQvTpKd4MhEZ6ietMxdLHXv1IMI= 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:mime-version :content-transfer-encoding; bh=ZpbNrACNP/GKX+WIXeaKSjWt/fW5blabksjd3PN5CXQ=; b=OFoDP8dapPWMb2cDEeyVvUaTECRcqgSmiapTbXEVI60M61NFm6b/M/x83aggKHBhWR zYiQqyztPLgUGpDsSQ/tGmyW3NZhxJzF/uPF+8wVM0C6nYdwRYQILgQG9y2hejiSv0OL 6MsmPtZtzUpYA2OmTXZgt1PsarDxihWU/mw4grIUPgL5JWkOyaitZ3Oa4KJCVKHb9VG5 5jEwD3fwE+7OZR58zjYDBZ8011M2Uf/cQdmOtJP6dAoQGNzr/cKt0Ol6EZaROWhRKMgi LnX+xt59fZBbekjKmwdvsXzUFXXsyUhhsQgQRzWW0JHDRp8YCkJrwI0Zf6b4neqvHn/+ zTpQ== X-Gm-Message-State: AJcUukepEiRxymrTgoY7HB731SnkXexqRuugmzKjFNhk9pehkWJy+c8d opCJlCF/pWC+ZIUCTaXUN0jvog== X-Google-Smtp-Source: ALg8bN6bQZzv9WvL3Ik6oLTw5cHU/QqswgLIiqwZtDXfYEoC8t3WQ8Bz5lUpBofiFsCN4uG08JxP8w== X-Received: by 2002:adf:9b11:: with SMTP id b17mr31614979wrc.168.1548874239682; Wed, 30 Jan 2019 10:50:39 -0800 (PST) Received: from localhost.localdomain (99.red-79-146-83.dynamicip.rima-tde.net. [79.146.83.99]) by smtp.gmail.com with ESMTPSA id a17sm2802575wrs.58.2019.01.30.10.50.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Jan 2019 10:50:38 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@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, khasim.mohammed@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] USB SS PHY for Qualcomm's QCS404 Date: Wed, 30 Jan 2019 19:50:29 +0100 Message-Id: <20190130185031.24798-1-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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 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] v3: remove clk/regulator counters vdd constrains in device tree update error labels fix get_optional vbus allocate arrays statically fix typos in bindings [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 SuperSpeed PHY bindings phy: qualcomm: usb: Add SuperSpeed PHY driver .../bindings/usb/qcom,usb-ssphy.txt | 74 ++++ drivers/phy/qualcomm/Kconfig | 11 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-usb-ss.c | 328 ++++++++++++++++++ 4 files changed, 414 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt create mode 100644 drivers/phy/qualcomm/phy-qcom-usb-ss.c