Received: by 10.192.165.156 with SMTP id m28csp889979imm; Thu, 19 Apr 2018 09:11:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/VvN1//27kWaSbsjZW+Wad1KgMZExSApltz+S5Mc4mrvwdCAr73fGNd/Leno5FdkYmL1Aw X-Received: by 10.99.120.138 with SMTP id t132mr5652643pgc.280.1524154268578; Thu, 19 Apr 2018 09:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524154268; cv=none; d=google.com; s=arc-20160816; b=DCuQtcqY5LvH3TKtYwzEenHokquDoZM7ffmE3w7p3csrXCOhbjo8tPmeVuck1JqJra 6XsVvy4qMBNmwXlzTATWb4bg8rf2fOi4KYYiz4oO43y1fWyWOSFdB/Jgb54OvBslc/V5 HAaum8BGPX/sJ3XZB3TiFLdtTTf0ayGlpvZmjEhmUJlUNFjy7NehJe9A/pK2m9lXb3n/ fqrFE7WOci6blwL1blg0a3HI0NxpqOnaR302t7Bc6uEtXqWj16pA4NLE+DVJVFtJ1ps8 PgAgRGZ+p7QVSDb3MsEI5yXH5BkNnefFdebhDEGoHq96B5qusvcc0h03VEeZw1/1XR7b DP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=yHWsX5oZRz/8Tb7GguR6vCd2JUvntecoOj+xJKJ3np0=; b=IHkIPSElKce6eusSmd4Vu5H1roGoilk52LZjY+g5+iSvTsqg/+yZ17lTC4/91BNHmI 13wKadV4s1tpUCTQtYjJ5wDtYNnsewdimAFis1zli+LIRu+Nh2GHwkq53+tUswQ2QGeA szXZxoQQYB7mglbWAgCMKzxBWvGARKKlQmNd9zcmxFMYaZWoGWHk3TZWwqePRvbz8VHn E6xuN8b58WmtiWiXzd6nZaqN/RLYteVH9VO9k26USsZlv5cL3bKTh+InOpA3u2TWvHP5 w4+jiUyZQ1iJaNxE0i1BsiXtnAp8q7oPTltXuwNLZoPgL4yGZCCnPRTEol6185FIijBq q7Mg== 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 t132si3218485pgc.350.2018.04.19.09.10.52; Thu, 19 Apr 2018 09:11:08 -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 S1753737AbeDSQIS (ORCPT + 99 others); Thu, 19 Apr 2018 12:08:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:59226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753647AbeDSQII (ORCPT ); Thu, 19 Apr 2018 12:08:08 -0400 Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 862B721849; Thu, 19 Apr 2018 16:08:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 862B721849 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qk0-f172.google.com with SMTP id s78so5819244qkl.8; Thu, 19 Apr 2018 09:08:07 -0700 (PDT) X-Gm-Message-State: ALQs6tB0DuiLTR+Dooa6QoEv9WU+GJ40CCYhtp0IK5Im3JfbiYePvi1/ cgehZYhiFC6o4qki8S2w3aT1a3RyLYmV/GBCXA== X-Received: by 10.55.31.132 with SMTP id n4mr6246083qkh.375.1524154086466; Thu, 19 Apr 2018 09:08:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.163.228 with HTTP; Thu, 19 Apr 2018 09:07:45 -0700 (PDT) In-Reply-To: <1524151019-82823-4-git-send-email-phil@raspberrypi.org> References: <1524151019-82823-1-git-send-email-phil@raspberrypi.org> <1524151019-82823-4-git-send-email-phil@raspberrypi.org> From: Rob Herring Date: Thu, 19 Apr 2018 11:07:45 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH resend v3 3/3] dt-bindings: Document the DT bindings for lan78xx To: Phil Elwell Cc: Woojung Huh , Microchip Linux Driver Support , Mark Rutland , Andrew Lunn , Florian Fainelli , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Linus Walleij , Andrew Morton , Randy Dunlap , netdev , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Linux USB List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 19, 2018 at 10:16 AM, 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. > > Signed-off-by: Phil Elwell > --- > .../devicetree/bindings/net/microchip,lan78xx.txt | 54 ++++++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 55 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..a5d701b > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/microchip,lan78xx.txt > @@ -0,0 +1,54 @@ > +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. > +The Device Tree properties, if present, override the OTP and EEPROM. > + > +Required properties: > +- compatible: Should be one of "usb424,7800", "usb424,7801" or "usb424,7850". > + > +Optional properties: > +- local-mac-address: see ethernet.txt > +- mac-address: see ethernet.txt > + > +Optional properties of the embedded PHY: > +- microchip,led-modes: a 0..4 element vector, with each element configuring > + the operating mode of an LED. Omitted LEDs are turned off. Allowed values > + are defined in "include/dt-bindings/net/microchip-lan78xx.h". > + > +Example: > + > +/* Based on the configuration for a Raspberry Pi 3 B+ */ > +&usb { > + usb1@1 { Same comments as in the dts file: usb-port@1 > + compatible = "usb424,2514"; > + reg = <1>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + usb1_1@1 { usb-port@1 > + compatible = "usb424,2514"; > + reg = <1>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + ethernet: usbether@1 { ethernet@1 > + compatible = "usb424,7800"; > + reg = <1>; > + local-mac-address = [ 00 11 22 33 44 55 ]; > + > + mdio { > + #address-cells = <0x1>; > + #size-cells = <0x0>; > + eth_phy: ethernet-phy@1 { > + reg = <1>; > + microchip,led-modes = < > + LAN78XX_LINK_1000_ACTIVITY > + LAN78XX_LINK_10_100_ACTIVITY > + >; > + }; > + }; > + }; > + }; > + }; > +}; > diff --git a/MAINTAINERS b/MAINTAINERS > index 23735d9..91cb961 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14572,6 +14572,7 @@ M: Woojung Huh > M: Microchip Linux Driver Support > L: netdev@vger.kernel.org > S: Maintained > +F: Documentation/devicetree/bindings/net/microchip,lan78xx.txt > F: drivers/net/usb/lan78xx.* > F: include/dt-bindings/net/microchip-lan78xx.h > > -- > 2.7.4 >