From owner-freebsd-net@freebsd.org Wed Aug 26 21:09:41 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9BA103BCB09 for ; Wed, 26 Aug 2020 21:09:41 +0000 (UTC) (envelope-from ghuckriede@blackberry.com) Received: from smtp-pg11.blackberry.com (smtp-pg11.blackberry.com [68.171.242.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BcJQW6BYpz4fTQ for ; Wed, 26 Aug 2020 21:09:39 +0000 (UTC) (envelope-from ghuckriede@blackberry.com) Received: from pps.filterd (mhs401ykf.rim.net [127.0.0.1]) by mhs401ykf.rim.net (8.16.0.42/8.16.0.42) with SMTP id 07QL50Tc083101 for ; Wed, 26 Aug 2020 17:09:37 -0400 Received: from mhs300ykf.rim.net (mhs300ykf.rim.net [10.2.24.129]) by mhs401ykf.rim.net with ESMTP id 334xhdbqmu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 26 Aug 2020 17:09:37 -0400 Received: from pps.filterd (mhs300ykf.rim.net [127.0.0.1]) by mhs300ykf.rim.net (8.16.0.42/8.16.0.42) with SMTP id 07QL6ep0009187 for ; Wed, 26 Aug 2020 17:09:37 -0400 Received: from [10.242.240.68] ([10.242.240.68]) by mhs300ykf.rim.net with ESMTP id 333k09pdxb-1 for ; Wed, 26 Aug 2020 17:09:36 -0400 To: freebsd-net@freebsd.org From: Greg Huckriede Subject: How do 'miibus' PHY devices handle target HW differences? Message-ID: <44fe4819-9005-2b1b-c9c4-37550370feb8@blackberry.com> Date: Wed, 26 Aug 2020 17:09:31 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-26_14:2020-08-26, 2020-08-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=1 spamscore=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 phishscore=0 mlxlogscore=484 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008260160 X-Rspamd-Queue-Id: 4BcJQW6BYpz4fTQ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=blackberry.com; spf=pass (mx1.freebsd.org: domain of ghuckriede@blackberry.com designates 68.171.242.227 as permitted sender) smtp.mailfrom=ghuckriede@blackberry.com X-Spamd-Result: default: False [-2.79 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:68.171.242.227]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.97)[-0.968]; NEURAL_HAM_MEDIUM(-0.93)[-0.934]; NEURAL_HAM_SHORT(-0.98)[-0.984]; DMARC_POLICY_ALLOW(-0.50)[blackberry.com,none]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:18705, ipnet:68.171.224.0/19, country:CA]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-net]; RCVD_IN_DNSWL_LOW(-0.10)[68.171.242.227:from] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 21:09:41 -0000 I'm using the 'ffec' driver (in 12.1-RELEASE) but the target has the following Flattened Device Tree (FDT) setting for the 'ethernet' device. phy-mode = "rgmii-txid"; This indicates that the PHY 'athphy' needs to provide the tx clock delay on the RGMII. This is configurable in the 'atphy' device. The 'atphy' device could get this setting from the FDT (like the 'vscphy' driver does). How is this supposed to work? It seems the FDT could be read during attach for all PHYs, and populate the settings if present. Also how do non-FDT targets deal with HW differences like this? Regards, Greg Huckriede