From patchwork Wed Jun 17 18:20:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 190883 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp688152ilo; Wed, 17 Jun 2020 11:20:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZZ/S5VKHjtEI3J/sWbjSVlGmurHe+GBwn5AFWe18RbTbN6BUbhCnMTzxHAiXI9knJmR5T X-Received: by 2002:a17:906:7e5a:: with SMTP id z26mr408215ejr.263.1592418035862; Wed, 17 Jun 2020 11:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592418035; cv=none; d=google.com; s=arc-20160816; b=n7CAVhKnD2I2P/wCXOFCZoLQR3Er+o9n4GzlwDVK2CQro+UP+GByIm+RR2XtyG8GJj wLRE80qVfPAYO/dO6/53CDl5KX2k7aKx7hZjMrF23z2r3x04wFPNSaYt+Io2Wb9xHQgj Lx2UGaIeDD8yJFRSin6MXxriiQuB+xiEFxJ/dXXF3gmMaRnfMDlKPe8sqhulRG48YkS8 AakFv37vA7hvVRGHrUWiZdFkRIFxA5TMW8B3crOXD/CskLeALWw+nvHfRSwj/PfXa3XC EiKgFH6NI0K/M1LZjq8F6jVtMZmgyZVDVpyfybLqNaIH2A8sSiTbf53husXjZY4TB4+A 60lw== 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=gjguookD1gAKAn+pIRuOJSIn2idst37qv+P6Ar7on0M=; b=s4DnNblkWIRZhsm4oswzodbD/JIR7/7zmzgF8L+hpSiZLEU6eULJAXw32Tf53bHkGu VSUQPj7Fm6Nx2ee6rNWcAf8cyz7hBLaEAHMJNicCgHrJgbCmqlPR097NRS9fYSJqhUAB Krwqnbyi+h8xqQ4HTh6N5Y/AQYiLxg8fUI2Ril5gVojmz8OvdVUVJCsRLFrV04nN+rbw 20p8dZbEDg40/JUirDQnHE2FbDPtCMRtY4nZT9tLqk1PX/o4A6awtRdUqjjPakpoQpry lBCvPzhB9YzJ5NK0wgmcizxAAr2Yo5rUv2mlm/nWa20LREXh8K3IYS/3jPzRqODyOjpf 2cbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=taeEBQ9X; 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 x9si410982ejj.247.2020.06.17.11.20.35; Wed, 17 Jun 2020 11:20:35 -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=taeEBQ9X; 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 S1726964AbgFQSUf (ORCPT + 6 others); Wed, 17 Jun 2020 14:20:35 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37718 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbgFQSUf (ORCPT ); Wed, 17 Jun 2020 14:20:35 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05HIKQHL058158; Wed, 17 Jun 2020 13:20:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592418026; bh=gjguookD1gAKAn+pIRuOJSIn2idst37qv+P6Ar7on0M=; h=From:To:CC:Subject:Date; b=taeEBQ9XJPXyFyan3fkd7jaBExqLuhNXlfQTn3559Hf2wXDnwoTKS7o5ZPO3lhrCI /vkNRItvQAyvQ2uq4UfMF2/0I3mWcgILl4BCTL6sJaWVlhFT9qZpZuqwB2hI8zf6PO o5PhDiJobhoslmgBgXpOftWZMhvg5HNUsV1HhvjE= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05HIKQY7127043; Wed, 17 Jun 2020 13:20:26 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 17 Jun 2020 13:20:25 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE111.ent.ti.com (157.170.170.22) 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, 17 Jun 2020 13:20:26 -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 05HIKPlW129353; Wed, 17 Jun 2020 13:20:25 -0500 From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH net-next v7 0/6] RGMII Internal delay common property Date: Wed, 17 Jun 2020 13:20:13 -0500 Message-ID: <20200617182019.6790-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 and if the value is defined then the value in the firmware is returned. This series contains examples of both a configurable delay and a fixed delay. Dan Murphy (6): 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 dt-bindings: net: dp83822: Add TI dp83822 phy net: phy: DP83822: Add ability to advertise Fiber connection .../devicetree/bindings/net/ethernet-phy.yaml | 11 ++ .../devicetree/bindings/net/ti,dp83822.yaml | 51 +++++++++ .../devicetree/bindings/net/ti,dp83869.yaml | 16 ++- drivers/net/phy/dp83822.c | 108 ++++++++++++++++-- drivers/net/phy/dp83869.c | 53 ++++++++- drivers/net/phy/phy_device.c | 68 +++++++++++ include/linux/phy.h | 4 + 7 files changed, 299 insertions(+), 12 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/ti,dp83822.yaml -- 2.26.2 Reviewed-by: Andrew Lunn