Received: by 10.192.165.156 with SMTP id m28csp1991621imm; Thu, 12 Apr 2018 06:59:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+VpfGSe74h/TtORu8OX/+nFg385Te730+Op/fONA+JzOGy1TPI3eKHwgl3YBqR7nMBCgR6 X-Received: by 10.98.178.76 with SMTP id x73mr7866231pfe.193.1523541575668; Thu, 12 Apr 2018 06:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523541575; cv=none; d=google.com; s=arc-20160816; b=xel9IJ0aoUu86tdEOxROiTcdfWvSCsMOOcsHAmuNX2CIbec7t85zD1x4AVtd3hx0Fv B1fE3hm+L9ZZPNBgNq5JYX7PoUSe14mFOqHwDbenXrtoe7w014X4OAJlBF0tjwLSDXGx QEpc3ftvTpYTiCTe2ukPF2N88v2/C21FT5zHQFPS0jplCMbhQ5zbBkEVK+R6fxki7N74 1bOZAUKVqa+8iIpUfOAK+GGjEwW6h74ebnHDPSd88l4T7b2CsaCQ30FP1M5JZLdR3YZ1 hAPG+ZW9kJU8y9lkiP9yu+sK/ju978gJCJ18zpnEaLCT8Q3LR000Ghj5nR+O8L4m2EAH UdoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=jpP5AtDESC7sHwxSB19ZOw6n+7fgGp52qaCeJCjqZDk=; b=Qhzzk3+Oip9Ri7hZwcLac5pJA0jpZCZCdNKFY8emByRzo0Oxm0VGAt307DSgiu1qb5 9jnT4iLgG13U1gJaPC2VW9hcJdhpB885I9SMAiKSo/xwYQuwROt+knaaeb5B3WbnuDlO Rr3ezUCsuqvmZtgB37QP/GZMNmLm4dNZWr0j2q3dUJR3uB9DPD+lv2gYVTXS21A7LGM5 HoPt/+gtn1c1xKy6lENLYKKMyQhAkRlvl7GkzmoGEQM/O+Y1YKg38pEEfGWauM9GyT/6 gbPJ7LD5xpbLQ3mg9ERbME5KrXRVdL96wZoY/M8iLd0J2cnr0HYe117CsyB/62aFYKeU gR/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=VZc2zjDE; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=v0V/o4Cp; 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 d128si2338889pgc.445.2018.04.12.06.58.58; Thu, 12 Apr 2018 06:59:35 -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=VZc2zjDE; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=v0V/o4Cp; 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 S1752908AbeDLN4A (ORCPT + 99 others); Thu, 12 Apr 2018 09:56:00 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:39299 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752802AbeDLNzy (ORCPT ); Thu, 12 Apr 2018 09:55:54 -0400 Received: from pps.filterd (m0102628.ppops.net [127.0.0.1]) by mx07-00252a01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3CDrskL008247 for ; Thu, 12 Apr 2018 14:55:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pp; bh=jpP5AtDESC7sHwxSB19ZOw6n+7fgGp52qaCeJCjqZDk=; b=VZc2zjDE/QGgr6Ir4mYQzev/bxeGxeUIHyVZMKoFbn6p8nzk7UYn+ExNRXQw3ptvXgvk L3b1+PPKkq4CRli1iRNpWFDcqZ8hKHANj0lAeEyT6HYSdoFqURWkj8x1bFZHl8PcnFBv G/szepXw2qHnKnPgVc9C6mTrLwDgwZ0p6NjPOJvccWWfsz/WWSRMa/7UNSsJzxk7VUnC lMkmlBBry2Y28uQCBtDUbMDgCo0uxE+J1sDe9akJHHZ/eDK9/e9wJJNPA9Oa2+u8ZrDn qpDIhmX7DcA2mgJk9GXoGhA6WvCJguDx16x8oFEXF/iSf3X9uZvfoPXSZyu7Ogfl1YO6 LQ== Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by mx07-00252a01.pphosted.com with ESMTP id 2h6s4kamwr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Thu, 12 Apr 2018 14:55:53 +0100 Received: by mail-wr0-f200.google.com with SMTP id u13so3102690wre.1 for ; Thu, 12 Apr 2018 06:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jpP5AtDESC7sHwxSB19ZOw6n+7fgGp52qaCeJCjqZDk=; b=v0V/o4CpJrRGlHxASyItCda07EcXucjL3qxjyhl2GvGFad64T5vHlhHwTYBB3em1Xi vCA85UgyDLXfJJgHeOQ5CrmVDWvLz/77PLSu/GLY7I16mf8LDNR3HvphDFrIk02G7L9v +woU2DkeIRw0KHKwJKqI+LsaKsyRbjLrL00mg3WNyiYcSk2WPfST9czgfyHOyRLVVyVP S9BOoS/mOVqC9Grv2STZjfAvOHWtmSHd6k68D2OZe29Ko8FQktdMLiU0Hlnwl7YvcopS 6g46NTUXRLQXVKUpNi9bbEdlfcivtOFL911YaqhjQhfgT67xDRZwiw3Ofet05Ox9Y8bj StTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jpP5AtDESC7sHwxSB19ZOw6n+7fgGp52qaCeJCjqZDk=; b=IksRPDcyezpNTh+K0MiTCtQsl4s393rayyIaR7acmPAv4S6/VD8gkTGGMOvAiN3yG9 FSyU6ZdOhzcV7RQFXJFdnDIOed3k5nla5OijaMLrtxjM1TuLWHHWXGMyfJrxFPF1HjT5 Oj3C+4FlaopHYxfTI0Oajnshxqf0EuAbzSEOMa/uwSd+HNPjFnNHRpp7fFJa+42E7b8o fv6Hz12tCqfn1UlOBiD+LikxEqB/RIEAadquvvl7IjFrnha/NwwtLtyGLjiK01eU/d9+ mwTp0VNGfmKLO85G2WHKT3FyS2Rt64yr9iglEQbB6IYbreFG2s1WjK3xQSibBEDunrX6 +x1Q== X-Gm-Message-State: ALQs6tASEDaVWX2abMts/VoLpsi5V9tlii9h9o8aoDvndAvPpHhGhM3S 66IsgVWfGu4ijhpBofBrQiQRwkCrTRIDvM/xgWw79SIXplpuk2dHNkOs2b8anwnDnL5HM0ADPxg OLa4gAQtHdH6gyHIqwNdi/Ioh X-Received: by 10.28.191.27 with SMTP id p27mr867478wmf.97.1523541352742; Thu, 12 Apr 2018 06:55:52 -0700 (PDT) X-Received: by 10.28.191.27 with SMTP id p27mr867459wmf.97.1523541352507; Thu, 12 Apr 2018 06:55:52 -0700 (PDT) Received: from buildbot.pitowers.org ([2a00:2381:fdf7:14:3403:8ea9:e6c1:e3f5]) by smtp.gmail.com with ESMTPSA id m83sm3491581wma.17.2018.04.12.06.55.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 06:55:51 -0700 (PDT) From: Phil Elwell To: 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 Cc: Phil Elwell Subject: [PATCH 4/4] dt-bindings: Document the DT bindings for lan78xx Date: Thu, 12 Apr 2018 14:55:36 +0100 Message-Id: <1523541336-145953-5-git-send-email-phil@raspberrypi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523541336-145953-1-git-send-email-phil@raspberrypi.org> References: <1523541336-145953-1-git-send-email-phil@raspberrypi.org> 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 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; +- 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). + +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