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: 152115 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1063673ljp; Tue, 27 Nov 2018 02:07:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/VPhRs5aSuXtN3NdCv+3gu9gtyaBEuZYzsn1vUAiGYWiXUbOkhnET1iKa03nohVOMKjwyYo X-Received: by 2002:a17:902:a83:: with SMTP id 3mr26228037plp.276.1543313274428; Tue, 27 Nov 2018 02:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543313274; cv=none; d=google.com; s=arc-20160816; b=WPL9RtvqICB9dyBtGHDtLKO2Stp2difY2WLo+00L9jJz/pTnv2kJQBupin5vtFsLsN 3WfCfdWGdu16DPkkd3jS7mJwRYpqs67ZXk2lVNMXI+rcAqVkwd6T77ioynXMj8CbF331 yBpVzl/k0Iy1mtUQZM7jUN8idWhIPtoX6GY/MW3FNYqDIhviCqLfN4b5v5P907tw+1pq L/NLVw9/CkCh5+teCD9fNChWfYKSsMfodFgGuhc10HW3+gZP4xouyUhsYL0bPM8Q4Ecy 6u+0orGxh/yziKeZrRm+p5lwEI96T5L5hx2RKLzENIZ27GTA4BiHg8mwIMYToh2lE2mE 2Fkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=l3hLvTtx6xtNQ2hZkfWDlWg7A5zQP7PjQIve/V9CR1g=; b=VMA/KxnlKDQt8FuC6NgHyLveWZ1gA/VPOyQk1fNWel1BpDSb1pQuMH9DQkXi4Dq0IZ 1OUMfZuVvCGm9EZVPjAwNq5SNgJlDjcK2pOAGJyE7Riq/9rzVpt01Iv2DCM0cNiaQrBl BnAxJxD/nZ26lBcgYa804tZuN5H+vZmL6oaelzvU2fbpUElqlTdruhj2vTmzwI8Ru4wH DC4zKBPwIf2Ad1ucaMgTyMdd98uD8OlPqmFzc9CuFn9y5qJoJ5XlDxffajAKcpC5sRW4 dGCwjtRG0jdGqIi7XhhE4TA4Keog6wEW5qj6gQo/I9LtJ/n5S5O1/j2qfdzYmE7q9tLo Q/Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GI8WIknl; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn7si3281567plb.321.2018.11.27.02.07.53; Tue, 27 Nov 2018 02:07:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GI8WIknl; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730498AbeK0VFP (ORCPT + 15 others); 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-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 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 -- 2.18.0