Received: by 10.192.165.156 with SMTP id m28csp2011665imm; Thu, 12 Apr 2018 07:14:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+TODQz0kErKNPwv7jZAm1elZ4QVuD8QFwf7U0CSHrrdLJBz3EqUu958Qsj2CIvcPVUX22p X-Received: by 10.99.95.84 with SMTP id t81mr828212pgb.400.1523542486148; Thu, 12 Apr 2018 07:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523542486; cv=none; d=google.com; s=arc-20160816; b=yoCesaEfXWWAWtme/+Zvpu6UrJVG+AGxHJut9HW7lMoQWpNmJdcJ7hj+UU2tUXknJo jl7jcrSvMKxYYoYQwysG0rS6TS08F4lf9KppegEB0fjph/sSR+6Xr5OPYK1NUBvW5xNZ c7q0h7wZ++qWgo6hpWaXv5//YN9Y9htwZNXp6bHppJSAmlgOh57LekyCXDvuUpaMcgGM 3kDsK/un1/b70zMlXPTJxmw6ZuREgF2bqgsqF0tkrFbc2s3vw3PR5Poi+YueuKIl9su/ kJIQEYzNw1btJ5ZU2eQYuUKFAL8LrRTnJ7Z+5OCE9Y1P1jvl4rjpqDC1ZNsIWBKa4YeA S3Yg== 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 :dkim-signature:arc-authentication-results; bh=fHOJS7jgbBJgZfjoWNmAjfvluEQ3uyWeNHMg68ezVrM=; b=bvepXT6yPYNBwV0/fyiUJhxUb2h12rSr+mUFOpbWRBCNraOme2SIh5RYCRfzOY9wXO APR3fVaK+hmPjwGE5CAaxpaKmTaonR+G1cQMmWrht9ldWipwjzLVX9AB79eKAfOS4kOC 1qgA9qDFBf7KFdqFTxUXOSxjuSoqyZCTKGLA3o2tVVwbw+tHiA8Z9eF+YnIMjPMDNKQz ZLNm1SmDB6zGF/C/oV74+otDrDVl3ENhszTk5u5X64qLVoWrobpg4Gafn3Q+w0SRfgRV qg8sO+8idCkd1MNpR/spvr1Bvq2rIcHSTEWBLtCyHmvuBVOX09DBp5L99iYfXqsEyTVZ r8xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=pdwuvHb5; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=q4y30nRp; 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 bh1-v6si3298411plb.246.2018.04.12.07.14.09; Thu, 12 Apr 2018 07:14:46 -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=fail header.i=@raspberrypi.org header.s=pp header.b=pdwuvHb5; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=q4y30nRp; 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 S1753087AbeDLOLA (ORCPT + 99 others); Thu, 12 Apr 2018 10:11:00 -0400 Received: from mx08-00252a01.pphosted.com ([91.207.212.211]:41220 "EHLO mx08-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752763AbeDLOK5 (ORCPT ); Thu, 12 Apr 2018 10:10:57 -0400 Received: from pps.filterd (m0102629.ppops.net [127.0.0.1]) by mx08-00252a01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3CE9Y4E022295 for ; Thu, 12 Apr 2018 15:10:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp; bh=fHOJS7jgbBJgZfjoWNmAjfvluEQ3uyWeNHMg68ezVrM=; b=pdwuvHb55DoWipbb6bHibvxIy/6FOlCg/5Hv3mtcv/VW86kSvYuJFs4tAb4Uww8tGwyS 9rIVVgOMl9eKu2DOC14BeWabP8rG6g0SEOYlInt7ZfhytPwA5Zi1Nqw/MYLQAIKBEGGX Ka7pWVqxDQqwEmHlevvaeYKQgo9QLP/TLiJCP9XmxXm78hOKEQSDhH7gd+yjP4Ak9cKC rbyfeFaiq+qq5z13jK+eJxTelBZiFmgo3Wq8qRooNfsqjGEeluSHmFu6+rRkOO76ZxtS iizAdb4b7RpRSyARRrqksh4QmYgvhTDvZZk/Ttj2q5HWHeeg6o8JmQAQcR7ou7EEyllU Mw== Received: from mail-wr0-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by mx08-00252a01.pphosted.com with ESMTP id 2h6trdtk06-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Thu, 12 Apr 2018 15:10:56 +0100 Received: by mail-wr0-f197.google.com with SMTP id q6so3122123wre.20 for ; Thu, 12 Apr 2018 07:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fHOJS7jgbBJgZfjoWNmAjfvluEQ3uyWeNHMg68ezVrM=; b=q4y30nRp0QjDLPB4vWHu/s+49St5QVQXFtYcVw6YNSaeouPY6ImzYX5jPt7U6ldSqD fxu9QAsckPBvXZ4qBzQVrqy+sXu9fPBG9fM50MsijeX4hxtHESlZFwUiJ0WDIYanmnBC rN3h03nQYtxyNyTC6hmn/m/yitjPwVtBZ3ja4uIvioRRRs/9M0YiQf/nu6ooATM+M/eD o62yAUcak5LCQqFfHRl4YYt5C0Xw1v0T0S+nE0gbVvQ2vFx/zkTicqU9oMzLyQxFy2DP cLtHX/f4W/0O49DPy/VHpI2XrLuW8mvV1Jerld/slLxq+wlN1ZsbBQUZv7nNew1fRfho Wi5A== 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=fHOJS7jgbBJgZfjoWNmAjfvluEQ3uyWeNHMg68ezVrM=; b=JOsLwE3ANMb7r+sPoqWAAz+FnPzDrEKRRPuSvrc2ubtjC1NbzgEXa0jDatxKOCYeOT VxGbh8+iIufDk2SdVaZ1pC9nd9xkdZ9X58wbIJw0pBmsQm1064fqjVXqNp5cGgLkRz72 uQayZ7p+6zYwcDENMqibMHmHSMmS0iyf0DSb5gnFn7oX6hJZ+C3EPIZLnE+uW5d9FrEt J3Ay/kxnsEGZB7jpjW9z9mfRI3JlGEJGJxDaq3uhpJ7SwHvoZgFAUq5Un2uTC5uy0bNK rvmwWyMbCionWghl7NuvgmLee/DSmhhoZxv+uAXmlfdYEHi3XNGrubnSkovVD1ChBGx3 Nlhw== X-Gm-Message-State: ALQs6tA+Y4UW/Fe3nPBVprlQec+UIJ0ljQarEOCj8+dLvIO0xiqcEqYt 00CsmjmpD9/J/xKtAcVMiZrKF5DrlpSZjizH7sZy7f9ado9a4q0GQ9by8FHfK26ewGPQlTiHACz XNt4F1+XqnhsuARIzy+G5IIPr X-Received: by 10.223.172.236 with SMTP id o99mr995810wrc.36.1523542255653; Thu, 12 Apr 2018 07:10:55 -0700 (PDT) X-Received: by 10.223.172.236 with SMTP id o99mr995788wrc.36.1523542255466; Thu, 12 Apr 2018 07:10:55 -0700 (PDT) Received: from ?IPv6:2a00:2381:fdf7:14:8da9:f6b6:f0c3:26ea? ([2a00:2381:fdf7:14:8da9:f6b6:f0c3:26ea]) by smtp.gmail.com with ESMTPSA id w69sm3818074wrb.94.2018.04.12.07.10.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Apr 2018 07:10:55 -0700 (PDT) Subject: Re: [PATCH 4/4] dt-bindings: Document the DT bindings for lan78xx 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 References: <1523541336-145953-1-git-send-email-phil@raspberrypi.org> <1523541336-145953-5-git-send-email-phil@raspberrypi.org> <20180412140409.GK28963@lunn.ch> From: Phil Elwell Message-ID: <0bcc10cd-2a25-311f-d006-ddefe47567dc@raspberrypi.org> Date: Thu, 12 Apr 2018 15:10:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180412140409.GK28963@lunn.ch> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-12_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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