From patchwork Wed Apr 18 15:45:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Elwell X-Patchwork-Id: 900224 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=raspberrypi.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=raspberrypi.org header.i=@raspberrypi.org header.b="azOLKV5J"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi-org.20150623.gappssmtp.com header.i=@raspberrypi-org.20150623.gappssmtp.com header.b="X4ROZSxj"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40R6112r5yz9s1v for ; Thu, 19 Apr 2018 01:46:29 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753754AbeDRPpe (ORCPT ); Wed, 18 Apr 2018 11:45:34 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:29190 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753182AbeDRPpb (ORCPT ); Wed, 18 Apr 2018 11:45:31 -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 w3IFZqhv029549 for ; Wed, 18 Apr 2018 16:45:30 +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=1rsJ6FE31S3M/1l+WBftoy1BpBbwAVoCOTHBNfob8qk=; b=azOLKV5JVyqF7Qu5oK1l+AyoHAZQnsrTeSIsCh2KTX/S8wO2vQ9Kz+EEUk5HG+SFQ1ZH WJPalYBsIfUZShVUGGKw5vCwIApJtNXOVwjK3sNqPmBSsmYVlMgnxvI+jpuQRQnvosvY pSaziQMlWwBgsVkWTadVFove0uI6n/cUK8MqnPFbawG8XtQAr5UWOiYfVsWs2l9ZHw3a 0PeVb0ucm+I9vS1k/1Cy/6mn+AH9GYRMPp03VPBhtrIuITMesL0Ue1tpOwG1kXEXYIYf KsCd1TUAMvGQ0hsi4WI8GTIIL6JEMNaQuo/JY6qFMSG53pibSLa4A32n/O6l/J1Mobcw CA== Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by mx07-00252a01.pphosted.com with ESMTP id 2hdrya8dr3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Wed, 18 Apr 2018 16:45:30 +0100 Received: by mail-wr0-f198.google.com with SMTP id 88-v6so1005099wrc.21 for ; Wed, 18 Apr 2018 08:45:30 -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=1rsJ6FE31S3M/1l+WBftoy1BpBbwAVoCOTHBNfob8qk=; b=X4ROZSxj4Ujj52/nSh1AYI4Ssuo62mxlZ1I2BUmbsRg5tQmVj5T3ujuPAFMpiPQBhm j+Vj4HmsLDWi2HAzcOFhgBldNDMwEEALIc/sHXwmVrohYVMtGapFih/+l7il8W+u3qlK GtX4T+6xaUO+PklZAzlXXlHgnn/RVUUa60AqDQ2khnpgNCPfIE2K8I2kjSLFlLMue9Jz REKzSGZwyMPoXlOc0qpiQfSi/tvWjYU+Onu5i2y3WnGYgJV6camvfFwFQvo8l9vGlPCa yggNi2kWXyo7YK+Oo2qbhzISkeuetwpqSoiZ3ouXC2S0QW9a+LRVdLp0RRmifcWO5G26 AKyw== 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=1rsJ6FE31S3M/1l+WBftoy1BpBbwAVoCOTHBNfob8qk=; b=Q74tx5+L/U0gh9YKXjwniXb9cSYq9joIujHwQU0ql9SOAKtEBXM9hxmVSklL17LAbi nupmUaEwefPSdpnpSHjG1qKewjEvCvAiIX55S345nqLkrQE1iBTr+xHiXkKB3Md9BDAj hVUBNGjtan1YDmQ/GUvEbz4Mj9bPsv4wtAnkVHJdsfSmhgTn30DAkD3k8z11T6Gt4eHU K86BKWX9NFIevVVwrLZt+2bvbdYBuHy3ujCrvwCuiw0djXoTw16UbsCyQGg6yilpH7zE Xhws2L/Tn4OyQajApRbUVoyCVtCKVlOQpde7cEiYsQVbsMgJD6gEJucpltyYbcEYKUxB cN+g== X-Gm-Message-State: ALQs6tDBdL4rjuChNv81SWWla5mqmr7xTNMpNsa907cORSlhYIPIqeLg s41nxHHHFtGGt2N5TB4UjGqbXWsSovV/hnMB70bvgzi/U6UvKLKsn6V4ptWwzNYu7ny5pdJ7kVm wUNUVij7aT3qI9kutP7z0LA== X-Received: by 10.28.39.197 with SMTP id n188mr137832wmn.90.1524066329502; Wed, 18 Apr 2018 08:45:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+A0Z2NDlkdfCN/JmOre6Vnl5dp9Gu+4pBHVal5kDfDquSDcEpi0NFQLELUv9hRh3xcl9lScQ== X-Received: by 10.28.39.197 with SMTP id n188mr137817wmn.90.1524066329311; Wed, 18 Apr 2018 08:45:29 -0700 (PDT) Received: from buildbot.pitowers.org ([2a00:2381:fdf7:14:7931:3b7a:4272:adad]) by smtp.gmail.com with ESMTPSA id n79sm2752689wmi.20.2018.04.18.08.45.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Apr 2018 08:45:28 -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 v2 0/3] lan78xx: Read configuration from Device Tree Date: Wed, 18 Apr 2018 16:45:20 +0100 Message-Id: <1524066323-109628-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-18_03:, , signatures=0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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. 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 | 43 +++++++++++++++ MAINTAINERS | 2 + drivers/net/usb/lan78xx.c | 62 ++++++++++++++-------- include/dt-bindings/net/microchip-78xx.h | 40 ++++++++++++++ 4 files changed, 125 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/microchip,lan78xx.txt create mode 100644 include/dt-bindings/net/microchip-78xx.h