Received: by 10.192.165.156 with SMTP id m28csp787176imm; Thu, 19 Apr 2018 07:34:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx48UF3sve92Au2RIX4QHXSl2I45HmSGaFeBw7GONLpMMnWj2T80d28WteY/LuRyHxPChFFO4 X-Received: by 10.99.106.4 with SMTP id f4mr4679691pgc.225.1524148444463; Thu, 19 Apr 2018 07:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524148444; cv=none; d=google.com; s=arc-20160816; b=cNokDkX9bALGliEFpfNiniWeFUqvCjtGHZISis+j36n5jsLzuaDDfU/cYDeuHeDP4J qqzMyfpeVvYufzNeDl0jtdvOpQTsatk3hJSbaDABuIW0//IwnKjkudCG78TuUB3sjUqL S/PwL1oUqfjnqEWqI112iCI8DqrVccE719YUARvQ7uUgjRaBDuhbfNaq0PFGFdCQqkIB GiuDR81EXzsiLLxAo0BlLWwKuyB2oOGBg5uajB+Y/WOkDkvdvQNEVkLN+9JWz90N2iFp pTLi7AVqdsOiRv0JMgxzHa6DrkoFD2TLHeZ5L640WMYAsBe6wEp89lEei0ZPo89Sz326 9S5A== 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:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=FvjiYXRB2tx7Hf2ow9yp7O3WiQoXM17tjKArrC0qBpY=; b=05Ep0kdrz5Eoqo0gZ5A/dV/ncEPW1LmKpR0IQL9vyPw3/kdTBOY6pVOEUxb926Z5Bv kGC1F5GmoRwti7F394dD+4/wmWAFUmfEe4/y/ykc7P9h4Lf2lzbD4WOHSR+es0ZcGEZK qZD7dBGdshCI+nApJQg0wCVLJ2JL4LkaM+KN/Y7oiv3A6z6CPfFf1DZ+NmicEpyGSF27 BQx0GDgchoZPpMZ6RmoxbfOOKJflm2Zz4VEBiQYsjiYuAjGCaLoTwSyIIvHQ2E03XOO5 dhP34LpyIUMDSQJ/19te0yFIWlKKarkaipymMANQKkhc/zE79Ov0Q7CaN4MJ+Aa9cyiL w5Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=ncqx2kDO; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=U5v3y0hh; 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 a61-v6si3617939pla.400.2018.04.19.07.33.49; Thu, 19 Apr 2018 07:34:04 -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=ncqx2kDO; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=U5v3y0hh; 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 S1753099AbeDSOcZ (ORCPT + 99 others); Thu, 19 Apr 2018 10:32:25 -0400 Received: from mx08-00252a01.pphosted.com ([91.207.212.211]:53984 "EHLO mx08-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751882AbeDSOcT (ORCPT ); Thu, 19 Apr 2018 10:32:19 -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 w3JEMqnN022547 for ; Thu, 19 Apr 2018 15:32:18 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pp; bh=FvjiYXRB2tx7Hf2ow9yp7O3WiQoXM17tjKArrC0qBpY=; b=ncqx2kDOqGHSfVwnFj7o/FDI2c1efzLQuvee3exylPykgKND+RPu2xtTY131mCOyRCjZ d7Q/pR8iC5x9Dyq41B7WrxHYHp9adS0o3cUKs2SCw3RuiILOrLShsDj8sZKg18ym/jkk H2QAAZhQg7ICItAMEhuixWsb+ft5VHf6UnZiSkIfgG+ojpmpjJZgh3fgVXeXtpVLIdVg a9MZi90aheMITyeb9JR4wy90bIZpUYgBewG2QR1YtfL1xvMAi3Z5aOF4qfU6lbX3j0jy SXBNAPI0HdalCg50xL7XRn7c3QnAwiN9s6v3puEGVkbKSaSJKpAO9gzzy4DaowcEoGUr wQ== Received: from mail-wr0-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by mx08-00252a01.pphosted.com with ESMTP id 2hdry78wt6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Thu, 19 Apr 2018 15:32:18 +0100 Received: by mail-wr0-f197.google.com with SMTP id u13-v6so5441904wre.1 for ; Thu, 19 Apr 2018 07:32:18 -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:in-reply-to:references; bh=FvjiYXRB2tx7Hf2ow9yp7O3WiQoXM17tjKArrC0qBpY=; b=U5v3y0hh51F/PnDgLsDQSHU9erUo8xsbR7m5vgHVr33rcYKqbdaAhEiFEZ4y2rMfj4 CfKE9PPd90+ZYcRe0mO7Af9aDfsN0sP+K2UXpFHzFoBLpchdT0+11LkucbjA99WJgZMc MyCboDtc9/T3vJ4ayRnBoFIAtgzYKfT0tbsV1yS4TZ/gFS5K0kxZYDWhIh3YxG1uiAlN D2OZvs+DK7tgncpHAN2QlXPrRrr9s3hLi3bbywfB7TB5TFyHyrUAdHOGA7BzTrSxFOf5 isBhl0mL4a8a5AF30vwP2eZozW7PpR0hHxbBvKT+Fe2+iwRMfxLbcOOzrGOklGEM7sbr 3xHQ== 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:in-reply-to :references; bh=FvjiYXRB2tx7Hf2ow9yp7O3WiQoXM17tjKArrC0qBpY=; b=aQXd6mtkWQ0/PNNOjBVNGfsJqGEfiZLzkFP0hiPxQ4hgxY4luKwYxQ/jh2xCjt3tN1 pVGzCgSe6OvdWvXEWG4a9KVjTSNHqvqX9Zlr1FwOeJ9gRHQBnVv5rj3wH5/LLuSWwiyG JDeEEgtDuQZLqPlCqfM4iPA2wPlqhVTNbygGMG93oO2oiwVFHUUAob4gxWHxMLYSzjjC z6Brx8uRvyW3oOvFzWl/Tk/qhCTB4p6GdNe8V969VqAjBNEV/BBc5Niv1PlBF1Gv+Vky WoNrK3xUBtmEeNYlyIG7dpusF6C49Uhm5lWy2la58M0kPam9+XDAbB91ds3Gc017oj4T KgRQ== X-Gm-Message-State: ALQs6tDmSG/0tmAixdti2uM+kdZmU5hEaMPPB2ZkunPqW88HVe4SWfy0 soXOA09Bv+fsEmc1Za8mZ1wbOrAiV9OVpuhugsNejv2MwHia154HmHF3VgqHiFt49OQVzznb51i XVcFjLHz858p0ezYKqyhmEDqf X-Received: by 10.28.28.148 with SMTP id c142mr1198136wmc.30.1524148337961; Thu, 19 Apr 2018 07:32:17 -0700 (PDT) X-Received: by 10.28.28.148 with SMTP id c142mr1198115wmc.30.1524148337706; Thu, 19 Apr 2018 07:32:17 -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.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Apr 2018 07:32:17 -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:02 +0100 Message-Id: <1524148325-78945-2-git-send-email-phil@raspberrypi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524148325-78945-1-git-send-email-phil@raspberrypi.org> References: <1524148325-78945-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. 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