Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2261694rwp; Fri, 14 Jul 2023 03:32:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlE6PPqZdICjjX06nSsr5CjZt9qMsxCToslcD9f6kuPshGRRQpWDkO5qKn25nHo0qDobuOSc X-Received: by 2002:a05:6a00:1694:b0:67a:c810:3cb0 with SMTP id k20-20020a056a00169400b0067ac8103cb0mr4524445pfc.3.1689330777326; Fri, 14 Jul 2023 03:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689330777; cv=none; d=google.com; s=arc-20160816; b=DtfpFICTnbUGwOwKHrcnc0UOSC+hRnCWYXECdUW94Xxow2Qbjow10y+nqqekiiiMzt gSWo5V2urzpQzytEINtTEycX1PdJxlqkudi26WJ6OFVGpv1GBM2QizFpR6IpLxVWgcGw QGhhvUS/xwfpHFj2+E2gK0ZP5fNFqUqpRBgU9u6De1CytlNJtjpYpnGo0zP63axo9uST l34H9PiMUB/UrREg1vk8KDraD7ZJd2ascjGWvLFwNUhZKNiAP4YXLNwxc+d5EACoVuvt 3tDC2ZP4llCfOmS/FDJT7pRgnv/JreYd+nrkZ46iTxuxPUOXfpDGIlkaz86Z1mRRQjvw 5IJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=0x0qhr/3FyqQgA80gQ3R98AoZw+27dvFjEm+hCbnkpw=; fh=P0b/g348bZwYtt4242sI6uTUj2SsQhKh2PNE6+fA3lc=; b=dwT6YeILmW0hWv4y87Bf2wM3TGR1Dd4respoiIhfosNVumI/8HYM0hzi0RPwNQOnB0 cDT6MigvCzvO6IQCACiD9/MdSeGE+MPtTaZDRP51wsDCzWWP/MRRtRXtLqyJZlW58Flq hhIdy1Wxy+7nsUXeMuXD+9O561uCilISHRmSbR7mpep3PS9sqiH4xja4XVU6gS9x5p9n v5uyY04xGkPyRomIYXoCh/cKA9YONg41JaC6slLMD8Er5byGkxiseORfdZd1C5RhstEm q0UN1S8x7BtC29kki/tLZjB0sC0Wkn6ra5kDLIlRUD5eXw6X9yr/3pbXp/qXI2H/bE3N mvaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb1-20020a056a004c8100b0068225e629aesi6802667pfb.0.2023.07.14.03.32.44; Fri, 14 Jul 2023 03:32:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236069AbjGNKOO (ORCPT + 99 others); Fri, 14 Jul 2023 06:14:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235938AbjGNKON (ORCPT ); Fri, 14 Jul 2023 06:14:13 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F106E44; Fri, 14 Jul 2023 03:14:11 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 6BE9D24E1AC; Fri, 14 Jul 2023 18:14:09 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 14 Jul 2023 18:14:09 +0800 Received: from starfive-sdk.starfivetech.com (171.223.208.138) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 14 Jul 2023 18:14:08 +0800 From: Samin Guo To: , , , Peter Geis , Frank CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Andrew Lunn , Heiner Kallweit , "Russell King" , Samin Guo , "Yanhong Wang" Subject: [PATCH v4 1/2] dt-bindings: net: motorcomm: Add pad driver strength cfg Date: Fri, 14 Jul 2023 18:14:05 +0800 Message-ID: <20230714101406.17686-2-samin.guo@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230714101406.17686-1-samin.guo@starfivetech.com> References: <20230714101406.17686-1-samin.guo@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX062.cuchost.com (172.16.6.62) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The motorcomm phy (YT8531) supports the ability to adjust the drive strength of the rx_clk/rx_data. The YT8531 RGMII LDO voltage supports 1.8V/3.3V, and the LDO voltage can be configured with hardware pull-up resistors to match the SOC voltage (usually 1.8V). The software can read the registers 0xA001 obtain the current LDO voltage value. When we configure the drive strength, we need to read the current LDO voltage value to ensure that it is a legal value at that LDO voltage. Reviewed-by: Hal Feng Signed-off-by: Samin Guo --- .../bindings/net/motorcomm,yt8xxx.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml b/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml index 157e3bbcaf6f..097bf143af35 100644 --- a/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml +++ b/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml @@ -52,6 +52,52 @@ properties: for a timer. type: boolean + motorcomm,rx-clk-driver-strength: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + drive strength of rx_clk rgmii pad. + |----------------------------------| + | rx_clk ds map table | + |----------------------------------| + | DS(3b) | wol@1.8v | wol@3.3v | + |________|_________________________| + | | current(uA)| current(uA)| + | 000 | 1200 | 3070 | + | 001 | 2100 | 4080 | + | 010 | 2700 | 4370 | + | 011 | 2910 | 4680 | + | 100 | 3110 | 5020 | + | 101 | 3600 | 5450 | + | 110 | 3970 | 5740 | + | 111 | 4350 | 6140 | + |--------|------------|------------| + enum: [ 1200, 2100, 2700, 2910, 3070, 3110, 3600, 3970, + 4080, 4350, 4370, 4680, 5020, 5450, 5740, 6140 ] + default: 2910 + + motorcomm,rx-data-driver-strength: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + drive strength of rx_data/rx_ctl rgmii pad. + |----------------------------------| + | rx_data ds map table | + |----------------------------------| + | DS(3b) | wol@1.8v | wol@3.3v | + |________|_________________________| + | | current(uA)| current(uA)| + | 000 | 1200 | 3070 | + | 001 | 2100 | 4080 | + | 010 | 2700 | 4370 | + | 011 | 2910 | 4680 | + | 100 | 3110 | 5020 | + | 101 | 3600 | 5450 | + | 110 | 3970 | 5740 | + | 111 | 4350 | 6140 | + |--------|------------|------------| + enum: [ 1200, 2100, 2700, 2910, 3070, 3110, 3600, 3970, + 4080, 4350, 4370, 4680, 5020, 5450, 5740, 6140 ] + default: 2910 + motorcomm,tx-clk-adj-enabled: description: | This configuration is mainly to adapt to VF2 with JH7110 SoC. -- 2.17.1