Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1525199pxu; Thu, 8 Oct 2020 13:49:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5dXoppoe5U1uHM6aFXSU5OncIxeHEb4wfvsVeRzsyEaq2AaXctm0h7KSAqiSZxzfSkdkp X-Received: by 2002:a17:906:d186:: with SMTP id c6mr10225188ejz.298.1602190186160; Thu, 08 Oct 2020 13:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602190186; cv=none; d=google.com; s=arc-20160816; b=ibVfFfAEXleVdqgq9vIoUhcqLlBbdjlXCUwpAJbjG4XJobEzyulsxXccvJvpc3ttt1 ruuWjCUvzF27ESutG0WwNdUY6oOZnsAKisp33J4X3YE1SPyLe69DEvcJCDNuXj45A5m2 w60YfwqsHleDrmwsPs1XDuj808pw4dQMFI1KnZk7RR1gAt3c1wcjnEfqrpeAgBYuGkuO GeBY9R7O4rPrNltAbfQRWqK9QchE5UaorriLsiVqONRXWvR6aXicU/oVfdKHreDO5JHv GK2zqJeMEx6alHOMHMXRRQV+TWksdtM2Qi2jhYVmipDqKKnNV6gZHIxwRFB8fq6OGWoP 6VNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=OZ4CI6uU94nRKdZAQZi5RdPMEtud/Gsh2orNwUmssVI=; b=jdjA5fnFyMPvgH319Z+Rw9MiOdpBCCSWveRYvvstmGxIOzkBUf0vK9/YMc1pZADnuY Oyra+4OiLjFNz+p4UIB3suMI15yxSmnu6WR6i8rs6QPvfvKICKO9fP2sDyoqN12YVLNm DRkpeYPyZcXulJ2eB1kfV3b+gl65jWFjjhfn2AIn6ImWq78IOumIs5qYzs1uvwOIUBTa eGq6CqDpQVf07g3ThmdpAGBn1L3BzyyEU5BevU/1znthxlqAo2Rpgdu7FcWEE16KdhcT zLicB4l5kFsoWh82UuvkX0o3vaHe2ay1Z2+KMWc4fy3tb/WcCU1AxBHkmLbNzqrJK9Em su3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gAp6umqL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 q22si3574944edg.409.2020.10.08.13.49.20; Thu, 08 Oct 2020 13:49:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=gAp6umqL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727505AbgJHSSS (ORCPT + 99 others); Thu, 8 Oct 2020 14:18:18 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:50578 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgJHSSR (ORCPT ); Thu, 8 Oct 2020 14:18:17 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 098IIAaY059566; Thu, 8 Oct 2020 13:18:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1602181090; bh=OZ4CI6uU94nRKdZAQZi5RdPMEtud/Gsh2orNwUmssVI=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=gAp6umqLQU5C4uX3HgJyCWpgp44fO1M1k018erkc+OZM7Yc28HxljX7uaH3gtaVsQ +gZEg/4CV9X5T60nc+QxSa7hQzdv1zMljVTNCOYufUOUtAZ9xVxmkqmulme9xmJ5tE MpLzzG5suqewHZ/Z0xqyyrdL43hRRxZo2PS2e48k= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 098IIAuW101541 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Oct 2020 13:18:10 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 8 Oct 2020 13:18:10 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE108.ent.ti.com (10.64.6.29) 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; Thu, 8 Oct 2020 13:18:09 -0500 Received: from [10.250.39.105] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 098II9xV015780; Thu, 8 Oct 2020 13:18:09 -0500 Subject: Re: [PATCH net-next 1/2] dt-bindings: dp83td510: Add binding for DP83TD510 Ethernet PHY To: Florian Fainelli , , , CC: , References: <20201008162347.5290-1-dmurphy@ti.com> <20201008162347.5290-2-dmurphy@ti.com> From: Dan Murphy Message-ID: Date: Thu, 8 Oct 2020 13:18:09 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Florian Thanks for the review On 10/8/20 12:11 PM, Florian Fainelli wrote: > > > On 10/8/2020 9:23 AM, Dan Murphy wrote: >> The DP83TD510 is a 10M single twisted pair Ethernet PHY >> >> Signed-off-by: Dan Murphy >> --- >>   .../devicetree/bindings/net/ti,dp83td510.yaml | 70 +++++++++++++++++++ >>   1 file changed, 70 insertions(+) >>   create mode 100644 >> Documentation/devicetree/bindings/net/ti,dp83td510.yaml >> >> diff --git a/Documentation/devicetree/bindings/net/ti,dp83td510.yaml >> b/Documentation/devicetree/bindings/net/ti,dp83td510.yaml >> new file mode 100644 >> index 000000000000..0f0eac77a11a >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/net/ti,dp83td510.yaml >> @@ -0,0 +1,70 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +# Copyright (C) 2020 Texas Instruments Incorporated >> +%YAML 1.2 >> +--- >> +$id: "http://devicetree.org/schemas/net/ti,dp83td510.yaml#" >> +$schema: "http://devicetree.org/meta-schemas/core.yaml#" >> + >> +title: TI DP83TD510 ethernet PHY >> + >> +allOf: >> +  - $ref: "ethernet-controller.yaml#" >> + >> +maintainers: >> +  - Dan Murphy >> + >> +description: | >> +  The PHY is an twisted pair 10Mbps Ethernet PHY that support MII, >> RMII and >> +  RGMII interfaces. >> + >> +  Specifications about the Ethernet PHY can be found at: >> +    http://www.ti.com/lit/ds/symlink/dp83td510e.pdf >> + >> +properties: >> +  reg: >> +    maxItems: 1 >> + >> +  tx-fifo-depth: >> +    description: | >> +       Transmitt FIFO depth for RMII mode.  The PHY only exposes 4 >> nibble >> +       depths. The valid nibble depths are 4, 5, 6 and 8. >> +    default: 5 >> + >> +  rx-internal-delay-ps: >> +    description: | >> +       Setting this property to a non-zero number sets the RX >> internal delay >> +       for the PHY.  The internal delay for the PHY is fixed to 30ns >> relative >> +       to receive data. >> + >> +  tx-internal-delay-ps: >> +    description: | >> +       Setting this property to a non-zero number sets the TX >> internal delay >> +       for the PHY.  The internal delay for the PHY has a range of >> -4 to 4ns >> +       relative to transmit data. > > Those two properties are already defined as part of > Documentation/devicetree/bindings/net/ethernet-phy.yaml, so you can > reference that binding, too. OK I referenced the ethernet-controller.yaml for the delay. I am wondering if we should add rx/tx-fifo-depth to the ethernet-phy.yaml as well. That way PHYs only have to reference ethernet-phy.yaml. Or maybe remove the internal-delay from the ethernet-phy.yaml and reference the ethernet-controller.yaml in the ethernet-phy.yaml so we don't have to maintain duplicate properties > >> + >> +  ti,master-slave-mode: >> +    $ref: /schemas/types.yaml#definitions/uint32 >> +    default: 0 >> +    description: | >> +      Force the PHY to be configured to a specific mode. >> +      Force Auto Negotiation - 0 >> +      Force Master mode at 1v p2p - 1 >> +      Force Master mode at 2.4v p2p - 2 >> +      Force Slave mode at 1v p2p - 3 >> +      Force Slave mode at 2.4v p2p - 4 > > If you accept different values you should be indicating which values > are supported with an enumeration. Ah yes forgot the min/max