From patchwork Thu Feb 7 11:17:30 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: 157695 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp516612jaa; Thu, 7 Feb 2019 03:17:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IamMvATkDidEEmNrVre3tl+AQAyL2JQqSOL7TmNp0ol3wyTpXWQX4Or/FxEI3zE4IXAksVT X-Received: by 2002:a63:2c0e:: with SMTP id s14mr14586835pgs.132.1549538262342; Thu, 07 Feb 2019 03:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549538262; cv=none; d=google.com; s=arc-20160816; b=P6/kurlFidh9dKXjrrcnKb25PMPobqUGyDEXWWq3cNDjICN6evUq4SIIaV4kBvxy1G Eu0cQ/1AsWMgvlXmk0dJeC3lw+ay4ko4DMGIvCdoWgi8Ep2jRqZ5ANUHZVArREx3Ks4E aVPjh32/7rSWgY1QjoQx3YA0fn0tmT19g506AtqybpAqWe3J4xhe/hQ2tepRp6eDvhdr yp0clcr7lQcHJ3OpSliU8zEYeqlB9hL37f54/QCg67lofrmZvr0Xmv4FaZEOQqYHtUof Uln5trWesuccPpwtwbM2k8ybvOXR1TYdmbKv72DwA5jjWxTCJV0UXuldWMy1tqVgeWTq MCNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TSwUXwstcS5MWZYT0KETNDOkJuSS6swPSFLDu7aeu/g=; b=jG1IqzTOcddg5GPnZMkvHD5LgroJrm33oPbzoGOt2OqfAgyCOSeI9ZRMxQK81PF1Fz FEBrXAA8YOh9FjfUo7degh60I2Zy1pxYZGDXcDSNXuwUiHemONd4wCM/FMZZeteIZvoJ 6m88LOrqHi0WOR0N6Y6xt79Tn0A+kLTULIQB7TqDOuYjTKagE69CviSAO4hl2c9HsVgk rSwAsPoueGYN7GeGbZzjan3phA93wTFci+bLJT78Nlto/w/VJlbs0QGtWadgNMTa0Ggt +h+HxOF8ZSvZuaB5OCWRPFnOXTUWqk60gkJFozlDsZ8k12mVEQYAcPVgKstMo36iSEWk NJ7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kn9CL5fJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 w2si1662399pfg.78.2019.02.07.03.17.42; Thu, 07 Feb 2019 03:17:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=kn9CL5fJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726983AbfBGLRl (ORCPT + 7 others); Thu, 7 Feb 2019 06:17:41 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:32872 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfBGLRl (ORCPT ); Thu, 7 Feb 2019 06:17:41 -0500 Received: by mail-wr1-f66.google.com with SMTP id a16so11144763wrv.0 for ; Thu, 07 Feb 2019 03:17: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=TSwUXwstcS5MWZYT0KETNDOkJuSS6swPSFLDu7aeu/g=; b=kn9CL5fJEF03kKdsiiWjtrbYh/EQ3PwowcBDMnq3ARppJstAw47yqeGmHewMvE8oX0 C4lKQg1MD+ydEH0Yl8brbE+V1rh/x6V6bkXTdisNeTcJXiqoafu2G+82hBsRJxh78MJh lb7WNfuGngQ8cDeanvnkx9c0P9yMB9hftMEzYUiAEfad0CdV18pseFQDaQTHkSu8GhPY BGeTGPdAADmjU5rOaT6eS7hcNUahGU+IiWl6l9VTIRkV6/wTj0pFM8/YRGkQo0zmXfUE PEKn56ILQoJIT2tsM73XRqD4BqvneIltz0zfNxkQG7o818TJoUFqMYQRpAEQcrGUpTW1 DCjA== 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=TSwUXwstcS5MWZYT0KETNDOkJuSS6swPSFLDu7aeu/g=; b=YIQGYn2kLXDQbDkBcO9ApBrUN/y9/Q0A+wI1hYZwqFwrwtH4a4s/gC60ywAP9TDUYX gsqfshuCqKomazpVDGb07U5Kxtq5waxQY17Jsp55M87q/RirjL1ACjWIAzxQPsYekRC3 Hf7yvaXjSzyuMvmzHEW8xY5s2EZ/+40o0EPWQZMxCIW6NpCeprBmJsfOf8bdZLEncZPd oH16VGtc0OUeLRCcqI/FH6JCfb3zCK8NLRtShrbw15dUkyGqzIpS5HcfTWwu2YqxC2WV X1Qrfzy0w3nQ4uZjtpins5vrMJY4c2dzZLe1AHSi7BqoBe4nuSnEpP09+VQYyDfv/ICa Uulg== X-Gm-Message-State: AHQUAuZ3vcl0ORr0LEeLoGkQabZD0T5yiZfgjj/BWuYXka02rbbQDPKE NDZ9wJ1o4QjOx4bYnpvGBsVVgw== X-Received: by 2002:a5d:4ecd:: with SMTP id s13mr3720855wrv.110.1549538259754; Thu, 07 Feb 2019 03:17:39 -0800 (PST) Received: from localhost.localdomain (42.red-95-121-90.dynamicip.rima-tde.net. [95.121.90.42]) by smtp.gmail.com with ESMTPSA id a62sm24490224wmf.47.2019.02.07.03.17.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Feb 2019 03:17:39 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, robh@kernel.org, bjorn.andersson@linaro.org Cc: swboyd@chromium.org, andy.gross@linaro.org, shawn.guo@linaro.org, gregkh@linuxfoundation.org, mark.rutland@arm.com, kishon@ti.com, jackp@codeaurora.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, khasim.mohammed@linaro.org Subject: [PATCH v4 0/4] USB SS PHY for Qualcomm's QCS404 Date: Thu, 7 Feb 2019 12:17:30 +0100 Message-Id: <20190207111734.24171-1-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 v4: dts: make compatible tag more specific to the driver define a connector node to contain the vbus regulator fix the resets definition fix example node remove unused binding (qcom-dwc3-usb-phy) connector: add optional property vbus-supply driver: vbus regulator is no longer optional [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 I chose to delete them for simplicity Jorge Ramirez-Ortiz (4): dt-bindings: phy: remove qcom-dwc3-usb-phy dt-bindings: connector: Add vbus-supply property dt-bindings: Add Qualcomm USB SuperSpeed PHY bindings phy: qualcomm: usb: Add SuperSpeed PHY driver .../bindings/connector/usb-connector.txt | 4 + .../bindings/phy/qcom,snps-usb-ssphy.txt | 79 +++++ .../bindings/phy/qcom-dwc3-usb-phy.txt | 37 -- drivers/phy/qualcomm/Kconfig | 11 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-usb-ss.c | 322 ++++++++++++++++++ 6 files changed, 417 insertions(+), 37 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/qcom,snps-usb-ssphy.txt delete mode 100644 Documentation/devicetree/bindings/phy/qcom-dwc3-usb-phy.txt create mode 100644 drivers/phy/qualcomm/phy-qcom-usb-ss.c -- 2.20.1