Received: by 10.192.165.156 with SMTP id m28csp1009605imm; Mon, 16 Apr 2018 12:25:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Qr7kCaKGdUrlNhH8p4MwkGnc4O4sMEE1snyXlFCma4Qb9XB2+Coq+YOlHHbDTTqs6YXGO X-Received: by 10.101.90.194 with SMTP id d2mr4661492pgt.352.1523906713886; Mon, 16 Apr 2018 12:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523906713; cv=none; d=google.com; s=arc-20160816; b=UAOrxHopaHxRVoVWHYnx4wkTRvpVHy/T8hDKLIQ65zZHUike4RlYCOr/Xsw+dt2FdD e0J3dbIpOpmNTTUo4+Q2v0FOu3bM9KYxyZpkWYdEHcd0ewUJ39Osk3vDyVh4EPoW9nol M3jymzg1MzL4rDSZx2o5T52m9MBj+z8fIouhCL16zu9X7kzDq9ROsMiWG/mEwyf6Hl0F FHFSvqDQhk6yRETlpBeRDRk1mO9QlLMWB9tD18L4pVUhJK0mMay4AbYTzZmoK9aliXWg IhYyko6z6qVSq8yV8wlqbL6Y2bSnSg46WfnGmVJdilH+kk/zbiyrJVzPipTDDYq5vLOI DHNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=IHbmTvW/wsdBAUwCFayy+TdBsc0fGgeWvC+Y1S9x7A8=; b=PmBVb9A6STOS461H4GjrF14p2IxF7DvYAKYRQ9Ew3tmjL8p0AyUiRNx3qcshhfTkuy vXsYQPdSg7bceeoIYq3EUnkmn4PLngA0K+15kJVI/0zdazTrZse+1/8RMC/7LhAqz6ba ZYa1p31jksPtOJBnyc+mPiHiB36YXW4zYs5+LMdF73zMrZqliIDOVHvnnwS5rkeGLM3G hWtmFHT2weBSUduNKygWaNF5QWTUuoStajNA3S1n1rFLJCnn8x+2YSPD4v0EswZLKJOA py3l0eCr9ZA/jT4f21kz0Ry60ptaBhQB5cGFeuOAkPCJcG05MG2m43exOl6GSXAqYKfi Jecg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1-v6si12165844plr.477.2018.04.16.12.24.59; Mon, 16 Apr 2018 12:25:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753457AbeDPTWc (ORCPT + 99 others); Mon, 16 Apr 2018 15:22:32 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:45125 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753233AbeDPTW2 (ORCPT ); Mon, 16 Apr 2018 15:22:28 -0400 Received: by mail-ot0-f196.google.com with SMTP id w2-v6so7732423otj.12; Mon, 16 Apr 2018 12:22:28 -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=IHbmTvW/wsdBAUwCFayy+TdBsc0fGgeWvC+Y1S9x7A8=; b=j9AIqFN8WKXegqXaWqYGC+n+axZwg/QEp4tVVTwJ8GbXYs7vW7lYdSa2xV5fGPzlPo esqrXR49KbA0Djg313pmi8mu/ad3go8ZWcammgFTF0jMi4NJ+PJ050gq4++st+sHuxlb 3RhsmfjWiO3rI24s1PjQ0dS3KK6PZBr2SZzO+SNOHjpKMwmpqovVx4k18FVILlGKfItI KaWAixf1KJkvjA+ztMdm3YsSgRLxESdmyBPHkFsi+bxY6CxREY3gOQS30ou6g0ybKqjf tgby1sIi3tufpSWQ3YTQCbYhIbblHtu7kvdVV2DWX6i6I/6/gqwTVx9klqesQ7MQzl7U 4/xg== X-Gm-Message-State: ALQs6tABZjCHiRO81ebK2tL92Ehe+M8NxdOPBPhRLN9TBCoIx6bkA3Dl 0XXWPj8TE9qx8yFUuNxgcQ== X-Received: by 2002:a9d:1c9:: with SMTP id e67-v6mr10825722ote.21.1523906547927; Mon, 16 Apr 2018 12:22:27 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id m65-v6sm9254421oik.11.2018.04.16.12.22.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 12:22:27 -0700 (PDT) Date: Mon, 16 Apr 2018 14:22:26 -0500 From: Rob Herring To: Phil Elwell Cc: Woojung Huh , Microchip Linux Driver Support , Mark Rutland , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Linus Walleij , Andrew Morton , Randy Dunlap , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 4/4] dt-bindings: Document the DT bindings for lan78xx Message-ID: <20180416192226.p5pg3yvixdulobt4@rob-hp-laptop> References: <1523541336-145953-1-git-send-email-phil@raspberrypi.org> <1523541336-145953-5-git-send-email-phil@raspberrypi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523541336-145953-5-git-send-email-phil@raspberrypi.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 12, 2018 at 02:55:36PM +0100, Phil Elwell wrote: > The Microchip LAN78XX family of devices are Ethernet controllers with > a USB interface. Despite being discoverable devices it can be useful to > be able to configure them from Device Tree, particularly in low-cost > applications without an EEPROM or programmed OTP. > > Document the supported properties in a bindings file, adding it to > MAINTAINERS at the same time. > > Signed-off-by: Phil Elwell > --- > .../devicetree/bindings/net/microchip,lan78xx.txt | 44 ++++++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/microchip,lan78xx.txt > > diff --git a/Documentation/devicetree/bindings/net/microchip,lan78xx.txt b/Documentation/devicetree/bindings/net/microchip,lan78xx.txt > new file mode 100644 > index 0000000..e7d7850 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/microchip,lan78xx.txt > @@ -0,0 +1,44 @@ > +Microchip LAN78xx Gigabit Ethernet controller > + > +The LAN78XX devices are usually configured by programming their OTP or with > +an external EEPROM, but some platforms (e.g. Raspberry Pi 3 B+) have neither. > + > +Please refer to ethernet.txt for a description of common Ethernet bindings. > + > +Optional properties: > +- microchip,eee-enabled: if present, enable Energy Efficient Ethernet support; I see we have some flags for broken EEE, but nothing already defined to enable EEE. Seems like this should either be a user option (therefore not in DT) or we should use the broken EEE properties if this is h/w dependent. > +- microchip,led-modes: a two-element vector, with each element configuring > + the operating mode of an LED. The values supported by the device are; > + 0: Link/Activity > + 1: Link1000/Activity > + 2: Link100/Activity > + 3: Link10/Activity > + 4: Link100/1000/Activity > + 5: Link10/1000/Activity > + 6: Link10/100/Activity > + 7: RESERVED > + 8: Duplex/Collision > + 9: Collision > + 10: Activity > + 11: RESERVED > + 12: Auto-negotiation Fault > + 13: RESERVED > + 14: Off > + 15: On > +- microchip,tx-lpi-timer: the delay (in microseconds) between the TX fifo > + becoming empty and invoking Low Power Idles (default 600). Needs a unit suffix as defined in property-units.txt. > + > +Example: > + > + /* Standard configuration for a Raspberry Pi 3 B+ */ > + ethernet: usbether@1 { > + compatible = "usb424,7800"; > + reg = <1>; > + microchip,eee-enabled; > + microchip,tx-lpi-timer = <600>; > + /* > + * led0 = 1:link1000/activity > + * led1 = 6:link10/100/activity > + */ > + microchip,led-modes = <1 6>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 2328eed..b637aad 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14482,6 +14482,7 @@ M: Microchip Linux Driver Support > L: netdev@vger.kernel.org > S: Maintained > F: drivers/net/usb/lan78xx.* > +F: Documentation/devicetree/bindings/net/microchip,lan78xx.txt > > USB MASS STORAGE DRIVER > M: Alan Stern > -- > 2.7.4 >