Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp220405imj; Thu, 7 Feb 2019 03:18:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZaK3FbMLaYFQWgubwIRKBRJDguy6j5h+G1o/rl0Elj1hlU/Dh8Ihm+752jUA9jTjw7Vtkb X-Received: by 2002:a17:902:6b87:: with SMTP id p7mr16119401plk.282.1549538289102; Thu, 07 Feb 2019 03:18:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549538289; cv=none; d=google.com; s=arc-20160816; b=RCIXCVm4ckb7pY/hyQaZCOGhlhTI6N0J+0hPcEG7QdvU5urQOGSmjSNP2UxbJevSGO 2thk5sk5mmMtfo0gZRMFj7sGkugQTNPimh8L4IA/U9m3f/qBHDfbVSPhQ+Q+Kvy/Ml4w jw7sFgI5FQKWKUSY4He4FMMpgWEmnDG9jEacCD6F4gHsMGzwax2Pyh8ZG7h5+olrgvyM TEbLbamuNqtgr55T6UAOsEay6zu905P0FvS97SrfvTgB5rILdGEe9ooBR+P6nZQYYb8Z 0IlTS8de7XCdWlsOSqnnlMt1VRgnZuHs3k9nQH4PKBngA/R8cdyXFaEvBMaImU1MKhGW OJvA== 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=vrE26VnDDtO29TV9l3y097x+8E+genBaxNSqAUFza5EhGUcLXn11kHFvFtwzqFBB+F dK6Yrf95ofklq1eqRpNOLBkZVcjskPZPptsF3xQnSxlCLEbeLIBwldhQdfMIP0hp62ZQ +Ld/W4Ogd/NTJPXhK62OCpSZtX5GH7Lc0uwhSt2ck02SzrCiJbtUvOO8MPEtAhMQWdTs 15rH7JhMvRsbPrRYeX+yq5UZ1v7B+pjRjhCkMVB0i3M2pKEvcuC7AvmpZ24cvRMgGqmV s2B7HCEFnvu2v+hhWAOQ9kukO60JtqXMT1IYmTXAstzjWu9b1mTNuncvEuqHoNRHazfg kV4A== 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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 g187si8528956pfc.43.2019.02.07.03.17.53; Thu, 07 Feb 2019 03:18:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727078AbfBGLRl (ORCPT + 99 others); Thu, 7 Feb 2019 06:17:41 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35300 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbfBGLRl (ORCPT ); Thu, 7 Feb 2019 06:17:41 -0500 Received: by mail-wr1-f67.google.com with SMTP id z18so10345449wrh.2 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=X4Ra8LvrHDmD66uTfVXxzZLBs7druyrIEU1DvGcg8GEURrEUlbiSShmqRZ5KsWx6GE 4WTGthFAYkRpsgUJqH/i9IKV8YMHjH6PklOQRv8fV+ukCyAkPPioRncgNmR275YxjcSN lr+0rP3QFUOkcC73zN4iieFsANsA7uNDp5vT4b3oFfi+WU0IOcZHFFZastXNjn2VCHQb ZmweJVm/XDq05/jKaY24KtFJeHAeM5a87JynI+46NqRg/EjqZytAl6qss64bkPacP3Lq aDJ5WawLPIonY8z0cpuOJeJA6SxKzTBIzfAMPPtxZL9ECU58X+euynfPm+49KJJwMiSr qvoQ== X-Gm-Message-State: AHQUAuZAUHOaS0MKlJZHXi6/FpzsHUVF1vWGknyqE3SpEDvKrTBv0bJ5 6LNC9VJv7XBXw9AjZ7XQeeBn+A== 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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