From patchwork Fri Jun 19 16:18:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 191251 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp674829ilo; Fri, 19 Jun 2020 09:19:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwltMEp3IVra8FEJq1o2hFWfNzUmz2cBFKGY+iNeRDEPnHeXURiUCZssy9guN2tOlTUJvb X-Received: by 2002:a50:e14e:: with SMTP id i14mr3936853edl.279.1592583566030; Fri, 19 Jun 2020 09:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592583566; cv=none; d=google.com; s=arc-20160816; b=KR4GlsUrs9E1/IyhBdTCymKzgeHt6IufZWKXOwAQZvLOsRIjWytJ8aLf9DYzYiTEOG fXP/5rWJEj3H8Icbk9dCxAsdr85WauflRlZjHBxE8B4RSqsgCUqH+SX6QD0fe0bUnJed BDZ6uR0zDN47Tagsx2mYPn2exmQAaFGqrsf/HqV5+PfFfCP4jyakwRVgVwM/vGtYhZPH +njWpfv4CicLhQamFvifvbBsjpQWsrpH/8iyF4NKZmXeC7b6Ksru/O7Mptlz1MZuzndT YytFWmjTd2CHLL9Y2VSwnpfaC4uL1lX/kW8SLJYna+CxQUzsey3bdMkh/JDHTKaj6ytd M0NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qGP6MS6+eG2DFpGVz1IWcoA6j9uBqfJ/c06oHe2JZGk=; b=SJmyfl/LDhxLUW9rRno9Zv4Yu124xtmrnHLFZEIcsmrRjGlUcGzO0Wq6PJ4PDzg5Fv 7sZ8uSa3ZBjhalGmSKNC+M9Kmd0Bxq+UO4T9MJj/qFYJ49eNhbhhRX2GjHzDpg9+CD0S BWJUVCt/6hfaOZH2ac/3nKiKUdaS17MzNbCahu0UJwUhN+0dSikaOsX8XiA+cVwBEr31 fkM7HwYWojacAopC3z5hGItawwEaJtqawxBOV0tMPPayrlVlGjnv268M2YTgZCvsAFK0 Fv+wyuXdnsmuWD3vXGZRI1WNHg9w0HxVS5LDq4uOyd4fHmv0WJ9Z55PIG8aGY06F3ZtE XImQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JubHsdyN; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si4072629ejc.245.2020.06.19.09.19.25; Fri, 19 Jun 2020 09:19:26 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JubHsdyN; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394551AbgFSQTY (ORCPT + 6 others); Fri, 19 Jun 2020 12:19:24 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:49442 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390777AbgFSQSY (ORCPT ); Fri, 19 Jun 2020 12:18:24 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05JGIFpK008140; Fri, 19 Jun 2020 11:18:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592583496; bh=qGP6MS6+eG2DFpGVz1IWcoA6j9uBqfJ/c06oHe2JZGk=; h=From:To:CC:Subject:Date; b=JubHsdyNuL+CBY1m5AuqIfsbDEcOLDsJKcXUkqoCF7t29DDyKSK4OCt8nLu8/evaB iHdv5L5fVJWXM3c/NDNWSyK/mgdOhSdcofw1idFBiSQdUJV6KiqawOVTHjglM5XhHN 3MaHalTAjHjyCi6KExoKVBFo0N/BeWbn7CLek6ss= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05JGIFI1026425 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Jun 2020 11:18:15 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 19 Jun 2020 11:18:15 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 19 Jun 2020 11:18:15 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05JGIF2Y034554; Fri, 19 Jun 2020 11:18:15 -0500 From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH net-next v9 0/5] RGMII Internal delay common property Date: Fri, 19 Jun 2020 11:18:08 -0500 Message-ID: <20200619161813.2716-1-dmurphy@ti.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello The RGMII internal delay is a common setting found in most RGMII capable PHY devices. It was found that many vendor specific device tree properties exist to do the same function. This creates a common property to be used for PHY's that have internal delays for the Rx and Tx paths. If the internal delay is tunable then the caller needs to pass the internal delay array and the return will be the index in the array that was found in the firmware node. If the internal delay is fixed then the caller only needs to indicate which delay to return. There is no need for a fixed delay to add device properties since the value is not configurable. Per the ethernet-controller.yaml the interface type indicates that the PHY should provide the delay. This series contains examples of both a configurable delay and a fixed delay. Dan Murphy (5): dt-bindings: net: Add tx and rx internal delays net: phy: Add a helper to return the index for of the internal delay dt-bindings: net: Add RGMII internal delay for DP83869 net: dp83869: Add RGMII internal delay configuration net: phy: DP83822: Add setting the fixed internal delay .../devicetree/bindings/net/ethernet-phy.yaml | 13 +++ .../devicetree/bindings/net/ti,dp83869.yaml | 16 ++- drivers/net/phy/dp83822.c | 79 ++++++++++++-- drivers/net/phy/dp83869.c | 53 +++++++++- drivers/net/phy/phy_device.c | 100 ++++++++++++++++++ include/linux/phy.h | 4 + 6 files changed, 251 insertions(+), 14 deletions(-) -- 2.26.2