Received: by 10.192.165.156 with SMTP id m28csp837583imm; Thu, 19 Apr 2018 08:20:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx49I/3J5b0RTiiK9C8+yvkajg2jUoAg7hroiPNCJRj5BnrM2btkezC1q9I7hWwD03youGE6z X-Received: by 2002:a17:902:6041:: with SMTP id a1-v6mr4835933plt.59.1524151238854; Thu, 19 Apr 2018 08:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524151238; cv=none; d=google.com; s=arc-20160816; b=QTa6f1/0zE44I15YyDu1NO/prfNkdluV6TdGf13Hj9uwDlBTdEaboWM44v7Ya9909T cDeckITgCSoX2hzrm4+TdcX2VjgQT/J50mtIMIIYxeI+9VAD3lnNsZ0ko7elOgZo63yV ERfAT+ihFe2IsaE2HWEn54WLXyF/Us8c5EmnXkodj6F7vYcmZBo8/QmRuCvvVOUZiUWl BhRi220HTobqhM+OCfMFX2+0k6G3C4TqsADS0nW3Je7E3Wjuxv86hGqz3m5XyEjR77qK kDG7WDR0EMPQ9vY8JA6uXaT3CZcwPV9vvvPTGDiK++9ZH7D9IbyE2UCyJoek+I96AVUf QvPQ== 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:to:from :dkim-signature:dkim-signature:arc-authentication-results; bh=Q9p4T/+Vt+EVOLVmo/I38ZXyA19YkPVYZfPt+2/dPNM=; b=U/Djwou4zlTPNwnzYUCOrlXpAN/nvYkl5yOee7pksPGbxusf2vKd/K3XA/fgQjkPna JBSHaz118iXXFXUoVgtqjpPIRYSKZbnZ9gFnbxoAk8Aw+935iAgZARmKdOzxZlrQ7SBg pVwQRKQx1wVEM3Mw23DN/Rmenik1R7mWzlBU2OJjA/76uu5WFOaJda2QqXfaNDJnc+KL JCx7GSWnF6VbDBET3ar8UFSjc4BAYLT8We+aZtmJ8Twuf/4dkHauQM85XUlwJeVzAL9K 8zO4B92032tcZrGITSPesvxP0VKUoWeyM1BZ9+sYGcdxMwZS7WoVZznmZJmTVfevhgaf Y/Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=p4jpZkbr; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=ArMu/NCd; 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 m11si3250116pgc.224.2018.04.19.08.20.24; Thu, 19 Apr 2018 08:20:38 -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=p4jpZkbr; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=ArMu/NCd; 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 S1752948AbeDSPSH (ORCPT + 99 others); Thu, 19 Apr 2018 11:18:07 -0400 Received: from mx08-00252a01.pphosted.com ([91.207.212.211]:56638 "EHLO mx08-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752209AbeDSPSC (ORCPT ); Thu, 19 Apr 2018 11:18:02 -0400 Received: from pps.filterd (m0102629.ppops.net [127.0.0.1]) by mx08-00252a01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3JFEFVP021105 for ; Thu, 19 Apr 2018 16:18:01 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : to : subject : date : message-id; s=pp; bh=Q9p4T/+Vt+EVOLVmo/I38ZXyA19YkPVYZfPt+2/dPNM=; b=p4jpZkbrWr3/BAaaBNA76i7ryNjNXz68P6Au3kSBY+8vzHOSR8rLuATBuibS8lDxJz4Q MUwQ6g1slxv6+0+NYtdYtVbDTJyOPIdMBaRjaeu0d5ZBupz5Y92us3JMwc+1/De0lTIf kxtKJ0HwyVkHBPQAnvbKxN0ukwU9IscifIYpppcOQcF9bn4srsfW9gXug+mi2mozdDl/ w1IdV+NM30UnT1vcnPsSa4VR3Ww//oK+HzhvOOueCgrp0CWasw3qnc8RMUkMekuke+DN KpX/bvZufLsWL7atu8j+hN+u/5wkvmnmIEr6rI8ZiRyq320yRWBA/dRDSA7AMEovR87D DQ== Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by mx08-00252a01.pphosted.com with ESMTP id 2hdry78xg7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Thu, 19 Apr 2018 16:18:01 +0100 Received: by mail-wr0-f198.google.com with SMTP id a38-v6so5540781wra.10 for ; Thu, 19 Apr 2018 08:18:01 -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; bh=Q9p4T/+Vt+EVOLVmo/I38ZXyA19YkPVYZfPt+2/dPNM=; b=ArMu/NCd9UGPajye1217msJqRZWjt3bdZM45RPt5NBvFOXJs1CsCCyza142sihnLm+ XxXxA1J/6jSpfeYVlzgeTISuxdx336mxu+jy7R+k9Z37Nprk/kcLBHneY801suITExoY uL8TmMbUm0I0FlBaNMzf2NHMT6dsZRHynjhBpgzEuZKy8K7NX7EK2/eEoNcIqJZtJ/IO RFKqZISMCglaWUGgnGKXaxk4xn/VxP00m1S9ZgKTYEgNLZb+urSLVerLJVChCB5eZR5O sSo5g0xx3lTgiKEzpYzbRYPKtp4MauA3P07uhXBrFRVTU8C+08ltFvAelzJ7X1dNYuid /Tfg== 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; bh=Q9p4T/+Vt+EVOLVmo/I38ZXyA19YkPVYZfPt+2/dPNM=; b=FIjZr/cogDjP2Oy8aTu7RjhL9jyZosdRf3RfjELQiZSoghHpuyB6yyjTYPm4axdQgR iJXKi/3ywnNGApueui1G+Cq9S8FoEJt8SV7IseH7WfmKC2lsPZTvR07oaI7tOR9g4y5Z OEX1kDsFQH7ata8OPlXjinRuGei3Eh2AvoqNYl+KXrZCxt5ka4p/Adjk7gh4a7GYzKgs BKKIU8gyhbgm/zz61ElXh7/6mFxA7FhvZ/iYeYDqa80zpBedk+I8x7rZkKSjfK+OzMmn XlEJMN/qWtxEFOMCjxwOaTEDbNzehGv0FVyx99Bt6k9IV7mjNVNU906sLACl0T5jS+F0 8dSg== X-Gm-Message-State: ALQs6tCqsXjQz15F0v2Oj4833QheIzT8NhVviFMZHTI7AMu1f/17Im9a UMaXiJ7rRKxHpyJRm8vlY4K7aBG7r7kw6V3AoCTil3kpWiWv4jqWIN/mRw6wQLUfvf6vIseu4j8 VgHd0LpbdZPNURH1mtJM5lpji X-Received: by 10.28.113.24 with SMTP id m24mr5224284wmc.150.1524151080661; Thu, 19 Apr 2018 08:18:00 -0700 (PDT) X-Received: by 10.28.113.24 with SMTP id m24mr5224275wmc.150.1524151080481; Thu, 19 Apr 2018 08:18:00 -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.17.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Apr 2018 08:17:59 -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 0/3] lan78xx: Read configuration from Device Tree Date: Thu, 19 Apr 2018 16:16:56 +0100 Message-Id: <1524151019-82823-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 [ Resending due to incorrect distribution list ] 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