Received: by 10.192.165.148 with SMTP id m20csp3239254imm; Mon, 7 May 2018 08:55:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo7hs5l3alv2HUNfaLs7/srDRfqOAMtGyndeuFXxSayNIRykGYKrSUoz0iFsR6Kk/x1+XPM X-Received: by 2002:a24:fdca:: with SMTP id m193-v6mr1788600ith.77.1525708525951; Mon, 07 May 2018 08:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525708525; cv=none; d=google.com; s=arc-20160816; b=PuTiSpO3XMcLRQKlBWMUiVECw6eamINEnt+NBdZlAJVt9OOzX/KEUf1TRPtYoZmje5 XzgmQ1JZQJzqpb0nJVyw+TARXb5VQkFCjh0uRDvFP8vKVLhax5ePx3Rhzvvs37Fw82o3 cQUUb84u6YHXg56BTS1PlBdbsQYupW1zMN8465DuG66/szhJnuCl0nrFXe5Vj/Mp8Gn1 nXuRwh2rqFsMgHwbs6QSQQofsAZ37yuVKjlYTr9m5SmQAGIkhP5cCvl5QdnqEyMv5oSr FLF+rg0vReFATkOlh1MI73KDnu/MEll39Pt8cyvm0zuk4CogigHPhhn5z2rzkuv3eDnS gQQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=l9m4vZ2EhTCux1HFA9fsH53Ot1n99ec/p/SfAkLJSyk=; b=WsrePXUnuCq7VI+4OD1IhC7fXx1UMKRqX3OZgy2zMpTn8E7Aa+t6Xaqep8tbFt1NC+ kuRL2RIuaUiGOnPcRQe5MFpWSsLhLkCf6q8bdtMNpSaXOX48RpFpS8TVVGjwKE36ORbb 4diKBhFYJIHD7OSUTeAUJKLfV5JRpSfqyXwls5SBNLm8mp3ddcGMLoRGnBD5YBwqOpfD 0C7b4SIieIoRpUsVqEjXIfJd8ptNrUdndhsGh6DRnDbBSpfnkPC+OBCrICG7htOjUCTU ISmVjLODdy1T6F8MMzyQu6WzBtlzfdwjsbI5ThNgiGjjTVoxwnhpx+rcfxxHdGlUikZ/ b11Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7-v6si18939679iob.122.2018.05.07.08.55.12; Mon, 07 May 2018 08:55:25 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752732AbeEGPxR (ORCPT + 99 others); Mon, 7 May 2018 11:53:17 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:40004 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752491AbeEGPxP (ORCPT ); Mon, 7 May 2018 11:53:15 -0400 Received: by mail-ot0-f193.google.com with SMTP id n1-v6so32537780otf.7; Mon, 07 May 2018 08:53:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=l9m4vZ2EhTCux1HFA9fsH53Ot1n99ec/p/SfAkLJSyk=; b=Ki3/Mz2PAfa7V+60rPWuAyNaYyePLjLpD1/2c8/bxQd0+nXyqLyWJt9Jw1WK4YO3V2 1gYgxGXFHV7hxW6OYsiwVKlzeRxLNfH5hCT4wg2jRgbywtjLFBbResyGXs4I1Y2zaHIt 2i83MnDN6Bh8XtGjDa5kaiZwWzCl64yJx8cyG1N9rPnfo0tVt6sr6mY04YvJen9dAwIN 04QxNO0MwGMS/lE2OqzxTadPoQb7QVMq3JRO1VVcr3BMI+7DM4VsNPggxfqKhLVEOUaj t/ST6iOrOHT9JEvTg0UWmlMId7e0OaGnf2qBF5hq+OEf97+3XnQHs7hWtctF9sCXz+dl DOdw== X-Gm-Message-State: ALQs6tALsFZp41tipf0viMEDj1sZ9WwqsRfpdOH76Z4oRyYmazQjkZQn A3vieQJa4Yi7PZnllz5Vjw== X-Received: by 2002:a9d:386d:: with SMTP id r42-v6mr28366571otd.186.1525708395059; Mon, 07 May 2018 08:53:15 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id c11-v6sm13222546oif.40.2018.05.07.08.53.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 May 2018 08:53:14 -0700 (PDT) Date: Mon, 7 May 2018 10:53:14 -0500 From: Rob Herring To: Manu Gautam Cc: Kishon Vijay Abraham I , sboyd@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dianders@chromium.org, evgreen@chromium.org, Vivek Gautam , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v5 6/7] dt-bindings: phy-qcom-usb2: Add support to override tuning values Message-ID: <20180507155313.GA9696@rob-hp-laptop> References: <1525295174-15995-1-git-send-email-mgautam@codeaurora.org> <1525295174-15995-7-git-send-email-mgautam@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525295174-15995-7-git-send-email-mgautam@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 02:36:13AM +0530, Manu Gautam wrote: > To improve eye diagram for PHYs on different boards of same SOC, > some parameters may need to be changed. Provide device tree > properties to override these from board specific device tree > files. While at it, replace "qcom,qusb2-v2-phy" with compatible > string for USB2 PHY on sdm845 which was earlier added for > sdm845 only. > > Signed-off-by: Manu Gautam > --- > .../devicetree/bindings/phy/qcom-qusb2-phy.txt | 23 +++++++++++++- > include/dt-bindings/phy/phy-qcom-qusb2.h | 37 ++++++++++++++++++++++ > 2 files changed, 59 insertions(+), 1 deletion(-) > create mode 100644 include/dt-bindings/phy/phy-qcom-qusb2.h > > diff --git a/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt b/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt > index 42c9742..03025d9 100644 > --- a/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt > +++ b/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt > @@ -6,7 +6,7 @@ QUSB2 controller supports LS/FS/HS usb connectivity on Qualcomm chipsets. > Required properties: > - compatible: compatible list, contains > "qcom,msm8996-qusb2-phy" for 14nm PHY on msm8996, > - "qcom,qusb2-v2-phy" for QUSB2 V2 PHY. > + "qcom,sdm845-qusb2-phy" for 10nm PHY on sdm845. > > - reg: offset and length of the PHY register set. > - #phy-cells: must be 0. > @@ -27,6 +27,27 @@ Optional properties: > tuning parameter value for qusb2 phy. > > - qcom,tcsr-syscon: Phandle to TCSR syscon register region. > + - qcom,imp-res-offset-value: It is a 6 bit value that specifies offset to be > + added to PHY refgen RESCODE via IMP_CTRL1 register. It is a PHY > + tuning parameter that may vary for different boards of same SOC. > + This property is applicable to only QUSB2 v2 PHY (sdm845). > + - qcom,hstx-trim-value: It is a 4 bit value that specifies tuning for HSTX > + output current. > + Possible range is - 15mA to 24mA (stepsize of 600 uA). > + See dt-bindings/phy/phy-qcom-qusb2.h for applicable values. > + This property is applicable to only QUSB2 v2 PHY (sdm845). > + Default value is 22.2mA for sdm845. > + - qcom,preemphasis-level: It is a 2 bit value that specifies pre-emphasis level. > + Possible range is 0 to 15% (stepsize of 5%). > + See dt-bindings/phy/phy-qcom-qusb2.h for applicable values. > + This property is applicable to only QUSB2 v2 PHY (sdm845). > + Default value is 10% for sdm845. > +- qcom,preemphasis-width: It is a 1 bit value that specifies how long the HSTX > + pre-emphasis (specified using qcom,preemphasis-level) must be in > + effect. Duration could be half-bit of full-bit. s/of/or/ But I'd just make this a boolean instead: qcom,preemphasis-half-bit > + See dt-bindings/phy/phy-qcom-qusb2.h for applicable values. > + This property is applicable to only QUSB2 v2 PHY (sdm845). > + Default value is full-bit width for sdm845.