Received: by 10.192.165.156 with SMTP id m28csp837317imm; Thu, 19 Apr 2018 08:20:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx49M7ZFvJnFMmhvM7ZJyld+WVXRPYvLMQlY/hbJeBh9oaZwx3gv3GHe681ChIyxs4bMKTVOn X-Received: by 10.167.130.151 with SMTP id s23mr6220550pfm.106.1524151226418; Thu, 19 Apr 2018 08:20:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524151226; cv=none; d=google.com; s=arc-20160816; b=mtcX+Kgp4Syof+1aA0AU/6EJ1anKkjyGG0ATxhiSu5RJ87/T7IXI/mFTjATdjsuiyp ildLz5A8g7d7a0nDdvLEWEdcS2WVJofHO7nlyUvPJZDsIObAcwAaX08MSJvHV6hhUrnw 6fsmdqaFKLWv9IGY6v9aa080fhwC3PZQn6GssjnRNcgSOnxXc3PKlkRPP1GHrRhP+v/Z bri/BQ6xP0ZnGi2FmkSmerLuM9cqIZbONQzkIpRt0Ryt2OZnvhANMnHKuYS/TKv4T9gO /BfHG7uKSPgun7xEiH8uw24DatTkiLKjRfepb7K9oXlnJtEhkYGYmnKpeHYKU7T5N+Z9 A6XA== 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:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=xSSD9SvLCvUPLV3TsLO9yFBlCax29EsDDiA9e9toJmo=; b=kMj9oDmEkbEQ/t5hnpSgoM4TbGhhUGEdXa2i3r0JUzcrpbG5mA4z/hahWvk3Z9EXu/ kNks7CQe2O9Qq6YMT9QlNIt7PO5LGWwwkMx7fd0a99fg2BMPf8PiRTuWY0QL9OVU1zX4 MxCm08GO7d6g0D8IhqgMyPTYR1noJRWeh339bCmAKTJL5hdnN2kNACPktAU1N4VIMHG7 bfoUG6QFyXzkZ7EO18mYib07gj35FRjQfMo4FZt7uzDduRwFHsNrI+FCgvf0IGrmhhqL KTYwSBrnuQGejt7eaYiDMHtiw2zQ65cc9SuUncChb6LTggGLDfO5MT1Hpu22oGjirCjo qwGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=S9FhmjRC; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=kPzqKcY3; 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 b2-v6si3714541plr.582.2018.04.19.08.20.12; Thu, 19 Apr 2018 08:20:26 -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=S9FhmjRC; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=kPzqKcY3; 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 S1753190AbeDSPSe (ORCPT + 99 others); Thu, 19 Apr 2018 11:18:34 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:16409 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752831AbeDSPSH (ORCPT ); Thu, 19 Apr 2018 11:18:07 -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 w3JFEpsA012997 for ; Thu, 19 Apr 2018 16:18:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : to : subject : date : message-id : in-reply-to : references; s=pp; bh=xSSD9SvLCvUPLV3TsLO9yFBlCax29EsDDiA9e9toJmo=; b=S9FhmjRChTwyL2wOEa5Qhayr5UMf9e7SAD3BQxYq9dUFCmSRelgn4Y8lUQdENcpT5o1w ITm1Vq+QaeklBRw0WXcetAaZ31oGwwLpNMkYcDSuZW54Tm998zgGVYdQ3zEIsn3dWwYu 0iaqknrrcF74rupPIUWpBnw64J3rBQVPIr3g0b2onnA4eCfiTHQ/MLVzHuJMlp4mcKqt OLPYqvSq7yGQPaUPcPQQ9cMCuExsIOxIBTGYutYUEK29rWQe9cHXztbNFL1NFaWgnGNS NExg6VSouhfisRPWyomRdEHo4BJrTH9HP77Zof5wLjkpr7OxsGwUR2xl86stBduq55F6 Jw== Received: from mail-wr0-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by mx07-00252a01.pphosted.com with ESMTP id 2hdrya8xmy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Thu, 19 Apr 2018 16:18:05 +0100 Received: by mail-wr0-f197.google.com with SMTP id u56-v6so5418073wrf.18 for ; Thu, 19 Apr 2018 08:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=xSSD9SvLCvUPLV3TsLO9yFBlCax29EsDDiA9e9toJmo=; b=kPzqKcY3cEOMeV6+nz1O0jqyK0NmBzpycg+cGQWFdc7/eAmm8Gt5snJ24QcxJo9anV qWoIySkV7VfLGouo4ybM7AtZUYmHWsYF9xoO0wiEoeeMncOpMdB0eJfNWtqny0ZvTg63 286ngYHfMz7PGCaaGEwS7f8v3sQR7HHLREj9pmu36W1TgeqGsMC2vdB7rcaUqMGwHvjH f5w2bTxtkdakmXvpE/2gzlLP2QrxolpMQjAKXXCzeUAMaih0faEffO9bh8C0N5bZBNxK hn5wx+dkaGAoS6uoWaZkZ1iSeuQ9W6KB8C1Xd3qF5DfDG4qK3wBKta+wrFl/KyRoPIx7 rL1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=xSSD9SvLCvUPLV3TsLO9yFBlCax29EsDDiA9e9toJmo=; b=WQncLtiT6VG2H4PPBhuK9ZcHT/WpqkuBjhFB7kYteBq+byHtbCqFBiKw6/PhiPzIUD g/WmjOCxAV/tw0vSM/98GwKIlXZsAShwof5c7V6Gy9E9EFkVZdv/2n8WqdsK3S78MQ/v JssKpMesuUv0Gr003kMs48LFahIKqBEqwPRR3g19HB66F2jyn1CGkeuZaul8VIOO+1p0 Fo9cUk4K+q9TcdKvai+D9xuxhcB+FaIGaNRXvt55l1ONaafERT8+Ft0JhW5dBhG8i3fw pdPo920wUFztXMVuqWFXhOQvUB2y5wf0gt7c1wZ9lOYVBfHdmptx39jUvStJBUybTYH9 gXiQ== X-Gm-Message-State: ALQs6tCny6Dp3G2lTK05N+Lc8y1F29xG9vJUIXfYzRMJsNVZksvROYy8 /enjpxxpNoNhWlmr2TWc1+8RoRG/+UwfGph3eFTDEhK0JG2jHc3boeaekpgZGRhhc5W4z4HEko6 hdVH96j0uQMuf8+4vOA8WbnYB X-Received: by 10.28.28.137 with SMTP id c131mr5081258wmc.45.1524151084885; Thu, 19 Apr 2018 08:18:04 -0700 (PDT) X-Received: by 10.28.28.137 with SMTP id c131mr5081227wmc.45.1524151084591; Thu, 19 Apr 2018 08:18:04 -0700 (PDT) Received: from buildbot.pitowers.org ([2a00:2381:fdf7:14:3509:880e:14cc:3c11]) by smtp.gmail.com with ESMTPSA id f15-v6sm4322342wrh.35.2018.04.19.08.18.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Apr 2018 08:18:03 -0700 (PDT) From: Phil Elwell To: Woojung Huh , Microchip Linux Driver Support , Rob Herring , Mark Rutland , Andrew Lunn , Florian Fainelli , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Linus Walleij , Andrew Morton , Randy Dunlap , Phil Elwell , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH resend v3 3/3] dt-bindings: Document the DT bindings for lan78xx Date: Thu, 19 Apr 2018 16:16:59 +0100 Message-Id: <1524151019-82823-4-git-send-email-phil@raspberrypi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524151019-82823-1-git-send-email-phil@raspberrypi.org> References: <1524151019-82823-1-git-send-email-phil@raspberrypi.org> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-19_05:,, 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. 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 { + 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>; + 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