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: huang lin X-Patchwork-Id: 10400091 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 775F4601E9 for ; Tue, 15 May 2018 07:02:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49D19285C3 for ; Tue, 15 May 2018 07:02:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E4C6285EC; Tue, 15 May 2018 07:02:48 +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=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ED76D285C3 for ; Tue, 15 May 2018 07:02:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5E0C46E184; Tue, 15 May 2018 07:01:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id C3D386E15B for ; Tue, 15 May 2018 03:22:57 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id x9-v6so6988358pfm.2 for ; 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=q6CNPYrUTz2M7zE8tJrysC0GW2QFzmegUOPNGijkqvbHBgHVavCHcv3+vm2pBqF/jt D4r8i0jOImb/cUhhZneG3YQg0/jMdwXFbUjJcG52bsEemkJrYTLXofwmZj13NcGg3mM7 81q99CegYidi3j9aMOHjUvj4ttFBfGPcKFXpOUsFBS2ZWzO/QMjiAVs7YMMuqkPFoAme ZyjxjEJ+fX002i96+NcU1oPUrY7ikk92XJ1/KzZsVo/DJ6vtcOpG4PTeivIeGCxZOv85 uzqRwvuCCGF4elnPHAwKKgAPr39cqvojxXHfwoEkffOd8w9uPEAQ8QgBHV5YWhWgeTq7 BoRA== X-Gm-Message-State: ALKqPweqSQ6ijnhey4Osu1efT3mYzY7tWyfr+7nCCfMTC0CQo4wx7zGh cFndCeNDZioinH9zDfxdm8A= 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 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> X-Mailman-Approved-At: Tue, 15 May 2018 07:01:56 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, briannorris@chromium.org, dianders@chromium.org, 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 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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: - 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>; };