Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp34919imm; Mon, 14 May 2018 20:24:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq1zaToEuClMhVreTKkqGZ+CKlJ8t9H2q7CBuhdGspPLMAAuDbaaGdhmPkWwmk0+TEdBJhP X-Received: by 2002:a62:59d1:: with SMTP id k78-v6mr13110685pfj.54.1526354659126; Mon, 14 May 2018 20:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526354659; cv=none; d=google.com; s=arc-20160816; b=M1PSo0PSF54sPRenpR3Yc9aET7mbaBHVrY+bwVkD9dkOrj8HiebB4Ves+95cpNDLeW 1CssXcPYc7dHTD+FaQ5CA6QWODKzrftWoCyKhfICO3r/iw/jDgpLdHy5t+Bbq011suSj x0x0dkI+OcjM193r+gKDYf7klsWQHq5Wk7WoZUeRJpQH5yhdGTEHbH1Z+DkG4z7cZE2M 7mq7t6nWO7gE4wjdCCRb35M1wuCynaeouxvaie4Wb0lFLQO/UUmcrmLMxMFfpL7bTooS iZRFPA3H2JR1MYg8yFGFI27P6n5u4mSxwcqkGisPlzMpsbD3J+mbTNRBkvZck0vikSVW c+rw== 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=6InFTUmDYTz+AsNe3EoTtW+OYih8rV4RbjB2uWh8a6A=; b=wa1lggvE+By2wEGep1aJ5Mmr+JqPX1rLpu8jCG0Ng6whOFJ4lg377/lIwvVbwkcugZ 1ZEDX2O3v1WESwmOiohQEQMD1+O/FSdl/uEA+eggzXu1zDfCRDZNeURhY2d8yUC6LSgF elarezltI/NpYWTckYl2JlG30p0nDAE4DKiL+aLie8ud2c0i/7YhVPlPjF7x/lw12NZZ j/NWGOQYOxsqsyKaWpuEvZXte4b6NfjY9n9PQ470IQWYkKHwDzxHYi5CFqlkCKDgJ+TH yeHKlVbWpaBbQvlkJU/xdrhpKe7Ljjv+bQ5HLH+0E6BG1PEu2daK0fsD8vcvM8bqYfVU mRFw== 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 n9-v6si8580912pgq.470.2018.05.14.20.23.42; Mon, 14 May 2018 20:24:19 -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 S1752179AbeEODXE (ORCPT + 99 others); Mon, 14 May 2018 23:23:04 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:41328 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752009AbeEODW5 (ORCPT ); Mon, 14 May 2018 23:22:57 -0400 Received: by mail-pf0-f193.google.com with SMTP id v63-v6so6983576pfk.8; Mon, 14 May 2018 20:22:57 -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=6InFTUmDYTz+AsNe3EoTtW+OYih8rV4RbjB2uWh8a6A=; b=sqrxrx3/+bAO8V/b9jW7GMLtr6YODj1BfIg7gOVuUf5DkcOiLnu6qC9WVTUOtKtXTs Xsu8HpGgT3vGhlaaDCjpBglo9u4jiA8UM8QeYZXdivcBt9RCe8kfjlg6lTAOvuILRKGS 9oEtzJt2NvkjIjTf4CzKYREonh5TLX/9sQFCMjamsYdfe6CoU5EUld57k4HuK4prTqcN M4MpjmoRFEopAX+oXX9QwRNU8X0UGtodtUI4wesaO7/9ULFsgeA4BJC/7W12vjIN+xgw jbIevlJlW/YomvmHHEdI/Wj8kr4WH4E5A+LNwjYD9Xy5Orv2avfn8YaYmLAzZPa/uOge kzwg== X-Gm-Message-State: ALKqPwcZWhvFPDEhCNlaFq5Uyc0VjneW1rQWaDYnqU7DZZQW9snj9R+0 VtsJwzrY/C1fOWq+wBzSQbg= X-Received: by 2002:a63:ac1a:: with SMTP id v26-v6mr10758073pge.105.1526354576714; Mon, 14 May 2018 20:22:56 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id a7-v6sm17121793pgc.68.2018.05.14.20.22.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 May 2018 20:22:55 -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 v4 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY Date: Tue, 15 May 2018 11:22:38 +0800 Message-Id: <1526354560-23135-2-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526354560-23135-1-git-send-email-hl@rock-chips.com> References: <1526354560-23135-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 .../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