From patchwork Mon Nov 19 11:08: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: 10688509 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 63F7014D6 for ; Mon, 19 Nov 2018 11:08:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 514F12962F for ; Mon, 19 Nov 2018 11:08:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43FA429636; Mon, 19 Nov 2018 11:08:50 +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 D9D672962F for ; Mon, 19 Nov 2018 11:08:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728547AbeKSVcG (ORCPT ); Mon, 19 Nov 2018 16:32:06 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39827 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728546AbeKSVcG (ORCPT ); Mon, 19 Nov 2018 16:32:06 -0500 Received: by mail-pg1-f193.google.com with SMTP id w6so1436572pgl.6 for ; Mon, 19 Nov 2018 03:08:49 -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=hcrTEn3IZek4MtdyEmTE+H8Qe3S1camCgGNvKmUVN5g=; b=HgMDSgz7lIVkinQSPRcD0hc7uKMliZQy2dYzUBwzn50T/gCRORyT1jXm6M60h9IFFE W41VZW5kwuIinDWx0EpVvKWP0N1ift1G4vn26fAJa1NVA0TrqGhqpvMONck5xLXZRtVu SjXxfQ94tbKbJKEUe7m13/A6YWdmSfo7oAJ+M= 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=hcrTEn3IZek4MtdyEmTE+H8Qe3S1camCgGNvKmUVN5g=; b=FKr+YKf7G/Uh4TeBFs8usG82wvkLZtvZqQhR+ChAbcf8gX60OZUdsAhskFCbUsNKte MJP+wTEpWt0cFr4zhaY9yihnPAxXG80XaPzMJ36J51F6ABME+wc88CSAP81djt/JaJAF JuGSWE54NSwNeRS7Kip9gJR0kU4NCqSszg60CgPdch07RnxPMRaE9rsLSFxy+BfQqwOW 8Gh6t/FCT2txM87Y+Pacf3m0O+GvIynfZNVRQfNyPVZFcrRjLTkzAQJjBu4KtRotGZfp rxVrzgR5pY+ate7heajuF711cQvhoDRuHpenNYR1N1HhIEi4MOOA8GR8eZcABP6x6X50 pwtw== X-Gm-Message-State: AGRZ1gLuv2VJpGKwVRh//daG7Oc30xZYq+gqZKZ+dgjn09UXB5dRkSAO XoVy6+sjk05/HpdilO4Smp5bXg== X-Google-Smtp-Source: AJdET5d5xxObNJZbrcPazy5hRYcV7QKciHdrN370vaxeI4POrOkFjT//0qHX4PcmI4RBjzf6s47LHg== X-Received: by 2002:a62:a511:: with SMTP id v17-v6mr22366371pfm.18.1542625728236; Mon, 19 Nov 2018 03:08:48 -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 q25sm43906934pgb.2.2018.11.19.03.08.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Nov 2018 03:08:46 -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 v4 0/2] Add Synopsys High-Speed USB PHY driver for Qualcomm SoCs Date: Mon, 19 Nov 2018 19:08:10 +0800 Message-Id: <20181119110812.15825-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 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-snsp-28nm.c | 535 ++++++++++++++++++ 4 files changed, 633 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