Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4120997imm; Mon, 14 May 2018 02:55:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqhKtfKHD0n+v+k6WTO8Sg6bDex/rnXmhM7Kopzy2kNCtE5DzxkhV1igeZ7Bv0fccO1Yp7E X-Received: by 2002:a65:5a0d:: with SMTP id y13-v6mr3644333pgs.15.1526291722295; Mon, 14 May 2018 02:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526291722; cv=none; d=google.com; s=arc-20160816; b=QI/ZM0l1EfUTxYrVxrpBINjcHD0aQA2RP8nY4NfN+L1JKxZGeBNGPQJyC9lKO2hVmk YGDHFJky11H/kEdNlm7jNjKjZFykh5+RFMSe9u5Ylrzepf6hrhzZfaQDwWvyc/2+bxEU CqizgR0apoZ5kUreOk8EINUZ+LE/lQI1wHh1iTAJ3GrOuuOyHBv59hlwY2JQiPZndOQW 3wQfWuNUMm1uD059Jstp+puET3BPEzboY6UKOZtSJvbLGr31Op8FsmBReftB1IERId8H sjzhnkz4K9ZGrwBAClmRfuoBZ7b3ZMtyeSfi4c1LrL7VaGE9xOntuIyPm2I95A5RaQvl vdzA== 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=pE7SpzqQSA/C6ikexuHc5esBghfaFX0gDjoCluGgd9s=; b=Yt+kQ2VUwlpJgPZaEGegtjyWaoJ3BrxpXFyxluHa4EWYRNVMRrBZWV2qZkUUeeJfwG Pxjom35/4BDwIGCVQkoDJor2ztrHAb0bCEXNDchw9/i2HcogPnKBvm8L48ICcqIrDK28 Pm/iSOdGwbQ/nvoZ16pghT8jNFOh59JagDZkpaCXGPS5jbsZrlU2A2OcsvBr4Pw8Dc/A JZ3QfrcN7909hWobijBKd0ZLy2H4oEVw4PclpX8V7svYeAtGelGcnpS5Ud2nJAJd5c+H ZK+tYYoDdWuwXHse4nd12GcDCfsYv8g656Fs0qjMeydd8G6fKY1mC4LZrkPwXic/HLR0 3Ppw== 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 f18-v6si9020283pff.208.2018.05.14.02.55.07; Mon, 14 May 2018 02:55:22 -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 S1752402AbeENJyZ (ORCPT + 99 others); Mon, 14 May 2018 05:54:25 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:38654 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbeENJyU (ORCPT ); Mon, 14 May 2018 05:54:20 -0400 Received: by mail-pg0-f68.google.com with SMTP id n9-v6so5255052pgq.5; Mon, 14 May 2018 02:54:20 -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=pE7SpzqQSA/C6ikexuHc5esBghfaFX0gDjoCluGgd9s=; b=Xi5UPIYpGJbxDRVCcr6+mk+Ecg1N244V8pOzSRSyyREiRH32Jtc9J77zvJ8eMmZCG3 BZyKf5Rdyhag54v+RX7zLNlZwhbIoIfolh1ZaSWWP3LUsEuqs91dznmp4LxblAVMgJkN bBzGx6Fk9u2YOV11+1qiVG5ZcGg5eow8rtOMLNWZByyAWFw0+HOG9FFW7XsPuyf66JPR 8rbaGIBJ83U0FxS46vJoIHcd/iurBEdH42w8VJ95TzouRfzjOJymqeUE1AMhxcwBRFS6 EUKho6FnjLbyYbcefXkOPuXVZHEnF2J6CSjzemvFH6YBzu2adDI7YSVZkWffjU/X0AWK w8ww== X-Gm-Message-State: ALKqPwdkNbShhfbcy2SbuuyPL/dx5UkUHQQUEermMtglJgoC78zf12Tp B5jl3+GB/GUfJ652yC5geDY= X-Received: by 2002:a63:7807:: with SMTP id t7-v6mr758958pgc.125.1526291659898; Mon, 14 May 2018 02:54:19 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id u19-v6sm12692574pgv.25.2018.05.14.02.54.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 May 2018 02:54:18 -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 v3 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY Date: Mon, 14 May 2018 17:53:53 +0800 Message-Id: <1526291635-31122-2-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526291635-31122-1-git-send-email-hl@rock-chips.com> References: <1526291635-31122-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: - rebase Changes in v3: - modify property description and add this property to example .../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