From patchwork Thu May 17 09:17:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lin Huang X-Patchwork-Id: 915236 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40mm2j6g47z9rxs for ; Thu, 17 May 2018 19:19:09 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751626AbeEQJST (ORCPT ); Thu, 17 May 2018 05:18:19 -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-Google-Smtp-Source: AB8JxZq+esLEe847fSXtQGj72dUy6+Z62ASYqRrQx1Z/ioKr8OiS/y73YvaPxwXoSUXOVCreNLyDSg== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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>; };