From patchwork Thu Mar 29 11:04:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manu Gautam X-Patchwork-Id: 10314929 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8AF2260353 for ; Thu, 29 Mar 2018 11:07:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 822FE2A301 for ; Thu, 29 Mar 2018 11:07:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80C0D2A323; Thu, 29 Mar 2018 11:07:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00F0E2A2DF for ; Thu, 29 Mar 2018 11:07:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbeC2LGr (ORCPT ); Thu, 29 Mar 2018 07:06:47 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43900 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752663AbeC2LGo (ORCPT ); Thu, 29 Mar 2018 07:06:44 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E051C601D3; Thu, 29 Mar 2018 11:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522321603; bh=jAgy9Qbo8+bIqqZr5V+qNeUmNTp8iM+Hl/YnPx4+0aI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H01VA/+leAXcQDtBmA53baBkympT4eBfi41eWw8dsZou6Pn497oLL9EeBO0nXxF+c 3orqz/hr2PFAeMlzf2XK9f+cLJnIMWZ01wtmZNXFTKr8kRhVBbV4FiSx1NV/ugvKxk zPyyz1oulMygu1/Wqc6/FlnklLNRFB3/J0GUtGMo= Received: from mgautam-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A68D360C55; Thu, 29 Mar 2018 11:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522321603; bh=jAgy9Qbo8+bIqqZr5V+qNeUmNTp8iM+Hl/YnPx4+0aI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H01VA/+leAXcQDtBmA53baBkympT4eBfi41eWw8dsZou6Pn497oLL9EeBO0nXxF+c 3orqz/hr2PFAeMlzf2XK9f+cLJnIMWZ01wtmZNXFTKr8kRhVBbV4FiSx1NV/ugvKxk zPyyz1oulMygu1/Wqc6/FlnklLNRFB3/J0GUtGMo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A68D360C55 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mgautam@codeaurora.org From: Manu Gautam To: Kishon Vijay Abraham I , robh@kernel.org, sboyd@codeaurora.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, vivek.gautam@codeaurora.org, evgreen@chromium.org, dianders@chromium.org, linux-arm-msm@vger.kernel.org, Manu Gautam , Mark Rutland Subject: [PATCH v4 6/7] dt-bindings: phy-qcom-usb2: Add support to override tuning values Date: Thu, 29 Mar 2018 16:34:25 +0530 Message-Id: <1522321466-21755-7-git-send-email-mgautam@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522321466-21755-1-git-send-email-mgautam@codeaurora.org> References: <1522321466-21755-1-git-send-email-mgautam@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt b/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt index 42c9742..0ed140a 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,23 @@ 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 paramter that may vary for different boards of same SOC. + - qcom,hstx-trim-value: It is a 4 bit value that specifies tuning for HSTX + output current. 0x0 value corresponding to 24mA which is maximum + current and 0xf corresponds to lowest current which is 15mA. + - qcom,preemphasis-level: It is a 2 bit value that specifies pre-emphasis level. + Possible values are: + 00: NONE + 01: +5% + 10: +10% + 11: +15% +- 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. Possible values are: + 0: Full-bit width + 1: Half-bit width Example: hsusb_phy: phy@7411000 {