Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5120132pxb; Sun, 6 Feb 2022 14:32:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZRm5gqKqC0DPhqTR10qco7gcrmpWP6mfjEBEqt0Lz4wK81VWsb+pU9qhbH/AGg10atesV X-Received: by 2002:a17:90a:8409:: with SMTP id j9mr10930927pjn.101.1644186749173; Sun, 06 Feb 2022 14:32:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644186749; cv=none; d=google.com; s=arc-20160816; b=ITUSmQ3EVGMq4YivPFAQ8yr9OtUs9TSiFTb9ZkYGDzJgbFscEhKAfYEuj+VS4SKLpA RPeZyi8FdF/dxx6wezmlWl4obE5HWHe4LSmgmNlrduOM0JTACy+Nyp83TuVpliBFX5jG 6XlQ/rIhh4Yln63OoK93cShsxUVLDjftd1RHQ/d4vSLfUzwJOe3BIcLSPtt2daGeVqDt x/czM0VB/kwfcjUT9xJQX7d8kRe3pDTs4hLh/uTpk5Sy7hxBJlGMQDzvB9uJ4dO2fLYU NKCEYaTtociMa4IEUvM2VF2hwlhIrIKJ5d1fBbgJlVRxIVKuBtQxi8uTVxf3/i0+RBDr dWbQ== 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=EEdnBGZvqaQpfo8tguZMww3Zd/NVN+gqcVWHywSpMlU=; b=f0vU9oRGfpKnlJvsgIRtF2l3jYNiBgb/PnB/KJoLxc8c++1ILY/7kXn+ppBGMZRpaZ 2VOXasJoZY1khqm3V3wxVN20QmGwM5XqsJYK8wORsFnX8D7igSKvHhaUEr/VXfZcT9tW bnZ5guBiMyrbP86nmNAtqfIAi3YKXjWv5+S82FtD6yMceouw01ADiQORcw+ZYnJJ3bIW iu4IycV+IIVDhPhZv3uYF9IbtaM5WMPVf1mlQ8RFIc/xfEWontoVu7R8+45QcmL8B2Li QCOAqGT32m7IRewsvCjXlR6L2pJRNuQ049L6RPn09Yge6AGvqFgjwTRvltv+vS+9fYy3 xAow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OainZRUf; 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 y15si7686911plr.491.2022.02.06.14.32.16; Sun, 06 Feb 2022 14:32:27 -0800 (PST) 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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OainZRUf; 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 S1352268AbiBCQhe (ORCPT + 99 others); Thu, 3 Feb 2022 11:37:34 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:41184 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234433AbiBCQhd (ORCPT ); Thu, 3 Feb 2022 11:37:33 -0500 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=EEdnBGZvqaQpfo8tguZMww3Zd/NVN+gqcVWHywSpMlU=; b=OainZRUfP+rJ4YLRUYs67ZGGlc QWb+WFl8+g38zJkZAiahunkjAsCHh4IpWaHyK8jhL9D6aLcXfF4Mykw0452tMRElJrgcgWeN6y71m fiPOy/tVtaDW8wMowXeh0/HKCMEy271HOBWcrrlaeZfYzKWeelXIHmK0J9Wzsg4Qh9K8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nFf6k-0048vh-UF; Thu, 03 Feb 2022 17:37:18 +0100 Date: Thu, 3 Feb 2022 17:37:18 +0100 From: Andrew Lunn To: Tim Harvey Cc: Martin Schiller , Hauke Mehrtens , martin.blumenstingl@googlemail.com, Florian Fainelli , hkallweit1@gmail.com, Russell King - ARM Linux , David Miller , kuba@kernel.org, netdev , open list Subject: Re: [PATCH net v3] net: phy: intel-xway: enable integrated led functions Message-ID: References: <20210421055047.22858-1-ms@dev.tdt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Andrew, > > I agree with the goal of having PHY drivers and dt-bindings in Linux > to configure everything but in the case I mention in the other thread > adding rgmii delay configuration which sets a default if a new dt > binding is missing is wrong in my opinion as it breaks backward > compatibility. If a new dt binding is missing then I feel that the > register fields those bindings act on should not be changed. I would like that understand this specific case in more detail. We have seen a few cases were the DT is broken, yet works. This is often caused by having a wrong phy-mode, which historically the PHY driver was ignoring. Then support for honouring the phy-mode was added to the PHY driver, and all the boards with broken DT files actually break. So it could be that is what has happened here. Or it could be the driver is plan wrong. If i understand correctly, you say it is adding a default delay of 2ns. That would be correct for a phy-mode of rgmii-id, but wrong for a phy-mode of rgmii. > > LEDs are trickier. There is a slow on going effort to allow PHY LEDs > > to be configured as standard Linux LEDs. That should result in a DT > > binding which can be used to configure LEDs from DT. > > Can you point me to something I can look at? PHY LED bindings don't at > all behave like normal LED's as they are blinked internally depending > on a large set of rules that differ per PHY. Yes, this is what is slowing the work done, agreeing on details like this, and how the user space API would actually work. In the end, i suspect a subset of LED modes will be supported, covering the common blink patterns. > Completely off topic, but due to the chip shortage we have had to > redesign many of our boards with different PHY's that now have > different bindings for RGMII delays so I have to add multiple PHY > configurations to DT's if I am going to support the use of PHY > drivers. What is your suggestion there? Using DT overlays I suppose is > the right approach. I would try to only use phy-mode, and avoid all PHY specific tweaks. So long as the track lengths don't change too much on your redesign, and are kept about the same length, the standard 2ns delay should work. Andrew