Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4730813imm; Fri, 18 May 2018 09:42:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpHYt7x4dG7d4uL5swQpdPscwlm9QBPBfeY1jYrOlk9sL6rURZGNo5gEdfu6OIrHA+ZD3E/ X-Received: by 2002:a17:902:b60c:: with SMTP id b12-v6mr10567000pls.44.1526661735184; Fri, 18 May 2018 09:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526661735; cv=none; d=google.com; s=arc-20160816; b=S3dcllocEGgvBQqqBlexwb+rCerMNKfmkfo3rxMqN7zH5+G1ueHC/UMOQOjcFvCBmx 81/Y8TFOeQUZ75qC4UwM519hqPpo3nxTVdJ/G1UfOIRmF6zyGfk4QMdmkmKPtN1WYofW w8powrRaijtjNZYLTDk/nDxNYdIhGtNlheIJjLuEVHDlR+RSczpSpWqXqDHXzXqa8IYE RSA0D/YqaMlb4ukB3g1Km3PrLyRjmZICkngf+8FOM8TAEaT7bSehySsMbg1/cPJ80ut/ dcJnRmGuAttEGSWI2Y58poNm5dLSszV2WoLs13WTOK8ToK3GShXa01FTg58plbiHSO63 uKOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=pbiLlnVVSL/na48Y1hWLezkl5KXHUKbazHW8VdyRBs8=; b=zsXLPBf8x+4SqH+ROMdoqluBpidNWaZZqU7apMT3sXiMU/r7vQ9/NIunIEgHtkXEC1 4HLhPeGqabpF//gxu28FBuYhUDT3Bie095jtZ+E1jrKe7m0k3LDZfl/zfXrKxBOnDIEE qlSDgwVngTxxIGsKb1sXIlMcRxTo3ruF7duufnfK3hU3p+7VVOZ/CfQ90X+kRnkoxFGq zbpU4mOdTb8xfncpEuJzBfOLQGs2FfOJxfT1p8fYpF4ZPi6mPlPBAkCkBhFv3zLuQNjj +Y1h9YENNjm1gEIbqP3joBhXG3nAXkF9p7qNjz1PyOZsNxOSivNbxQCPqCdfDrs0kQ7V Zgew== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=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.42.01; Fri, 18 May 2018 09:42:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752514AbeERQlN (ORCPT + 99 others); Fri, 18 May 2018 12:41:13 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:34085 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752491AbeERQlI (ORCPT ); Fri, 18 May 2018 12:41:08 -0400 Received: by mail-ot0-f194.google.com with SMTP id i5-v6so9838797otf.1; Fri, 18 May 2018 09:41:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pbiLlnVVSL/na48Y1hWLezkl5KXHUKbazHW8VdyRBs8=; b=pyxB4U8VNxWZ3UkEOliYYdWMnBCC9vcSFCtB9GAF0cl00DJguOzpcgYNioq8riIJ0C Md/rhxZA7mqPp5nNoemy8Eg6OF9/sEkK3a1GNW1VXgUL4LHrhaDVPGvap43WYS7AOHsG 24YQFFXeCaN4VORKw3yPEspxW7hRpMfmX3p9kbLzgFZcI0++f3w79cA6D/yk+YGtnaoS oqKLtjbjUfnsi1VEXZhpGhUJmY/lKpvQU9vqw7qnU7+NCCBhc82o36JtVbZ3uyh6OHgv IOvsjKJK51GUCDLAg6orladH/VYnu1JZnu8ZpJ9W61Hex14trBSSmG3FQFELew+rwdZg IEMQ== X-Gm-Message-State: ALKqPwczrWu0/68MbKGwQJCc1Krs08MP5b3DBV3EuwnSHfVc7h3YqbG6 pqUVQv0dv82I46ArB5wczB9kM7M= X-Received: by 2002:a9d:1556:: with SMTP id z22-v6mr7199335otz.349.1526661667256; Fri, 18 May 2018 09:41:07 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id m3-v6sm3549209oif.50.2018.05.18.09.41.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 09:41:06 -0700 (PDT) Date: Fri, 18 May 2018 11:41:05 -0500 From: Rob Herring 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, 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, devicetree@vger.kernel.org Subject: Re: [PATCH v5 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY Message-ID: <20180518164105.GA14201@rob-hp-laptop> 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526548680-2552-2-git-send-email-hl@rock-chips.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 17, 2018 at 05:17:58PM +0800, Lin Huang wrote: > If want to do training outside DP Firmware, need phy voltage swing > and pre_emphasis value. "dt-bindings: phy: ..." for the subject please. > > 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. rockchip,phy-config > 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 space ^ And format with inner <> ("< <0 1> <0 2> ... >") to show the pairs. > + 0x1f 0x15 > + 0x14 0x22 > + 0x02 0x2b > + 0x21 0x00 > + 0x12 0x15 > + 0x02 0x22 > + 0 0 > + 0x15 0x00 > + 0x00 0x15 > + 0 0 > + 0 0>; Since you have <0 0> multiple times, I presume the index is significant and the length is fixed. Please define the index meaning and length above. > + > 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 >