Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp287370rdb; Mon, 18 Sep 2023 15:26:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKNdXZO7q4QOECY+0t2diVGPot5CA8MYGLnUw4ubZLd54C96PtB+H+bbdTtB3G05r2Jvfu X-Received: by 2002:a05:6a20:1608:b0:154:fb34:5f23 with SMTP id l8-20020a056a20160800b00154fb345f23mr8935536pzj.8.1695075974245; Mon, 18 Sep 2023 15:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695075974; cv=none; d=google.com; s=arc-20160816; b=dRxtYxbj2xB7x1f3HRJz5oOyr+s/A4bLY2o9MfLrj/olKbs08FR+JRMEywkDCAecFS UV9yc+ZWHJV/2QgPy3qK28ZgpHrtHKsIZHAvWBtjpdDQwld3z/LbD3tu0Rfsqul9gwwC /pcTblteMjgdB1tgqtQ5KqkdCR3Shv7cJ+jt4Ag8IMdgbz/43wQMzGjoPSjZpy76TfeP mRPkzgBiJQvAftdnPZPM4K+xT1eJdukC2amIjM3oJG4ovFOzfmSjMb+u6ATatqbwdsy5 hh0fg+V/v/YixS1KJhNZxhhSJ9puATDtV3XmiCrNJTyx6wtsZxNnHl7S8k57vdB3mJAd irVg== 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=dauQr5A1qgLA9BmzHiEleNb3IjNWdzZ7y7a1hCEGPGY=; fh=INm4myRxNPT9b73eFR05FWh2cDosJdY43dfgBn8X4XA=; b=ypuglVVQiAjrnBd3zch8ojZADH/PJUCvdSVtSrQDjls8ABV/oFMtApFh1T+m9VD98N iwEBK/HslV/vDEiVU+Ap3EWmBM7hRz1iLOYL6lHqPRSBwuaSSBDeK8ee2Oml+qwIe1PV Qn2WLmjRw+MPCRJXYOWbqXlz4Ds5woRC2siMcYJFzxfd/KrIg+oU7kEjeH4OReVNqte/ nCvh4aoz6sgH83vDMMNTEaDjxBOVqWXMRznUHa+6Jv3E9hDkecXZDk0X/BFGNtCi7WuA xgh6MK/k79gH2BZpbWXlVtpxKSpxyeFArziJcYQXtuOn67uKdT2aEkr6oAcknZ41irTi ePog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=x0mHl8qt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m1-20020a656a01000000b00564bfbb19easi9096697pgu.472.2023.09.18.15.25.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 15:26:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=x0mHl8qt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8F49B8122290; Mon, 18 Sep 2023 10:08:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231389AbjIRRHv (ORCPT + 99 others); Mon, 18 Sep 2023 13:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231160AbjIRRHn (ORCPT ); Mon, 18 Sep 2023 13:07:43 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304B493; Mon, 18 Sep 2023 10:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=dauQr5A1qgLA9BmzHiEleNb3IjNWdzZ7y7a1hCEGPGY=; b=x0mHl8qtGRdY+kCyZqq3C5c5OF C6aejezm9Q3BOHyHm7/OzU+eGIkWqNgFNkm046pxYqXYH5sqZW7IznKwWA5lrWDbZRyxFi/WWaaTf nq7Lsdc31FAWQ1kRs2OyhRB653+zyp/v3YqvYtkkisXynTTr1JUVmaH/Tm+uT0Jbyduw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qiH9V-006oJU-7v; Mon, 18 Sep 2023 18:31:13 +0200 Date: Mon, 18 Sep 2023 18:31:13 +0200 From: Andrew Lunn To: Jay Monkman Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Piergiorgio Beruto , Arndt Schuebel Subject: Re: [PATCH 1/4] dt-bindings: net: Add bindings for onsemi NCN26000 PHY Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 18 Sep 2023 10:08:05 -0700 (PDT) > +properties: > + description: | > + Sets the transmitter amplitude gain. If not specified, > + gain is set to 1.0V (1v0) > + tx-gain: > + enum: > + - 1v1 > + - 1v0 > + - 0v9 > + - 0v8 How is a gain in volts? Isn't gain just a multiplier, so it unitless? > + tx-slew: > + description: | > + Sets the slew rate of the TX line driver output. Defaults > + to slow if not set. > + enum: > + - fast > + - slow How does this map to a standard? I would expect the standard to specify the slew. So why is this needed? > + dig-slew: > + description: | > + Sets the slew rate of the digital output pins. Defaults > + to slow if not set. By Digital output pins, do you them the GPO pins you are adding a GPIO driver for? > + cmc-comp: > + description: | > + Sets the common mode choke resistance (CMC compensation). > + Defaults to 0-0.5 ohm (0p25) if not set. > + enum: > + - 0p25 > + - 1p38 > + - 3p00 > + - 3p37 What is the mapping between 0-0.5 ohm and 0p25? Can we just use ohms here? > + plca-precedence: > + description: | > + Enables PLCA precedence mode. Defaults to off if not > + set. > + type: boolean What is PLCA precedence? Should this be an ethtool parameter, along side all the other PLCA controls? > + eni-mode: > + description: | > + Enables Enhanced Noise Immunity mode. Defaults to off if > + not set. > + enum: > + - force-on > + - force-off > + - auto phy tunable? > + > + tx-pkt-loop: > + description: | > + Enables packet loopback mode. Defaults to off is not set. > + type: boolean How does this differ from struct phy_driver::set_loopback()? > + unjab-tmr-disable: > + description: | > + Disables the Unjab Timer. When disabled, device transmission > + will be stopped due to a jabber error and only restarted on > + device reset. If not set, this defaults to enabled. > + type: boolean > + > + col-disable: > + description: | > + Disables collision masking. Defaults to enabled if not set. > + type: boolean I could be wrong, but this feels like an SDK dump of all the features the device has, but nobody will ever user in reality. We need some justification why all these properties are really needed, and ideally a .dts file for a board actually using them. If there is no user, i suggest waiting until somebody really does need them. Andrew