Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp354994pxb; Fri, 16 Apr 2021 07:20:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfzXGhQ4awXoMOiSN+l4Sx8kw1mOiJIIjrp9gsAxS7yQaX1RVRTnuFRU4+XtOjqIV4UQ+a X-Received: by 2002:a17:906:1d10:: with SMTP id n16mr8458972ejh.445.1618582856006; Fri, 16 Apr 2021 07:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618582855; cv=none; d=google.com; s=arc-20160816; b=J/UCMOey/GsAdOuf+Nn/pRgW9FcUnpgonne5zvTLFLEWi5pe7WL4mX02mkeIol7EQf VNQa6L3v0vkSjK7OAveHFK5ijMEq/nJ3GzHvQ0uNAu7fxLarpHa1py6jzEwgKC7Eo4da Sk9JBCVlzIFdtJYUHxMfulnbZCJuJrEhWXYVleXcBY+v3SYbtWlegZ0xKH9T8sY1HN68 +WaYOypfk/qqRC9Bgob9Emyj97uVz/hYXcFDxq1cJHBsQH0wPXj+PD/0w3Ql4WIh6fwp NDtWpXf3am6iJwdBzTAeFqOjOIZaobitD9p7fB+KLV+wrsHgCI4DWwwKr4hgqVP7kndD S9KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=yf1OsTT0/HEXWI0LaDc+eXphOPALoyloZ1k62cmKahU=; b=yib79SBMeE/ftaGwDrXUOMuKj9WzMpdVemZJ87e1/wgvTcOq6PfGhn4oZoSR45rnkK 8wRXDcrI4xAZbmtqARq57YxE0jr3BSjsc6ntMR37ZxHeBrff3PDetV6Jpanz56XLkDkg /Ln6nnhDMsBmWo6saKF07fYGRnTiGorKStlEzVCuDRtDKrBQUtXKtV6JRsSLxT8sZNul Z4+sHGof6HXZj9raxbc9QSRk1Fg5Z1Hhg/bvO/BwImPJcdRf7M9kY/LS6OcQmSHEzYg+ YjloEK9B/xoCu2c+eI2xEP3uTjDDIm/jYcWay/z05bMRaaEPVoRreuVwM65m5iPty032 ivyw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jt14si4604731ejc.617.2021.04.16.07.20.15; Fri, 16 Apr 2021 07:20:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240740AbhDPNkp (ORCPT + 99 others); Fri, 16 Apr 2021 09:40:45 -0400 Received: from elvis.franken.de ([193.175.24.41]:53884 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235192AbhDPNkn (ORCPT ); Fri, 16 Apr 2021 09:40:43 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lXOhk-0002lT-00; Fri, 16 Apr 2021 15:40:16 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id A52AAC04CD; Fri, 16 Apr 2021 15:35:36 +0200 (CEST) Date: Fri, 16 Apr 2021 15:35:36 +0200 From: Thomas Bogendoerfer To: Sergei Shtylyov Cc: "David S. Miller" , Jakub Kicinski , Rob Herring , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH v5 net-next 10/10] dt-bindings: net: korina: Add DT bindings for IDT 79RC3243x SoCs Message-ID: <20210416133536.GA10451@alpha.franken.de> References: <20210416085207.63181-1-tsbogend@alpha.franken.de> <20210416085207.63181-11-tsbogend@alpha.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 12:29:46PM +0300, Sergei Shtylyov wrote: > On 16.04.2021 11:52, Thomas Bogendoerfer wrote: > > > Add device tree bindings for ethernet controller integrated into > > IDT 79RC3243x SoCs. > > > > Signed-off-by: Thomas Bogendoerfer > > --- > > .../bindings/net/idt,3243x-emac.yaml | 74 +++++++++++++++++++ > > 1 file changed, 74 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/net/idt,3243x-emac.yaml > > > > diff --git a/Documentation/devicetree/bindings/net/idt,3243x-emac.yaml b/Documentation/devicetree/bindings/net/idt,3243x-emac.yaml > > new file mode 100644 > > index 000000000000..3697af5cb66f > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/net/idt,3243x-emac.yaml > > @@ -0,0 +1,74 @@ > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/net/idt,3243x-emac.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: IDT 79rc3243x Ethernet controller > > + > > +description: Ethernet controller integrated into IDT 79RC3243x family SoCs > > + > > +maintainers: > > + - Thomas Bogendoerfer > > + > > +allOf: > > + - $ref: ethernet-controller.yaml# > > + > > +properties: > > + compatible: > > + const: idt,3243x-emac > > + > > + reg: > > + maxItems: 3 > > + > > + reg-names: > > + items: > > + - const: korina_regs > > + - const: korina_dma_rx > > + - const: korina_dma_tx > > + > > + interrupts: > > + items: > > + - description: RX interrupt > > + - description: TX interrupt > > + > > + interrupt-names: > > + items: > > + - const: korina_rx > > + - const: korina_tx > > + > > + clocks: > > + maxItems: 1 > > + > > + clock-names: > > + items: > > + - const: mdioclk > > + > > +required: > > + - compatible > > + - reg > > + - reg-names > > + - interrupts > > + - interrupt-names > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + > > + ethernet@60000 { > > + compatible = "idt,3243x-emac"; > > + > > + reg = <0x60000 0x10000>, > > + <0x40000 0x14>, > > + <0x40014 0x14>; > > + reg-names = "korina_regs", > > + "korina_dma_rx", > > + "korina_dma_tx"; > > + > > + interrupts-extended = <&rcpic3 0>, <&rcpic3 1>; > > You use this prop, yet don't describe it? that's just interrupt-parent and interrupts in one statement. And since make dt_binding_check didn't complained I thought that's good this way. Rob, do I need to describe interrupts-extended as well ? I could change that to interrupt-parent/interrupts as the driver no longer uses dma under/overrun interrupts, which have a different interrupt-parent. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]