Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9399058rwp; Thu, 20 Jul 2023 04:31:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhXhuBPqxb34TEOqEBHcKMffyXDxgaBAuRGSiu+IHZaULpbRCdO5Y9hEMi6i75WBUgeRMG X-Received: by 2002:aa7:c309:0:b0:51d:d4c0:eea5 with SMTP id l9-20020aa7c309000000b0051dd4c0eea5mr3872255edq.40.1689852706235; Thu, 20 Jul 2023 04:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689852706; cv=none; d=google.com; s=arc-20160816; b=IRR6k5imhhqsTqzrHmfCzn3nkSqt63zIYTVKhCog9LKU+b+sGMYqzAYTzWCcTa/NJ+ 50v7t2c10oSkkqSDs/z+3ehfRIIGtkw+CIveZu1oasSjMGL6GJ/J2KjaJav09j7PAnev s+pYnfG/JOzrFHx8lm8Rhqp8I/4YtWlD7D5syDKkUPOAC8yNERZR0tp/zRnkM+LsTerk A6qt8H/egBr8FL94ejri6H67rMcmjIMNNmeeT32JxYan0PM+iMFtQ/WOdQlGCyy+W+xN Qj//Eq0bJZN/WqAkvZaKjRW3YbRjgJfphQvv8l5rTypyMVbpyVjXCX93tQB/OtCUnMcv ly8g== 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=hL93n+XoxxkBzVtHZvOeXZoZK1q8jXT+ONUArZWX7Bg=; fh=P0b/g348bZwYtt4242sI6uTUj2SsQhKh2PNE6+fA3lc=; b=QI4j4XmNWFfUnyKm/EK8e4WVHD49WYddbISlhmdJtKC9xb+59MhkdpbhQMPol8SsbR vuXkogkmdN8QYT5QxyM6l4NNoZWIV0vAdlMFr+oZeSc5TtI5eI6eECz5Uk0kVWiwky9X jxlcDNF0l4sMub5EW//07pBPkIBZf6eVXE/nbkYvAG54g5qWQJSCkJn+pK+2C5ktntBb 2AIiY15N5lCzmxn0zfpnqZhpytNgWUtRFDTyH8yazfqkL2K6ZTepj8rV7lx/6TmMXz3u x82OQdKbRhHHqSfS38y4WQRlxjYe0m/VjOtLh+Yr737Kzzcy36eayOI2bsa/87L2Gl1U eu0g== 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 q7-20020a056402032700b00521dc28bcf1si608423edw.112.2023.07.20.04.31.21; Thu, 20 Jul 2023 04:31:46 -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 S230339AbjGTLPY (ORCPT + 99 others); Thu, 20 Jul 2023 07:15:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbjGTLPT (ORCPT ); Thu, 20 Jul 2023 07:15:19 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 543DE2690; Thu, 20 Jul 2023 04:15:15 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 4A21824E0DF; Thu, 20 Jul 2023 19:15:12 +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; Thu, 20 Jul 2023 19:15:12 +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; Thu, 20 Jul 2023 19:15:10 +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 v5 1/2] dt-bindings: net: motorcomm: Add pad driver strength cfg Date: Thu, 20 Jul 2023 19:15:08 +0800 Message-ID: <20230720111509.21843-2-samin.guo@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230720111509.21843-1-samin.guo@starfivetech.com> References: <20230720111509.21843-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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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. Reviewed-by: Hal Feng Signed-off-by: Samin Guo --- .../bindings/net/motorcomm,yt8xxx.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml b/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml index 157e3bbcaf6f..605be74f8556 100644 --- a/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml +++ b/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml @@ -52,6 +52,40 @@ properties: for a timer. type: boolean + motorcomm,rx-clk-drv-microamp: + description: | + drive strength of rx_clk rgmii pad. + 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 to obtain the LDO voltage and configure + the legal drive strength(curren). + ===================================================== + | voltage | curren Available (uA) | + | 1.8v | 1200 2100 2700 2910 3110 3600 3970 4350 | + | 3.3v | 3070 4080 4370 4680 5020 5450 5740 6140 | + ===================================================== + enum: [ 1200, 2100, 2700, 2910, 3070, 3110, 3600, 3970, + 4080, 4350, 4370, 4680, 5020, 5450, 5740, 6140 ] + default: 2910 + + motorcomm,rx-data-drv-microamp: + description: | + drive strength of rx_data/rx_ctl rgmii pad. + 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 to obtain the LDO voltage and configure + the legal drive strength(curren). + ===================================================== + | voltage | curren Available (uA) | + | 1.8v | 1200 2100 2700 2910 3110 3600 3970 4350 | + | 3.3v | 3070 4080 4370 4680 5020 5450 5740 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