Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp81857imm; Mon, 21 May 2018 02:38:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrwEG9AIdqKkWigVUrWcZKWmSPeIRfk0Nx7mmiQP5wEqjUPUWgvuSgXA7A4EPMhDsVzQ789 X-Received: by 2002:a17:902:b60a:: with SMTP id b10-v6mr11676033pls.221.1526895485171; Mon, 21 May 2018 02:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526895485; cv=none; d=google.com; s=arc-20160816; b=QydwbCyWD0Ue9Z7btPGoqYkNrMGPn9LRqRr6bhGOIVUqf0cZ8mNYhGoSvTUzfV7DHp 3wR9TREkl2PxN1ZwVdww52EK4Kd3dA4w3PVlBiZkQ29sj6SOX/gwcw+EPi8cZSyHuF69 0xvswrFnC6GjB6J6/grv0EqgNqFQS+sz+zOIREAEikQlzTJw7R+DUgESNI8szUMdftQ4 lp7Ogs6Fghek6UPaDpJuPfNKAPOWiyYlo2R12gueO7xlAqkFjiFFMgcSvWboWUtsLDS6 MlQbyNVdqfWRFk03AAifOWcq//ssMmole7mTFtTGL1q61eNrdPqNLtXIOIXBYaOAjCvV mqGA== 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=Cf854B+z5dQBRtkO5qkLPEIyFJhopybQ7Zt8cs/sq0w=; b=o+MvIvk3lsEohT5T/yDNxJ+HMxF/4Giws8vutSVANFxcLMPiF9GlSZSxoBxCRUkcrR r8KuRRZvupE9/HcN203gRcsk9DBap5rI4KH1DILOvwa56bnRdJLGXwHigXSvEAYs/G9S xbSONXy9f7zfiG62l1oTy8fil33b+mNXOf6lxeJY+JNDeG12Pq6G2+Fhcu7XlTtm+wBp cyrMoUpFhq7TogOGEolvDCJp45WPVixYxgCT7zOqMf0OMDx/WSv7Vq42uoErWP2AdA7V 72yEoRRg+F7l5puQLnyw2OdXqWg0XX7OmUELHX0tl+3wvrqRRpTnk2oyVSMDv2lpY6HR k2ew== 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 r30-v6si2105970pgu.219.2018.05.21.02.37.50; Mon, 21 May 2018 02:38:05 -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 S1751636AbeEUJh3 (ORCPT + 99 others); Mon, 21 May 2018 05:37:29 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36477 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751368AbeEUJhY (ORCPT ); Mon, 21 May 2018 05:37:24 -0400 Received: by mail-pf0-f194.google.com with SMTP id w129-v6so6820620pfd.3; Mon, 21 May 2018 02:37:24 -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=Cf854B+z5dQBRtkO5qkLPEIyFJhopybQ7Zt8cs/sq0w=; b=tvjrDYFODZKHrr97z2QnHlARWdhttRNIdBDF8MiSuvMxXNVWF53h/yv5US4WenYYZL Ju3ZwattWyRKyhhAxmK5u4faY2k/scLiV8DezzYcbpZVhWkNupz/Sdngs2oEJ1bPysS7 AHMRUlZaTGLRDIHdclBoseCfrBWmwtBn4iDZO9QfyLw0Si79G6PN/aIPacjI9gv+1mb7 UuJLEmlvo2iFF94yDqcuUij8q2IGdwADEK07lMDBYE6oqHfdsOTsmvMevJUZVB0G77AQ W4sPA5UPW3a+8zWKm9uU3O3J7vf6I0dzK0E4+zX1sgEU6smAW28b9yy/fuOTeweykrDA FwUQ== X-Gm-Message-State: ALKqPwcnqqcv6ui/mmt1kEG1Vr5PxES1jmOJ96bjq1S6NTrJR/b2Es/8 dn4DSQFc2Cnkv/Ybnsc7UwAunA== X-Received: by 2002:a65:4e85:: with SMTP id b5-v6mr288755pgs.155.1526895443858; Mon, 21 May 2018 02:37:23 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id a65-v6sm30304678pfg.40.2018.05.21.02.37.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 May 2018 02:37:23 -0700 (PDT) From: Lin Huang To: seanpaul@chromium.org, airlied@linux.ie, zyw@rock-chips.com, kishon@ti.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 v6 2/5] Documentation: dt-bindings: phy: add phy_config for Rockchip USB Type-C PHY Date: Mon, 21 May 2018 17:37:01 +0800 Message-Id: <1526895424-22894-2-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526895424-22894-1-git-send-email-hl@rock-chips.com> References: <1526895424-22894-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 Changes in v4: - None Changes in v5: - None Changes in v6: - change rockchip,phy_config to rockchip,phy-config and descript it in detail. .../devicetree/bindings/phy/phy-rockchip-typec.txt | 36 +++++++++++++++++++++- 1 file changed, 35 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..40d5e7a 100644 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt @@ -17,7 +17,11 @@ 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. They are 3 blocks of 4 entries and + correspond to s0p0 ~ s0p3, s1p0 ~ s1p3, + s2p0 ~ s2p3, s3p0 ~ s2p3 swing and pre-emphasis + values. 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 +54,21 @@ 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 +93,21 @@ 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