Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp616390rwr; Fri, 5 May 2023 02:16:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4P3rH7FEarFUa+DW5dn55oKKH9mFnn1SF55L+o5rrfU3yyvF8SKcrQFfqSINM1c4e1MNqi X-Received: by 2002:a17:90a:af86:b0:24d:fcc0:1949 with SMTP id w6-20020a17090aaf8600b0024dfcc01949mr970513pjq.12.1683278177001; Fri, 05 May 2023 02:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683278176; cv=none; d=google.com; s=arc-20160816; b=sgj8tgeMdwb8lRfflVpaS2krAfz2T0mfqvjCTOXueVwr63UkpJ+sS1ZDKQvkoBFoGJ kEXq4rmKzP2xx5po8+EFAzlPmz4AZqpV1chrsgQ4DlTxZXHBk2fpTPjpa5ZO+CTwpoZf aSKyv/1bORcx8F4q2nao0Ctz0H08IJwl2T9IFwLhMIA93Tmviq/vcaq8n120FTCiaB94 rIsrVTogE2DEF5i1yLAjeFzcSMup5frIF0OYtGeIQwtlrsk+/dEyznO8htmv3bOHYA9C 8M3sys93omHakDhuEo4SSQO+QBt7HKtfdqqZIQhMWDco4xq6gX8ulZy7ReqV52pL5te2 SHcA== 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=GmCvKIAlXo2cTT4c5jZrH0BLNA5IAY3nk0xP4QSayIY=; b=DkWod44xT+vtUOl4SaBf8wfLO8ezXqA9HeXswG8FxmuW5BTBtrEq40MXFBDARSI5DE QzwsEQfIcEOLYvxZ5jaDJykEPAKREZvC75rn5EgRJqLZDgKJI2EDPimqiLI19Rx9/paX iLhqgDvXVHpLsDGGRYVYUinJ8CfXrARSsPCFBfANzNCHWuGJzqCv8mk0TlofiOmKekNC lBIneOTtsED4Mxhx97DeYPWq8PS/CyqPsuA3yWSLN/sah6LOoOpvsInlF1XhWiIiDX/h DyGeN5LkLUweO1GZTYw1MdQVSlTKMGYP5V5BbjeaxehUIs522oa6pDHd4u2fsaLibef0 znMw== 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 o16-20020a637e50000000b0050ac7d1b32asi1509340pgn.603.2023.05.05.02.16.02; Fri, 05 May 2023 02:16:16 -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 S231517AbjEEJGI (ORCPT + 99 others); Fri, 5 May 2023 05:06:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231519AbjEEJGD (ORCPT ); Fri, 5 May 2023 05:06:03 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 730DB18934; Fri, 5 May 2023 02:06:01 -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 79DFE24E1F4; Fri, 5 May 2023 17:05:59 +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, 5 May 2023 17:05:59 +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, 5 May 2023 17:05:58 +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 v2 0/2] Add motorcomm phy pad-driver-strength-cfg support Date: Fri, 5 May 2023 17:05:56 +0800 Message-ID: <20230505090558.2355-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: EXCAS064.cuchost.com (172.16.6.24) 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_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 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 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 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: d3e1ee0e67e7603d36f4fa2fec6b881c01aabe89 -- 2.17.1