From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Elwell Subject: Re: [PATCH 4/4] dt-bindings: Document the DT bindings for lan78xx Date: Thu, 12 Apr 2018 15:10:57 +0100 Message-ID: <0bcc10cd-2a25-311f-d006-ddefe47567dc@raspberrypi.org> References: <1523541336-145953-1-git-send-email-phil@raspberrypi.org> <1523541336-145953-5-git-send-email-phil@raspberrypi.org> <20180412140409.GK28963@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180412140409.GK28963@lunn.ch> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Andrew Lunn Cc: Woojung Huh , Microchip Linux Driver Support , Rob Herring , 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 List-Id: devicetree@vger.kernel.org Hi Andrew, On 12/04/2018 15:04, Andrew Lunn wrote: > 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. > > Hi Phil > > How you link an OF node to a USB device is not obvious. Could you > please include either a pointer to some binding documentation, or make > your example show it. Thanks for the feedback. Would you consider this (lifted from the Pi 3B+ Device Tree) a sufficient example? &usb { usb1@1 { compatible = "usb424,2514"; reg = <1>; #address-cells = <1>; #size-cells = <0>; usb1_1@1 { compatible = "usb424,2514"; reg = <1>; #address-cells = <1>; #size-cells = <0>; ethernet: usbether@1 { compatible = "usb424,7800"; reg = <1>; microchip,eee-enabled; microchip,tx-lpi-timer = <600>; /* non-aggressive*/ /* * led0 = 1:link1000/activity * led1 = 6:link10/100/activity */ microchip,led-modes = <1 6>; }; }; }; }; Phil