From patchwork Mon May 14 09:53:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: huang lin X-Patchwork-Id: 10397807 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CBC24601E7 for ; Mon, 14 May 2018 10:09:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6F1C290CB for ; Mon, 14 May 2018 10:09:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAA34290CD; Mon, 14 May 2018 10:09:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0C405290CB for ; Mon, 14 May 2018 10:09:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Sz9R7SHAC8Ws9U3oSmyNAYpaSSSD8xQ4SY2SvcP6R3Q=; b=UfFPAmhKW33SKIvsEM9W+DYVwh 2tI8v7uEFviiTwsPYsK4zrpcfSrZvgemKzUFcLZPRHl9s+VV+aeDBBdNH1xQKHHIDkD82V+ZZ/xPv skwPrCzS9OIq/Una/4yFD5EWyCaLSJko0vcwTmqfXkWre0nyeG21Cq5d0gGNQl7ITcQcS+OARZc9b eW681Q4lEIhOxJrsyEh0tvcN8Az+Yy1yhWGptYFG2fgKyj8AYsIFa2AP6KoW/ORRuJ4fv5BysDEIF HKcdppG6Eu+0MdXjRXFdGEzJHT9FLUYiLC+uAReTO73H5xlxIMPWjIH7DXTQvB+zrpfET8pxmyH/O XuP29MRw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIAPY-000553-27; Mon, 14 May 2018 10:08:56 +0000 Received: from mail-pg0-f67.google.com ([74.125.83.67]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIABW-00081Z-N4; Mon, 14 May 2018 09:54:35 +0000 Received: by mail-pg0-f67.google.com with SMTP id l2-v6so5259263pgc.7; Mon, 14 May 2018 02:54:21 -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=gdJNMTZFeJXfRxW6jtqb/DIUhu2Qi1ysLXhvpB9S3J+T1DrgDpQrIrQh2PnPouBVlp +QB4gd5syQvouUgeCUT13tzJEPsGW0hnd38LbDmBh/vA/stCH8dqKPmn3cqFb9NGhOgG Dp64m8w9P1bROrPiMWJWpgNh5ZWvFE9Wxg7rLCUqpUgeDqYbdPkylNxRlrGhPMQ+EJVG rBfpcu8RHxcyOSbNkuBuwiE4eMZpVbLOE5+M1lQRFO+f5ZvwRv9hUCq7fU2XewJd08qG kZwgn1ZSiZY0AWo+2tNtztMSn8x8s5zlgkaD8IFjtTsD63EQ/yxrfa2vQzgQrx8sbogu evxQ== X-Gm-Message-State: ALKqPwdoaUx1qIoLAHbvr5t5xlSFDJxUcLh452JPRPVPCbaGxkhdGY8Y Cp3ZdfZMdi7xfgwVu0NJv8o= X-Google-Smtp-Source: AB8JxZrV1zcigHrG2RemV5LnuD3Nvd2qDe1CrRUhnBqUoczXDJmcVs2A/i3Wwa2zNnOsaEmzq1ZUHQ== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180514_025426_759883_A414CBFB X-CRM114-Status: GOOD ( 12.91 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, heiko@sntech.de, eballetbo@gmail.com, briannorris@chromium.org, dianders@chromium.org, jani.nikula@linux.intel.com, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, dri-devel@lists.freedesktop.org, daniel.vetter@intel.com, linux-arm-kernel@lists.infradead.org, Lin Huang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; };