Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3484618pxv; Mon, 26 Jul 2021 05:21:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhxhXWQwFKY8+9UL9G2XNlb7nI2R122kK/SdVBP6DEKWmRKbDIxlkE/sjU1KmSSEC5xBGv X-Received: by 2002:aa7:d8d4:: with SMTP id k20mr3119658eds.373.1627302090413; Mon, 26 Jul 2021 05:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627302090; cv=none; d=google.com; s=arc-20160816; b=c80WULr0EvYIki5N13q8/nD6Fl86W0HOIx36UUAmc603PMvTL/gqlwCxxq5CtyfZIo QyvLC//AowXo/oBAXy4ZYB/4G1xzfPwzjjOG05Ac3BQK3VsrpQCGuip8qBDulXaYsbvd tSSY2w3y9yZg+PFXSjRTVQTNpeF0a51VsVOYSpEQemroB0tfkSx1XJUxmXQlOcv95mR8 MTaH06XBx//wRFE5S81yi3UdEZHKKXbMVDqvudIdv6s51T6nkpMQ73W1mcItHIQu1RPT XXjCJlSjntySE3xhhxx7A7ke5Njf3e26GOlMwKadwG5urFPwSLd9KtLVBR2Pxvr+Foww bjpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gn2/cWc1zfsN4PRCiPEaVVja2Z8e1ydG+z8qEcofAH8=; b=GjWSxABS/+LIHI4osXYFXGv7+5DXVYhm9bNbgRvtTGtDSO7m2+oRdwmKxjHEe76EjU ABRVRdLl+fAE0llgka3SBfM3vcy9WrkiJ2+Ah0zLSc07Zwy80khJ7w91cDg+sRxOQgT0 Yfaz0gOWl1hqiQYlU97HJX9PeJjBkKVbTvyYwqBhwenOwsxMOdI7XOXeYYPG1fmuRHF/ RiXuBL6/VfXHtVUJdwBGERYZuwNqkrOT/JAzqfKB83/IHMyTOTSZQt+ptp1ywram9OAw tVJB4NhpHp/wuiimHQrRX8CKxaSdkL3SiTGPFbgc/WRTmyq09yGtjGCkaElo09txxjv+ 5nlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j24si32005804eja.261.2021.07.26.05.21.06; Mon, 26 Jul 2021 05:21:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234006AbhGZLi3 (ORCPT + 99 others); Mon, 26 Jul 2021 07:38:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233982AbhGZLi2 (ORCPT ); Mon, 26 Jul 2021 07:38:28 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD456C061760 for ; Mon, 26 Jul 2021 05:18:56 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7zZN-0004Av-So; Mon, 26 Jul 2021 14:18:53 +0200 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1m7zZL-0006RE-Nm; Mon, 26 Jul 2021 14:18:51 +0200 Date: Mon, 26 Jul 2021 14:18:51 +0200 From: Oleksij Rempel To: Andrew Lunn Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Dan Murphy , kernel@pengutronix.de, David Jander , Jakub Kicinski , "David S. Miller" , Heiner Kallweit Subject: Re: [PATCH net-next v1 1/1] net: phy: dp83td510: Add basic support for the DP83TD510 Ethernet PHY Message-ID: <20210726121851.u3flif2opshwgz5e@pengutronix.de> References: <20210723104218.25361-1-o.rempel@pengutronix.de> <20210723170848.lh3l62l7spcyphly@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 20:57:42 up 233 days, 9:04, 26 users, load average: 0.04, 0.04, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Fri, Jul 23, 2021 at 08:12:05PM +0200, Andrew Lunn wrote: > On Fri, Jul 23, 2021 at 07:08:49PM +0200, Oleksij Rempel wrote: > > Hi Andrew, > > > > On Fri, Jul 23, 2021 at 03:22:16PM +0200, Andrew Lunn wrote: > > > On Fri, Jul 23, 2021 at 12:42:18PM +0200, Oleksij Rempel wrote: > > > > The DP83TD510E is an ultra-low power Ethernet physical layer transceiver > > > > that supports 10M single pair cable. > > > > > > > > This driver provides basic support for this chip: > > > > - link status > > > > - autoneg can be turned off > > > > - master/slave can be configured to be able to work without autoneg > > > > > > > > This driver and PHY was tested with ASIX AX88772B USB Ethernet controller. > > > > > > Hi Oleksij > > > > > > There were patches flying around recently for another T1L PHY which > > > added new link modes. Please could you work together with that patch > > > to set the phydev features correctly to indicate this PHY is also a > > > T1L, and if it support 2.4v etc. > > > > ACK, thx. I was not able to spend enough time to investigate all needed > > caps, so I decided to go mainline with limited functionality first. > > Limited functionality is fine, but what is implemented should be > correct. And from what i see in the patch, it is hard to know if the > PHYs basic features are correctly determined. What does ethtool show? > Is 100BaseT being offered? Half duplex? With current driver ethtool with show this information: Settings for eth1: Supported ports: [ TP MII ] Supported link modes: Not reported Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: Yes Advertised FEC modes: Not reported Speed: 10Mb/s Duplex: Full Auto-negotiation: on master-slave cfg: unknown master-slave status: unknown Port: Twisted Pair PHYAD: 1 Transceiver: external MDI-X: Unknown Supports Wake-on: pg Wake-on: p Current message level: 0x00000007 (7) drv probe link Link detected: yes > > voltage depends on the end application: cable length, safety requirements. I do > > not see how this can be chosen only on auto negotiation. We would need proper > > user space interface to let user/integrator set the limits. > > I think we are talking at cross purposes here. As far as i understand > T1L supports the data signals to be 2.4Vpp as well as the usual > 1Vpp. This is something which can be negotiated in the same way as > master/slave, duplex etc. > > I suspect you are talking about the PoE aspects. That is outside the > scope for phylib. PoE in general is not really supported in the Linux > kernel, and probably needs a subsystem of its own. No, no. I'm talking about data signals configuration (2.4Vpp/1Vpp), which depends on application and cable length. 1Vpp should not be used with cable over 200 meter and 2.4Vpp should not be used on safety critical applications. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |