Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2160717rwd; Fri, 26 May 2023 02:37:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TWWpKiQOjS8v+Efw390+DXKZzLDCnrMQJ0zjVkdsT3hLZOB8BcE6bA0Fx7fNLhtaZk5Pg X-Received: by 2002:a17:90a:6e0b:b0:250:4a18:f575 with SMTP id b11-20020a17090a6e0b00b002504a18f575mr1754351pjk.9.1685093853844; Fri, 26 May 2023 02:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685093853; cv=none; d=google.com; s=arc-20160816; b=EdOcU2qMb0MCLBPUHPqBXM6cDqRvTTflyCMuLQ8pfcW2MbmLIReUcALKStrDMhV6tq y9LdgfoTpvkO97jfq5x4AXBrDmB5Fo+0DWhlSkcXkzx2PeV4QYQlJ+A9Z7i1SqicBVWq Xq7DQf9Mwa6645zDvXnCZ5HbUjMr8ahLDy3UWRHTiUs8lNWrGtevlwMTd+jV/tavjRfp F+zlmxP8jo0VSRrWg4o/z+C0p1pLjjQdPEU+DD7iP4oe1lx7o/tIZBp0j40+l7AuCpmV ptZbBtq3ihzQfUFA55yVq7CI0ClVvah+HFhIhbViRgwmOHsoyDO0saarq8oYPYpKa5Gh +idA== 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=9ebQebBj6frorIEER7P87fB2NtoCV4sQFC6HCO5QPLA=; b=o7d3bsT1SwNTQdZTHeF5/QVfPS9ZfMGk535kkGDZbplhSoonQgtUChyU0A9Pjiq00V NttoZ9LFIRur7rapZLWD89hmkGGH4DeqOIip/LKcNJGo2eSYDyGmr3Ux76c6u4xS9zmm XxHbuDrIJIX3vytFYd83HvK1TGOAcJAD2Ln44/Yr0ytMyQ6JZ1iKpJ6mFiOwBC6cLhhK ZE0MiXSJdve/Jg0oMjFvcB+FZ2sQv8GO2yXhGFMz8NKdUR3mi07WxTFQjHQvxQg/2hVo gRzyAII7Qy/rHXTrzmfZRKGPB1QyETUdlduU3Iyxeet0HO3YD7q/um00MHrZ+tnei1N2 e0rA== 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 lr15-20020a17090b4b8f00b0024e0758c190si4219651pjb.27.2023.05.26.02.37.17; Fri, 26 May 2023 02:37:33 -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 S242921AbjEZJFT (ORCPT + 99 others); Fri, 26 May 2023 05:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242912AbjEZJFM (ORCPT ); Fri, 26 May 2023 05:05:12 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 006BE194; Fri, 26 May 2023 02:05:10 -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 9A6C680C4; Fri, 26 May 2023 17:05:04 +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, 26 May 2023 17:05:04 +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, 26 May 2023 17:05:03 +0800 From: Samin Guo To: , , , Peter Geis , Frank CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , "Heiner Kallweit" , Russell King , "Samin Guo" , Yanhong Wang Subject: [PATCH v3 0/2] Add motorcomm phy pad-driver-strength-cfg support Date: Fri, 26 May 2023 17:05:00 +0800 Message-ID: <20230526090502.29835-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: EXCAS061.cuchost.com (172.16.6.21) To EXMBX062.cuchost.com (172.16.6.62) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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. 'Magic numbers' are used because we haven't been able to get real units from motorcomm yet, but similar usage has been found in Documentation/devicetree/bindings/net/qca,ar803x.yaml. qca,clk-out-strength: description: Clock output driver strength. $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 2] 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 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 | 12 +++++ drivers/net/phy/motorcomm.c | 46 +++++++++++++++++++ 2 files changed, 58 insertions(+) base-commit: 3201bee3a7171617da7cdbce06c428fb628c9944 -- 2.17.1