Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4714463imm; Fri, 18 May 2018 09:25:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqh+Lez0BGPWc+kVTs7hwtHBIVGUQUsascj2IetpgOuSVAPcD3j3Nq/YD6DAmzeO/x7rT/G X-Received: by 2002:a62:ec6:: with SMTP id 67-v6mr10121341pfo.36.1526660753308; Fri, 18 May 2018 09:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526660753; cv=none; d=google.com; s=arc-20160816; b=g7E2iuWLpUXW9H7sIn4vSXQr2BQvoKExK5w+QJ/eM8As16B6A3vAbbfK3sRi9xazYv ku5gOxZnN4YoFgrM7/gLhLrd9mTbhAnxfuqEegwnXO1vcxIEbLxns4QQcjMOGHY13fC3 Pi6mTp+4Fbzds0i7YHkhP0lQXE4zigMlMV31E9Hmym+IGsPNxIOGjkyvrcnhNCy3jfkB +YOuGBr0NXBGFOpQ+vmZziPN2FXV8BVWKDa2W37zRieCVQQkNrEZLwk3OY2eyDjF4vvc VXgm9W+sqnCpRs4BlXWss8VK3MCysC7qhHfX/65EfPJr4GZhvtXIms8/AdbwQhHYARhw eapA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Kl0QaNHs+79PVkQ6gxOpeXzw9WuJg8+QhBPitlKLSwU=; b=ATAZmEhrxaL8e6j4f8BIO527T6T6mcptf/XmADw+G4z8o+S52zJxGLFjc+bs+dr6au 9lDd5ApCgXRLmMxnhvwnj3mh7BkSxFdEnfTQu1Zw9rq1wx8sR/bD2qGcySmXZNVz5WDQ eUIa7mFFMyb/ZgwUO4f6pqOgBd963WzSeNJjIuqpqkg4oW0Riqn6JQ0UbGRQn/JowJ16 OOOMNunAMA0FJArdv5l9Ms/IABdQZ6ia499Foi3udk7iiBPY6R1Nrn0IttqiGHOBE+ln j2O/ucPsp1MXqFeCHQmTcHBkHqQDSjmRuLx1W3VIjXFVE86nt2VUxsiyE6W5KSDXaHCL N+BA== 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 n13-v6si6184026pgt.564.2018.05.18.09.25.38; Fri, 18 May 2018 09:25:53 -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 S1752103AbeERQYh (ORCPT + 99 others); Fri, 18 May 2018 12:24:37 -0400 Received: from gloria.sntech.de ([95.129.55.99]:40620 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750957AbeERQYa (ORCPT ); Fri, 18 May 2018 12:24:30 -0400 Received: from p5b127731.dip0.t-ipconnect.de ([91.18.119.49] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.1:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fJiAj-00051O-Nv; Fri, 18 May 2018 18:24:01 +0200 From: Heiko Stuebner To: Lin Huang Cc: seanpaul@chromium.org, airlied@linux.ie, zyw@rock-chips.com, dianders@chromium.org, briannorris@chromium.org, linux-rockchip@lists.infradead.org, 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 Subject: Re: [PATCH v5 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY Date: Fri, 18 May 2018 18:24:00 +0200 Message-ID: <2417091.oYeT3lua5n@phil> In-Reply-To: <1526548680-2552-2-git-send-email-hl@rock-chips.com> References: <1526548680-2552-1-git-send-email-hl@rock-chips.com> <1526548680-2552-2-git-send-email-hl@rock-chips.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, 17. Mai 2018, 11:17:58 CEST schrieb Lin Huang: > 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. mv -> mV I'd think. This needs a bit more explanation please. Especially as the multiple "0 0" lines in the examples suggest some deeper ordering requirements. Like the 3 blocks of 4 entries as can be seen in the default config in patch3. The binding should definitly describe what these are. > 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>; I don't think they should be hex-values, as according to the doc above these are values in mV and dB . Heiko