Received: by 10.192.165.156 with SMTP id m28csp788430imm; Thu, 19 Apr 2018 07:35:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/s865QqHgYcBVIZhADmpP5rDVblPkJnDHmygonYzlTctPpsayWeqmNc9/v7lw+Se5zVUZV X-Received: by 2002:a17:902:102:: with SMTP id 2-v6mr6500038plb.48.1524148517946; Thu, 19 Apr 2018 07:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524148517; cv=none; d=google.com; s=arc-20160816; b=DgBz5m0EmyRKVSQqeXdNd5uucwtdMFQ0NWOQmV4woo44ut14qKGFpZzDaUdS33QPPS k2DxKjF8eMwXlhdYIK9fx1aU9FdbQiYWrZdJEJysMmpPaducV9vqkzjhvKv0/ODthxRH LPXV1lNK3HP10S0Ew0wRqf/sDrjsUamRyIxQtSHxTK4Xw9768vW7Abi1tdQjVpcMIF4U 44e2zwoZycFIKXA3EKqg3XWOJSRsEYRefyY5Wt408Ej7uT22CYlLl9fR/psq4eq+1xAb n+uLDS31OeGuZPQIZlpvqOjtpKAxjBNG0kJ/v0Y+hlZB6Oe38B5isZF27Kl7X+afYFZB Z8lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature:arc-authentication-results; bh=FvjiYXRB2tx7Hf2ow9yp7O3WiQoXM17tjKArrC0qBpY=; b=U3mpLk0O3uaroyjIHKmXCxb1nYZKQRsAhNIDIE4rmMWpbWBg0jqCe3cVDJBK+VMdUw zZjtfLUXZhzz95ESH46fAX8lapI1oxEJZGF1xGe0rJY6U13xf4QkBqhd9FuB3jcoYlgt bYtFl6ig8/WYLyh6WPDZLnSPhlW/i9d7S8KwlxFme0evtWqs8wcPrzzHhISu4OCfZamV q6MqDva/E+YJxwi40JmgY+JyB/7hzJxFcg4aO0CMxs4HQVuc/PpIuChFBOcz+zgDwFZ0 kjuR2Zkv8eKNDnkopUkInXEggCjAATLrp3sRaMJ3dxxQohRya2W8AK6XSkQTB4SNqWSx Lh6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=SCVDJJzB; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=fKoEP8tL; 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 y5-v6si3442443plt.357.2018.04.19.07.35.04; Thu, 19 Apr 2018 07:35:17 -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=SCVDJJzB; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=fKoEP8tL; 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 S1752882AbeDSOcW (ORCPT + 99 others); Thu, 19 Apr 2018 10:32:22 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:30090 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbeDSOcT (ORCPT ); Thu, 19 Apr 2018 10:32:19 -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 w3JEN0OL012844 for ; Thu, 19 Apr 2018 15:32:17 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : to : cc : subject : date : message-id; s=pp; bh=FvjiYXRB2tx7Hf2ow9yp7O3WiQoXM17tjKArrC0qBpY=; b=SCVDJJzB4WLw8XdMy3rhHXO4UEqr97LYSfWvNlmbj+pcqBT4ad3YX8QLcj0C874OgmDS 3PS5MWoUM31O9nd+oU38oIG+EDlYDIHuxVBQ3qwjkeF1XbhZc8mInEfPmUlsDVT73D6P aNlH0rbbdb33qb/h5UoloTJJqM3AGTyHV5zp2uthQC2nJcSXny8fjHZDk46UkwmMK+qq F0rZHk+Sj/QEYwZ7P6Bbpfh4Mk99ywn25RhjnogFljZRUS1dU86p9Zr9tgC1R3fNHPnF j323DEjN5QRVDdsr9bc699RtSQmJutD1JgzIhqm4zAhY2jN83y5WAV1CDc+SEB+nRQ+Z gA== Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by mx07-00252a01.pphosted.com with ESMTP id 2hdrya8wvw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Thu, 19 Apr 2018 15:32:17 +0100 Received: by mail-wr0-f199.google.com with SMTP id m7-v6so5390512wrb.16 for ; Thu, 19 Apr 2018 07:32:17 -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; bh=FvjiYXRB2tx7Hf2ow9yp7O3WiQoXM17tjKArrC0qBpY=; b=fKoEP8tLzk0TetF8YpsJailqnzxS5AcaYBgD04qZ88Sck4Oad5xknxiSMIgGFK21Qe 7XhpZLthTUQlsbnebWUEvoKVDuXeAGovs7UkBYIWvYg5YHnuztmpE8rjEMXGOjMCo74c zyWgL6I/FD1vvEAfIr2cmy0tLIVf6pXBuzp7V5c/WsnNaF5yF4/T+I7357Tb4idibmtW w9VdDvqUjPD/pyvIQmE7/JrKC9m/xO95ZU3tSY94NFoQUx+tk1dk8Nk3GoLI2LutjiM1 rts99CbOei9i+UmFPquQ7551EgxCp7Cx+aWx8jJ2pawdlaS87OSWP1oNIgIkoKgQTyPh cjSw== 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; bh=FvjiYXRB2tx7Hf2ow9yp7O3WiQoXM17tjKArrC0qBpY=; b=HjQuPTtTSLt8q81kmWlNQGeNipN7v1Y5OdXwoT6/1jC+ZKeCr7z6t4wheeZOQS/zM9 ey/SvILSkjx7RXzKgvfnxjW5OMkEmQ7nkeuSqJL/KaCAIywuDmx6eBkMi+9Mdza2pHfl aWyYGJYMTOJm88AhAeamE80JlsEbvcGFYLPcSNe3dJnLbgqtfctT9dIhnhFnSMTkpvtf hydcXU4eVx3REtewauo90GnTrsI0GpZh3JogwBN9VSKwD4/mx3/IkzsGKlRoIcIxjt1j 8mTr1FObWFKu0gjnmvRR80SHVatN/HgEjAvgo7TK38tbfxYL4lk9ecmkueMW/aMJO1vW f09g== X-Gm-Message-State: ALQs6tDZM6/Lji5vWe7yClWEBE8Q5e4SNO/mfpGBUTIbhzW6x9cJc6Ba SCuyRlMov/z+F7KhHe10qMxFsAmUlVVfSCg8suL5YrbERrrnkQIs49UZoBOS926sM3Wjcj2GqeQ kK67Tb8/UziwL9RovGfTJsi+p X-Received: by 10.28.21.77 with SMTP id 74mr5072745wmv.76.1524148337183; Thu, 19 Apr 2018 07:32:17 -0700 (PDT) X-Received: by 10.28.21.77 with SMTP id 74mr5072718wmv.76.1524148336800; Thu, 19 Apr 2018 07:32:16 -0700 (PDT) Received: from buildbot.pitowers.org ([2a00:2381:fdf7:14:3509:880e:14cc:3c11]) by smtp.gmail.com with ESMTPSA id i44-v6sm3465473wri.17.2018.04.19.07.32.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Apr 2018 07:32:16 -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 v3 0/3] lan78xx: Read configuration from Device Tree Date: Thu, 19 Apr 2018 15:32:01 +0100 Message-Id: <1524148325-78945-1-git-send-email-phil@raspberrypi.org> X-Mailer: git-send-email 2.7.4 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. This patch set adds support for reading the MAC address and LED modes from Device Tree. v3: - Move LED setting into PHY driver. v2: - Use eth_platform_get_mac_address. - Support up to 4 LEDs, and move LED mode constants into dt-bindings header. - Improve bindings document. - Remove EEE support. Phil Elwell (3): lan78xx: Read MAC address from DT if present lan78xx: Read LED states from Device Tree dt-bindings: Document the DT bindings for lan78xx .../devicetree/bindings/net/microchip,lan78xx.txt | 54 ++++++++++++++++ MAINTAINERS | 2 + drivers/net/phy/microchip.c | 25 ++++++++ drivers/net/usb/lan78xx.c | 74 +++++++++++++++------- include/dt-bindings/net/microchip-lan78xx.h | 21 ++++++ include/linux/microchipphy.h | 3 + 6 files changed, 156 insertions(+), 23 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/microchip,lan78xx.txt create mode 100644 include/dt-bindings/net/microchip-lan78xx.h -- 2.7.4