Received: by 10.192.165.156 with SMTP id m28csp1381139imm; Wed, 18 Apr 2018 08:47:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+uE2YGHXKvB2HoBL83sGBziAe2sLJnirFhs+IpZ2LG2QT/ZeK4Odf60vy46HMlJG5OZGth X-Received: by 10.101.88.194 with SMTP id e2mr2144616pgu.229.1524066444842; Wed, 18 Apr 2018 08:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524066444; cv=none; d=google.com; s=arc-20160816; b=z33306MADMj3ovrvr2TmPfZkh8exkUpEH1q9BpEqYBOzhbuJd800QmoFrpIBJm94Jn Zl0fr0hP/Blwl+5CPvEeh0qDonODIMsfwQtAzB9mqSuQDBfuCZxNzb0RdrdN+vYCVe0N cONdnqAVHKY5SvDMZNz1Adra3AczVAsGDL57EfNdHu7ageUd+kLoy0c33DNbaY3qHOg6 +YzbHCtACvFLvKseBZRrEwl+GS1oiFcfKpH0+2TM4blnFHg7QGp3giNJvpMWoWAZzKKF EEoabYhTW3ZdiJc7I8sibXTQ2M+xDLtby6n8+DU2IwnYEneZhpD4Yjn41ErCKftMvuoj l1Cg== 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=1rsJ6FE31S3M/1l+WBftoy1BpBbwAVoCOTHBNfob8qk=; b=B0J46J9R08rBDPeRi5+0NKJ+fxwHCb9SEt+KMYTv/Szex4xK+jgFQ5ILa0outsYoQR cNCfb6ziATGoNOCNj8jQJdQxMQ7BVK6cLY7p4QbrdSMngl1++qeOQhJwsE4Bw9t+Hx7P dUW6Y+twH98GLSx9ZQTYyy1UEY4JU4buJUN4Q/PY9OYD+zbEP1hOP8nEl1BwIz2q/vSi X1RMmYOYlOvdTVbLuwGe+pz6uFkdibPKO10eJ05IwBfdeX2OB/y4cJDFDnJIEE1kvMJL j9EorCcK3q3nsB8mMVf5N7OyizdKpd3zI+cCTMTsActMOCPdvTPmpgeBOS4Q4IFCmGIC Cwgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=azOLKV5J; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=X4ROZSxj; 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 v6-v6si1547018plp.31.2018.04.18.08.47.10; Wed, 18 Apr 2018 08:47:24 -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=azOLKV5J; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=X4ROZSxj; 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 S1753958AbeDRPpf (ORCPT + 99 others); Wed, 18 Apr 2018 11:45:35 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:10967 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753270AbeDRPpb (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 w3IFXfSY028597 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-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by mx07-00252a01.pphosted.com with ESMTP id 2hdrya8dr2-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-f197.google.com with SMTP id b9-v6so2215474wrj.15 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=Z6YBy3BOCLXYX1FagPukjPFZ9jOwJFBWFNL1RnW7hQvXVTog1RutyZv/uPAiXbMTDC L9bySwGcjsssFsqEhXS8LZ7KCisycpUoJJqZ9rxH8gdZYJPAHz0lcY4Vw0ba7fdqmq5j cPELsFtSZSJfMULaZD2lYFOXJ1kHLArxxSzPg+xgqgRXIs58h6/Vjz2BBmXT1A0E1xgu SrokG43yqqFNvRkMLNyZ5bAXmhBv/vSP9GoY18qWiokbf/sMyT4PdUfVVdMi694Yqz4u UYEDWIbi0+rxlKgINX/zctSF1ZO8FQ2sMWTTHr812QIUnalB6YwA8UrX1IMZJ+imrcEW dRYw== X-Gm-Message-State: ALQs6tABuLJk3pliBy8J99wJvay+ZAU+LppxhLSZd1ok6usCqtylnmIk nquDAusodSF42pMw3wDwPulsCRKpG9lU/q3AZ+Ng7aQEl2d3C1fzJXS9XILipZJyCehXEspdzBa T+aTBh356MMLg4uGj3qhX6bOS X-Received: by 10.28.39.197 with SMTP id n188mr137835wmn.90.1524066329506; Wed, 18 Apr 2018 08:45:29 -0700 (PDT) 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: 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. 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 -- 2.7.4