Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3042816imm; Thu, 17 May 2018 02:19:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoepxIKT2DAZFDGCGkvsU+uZcfK6WyaIRXuIcKXYHrLKHWer7CnPdlmqojocJGhnBIr0oOu X-Received: by 2002:a62:8345:: with SMTP id h66-v6mr4523758pfe.0.1526548757704; Thu, 17 May 2018 02:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526548757; cv=none; d=google.com; s=arc-20160816; b=NPP1DeSzJpMsbMZtHuKYjwC1Xjr4nDq+eTNC+WgrN2yTbqmehqAYHw/co1hkHNtrmV ax4okwR79l8nnMjFKoUdePKCdvjmNM8e4jQ0/zFHShyDKzIlN2dopoQMJCwkY2GP2Xut +ZjSL/yKHiT8SUKVSb3Y3YWpWy+vvBAXU1IjqODlP5QZWy5SCR5CIk32sqr5wfEYjea8 AGSE5shdyClbHDzo7efuhIJOyaqXLG4LfYcWAxajqB3t7bOCJ7RZNXDwoz9FWnze5xzE pGvpLW9C7PL5fKL3hkOomtfJhse84eaNC6exA5zQCACocvhj5vjId4GOVepI+r+alwdQ rAjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=lCxbfP7EpUVF6RJDH4dGdrq91LE2QPzKU4kVL+18has=; b=HklqRcwRUQxsuaRd5teUc2ok4KovuWUXnwxdRvvAEpvUP754nuAtqMmdNLL8EtSG20 Gcq7wSDY6gtrt9upyRU+JhAkCTQBmaVf+cino5w8aKd72gbBhjdBSQRuMOTQqirkuvzI gRPAkxUuahKANbz0gJbyEXy5WkKbkS1PwamMTUgHC0jIoGgRQPJReY1UonKmIFZqQZha tLYVku2X5p45DFUOwgLAkzLTPIyq1xqqba3RO4DUOR7geG6s+4YSfFIzWOwxW6Z3HXYZ YvskSphR7+FhQEAFZjk9oVD0iLNOzN5nsJJJz8wTuEQ973g+8OCwvH2YKgEgh05y5tgz MaVw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11-v6si4674107plg.376.2018.05.17.02.19.03; Thu, 17 May 2018 02:19:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751784AbeEQJSU (ORCPT + 99 others); Thu, 17 May 2018 05:18:20 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33592 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751478AbeEQJSP (ORCPT ); Thu, 17 May 2018 05:18:15 -0400 Received: by mail-pg0-f66.google.com with SMTP id v7-v6so1580155pgs.0; Thu, 17 May 2018 02:18: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:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lCxbfP7EpUVF6RJDH4dGdrq91LE2QPzKU4kVL+18has=; b=SHR2GK+VDoagFMFBJmsdbrlI63UGYc2QAQmJ1eaeLgYUj1Kf241UlhQAT4LBYRZUV9 pCIxe9J5K4AXcZcJH9XkyMz4rNC//xFRYuv5BGtrbuaBUchf47EN4yy05zTkqFrcZzJI /oHLi9QmPOhK7ky/jMR3WfkVGYIBHmHai9s55nS5YUMpFSuM8zs0lw9K3/7Wc5EOC7cM Pu9iBjaLXZxOQiwRkpICgN8afuYrSd3QSVUeg754jQq3QXa/kWbpOpfPhpL44C4i09MF rSn9F7Z3q+E+MSeidR+PR7+V6PEMqeeNNUNKqDO7sAYtnPhziMjaLD22A7G7/M6o6pq7 CIxw== X-Gm-Message-State: ALKqPwcridvEodhQIxjshRUaERtXtQ8mVUy1pqaUrH7asaqziEFiLCfI zHXad0FViPlCA/N1m4lU/nHkiA== X-Received: by 2002:a63:9e01:: with SMTP id s1-v6mr3536684pgd.66.1526548694774; Thu, 17 May 2018 02:18:14 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id k24-v6sm10592175pfi.37.2018.05.17.02.18.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 May 2018 02:18:13 -0700 (PDT) From: Lin Huang To: seanpaul@chromium.org, airlied@linux.ie, zyw@rock-chips.com Cc: dianders@chromium.org, briannorris@chromium.org, linux-rockchip@lists.infradead.org, heiko@sntech.de, daniel.vetter@intel.com, jani.nikula@linux.intel.com, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, eballetbo@gmail.com, robh+dt@kernel.org, devicetree@vger.kernel.org, Lin Huang Subject: [PATCH v5 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY Date: Thu, 17 May 2018 17:17:58 +0800 Message-Id: <1526548680-2552-2-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526548680-2552-1-git-send-email-hl@rock-chips.com> References: <1526548680-2552-1-git-send-email-hl@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Change in v4: - None Change in v5: - None .../devicetree/bindings/phy/phy-rockchip-typec.txt | 29 +++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt b/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt index 960da7f..af298f2 100644 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt @@ -17,7 +17,8 @@ Required properties: Optional properties: - extcon : extcon specifier for the Power Delivery - + - rockchip,phy_config : A list of voltage swing(mv) and pre-emphasis + (dB) pairs. Required nodes : a sub-node is required for each port the phy provides. The sub-node name is used to identify dp or usb3 port, and shall be the following entries: @@ -50,6 +51,19 @@ Example: <&cru SRST_P_UPHY0_TCPHY>; reset-names = "uphy", "uphy-pipe", "uphy-tcphy"; + rockchip,phy_config =<0x2a 0x00 + 0x1f 0x15 + 0x14 0x22 + 0x02 0x2b + 0x21 0x00 + 0x12 0x15 + 0x02 0x22 + 0 0 + 0x15 0x00 + 0x00 0x15 + 0 0 + 0 0>; + tcphy0_dp: dp-port { #phy-cells = <0>; }; @@ -74,6 +88,19 @@ Example: <&cru SRST_P_UPHY1_TCPHY>; reset-names = "uphy", "uphy-pipe", "uphy-tcphy"; + rockchip,phy_config =<0x2a 0x00 + 0x1f 0x15 + 0x14 0x22 + 0x02 0x2b + 0x21 0x00 + 0x12 0x15 + 0x02 0x22 + 0 0 + 0x15 0x00 + 0x00 0x15 + 0 0 + 0 0>; + tcphy1_dp: dp-port { #phy-cells = <0>; }; -- 2.7.4