Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2267997rwp; Fri, 14 Jul 2023 03:39:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHD+7tUZnGY7aUvMAlxkrFM8j7JmjJP8McW3TkvNTkkF+z/gyMt08RvieM75kRtGldB9QdK X-Received: by 2002:ac2:4dab:0:b0:4f8:ff52:93b7 with SMTP id h11-20020ac24dab000000b004f8ff5293b7mr3061652lfe.30.1689331191510; Fri, 14 Jul 2023 03:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689331191; cv=none; d=google.com; s=arc-20160816; b=Fud7sisqVT/yQbogiV8j9JDoQ/Zy6TlhFkwvsAesHpcf9Eo8YYP0WPs2tVSYA1FJWx 7c5ar43zQbN8bDcr/GbEFdrOlF3vqsFcntHsDvHnKCWdc605jMnifm3JSYi79w5njsCp Gt1olJa3HzEvrbEuSd2nKNIxWwVrF+OBBqOgjaV3EXyhx2j9evjZ8JTEQA9SbDJ9sNmx mV3WgSLCmfSxhHY0f4iQ9hg9wy67ivLit8J1QlKO7rGTEYiRX+ymop8J+SWVuTJ9S4Jl 11jBQL28dG1H2iR5bYZE/Urk3Ayf1VdG6bvQxcpZomiHdmbsNFBq1FKhHxpJVcFAG7/x 7jJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=nV/LT6ljE9tTg79BVn/KFyRNwN1zrV6oAycZXdj/qlg=; fh=P0b/g348bZwYtt4242sI6uTUj2SsQhKh2PNE6+fA3lc=; b=lLDpp3F+e1BFaQMwHc685fP/+BwUT0DrQzokK4snJNd0HuSQ8JTqlwNYsVFyu9iATU O9TL1VY+PRvWXy0IsI89uLIKnWeiv7gPWRytvCYgmg3fAWmFGU3JBWtE2ujbxkFgcC3u 94lyC+3cC3kVBGbCsgp6LmPBIriHq+g/E/YNhvqNAs0xtHguFyCUQoYTCvjivTHbqUiG HcmrV2deNcvSfbudijdnSR16ASe9a8x9ImuIfC7DICUl82/rm8UkmGsZwCTH74DhdZ9D Fnemm9Fb9fiYsDqxvskzNfj+UYPMYyLCt11pfQ5sPwjDscVoR+CUj0QrdWGDbbRPlIH4 lwTg== 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 t20-20020a05640203d400b0051d9df5dd25si376927edw.97.2023.07.14.03.39.27; Fri, 14 Jul 2023 03:39:51 -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 S236096AbjGNKOV (ORCPT + 99 others); Fri, 14 Jul 2023 06:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236082AbjGNKOR (ORCPT ); Fri, 14 Jul 2023 06:14:17 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32DDAE44; Fri, 14 Jul 2023 03:14:16 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 821628521; Fri, 14 Jul 2023 18:14:08 +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; Fri, 14 Jul 2023 18:14:08 +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:07 +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 0/2] Add motorcomm phy pad-driver-strength-cfg support Date: Fri, 14 Jul 2023 18:14:04 +0800 Message-ID: <20230714101406.17686-1-samin.guo@starfivetech.com> X-Mailer: git-send-email 2.17.1 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_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, and the default strength may not be suitable for all boards. So add configurable options to better match the boards.(e.g. StarFive VisionFive 2) The first patch adds a description of dt-bingding, and the second patch adds YT8531's parsing and settings for pad-driver-strength-cfg. Changes since v3: Patch 1: - Used current values instead of register values - Added units and numerical descriptions of driver-strength Patch 2: - Added a lookup table to listing the valid values in the schema (by Andrew Lunn) Changes since v2: Patch 2: - Readjusted the order of YT8531_RGMII_xxx to below YTPHY_PAD_DRIVE_STRENGTH_REG (by Frank Sae) - Reversed Christmas tree, sort these longest first, shortest last (by Andrew Lunn) - Rebased on tag v6.4 Changes since v1: Patch 1: - Renamed "rx-xxx-driver-strength" to "motorcomm,rx-xxx-driver-strength" (by Frank Sae) Patch 2: - Added default values for rxc/rxd driver strength (by Frank Sea/Andrew Lunn) - Added range checking when val is in DT (by Frank Sea/Andrew Lunn) Previous versions: v1 - https://patchwork.kernel.org/project/netdevbpf/cover/20230426063541.15378-1-samin.guo@starfivetech.com v2 - https://patchwork.kernel.org/project/netdevbpf/cover/20230505090558.2355-1-samin.guo@starfivetech.com v3 - https://patchwork.kernel.org/project/netdevbpf/cover/20230526090502.29835-1-samin.guo@starfivetech.com Samin Guo (2): dt-bindings: net: motorcomm: Add pad driver strength cfg net: phy: motorcomm: Add pad drive strength cfg support .../bindings/net/motorcomm,yt8xxx.yaml | 46 +++++++ drivers/net/phy/motorcomm.c | 114 ++++++++++++++++++ 2 files changed, 160 insertions(+) base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 -- 2.17.1