Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1190321rdb; Fri, 16 Feb 2024 07:55:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVE/OBpf4iMXbvs9KJQLBL8KXzzPoNzIh2sOOME08+xghOWsfJOfEfD5MYYtD/z5UhV9wlth+tlBLMQhKmNHBGgH/yM+H+b8kuthJaccw== X-Google-Smtp-Source: AGHT+IFWoW4U2qfwyGRR84UYeRkJsQN192MVqxkjTnTPtp/vppuvEcfeUwlp2nEOPDV21tEWPg02 X-Received: by 2002:a17:90b:14a:b0:299:16a0:ba51 with SMTP id em10-20020a17090b014a00b0029916a0ba51mr4513485pjb.38.1708098901542; Fri, 16 Feb 2024 07:55:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708098901; cv=pass; d=google.com; s=arc-20160816; b=sCmyKhzWzI9lRvImHCSminUolpYCpEdSWFHV9La3cu/K2yyCpIM31u6mIJdZJgpsAB DhkrpCzeSyXjqtbdv0fu5+v8ZWcVfVJAx/s30vdwRcW6ulw6smRyML7sgT72vGyk9riS YPgdx3bKofYsyH6GUXK15KpvxaJqDofcJBbLNR4BBqKTUUjdZsREpjzwtmaB49+NOJqt zyru6Y9fSvD1q1Ch0k5YZ9Zz7sBLm/qn/ZeHndWX8oeRnoZL9nhSHdCg8bwp8kM6uMpY mzxCEJOQQJQCFF50hwApPghQ8L9gLwVjSC+jGRPRq38Ww+dflLmuyt6Uz4To7fYknIsq IYQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=uLOKIfLa2Fcau86133DO8zv6SnmDWIf1Ivv0kU6coAI=; fh=5OxQ66E4cBqay7n0VqCHVyP6ION2DpPQmNmDdl8LMzs=; b=MvoXaYrSCoOu1R8Mn9YjC1iumvy82b2IoTHDdrDWP3Iu3c5xXbTMPzcwyBn2equDy8 wOwqHM2B75hQp9vdvSW5DJht7sW2F0wlIxP9f+qgtviSRY4C8f1byp3898MT9XI/kr/v +D/SFQtHPVy3y9TANgYks7vavXeFHmHSV6CFDZjdKytCk+cpEzewCnPcseuTdhv3T++I TNGlZixkg8pQwt3yKtaaTuoQz5CwraVd3tyq5xk8yAurCDh5eOXBKv+J9ndKlQUsDzxK RBBoFNRmZx9CW/N3689x9coDSCEwxu5zu8y3xN0iuHSrb61LtR5Q8vCGHcsTTDxUGvn6 MKTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FB+uXG6s; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ci23-20020a17090afc9700b002994400fecdsi132290pjb.109.2024.02.16.07.55.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:55:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FB+uXG6s; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8EC9628A02E for ; Fri, 16 Feb 2024 15:44:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ED7F12F5B0; Fri, 16 Feb 2024 15:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="FB+uXG6s" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A312F12A158; Fri, 16 Feb 2024 15:44:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098286; cv=none; b=vDjIc+6Kb4yenvqgJNqr427r2/YzDDFgggVJ5RfHK9YkYSHOW7BRGg9w6bLbj6OX2HOWKxxZksRLeklogUb6178drF7SQol+V3bOsjEF2gmFvet2KYY298/5BVlHKtHUBmEnvtGsnpwFVv4SJmcgmvEYon5qQF7giwezBCKScws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098286; c=relaxed/simple; bh=e4ljz734j8K5IeryaDf+QcV32Hc7o/1BPmaP92RLzYE=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=mPXvw9zsrgeQKhCk+7xd67ER23bfD0bDOlQ3pXuZxvbcNO88RlrMlns6ZuynaPtibmHHwhlvKviXYc9j9t6ndkj1e75ofSnI18M4IpvvL4lVXzMrR6IzQJKSkbeLUUT03XmPFi0sd4om7PxtXmbNyufhZK88bjdrp5GKycbwOAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=FB+uXG6s; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 4AEE21C0006; Fri, 16 Feb 2024 15:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708098280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uLOKIfLa2Fcau86133DO8zv6SnmDWIf1Ivv0kU6coAI=; b=FB+uXG6szCFB3RugpF1ZTfMUVw4QkzOfnYrqIos0AHclW+DR3KgszWL4UciL10wLj1nxoz 4uX1jPwDE64+9mE27wgjguQO3O62vz6T2SRYu18qtN50FZ+zcyECCiWfbeqlVBijZASUgA 1hdyH9Gj466bgdNxlnGbpi9ovUYBDWBeKC2TKY3J9Efm+CJ2Dog84RJ1CkVJL7afYYZstR 0ku+SzWVa5RLCWS/qoabYg/cjdwwCQxDtMT3cHGGZci+tKp3L1N/QmMHzB8PJZK+D2bueE T6s3rf5+BTQZi8r+KICySJMzFoZuQmffr+TcWvOyHg/Q9mokoTP2ucoIDSRMjA== Message-ID: Date: Fri, 16 Feb 2024 16:44:36 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Bastien Curutchet Subject: Re: [PATCH 1/2] dt-bindings: net: Add TI DP83640 To: Andrew Lunn Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Heiner Kallweit , Russell King , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Herve Codina References: <20240130085935.33722-1-bastien.curutchet@bootlin.com> <20240130085935.33722-2-bastien.curutchet@bootlin.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: bastien.curutchet@bootlin.com Hi Andrew, Thank you for your feedback. On 1/30/24 14:34, Andrew Lunn wrote: >> + ti,led-config: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + enum: [1, 2, 3] >> + description: | >> + If present, configures the LED Mode (values defined in >> + dt-bindings/net/ti-dp83640.h). >> + LED configuration can also be strapped. If the strap pin is not set >> + correctly or not set at all then this can be used to configure it. >> + - 1 = Mode 1 >> + LED_LINK = ON for Good Link, OFF for No Link >> + LED_SPEED = ON in 100 Mb/s, OFF in 10 Mb/s >> + LED_ACT = ON for Activity, OFF for No Activity >> + - 2 = Mode 2 >> + LED_LINK = ON for Good Link, BLINK for Activity >> + LED_SPEED = ON in 100 Mb/s, OFF in 10 Mb/s >> + LED_ACT = ON for Collision, OFF for No Collision >> + - 3 = Mode 3 >> + LED_LINK = ON for Good Link, BLINK for Activity >> + LED_SPEED = ON in 100 Mb/s, OFF in 10 Mb/s >> + LED_ACT = ON for Full Duplex, OFF for Half Duplex >> + - unset = Configured by straps > Please look at have the Marvell PHY driver supports LEDs via > /sys/class/leds. Now we have a generic way to supports LEDs, DT > properties like this will not be accepted. Ok I'll use /sys/class/leds >> + >> + ti,phy-control-frames: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + enum: [0, 1] >> + description: | >> + If present, enables or disables the PHY control frames. >> + PHY Control Frames support can also be strapped. If the strap pin is not >> + set correctly or not set at all then this can be used to configure it. >> + - 0 = PHY Control Frames disabled >> + - 1 = PHY Control Frames enabled >> + - unset = Configured by straps > What is a control frame? I'm not an expert on this but it seems that if the PHY's Serial Management interface is not available, it is possible to build PCF (PHY Control Frame) packets that will be passed to PHY through the MAC Transmit Data interface. The PHY is then able to intercept and interpret these packets. Enabling it increases the MII Transmit packet latency. You'll find details in ยง5.4.6 of datasheet [https://www.ti.com/lit/gpn/dp83640] >> + >> + ti,energy-detect-en: >> + $ref: /schemas/types.yaml#/definitions/flag >> + description: | >> + If present, Energy Detect Mode is enabled. If not present, Energy Detect >> + Mode is disabled. This feature can not be strapped. > Please use the phy tunable ETHTOOL_PHY_EDPD. There are a few examples > you can copy. Ok I'll do that also, thank you. Best regards, Bastien