Received: by 10.213.65.68 with SMTP id h4csp712213imn; Fri, 23 Mar 2018 14:12:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELvZVVq7xP/f8mQGUyxgyJ1fMmsfc0oLKsT5I9pvywHd9VJGyYQAe9lLEcQB5vgOsTy9Er1P X-Received: by 2002:a17:902:684:: with SMTP id 4-v6mr31441753plh.262.1521839572387; Fri, 23 Mar 2018 14:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521839572; cv=none; d=google.com; s=arc-20160816; b=C5CrepRVZ4a12061ufUzHgZZpjPvCgYeydaToTS22RnAZ6TyzSKiI7hVuevymFQSfM 1tQSjTnaSUoMl0IFQ6oWibjc5lKxeOcv58IzofR+cVArssxTV8Tro1TY8cpKc6C24S0H SkkzeKumiuw2WSUCapRSnbc9/iq3JPw5Ix9pOI2vwHrHyhHwEN6rRfZK2dav7LpgNx2J qdPrz5n97o8DT9EaXAOXRmnGYXlUuodKq75h6d5Bs7vvipu5MQ42c7JGhFHxV+n+rGo/ E2dx8m30tSWWYwQDHG36F72cAeMi2MB5N4AeApiyVRCVGJefqSDjlBZAPHHbnzBSx0G3 JJDw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=BlnKOha0mNMYHYAAyV3a0Jzlg0bey1HL044N7Nyb5z4=; b=EYCRDwc2PzDlCR7t5lgtBydkXrJoPlTddtOLvJ5ZCMvp9LyOB915362zLhEm+Y7maf oQkdNxEQP4HRmy0zeUT5wmj+KqYVJs6phwgCE0/OaTyEBfM6NjeaPdQHsn9XFhrVCrBY Rqn2ONH1XCpXrSWbMV0fPuSoLuc7zi8UCVxaBvoar4K+Q7doUipYiWk2TqakgZ31TWc8 aNDdpmMKg3N8x/YDWUTiWY+gI+0vtGQIj4XhHTqZJY0XJFJT2TFXkn3CymKWVjfUOEnl 3da+nCgtj1KX6nb9FbSANeUhQEqbmLbHY+DdYhS5cOz2Wi/lFfGIva/LYWM3xCAMVgJN 4dZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YTyfsot/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z28si4188955pgc.755.2018.03.23.14.12.37; Fri, 23 Mar 2018 14:12:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YTyfsot/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751853AbeCWVLk (ORCPT + 99 others); Fri, 23 Mar 2018 17:11:40 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:43549 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751288AbeCWVLi (ORCPT ); Fri, 23 Mar 2018 17:11:38 -0400 Received: by mail-pf0-f193.google.com with SMTP id j2so5196091pff.10; Fri, 23 Mar 2018 14:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BlnKOha0mNMYHYAAyV3a0Jzlg0bey1HL044N7Nyb5z4=; b=YTyfsot/zgCnYXRtQSHQ4dG/PUea1Dq1z1EDPmxrYQF+zwcwsHbftXAs7bSA0Wh0lq 8JV+vMDW516L3RFiTxCF5188/7Nb7hxDM77Rj6UH7bvOQpx62ZTPH016AMSRLKUP1dXi 6Em/DhjLqzmDbo8beu8obHVE5c1ED5CiRCWoHooyiQKbjtseOjCNNp+5thum4eob+Wy3 ObAOgMVkF2CZSOh1EP/S2LWBq5DEnAKL0Uw7IvKkIYamc3VJlLgHNqVERReLeusX4pYb t6bY8PtZegK2bguiU/w/UHaNP/SiV94Eg+WuGHJP5WvO9kCPg0FDybtTs5PySDbK1aNt f/Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BlnKOha0mNMYHYAAyV3a0Jzlg0bey1HL044N7Nyb5z4=; b=X9ZW2duCUXoGuF2eBbvmwiNVGDNaGHvRx5JA8xO6CAN2dC38aUxqJB1loeHOvGDoOx JJ3c20BgxbtI/mcK6uaKGwyiif+yDV/dEiUGCiyaLvVBWXA1Fwsp8CfL8cORz2qoNpqY 6KSgqDfKoUe4imCnC5GBmC+c6EmIn1GQpfwnyAGYVYMPjKo2L8HYjPp1tMfUL/dfJxyf d8ANbjAmQTzPtUX3aV3PNcYbNMjrLZCDkRSxx57OnWo1Ac3QVET5APtZ23ZsxDfYdQmo HNDh4ZtnyHC6EN7an4IDT4PEb08GYTPpNSAjww0N78W9+GTgIvkmgoK9Zd1W2sTuUrAM Gq/w== X-Gm-Message-State: AElRT7HjCKfHv3WDTC9rXz1Y4/7vYtgwIrXSJhw8BeGex304DPv0oerq Fv/l3+e5P7jzlyrlx4Y5OF4wVeQf X-Received: by 10.99.96.66 with SMTP id u63mr22178588pgb.22.1521839497433; Fri, 23 Mar 2018 14:11:37 -0700 (PDT) Received: from [10.69.41.93] ([192.19.223.250]) by smtp.googlemail.com with ESMTPSA id g66sm11983095pfc.23.2018.03.23.14.11.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 14:11:36 -0700 (PDT) Subject: Re: [PATCH net-next 4/8] dt-bindings: net: add DT bindings for Microsemi Ocelot Switch To: Alexandre Belloni , "David S . Miller" Cc: Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , Andrew Lunn , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Rob Herring References: <20180323201117.8416-1-alexandre.belloni@bootlin.com> <20180323201117.8416-5-alexandre.belloni@bootlin.com> From: Florian Fainelli Message-ID: Date: Fri, 23 Mar 2018 14:11:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180323201117.8416-5-alexandre.belloni@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/23/2018 01:11 PM, Alexandre Belloni wrote: > DT bindings for the Ethernet switch found on Microsemi Ocelot platforms. > > Cc: Rob Herring > Signed-off-by: Alexandre Belloni > --- > .../devicetree/bindings/net/mscc-ocelot.txt | 62 ++++++++++++++++++++++ > 1 file changed, 62 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/mscc-ocelot.txt > > diff --git a/Documentation/devicetree/bindings/net/mscc-ocelot.txt b/Documentation/devicetree/bindings/net/mscc-ocelot.txt > new file mode 100644 > index 000000000000..ee092a85b5a0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/mscc-ocelot.txt > @@ -0,0 +1,62 @@ > +Microsemi Ocelot network Switch > +=============================== > + > +The Microsemi Ocelot network switch can be found on Microsemi SoCs (VSC7513, > +VSC7514) > + > +Required properties: > +- compatible: Should be "mscc,ocelot-switch" > +- reg: Must contain an (offset, length) pair of the register set for each > + entry in reg-names. > +- reg-names: Must include the following entries: > + - "sys" > + - "rew" > + - "qs" > + - "hsio" > + - "qsys" > + - "ana" > + - "portX" with X from 0 to the number of last port index available on that > + switch > +- interrupts: Should contain the switch interrupts for frame extraction and > + frame injection > +- interrupt-names: should contain the interrupt names: "xtr", "inj" You are not documenting the "ports" subnode(s).Please move the individual ports definition under a ports subnode, mainly for two reasons: - it makes it easy at the .dtsi level to have all ports disabled by default - this makes you strictly conforming to the DSA binding for Ethernet switches and this is good for consistency (both parsing code and just representation). -- Florian