From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 853D8C4332D for ; Fri, 20 Mar 2020 22:56:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 65DCE20714 for ; Fri, 20 Mar 2020 22:56:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KLSZPgDM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 65DCE20714 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qQhso7mnV9eCFEO3Yyws2YdxhFBZYWaoqnv0lCfBNdQ=; b=KLSZPgDMM938HC V6XkZaEECj8NH3PP3ZYVBCFyMvQWp5ow0x/nrYITXtLb1rOMpIupc+m9M9jUR75YTyxL8iZC6Rd0I NQ+QCSeanAuMFJdk50Cmvv6R6NgnndlrQYi97+aq03l3GhQgtTl2ULZ6gYvOhxk3fTTiVtPBvOX1h ef7gi+Xk+goYD/18kW6KMKNVPywe4Fpw+EF8s5oRBE7Rgr594qEUrrysTeSWQYCmXwp7Xb1oQ8QCB rOnCnc9vYXhjb1fE/Aok9m3KelNHJOVxjvm2nYUWah64gXKL1CD8AIE0VhgI2OwCt1tYmN5uouUWg CXrt0fvEJae+MT7IQspw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jFQYh-0005Vz-0J; Fri, 20 Mar 2020 22:56:07 +0000 Received: from mail-il1-f195.google.com ([209.85.166.195]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jFQYc-0005VC-KT for linux-arm-kernel@lists.infradead.org; Fri, 20 Mar 2020 22:56:04 +0000 Received: by mail-il1-f195.google.com with SMTP id j69so7171146ila.11 for ; Fri, 20 Mar 2020 15:56:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=16V2PA006Te0JwlEk0mhuUcYVDotlcL0klCaZu/h5A8=; b=gpYBqdW116l/H6L47V7la7k42zs9++hcayzQkqYUzIzmSBS1YLAZEFXNVPR0D6i7sN mlL7MZnd6ScX9r4PlEz0z1qK48hlzSvr6CU9CBQqAxsTsPJDrid3OnB3gHTd3chz5+pL IQQoOnVhGjyW/MIxB0iwwoVqIuX+siUi4ano21boM49KotbifGsNbUvQZRI5rcB4bN/u 21X+B0iQLdpOQo3+mMb5e+URQ5wX25Iki/lSFJzOfEdXhP50gCFybqL3jS29rl2GO6i7 7ezlefolqLMkj+dTFtO6ckAkmpZomq/O5F8+Wxu48KN3M5jOW5BmLDCItl50WcMU3iNF 8Bpw== X-Gm-Message-State: ANhLgQ3rxVcAu6j76lvRBqtO/gOStR6ptCFPn69vsw/eJpVmRy2jtd4M qQFGPTyxGUz8drtyOuphmA== X-Google-Smtp-Source: ADFU+vvtRrebZOPJbmnpUIwVYfdBNmdgRTWv+rpWOHXT/pBibD5UObIfTV5Gk7Hqqyt6YoTnNzZJ7w== X-Received: by 2002:a92:58d0:: with SMTP id z77mr9859903ilf.67.1584744959682; Fri, 20 Mar 2020 15:55:59 -0700 (PDT) Received: from rob-hp-laptop ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id g69sm1593099ile.3.2020.03.20.15.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 15:55:58 -0700 (PDT) Received: (nullmailer pid 23774 invoked by uid 1000); Fri, 20 Mar 2020 22:55:56 -0000 Date: Fri, 20 Mar 2020 16:55:56 -0600 From: Rob Herring To: Grygorii Strashko Subject: Re: [PATCH net-next v5 05/11] dt-binding: ti: am65x: document mcu cpsw nuss Message-ID: <20200320225556.GA12084@bogus> References: <20200319162806.25705-1-grygorii.strashko@ti.com> <20200319162806.25705-6-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200319162806.25705-6-grygorii.strashko@ti.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200320_155602_676414_106C4B52 X-CRM114-Status: GOOD ( 20.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tero Kristo , devicetree@vger.kernel.org, netdev , Sekhar Nori , linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Peter Ujfalusi , Murali Karicheri , Jakub Kicinski , "David S . Miller" , linux-arm-kernel@lists.infradead.org, Roger Quadros Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 19, 2020 at 06:28:00PM +0200, Grygorii Strashko wrote: > Document device tree bindings for The TI AM654x/J721E SoC Gigabit Ethernet MAC > (Media Access Controller - CPSW2G NUSS). The CPSW NUSS provides Ethernet packet > communication for the device. > > Signed-off-by: Grygorii Strashko > Tested-by: Murali Karicheri > --- > .../bindings/net/ti,k3-am654-cpsw-nuss.yaml | 226 ++++++++++++++++++ > 1 file changed, 226 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml > > diff --git a/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml > new file mode 100644 > index 000000000000..c28b5c925377 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml > @@ -0,0 +1,226 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/ti,k3-am654-cpsw-nuss.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: The TI AM654x/J721E SoC Gigabit Ethernet MAC (Media Access Controller) Device Tree Bindings > + > +maintainers: > + - Grygorii Strashko > + - Sekhar Nori > + > +description: > + The TI AM654x/J721E SoC Gigabit Ethernet MAC (CPSW2G NUSS) has two ports > + (one external) and provides Ethernet packet communication for the device. > + CPSW2G NUSS features - the Reduced Gigabit Media Independent Interface (RGMII), > + Reduced Media Independent Interface (RMII), the Management Data > + Input/Output (MDIO) interface for physical layer device (PHY) management, > + new version of Common Platform Time Sync (CPTS), updated Address Lookup > + Engine (ALE). > + One external Ethernet port (port 1) with selectable RGMII/RMII interfaces and > + an internal Communications Port Programming Interface (CPPI5) (Host port 0). > + Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels > + and one RX channels and operating by TI AM654x/J721E NAVSS Unified DMA > + Peripheral Root Complex (UDMA-P) controller. > + The CPSW2G NUSS is integrated into device MCU domain named MCU_CPSW0. > + > + Additional features > + priority level Quality Of Service (QOS) support (802.1p) > + Support for Audio/Video Bridging (P802.1Qav/D6.0) > + Support for IEEE 1588 Clock Synchronization (2008 Annex D, Annex E and Annex F) > + Flow Control (802.3x) Support > + Time Sensitive Network Support > + IEEE P902.3br/D2.0 Interspersing Express Traffic > + IEEE 802.1Qbv/D2.2 Enhancements for Scheduled Traffic > + Configurable number of addresses plus VLANs > + Configurable number of classifier/policers > + VLAN support, 802.1Q compliant, Auto add port VLAN for untagged frames on > + ingress, Auto VLAN removal on egress and auto pad to minimum frame size. > + RX/TX csum offload > + > + Specifications can be found at > + http://www.ti.com/lit/ug/spruid7e/spruid7e.pdf > + http://www.ti.com/lit/ug/spruil1a/spruil1a.pdf > + > +properties: > + "#address-cells": true > + "#size-cells": true > + > + compatible: > + oneOf: > + - const: ti,am654-cpsw-nuss > + - const: ti,j721e-cpsw-nuss > + > + reg: > + maxItems: 1 > + description: > + The physical base address and size of full the CPSW2G NUSS IO range > + > + reg-names: > + items: > + - const: cpsw_nuss > + > + ranges: true > + > + dma-coherent: true > + > + clocks: > + description: CPSW2G NUSS functional clock > + > + clock-names: > + items: > + - const: fck > + > + power-domains: > + maxItems: 1 > + > + dmas: > + minItems: 9 Drop this. maxItems is enough. > + maxItems: 9 > + > + dma-names: > + items: > + - const: tx0 > + - const: tx1 > + - const: tx2 > + - const: tx3 > + - const: tx4 > + - const: tx5 > + - const: tx6 > + - const: tx7 > + - const: rx > + > + pinctrl-names: true Don't need this. It is implicitly allowed. > + > + ethernet-ports: > + type: object > + properties: > + '#address-cells': > + const: 1 > + '#size-cells': > + const: 0 > + > + patternProperties: > + "^port@[0-9]+$": reg must be 1, but unit-address can be any number (though it should be hex)? > + type: object > + description: CPSW2G NUSS external ports > + > + allOf: > + - $ref: ethernet-controller.yaml# > + > + properties: > + reg: > + items: > + - const: 1 > + description: CPSW port number > + > + phys: > + maxItems: 1 > + description: phandle on phy-gmii-sel PHY > + > + label: > + description: label associated with this port > + > + ti,mac-only: > + $ref: /schemas/types.yaml#definitions/flag > + description: > + Specifies the port works in mac-only mode. > + > + ti,syscon-efuse: > + $ref: /schemas/types.yaml#definitions/phandle-array > + description: > + Phandle to the system control device node which provides access > + to efuse IO range with MAC addresses > + > + required: > + - reg > + - phys ethernet-ports needs an 'additionalProperties: false' > + > + mdio: > + type: object > + allOf: > + - $ref: "ti,davinci-mdio.yaml#" > + description: > + CPSW MDIO bus. > + > +patternProperties: > + "^pinctrl-[0-9]+$": true Can drop this. > + > +required: > + - compatible > + - reg > + - reg-names > + - ranges > + - clocks > + - clock-names > + - power-domains > + - dmas > + - dma-names > + - '#address-cells' > + - '#size-cells' Add: additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + mcu_cpsw: ethernet@46000000 { > + compatible = "ti,am654-cpsw-nuss"; > + #address-cells = <2>; > + #size-cells = <2>; > + reg = <0x0 0x46000000 0x0 0x200000>; > + reg-names = "cpsw_nuss"; > + ranges = <0x0 0x0 0x46000000 0x0 0x200000>; > + dma-coherent; > + clocks = <&k3_clks 5 10>; > + clock-names = "fck"; > + power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>; > + pinctrl-names = "default"; > + pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; > + > + dmas = <&mcu_udmap 0xf000>, > + <&mcu_udmap 0xf001>, > + <&mcu_udmap 0xf002>, > + <&mcu_udmap 0xf003>, > + <&mcu_udmap 0xf004>, > + <&mcu_udmap 0xf005>, > + <&mcu_udmap 0xf006>, > + <&mcu_udmap 0xf007>, > + <&mcu_udmap 0x7000>; > + dma-names = "tx0", "tx1", "tx2", "tx3", "tx4", "tx5", "tx6", "tx7", > + "rx"; > + > + ethernet-ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpsw_port1: port@1 { > + reg = <1>; > + ti,mac-only; > + label = "port1"; > + ti,syscon-efuse = <&mcu_conf 0x200>; > + phys = <&phy_gmii_sel 1>; > + > + phy-mode = "rgmii-rxid"; > + phy-handle = <&phy0>; > + }; > + }; > + > + davinci_mdio: mdio@f00 { > + compatible = "ti,cpsw-mdio","ti,davinci_mdio"; > + reg = <0x0 0xf00 0x0 0x100>; > + #address-cells = <1>; > + #size-cells = <0>; > + clocks = <&k3_clks 5 10>; > + clock-names = "fck"; > + bus_freq = <1000000>; > + > + phy0: ethernet-phy@0 { > + reg = <0>; > + ti,rx-internal-delay = ; > + ti,fifo-depth = ; > + }; > + }; > + }; > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel