Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5355045rwp; Mon, 17 Jul 2023 02:36:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHeJJy+zV4awmrtf1/eWnCuK2g5K2jQYrgqi+18WWAyu1nxvbt1LooOsbXMvT2k1IiONRQ5 X-Received: by 2002:a17:907:101b:b0:982:30e3:ddcb with SMTP id ox27-20020a170907101b00b0098230e3ddcbmr12092585ejb.65.1689586560797; Mon, 17 Jul 2023 02:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689586560; cv=none; d=google.com; s=arc-20160816; b=Lkxr11jbyW/kjNCO61Ke10gjR88HZeiq7VDLP7cHp1Dz7llM3eJU5yAXNDlX6qulRI I6nK/d/5jC9dw/TWTnuryZjWeVD2166IradS9GiRJTuFYeEDyTnp4V5le9RotOKuLccp Mc6RlNxLZa+ZS3iTvOzRWGMHIwN8UKFIdVx9YJL0zDIqbxUM9s6hjJ7kSGAdhbnO68qV nlErJrn+asAMMcYB8kUDoDf8eofebyuLChOmK7I4Olylp+cl79K6Foh6LbLvH2qRl8tT 8HK7lpxNILmO6Sk6gnbMnWvvEBIjn4ypg75aqeQj6TgGhuHJoKT6ofxPU3dG7lIIY8Dh Q8oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=CtJuzh+tuo85HX055rzJRlK2ksUAOmbs4KhMbWx6V8k=; fh=GlitXIPssz5Y9N3grMm+3Kq9Tza/nUY49K5XHOmC1Ao=; b=RKmd5ukreUNCtGxLro0dfjDdht12xLj0YilCBmpMNpwVnA9O0ELvDxZn2RJTKKaCAZ tzjgUrVHk8mW97d/dsnA8azjndN50qfr30h2a6VoV/pdw9HReoPrpM6ESGb7GWxOVdOM BXm44gsc0fMb96Lw09aRm6KCvctjkA0NgtLc/NbMaIsIFW3qpIXVoZpyLbDzZzpr+W03 6iR4yfw+Z3LdRWAjrkssfaoN7OX8vHzwABXG0b4ymk8Rj2/i4cCAjRHBAHkfTbiBrQGw oXpU2qRiTKmI7cyryh+/1XskYLwkrGEUOuBYdbM9sYg9mJeD9AHSIVYQHTzXZLoqGv0t te4w== 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 s17-20020a170906355100b00993470682e9si12294894eja.739.2023.07.17.02.35.36; Mon, 17 Jul 2023 02:36:00 -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 S230322AbjGQIfg convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Jul 2023 04:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjGQIff (ORCPT ); Mon, 17 Jul 2023 04:35:35 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB1E3D8; Mon, 17 Jul 2023 01:35:33 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id ABF2D24E295; Mon, 17 Jul 2023 16:35:30 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 17 Jul 2023 16:35:30 +0800 Received: from [192.168.120.43] (171.223.208.138) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 17 Jul 2023 16:35:29 +0800 Message-ID: Date: Mon, 17 Jul 2023 16:35:28 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v4 1/2] dt-bindings: net: motorcomm: Add pad driver strength cfg Content-Language: en-US To: Rob Herring CC: , , , Peter Geis , Frank , "David S . Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Conor Dooley , Krzysztof Kozlowski , Andrew Lunn , "Heiner Kallweit" , Russell King , Yanhong Wang References: <20230714101406.17686-1-samin.guo@starfivetech.com> <20230714101406.17686-2-samin.guo@starfivetech.com> <20230715024711.GB872287-robh@kernel.org> From: Guo Samin In-Reply-To: <20230715024711.GB872287-robh@kernel.org> Content-Type: text/plain; charset="UTF-8" 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 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 -------- 原始信息 -------- 主题: Re: [PATCH v4 1/2] dt-bindings: net: motorcomm: Add pad driver strength cfg From: Rob Herring 收件人: Samin Guo 日期: 2023/7/15 > On Fri, Jul 14, 2023 at 06:14:05PM +0800, Samin Guo wrote: >> 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 > > As the units are uA, drop the type and add '-microamp' suffix. > 'motorcomm,rx-clk-drv-microamp' is probably sufficient. > Thanks for the guidance, will be improved in the next version. >> + 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 >> Best regards, Samin