From patchwork Tue Nov 27 10:07:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10700025 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 6830413BF for ; Tue, 27 Nov 2018 10:07:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5794A2AC0E for ; Tue, 27 Nov 2018 10:07:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BE9E2AC16; Tue, 27 Nov 2018 10:07:54 +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 BFE432AC0E for ; Tue, 27 Nov 2018 10:07:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730498AbeK0VFP (ORCPT ); Tue, 27 Nov 2018 16:05:15 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44724 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbeK0VFP (ORCPT ); Tue, 27 Nov 2018 16:05:15 -0500 Received: by mail-pg1-f194.google.com with SMTP id t13so7626352pgr.11 for ; Tue, 27 Nov 2018 02:07:52 -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=l3hLvTtx6xtNQ2hZkfWDlWg7A5zQP7PjQIve/V9CR1g=; b=GI8WIknl+tHhB/ejbCmEwYy0ko1t3BslddN7Vejjbe0tJ0rkkYZWhAZmX5IMF/W9ib vjLi89i84taSNQyxWrh0CWFd2JxcgyOhmeU6r6d5luPw6PvzL+ZabhMUau4Av41uw6ty 1sPCYwzrACNPaID/vA/xwVm807aBcGSfb4DjU= 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=l3hLvTtx6xtNQ2hZkfWDlWg7A5zQP7PjQIve/V9CR1g=; b=MzfTr14Lgeiz260iP37uz2Wo5xWNP8QMjRZA45PiBH6L5vdEH0PFYOWeEt8ml4KEsr GdyufqL9spkUT6ugsbVEanrFKUBB8wI5ZdnWSSFOnl6eLl8yzdcCs9sJYWuSYWEBHE6e 3j4y3x2zAojC80anzAtLwFsWJNtK3SIfpflsRiMYP96kQLhJ82I6atWz7Pep1F0Lrmn1 BGaXTWKF+cFNR1VtyikZSFiSWccfK3sN8Tb4BmVP/7nSdzgxTMBeqXpGX9dJ7IRs9uyg 9l9Ebi+OTu9Bn75b79ky0zDOlt1vUF0cr92sBT6z2Q0RRObRfdPr7ZCyUduH4RSYwvlg zjTA== X-Gm-Message-State: AA+aEWYAfklGO9bD55TFCb7NgLnZLaq2HBSxDnXOwhmZvd8KOT6sYC9y hP7T0hTRReGTJ0SRpWUYDTSWxpgwAS8= X-Google-Smtp-Source: AFSGD/UcUSpsvfIpgU0cJgUyHC6XLjunqGJKT875ncpV5LGMLHF3TvkWf8jyroUM2QZgR0pUSfL62w== X-Received: by 2002:a62:5c41:: with SMTP id q62mr809602pfb.171.1543313271876; Tue, 27 Nov 2018 02:07:51 -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 y66-v6sm4006875pfy.24.2018.11.27.02.07.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Nov 2018 02:07:50 -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 v5 0/2] Add Synopsys High-Speed USB PHY driver for Qualcomm SoCs Date: Tue, 27 Nov 2018 18:07:20 +0800 Message-Id: <20181127100722.9993-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 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-snsp-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-snsp-28nm.c