Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3188993rwp; Fri, 14 Jul 2023 20:08:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGu6/gqP1Eo4PW1NWIby3Ui4l8RbCFbff6ZkG3SGmwV14AclRuPuXCe6ed0ko0OzAIEIqZ X-Received: by 2002:a17:906:73ca:b0:993:d7d2:7f1c with SMTP id n10-20020a17090673ca00b00993d7d27f1cmr4431475ejl.5.1689390508615; Fri, 14 Jul 2023 20:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689390508; cv=none; d=google.com; s=arc-20160816; b=ZEH3lPqW60CFhYK4xTPfVuBWtHCyNIpFO7iUaUm+vlH0CnQjfezNPE3D5F7vFJBSxe HMrTosohhHLMDoMO8dLq/3yMk//hsQ9VAzkyRCHETbWG2IvOxPvy4M7v5a8X4j5F6Oli k4UhhAePSrQ4dTD60SqUL/nhxsd/FTruW6LMn3LUNZd7KBO3yeswEEnCn27AIkPChUtv zsA2GjjP2E8Im8f9edSpOdje7vkaua3mnFGDpjmaztzfM6BkXwdL+R2yVik33liqiMVg VdtettBwjlGQX3XKnoz0VKsl+JOHWB6kKqX1N5OWfcofl48zwLuOXJLL6GlFkNKYopM0 vgEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zNmzXF+6+FnRu+mjSIJqXHSpjNeAIn3EiGeZBt9k3ss=; fh=wZHxhq9RnsrtXBtensXd0f3xRQyDZaGoST9/uKQpnO0=; b=Hl4Db+0WNgQ9lwN7g2zoJ9fcL3BcOlpMGXwsDT8RczJErwY3zPNuaBw/I+SZVGHsWh 3XafU9L/cqeUHi2SgPcmB2n786E/LtUztqyrc2bXFHIx+O6Qe0QCsD2p/idt7XhjRk2E iny9fyeY12Vyde7AUNQxsFFJeurm09hnrm/+/jQmtaD56pDzaKwWg05w9pcVhqUrEU3w L1JaCjrBmq96N605hi4DnKQb4Ds3aUchEsrh9tHbHvYW2++DyHZeeaqqVXgIp6BuuaNS UBLe4u9FXEh0xhaFwJjmZPI3uyrzQwWgazQnNnyjFNszrrkcQWa6M1lXVyYtK4Ihh969 EXdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CqCnKzlO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rl8-20020a170907216800b009885462f377si11187899ejb.476.2023.07.14.20.08.04; Fri, 14 Jul 2023 20:08:28 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CqCnKzlO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbjGOCrR (ORCPT + 99 others); Fri, 14 Jul 2023 22:47:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjGOCrQ (ORCPT ); Fri, 14 Jul 2023 22:47:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C741980; Fri, 14 Jul 2023 19:47:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BBDB561E19; Sat, 15 Jul 2023 02:47:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B65F7C433C8; Sat, 15 Jul 2023 02:47:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689389234; bh=cSL9tSXE1IYkMTAzMwc2gHb95tSzr+oNTr7zMsZ9vDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CqCnKzlOw+c5jOXlp0PuUA0EL9dIzvtBPSgh8F0gOLHJ/jgfYWhBDXBs9q3iQIqdJ kPmdeohANF8QOE26tIyLiEkzmqXEMQ7Xgh4Sb4F9RzhElqnbv/DXRg7Xglt8+8F5Tx AmI3tC8lfFdDxA3Ji80o83oRFLu3/YA1tpIEmnqzmWVGM+ge7225yZRy9gkjW94U0w Ms0+LAxH6W0GtpEk360OpAUPHpNDjbBYmouNOpiKDoLnfz/1D+lm8W9BfVCdjokevN 6JAeg/62rVzsY/jP2tTyDd94I9lAIuTPzoyHUDt+/5jLKK+qqURCrVk3k3M2QMyl3S viiIK1nEz4k+w== Received: (nullmailer pid 875753 invoked by uid 1000); Sat, 15 Jul 2023 02:47:11 -0000 Date: Fri, 14 Jul 2023 20:47:11 -0600 From: Rob Herring To: Samin Guo Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, Peter Geis , Frank , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Conor Dooley , Krzysztof Kozlowski , Andrew Lunn , Heiner Kallweit , Russell King , Yanhong Wang Subject: Re: [PATCH v4 1/2] dt-bindings: net: motorcomm: Add pad driver strength cfg Message-ID: <20230715024711.GB872287-robh@kernel.org> References: <20230714101406.17686-1-samin.guo@starfivetech.com> <20230714101406.17686-2-samin.guo@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230714101406.17686-2-samin.guo@starfivetech.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, 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 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. > + 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 >