From patchwork Tue May 15 03:22:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lin Huang X-Patchwork-Id: 913416 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 40lNFZ53fpz9s1B for ; Tue, 15 May 2018 13:23:46 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752155AbeEODXB (ORCPT ); Mon, 14 May 2018 23:23:01 -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-Google-Smtp-Source: AB8JxZqZCkUtiu1lppp/EpTFB/hJLxW92KH32oDTf+1soN5Jix5xQhLcUfPM9MuR2wC+MakHOpXKPw== 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: 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 .../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>; };