Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3983871imu; Mon, 7 Jan 2019 13:10:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN6sD814tykXlsnefl22/eLMijiJ4DeJUkt88G4w/gO9CokIzb8HCde/s20Ypu/xfGsimX4e X-Received: by 2002:a17:902:292b:: with SMTP id g40mr63404357plb.82.1546895457978; Mon, 07 Jan 2019 13:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546895457; cv=none; d=google.com; s=arc-20160816; b=kLndwhuYHQ/R8FhlN/f6U5uEwejiMTG7JVQcB3oE2LEmo5+MAXY2AVZyavgCMuChRe /kwrU6/ak565tsNWnrEY2Rx9b/YZVBDqVzZRywkO/CuocJjXGjSqdB2JzNQDG3Cfw1TB HC+QeTjPU0h552MZOt4T/DZpFBcukT4Q5TMFn3S5aM8yZT7XADBAQg6f1oYqOBokhTMz /xMwfkmM/areCE9KxKHh55vgReJ8RS8ulm9puFjXvMFnf+yrwvfGI+bSqE6Pvt7d7Mg9 a3Adf0pEz2/ENGXmzqq7IpKF63rokV2eulNE6wwzUDY9lcEgOudCxN7BCLmKn4tBFNba 71og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5fdY1Jm8d4DapAHl0JxgxVNQMOFWMCvrah60FJtzrsw=; b=1GgmEsNCYh0VxFimlrNyCVZA8Ur+4AmBRwMS7NcfVUBgeqXmM3Anslj8n/CwFle0JU nParDXPZkD9Vl4wUdftQVf5oKbHYWv0te5iaVqenUA0ReoisCdcuFxrq2FKsxUjtdZCw ha+7cG9bADBwPcIAqvOQd7lFEEqlKLFMLv5UZUR6BGCXQFHXjpnJx2al3nrnZLMpqvsb xufspUucbLGXg0gKsX4a3TY5DXSKwTJsnLXv698dMVJUzdPFAJfWRP+KNO/EypclmkBO 9JCk1uCRCN6mJvE7Qke15ty0xH6d3vzVVxgIIVELWFJJl6ralUFEQtgA2yB6WVvdF9Yc l1ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CH85Zwne; 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 y7si62676297pgc.236.2019.01.07.13.10.41; Mon, 07 Jan 2019 13:10:57 -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=CH85Zwne; 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 S1726934AbfAGUdz (ORCPT + 99 others); Mon, 7 Jan 2019 15:33:55 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:39031 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfAGUdz (ORCPT ); Mon, 7 Jan 2019 15:33:55 -0500 Received: by mail-vs1-f65.google.com with SMTP id h78so1087591vsi.6 for ; Mon, 07 Jan 2019 12:33:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5fdY1Jm8d4DapAHl0JxgxVNQMOFWMCvrah60FJtzrsw=; b=CH85ZwneIV/UVhutdV91fh/gOa3Y7vO+VRETAGTRExODYSckYZq64NLJncXBOjliJ8 ttWzz+txDD7/qcs5sEZhsIbkwWjPvJrmG66Z3XpMjXd+gcgwl+kewRTbYlWmM6KQapVw PFfNIE7AMeeV8CjJZyJBMQXFLNTQrS5Cj+t1I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5fdY1Jm8d4DapAHl0JxgxVNQMOFWMCvrah60FJtzrsw=; b=dTcIdqjTT/YAErtj9fu5A+s/sWDuguicxXTuZKhS7ujORQ6gWTdfW3Dm87gAaUviJd kT6mYFkXo566VP30HDYOa9kOZe9XuLVB7coQBJ9vP1Bm/C3IEXx06QMc0LK55k41hehR TUJ/ifSX2lRI4U2/A5aYT5N70ofYs8bsjrx1hilgvudT3qrAywM0IIj8yRb8lTj3LhfQ g0/G4bCCmJLR3eYwKyLZIkDV+LoaK8ckjsSUlGygPwC60Yx98q2EAMLiyzWMwDhP3FGy aykLkHaYt8vm+IyKeDjyhRjoWcrxzX+Oc01q4DsMH2eg2/KZ6HoK8CLbknsAx2DnUhyU wivg== X-Gm-Message-State: AJcUukft2uGL9a5BIvXmaM3swVcWUtaZtKYy3XbonAnfOqywQqAWCezz j/GeMOQ2NptmC6cf8UIVEAVWOq9xzR0CYM40Yh/4dQ== X-Received: by 2002:a67:2704:: with SMTP id n4mr25539121vsn.208.1546893233509; Mon, 07 Jan 2019 12:33:53 -0800 (PST) MIME-Version: 1.0 References: <1544176558-7946-1-git-send-email-jorge.ramirez-ortiz@linaro.org> <1544176558-7946-2-git-send-email-jorge.ramirez-ortiz@linaro.org> <20181220170531.GA19862@bogus> <20181220173633.GA19912@jackp-linux.qualcomm.com> <2a007a91-e709-c9f1-f634-ddcf707e954d@linaro.org> <20190107202606.GC23243@jackp-linux.qualcomm.com> In-Reply-To: <20190107202606.GC23243@jackp-linux.qualcomm.com> From: Andy Gross Date: Mon, 7 Jan 2019 14:33:42 -0600 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: Add Qualcomm USB Super-Speed PHY bindings To: Jack Pham Cc: Jorge Ramirez , Rob Herring , Greg Kroah-Hartman , Mark Rutland , Kishon Vijay Abraham , linux-usb@vger.kernel.org, devicetree , Linux Kernel list , shawn.guo@linaro.org, Vinod , Manu Gautam , Sriharsha Allenki Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Jan 2019 at 14:26, Jack Pham wrote: > > Hi Jorge, > > Sorry for the late reply as I was out during the holiday break. > > On Fri, Dec 28, 2018 at 01:38:59PM +0100, Jorge Ramirez wrote: > > On 12/20/18 18:37, Jack Pham wrote: > > >Hi Rob, Jorge, > > > > > >On Thu, Dec 20, 2018 at 11:05:31AM -0600, Rob Herring wrote: > > >>On Fri, Dec 07, 2018 at 10:55:57AM +0100, Jorge Ramirez-Ortiz wrote: > > >>>Binding description for Qualcomm's Synopsys 1.0.0 super-speed PHY > > >>>controller embedded in QCS404. > > >>> > > >>>Based on Sriharsha Allenki's original > > >>>definitions. > > >>> > > >>>Signed-off-by: Jorge Ramirez-Ortiz > > >>>Reviewed-by: Vinod Koul > > >>>--- > > >>> .../devicetree/bindings/usb/qcom,usb-ssphy.txt | 78 ++++++++++++++++++++++ > > >>> 1 file changed, 78 insertions(+) > > >>> create mode 100644 Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt > > >>> > > >>>diff --git a/Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt b/Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt > > >>>new file mode 100644 > > >>>index 0000000..fcf4e01 > > >>>--- /dev/null > > >>>+++ b/Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt > > >>>@@ -0,0 +1,78 @@ > > >>>+Qualcomm Synopsys 1.0.0 SS phy controller > > >>>+=========================================== > > >>>+ > > >>>+Synopsys 1.0.0 ss phy controller supports SS usb connectivity on Qualcomm > > >>>+chipsets > > >>>+ > > >>>+Required properties: > > >>>+ > > >>>+- compatible: > > >>>+ Value type: > > >>>+ Definition: Should contain "qcom,usb-ssphy". > > >> > > >>What is "qcom,dwc3-ss-usb-phy" which already exists then? > > > > > >Uh, apparently only the bindings doc is there but the driver never > > >landed. I guess it fell through the cracks nearly 4 years ago. > > > > > >https://lore.kernel.org/patchwork/patch/499502/ > > > > > >Jorge, does Andy's version of this driver at all resemble what can be > > >used for QCS404? > > > > on close inspection I cant see any similitudes between the drivers. > > Unfortunately I don't have access to documentation yet but the > > control register offsets and the control bits in the drivers do not > > match. > > > > because of the above I'd like to go ahead with our separate drivers > > -already tested and validated- for HS (Shawn's) and SS (mine). > > > > if that is acceptable, should we reuse the upstream bindings for > > our implementation? or perhaps Shawn Guo will do for his HS version > > of the driver and I go ahead and create a new one? what would you > > suggest? > > I'm not really sure. My understanding of the driver Andy submitted > were for some of the older MSM and IPQ SoCs that implemented the PHY > controls as part of the DWC3 controller's "QScratch" registers, which is > why the bindings doc and the compatible string reference "dwc3" in both > the compatible and the docs filename. Is the SNPS PHY on QCS404 > architected similarly in this regard? Either way, the existing bindings > doc for the non-existent driver looks incomplete for QCS404, so you'd > have to update it anyway. My feeling is that there should just be one > document describing all variants of SNPS PHYs on Qualcomm chips. Yeah the original driver was specifically for the IPQ8064 phys. The actual phy driver changed over time due to some comments from a few people, but it still used the qscratch memory for the phy control regs. Due to this never landing, you can change the phy binding to work for both of them or just for yours. If the control regs are totally different for the QCS404 phy, it should use a different compatible and driver. That's my 2 cents. > Maybe we should also just delete the "qcom,dwc3-ss-usb-phy" binding > unless there is a plan to resurrect Andy's driver. I have the hardware I just don't have the time in the short-mid term to resurrect this. Unless someone else wants to pick this up, it'll be a while. In the meantime, I'd suggest just changing the binding to apply to the QCS404 if that makes sense (completely different IP / register layout). Andy