From patchwork Wed Jun 24 12:16:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 191644 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp532443ile; Wed, 24 Jun 2020 05:16:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYeJNzXi3ojOXJl9Wmdsxq5jS3HcBqfUfbcLPKheg9+wsyPUrD1xwdFtVbgIVSuz50OZvN X-Received: by 2002:a05:6402:1c87:: with SMTP id cy7mr27206244edb.354.1593000981864; Wed, 24 Jun 2020 05:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593000981; cv=none; d=google.com; s=arc-20160816; b=FxXJ/+4hmA0IhrMZJRhVKjVxqKnKnRDZCEIsQtvZMqIbookw2WSRtLNBlvotNAlzCR x2fVQVqCR7fUXjYXJS2JZkB6b20k7H+vHYKvhd/v5U/9ct8I7yvGsn1dgfNshokrRmSM JZURoQsQYVniBHTYJYJbU8jfGEy7fRIfFSxOmNF6UyjwowkA0DZHIPt8zrWXgiCdKSlt KZgIvYLkO2nbL10+If6gtPlHG7h1tRCAGdgpHSlpdyiWWsVoQCQqVLTDJoKMn2SZSDzW 7ux5g7SC6WeqKcVRgjb7Zsj30Z7g8j5uNvVi22N8eQ3Vfq02jdkJFyT/S7+vTntudyZA 9lMQ== 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=4i/GtgXzaE4o8MhETtpPJ0dJbtJx23GHh6y7ROguMRQ=; b=CrvHwApAPfRBhuKDnYYqWQZoIHcYnc6vVXOrOLJOFSbJbNS+2dDSXc8AmElei/k2AX VITWMeo5OowkLselelcYjq4iKfXNoK4clL8ejoZC6oinPTyoB42N2XE7zZ+Nriq4Zi6N 9POP78CFfqobMv90YM0aD3kyqgEwVxxnCZF/hGfZguaUvg/l5rXSpBLipXMa/i+7IvQf kPE/KiNfBaMRPzpbYOUy0YsQhPm31dTrw1kPTb1PkKST4VEVB3s58yr5UN0bzO51nPa2 /ngYcKIwODsDjb1e6ZyJ3U9Bvpi8sKnkBxP4SmT55XwPRKx9+j0U9ipe5PXLQjLnkMfq Pd4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CWrjYWYX; 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 m17si13317464eds.189.2020.06.24.05.16.21; Wed, 24 Jun 2020 05:16:21 -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=CWrjYWYX; 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 S2390285AbgFXMQT (ORCPT + 6 others); Wed, 24 Jun 2020 08:16:19 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:38782 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388296AbgFXMQT (ORCPT ); Wed, 24 Jun 2020 08:16:19 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05OCGCSd066061; Wed, 24 Jun 2020 07:16:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1593000972; bh=4i/GtgXzaE4o8MhETtpPJ0dJbtJx23GHh6y7ROguMRQ=; h=From:To:CC:Subject:Date; b=CWrjYWYX/N1SyHgIiR1pmw62HelnV9IN414lBxYHxfT3qeDsjnJm7Y01UHAZ8yX// LmGPU1Z2ur0xMqTHicN2noYcmP1BQpNvg0IY6TGw4wPZf/xHNl6pCh+IzT/PhP/teW BzPWj9MJ2gR5sWDmYcNhVk1+qZaueOLV39gqurdQ= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05OCGCov068786 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 24 Jun 2020 07:16:12 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 24 Jun 2020 07:16:12 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE102.ent.ti.com (10.64.6.23) 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; Wed, 24 Jun 2020 07:16:12 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05OCGC3o070089; Wed, 24 Jun 2020 07:16:12 -0500 From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH net-next v11 0/5] RGMII Internal delay common property Date: Wed, 24 Jun 2020 07:16:00 -0500 Message-ID: <20200624121605.18259-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 | 12 +++ .../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 | 99 +++++++++++++++++++ include/linux/phy.h | 4 + 6 files changed, 249 insertions(+), 14 deletions(-) -- 2.26.2