Received: by 10.192.165.156 with SMTP id m28csp945197imm; Thu, 19 Apr 2018 10:04:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Iab0o+dZ3NH8zQJOTVhHGyMNhuA2LJs/wWcmCH49PsPL6wNZDd7V318WQAV3K3uGJeu0W X-Received: by 10.98.236.220 with SMTP id e89mr6601936pfm.33.1524157471381; Thu, 19 Apr 2018 10:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524157471; cv=none; d=google.com; s=arc-20160816; b=CITgay18nREz88PH5GDr96JqPJkuya2cVhs2eqrbpFBqvwo+nWliv+x45a9CnK3Ly9 CUgrh8kQ3wjJkiWDNjohD5e0DZboJouqTYetr8ByWvez4ISxMhlzwxUY4gTvBKvf6l2E 3CmnI6DWuDgrpsJU2uW5Ah6rA/v59oDk7czTrLvB1Sgd2DbO76XI0w9l1C04JlnG0nvw xNddv+ahVfxpli04fA3W1d24OaKJ1MIlSS1vh03W77EbRiSrcnVnn2Q0xMZ+hq53XIky rdz62b+dZk6SbDvsrHbbk7wUSjQEOwCtPUQsji+z3MDnXSHzTUA7SUD4tfH7mysw9g1J 3/1w== 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=EkB9Y8Qo9+N7j28NzPWG7bvFo9X3vMvXE0rwqciKu1s=; b=CWFHmeYtuBv3IMgO4ugYdVas2hKfQ7UWlov0UnekS9LxYZRl4KOiy6+yeXMxOYhrM2 xzmXQVG1HFQamIXUQOmsTlojGS2ficyHUNwAnOZGchZj07rXrPFtYZ6NUFnvB12Z7Dvf rMziG4J2PDqg5nHi6bqMmwqmcr0evtiGHgxVtJ5jpsrc9E1qz6DcUpkxn6Cm0m3DbLTq Po+Zz7hugY13SoGJ9pbPLHVBKkUJHZND+dVuSKP9sHOE5JmRxhN1UZ4UjpQNsHKSzn4r OHG1g5vU1RcPePM9MnlGkwvqopNYoSE3pL7CVN3dNBeVjRMviMgHvZocubuuMFKAo31F PxJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=SEED7Koc; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=qDLyhO3H; 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 p11-v6si4497287plo.276.2018.04.19.10.04.12; Thu, 19 Apr 2018 10:04:31 -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=SEED7Koc; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=qDLyhO3H; 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 S1753486AbeDSRAM (ORCPT + 99 others); Thu, 19 Apr 2018 13:00:12 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:27265 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753251AbeDSRAJ (ORCPT ); Thu, 19 Apr 2018 13:00:09 -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 w3JGwrgx011915 for ; Thu, 19 Apr 2018 18:00:07 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : to : subject : date : message-id; s=pp; bh=EkB9Y8Qo9+N7j28NzPWG7bvFo9X3vMvXE0rwqciKu1s=; b=SEED7KocxW4BLPvGiTy0a5sgoUEBlbmhFr9lMdxNlDiM6GGMVE9rdzWJ54zIMjKz7L0L XfhH/4ALNH3TvyeOseimJz5+0eS9dJkja1Q+w6rDSgjAv68PmfPzhc5b9duFAVBHHgl6 pNSZFRRF2q9nyxutSrY9cwIpo0xtEldAsbJLeuSAsMFhtZ8pSoyCRllb39mzOM68MZXL RDwLdmGbTpdvzLEKwT8F644QO/hrRjIaEH0Ie72qAO58PeGVWJxpmSpHjq2vguBbJeRX Qjw6DRRNdlnqDw2jp/ApNNk4P28iooONcSib89ShTJH362BhfYkIIQLKBszAC99MnHNb EQ== Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by mx07-00252a01.pphosted.com with ESMTP id 2hdrya8yyw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Thu, 19 Apr 2018 18:00:07 +0100 Received: by mail-wr0-f200.google.com with SMTP id p17-v6so5819083wre.7 for ; Thu, 19 Apr 2018 10:00:07 -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=EkB9Y8Qo9+N7j28NzPWG7bvFo9X3vMvXE0rwqciKu1s=; b=qDLyhO3HWyLwpI9cBYPzrwOZckZx3MiqJW6r65sbqj3SO4xSEdRaqdQOjPBW0QXFtn 5AttEQlWyU6JeOCmxXlSJQmAZ2WeTGz4/vbZLqJKWRVnULSOAt9ch8bs0N02PiHAgIRI dR+bssasiKwZ0W4S0OY6XAYJlSJeeWf21n8eAXG28Osu5osduL28DPayUGhYk6Hk9Xgc e37NN5MFh3y1YMnjWDNAGucYF6i+ZHKaz0SA7S+vN9rWgIdeelbOgU/Hzpo3ftl6iJQi iF9Sr2tfydVBDi3gv6bpQ9k5sqDCdKYt/f2FWvrpjntGGdYWR4obRS+zBeL4Uezqsc4K lfoA== 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=EkB9Y8Qo9+N7j28NzPWG7bvFo9X3vMvXE0rwqciKu1s=; b=j21O1RSxecZt446h6UC3s84u+5jh+9r70ktLQEARZu1SkzxXc4hwPInPqjVrYoO0q/ ec1pLLIR3dAQMHUcCG0iVJSDvEteNX/EVGRcgkY5xvgLbo/icvpbJZooDwa+DiEFo/kB r92XRes0wA7CgW96eeNYAne9ajP+CtNryUbdWfnmns8eIET/6ql8OJrs12SVLeDtIEMK n7hdCsMffirLmgQTttZmO0Dnf4672dGO752Xo1NDtU3ww1zbHXuDja7cl39UEn6fgCAx 8M4/oOurJJknuITRYzHOXQ8jft8illt7Zv2vVsFRrs76wV8YdEcwxl0TTraYe4tp1WGq a/dg== X-Gm-Message-State: ALQs6tCn4hkS3sMX4m6sIhg8olirK3bAQ+LgM4eSAE4Mz/qJyBOPEFG3 BrOhRUPdsBH8U4ZTwyl9sbHdalJJJyWlULfWhb2qkoDOCzrCSfemxk6OjaF1P2quVcF8lO5gfnS rCCOMwZ3/Fj6cHrT33oO+Rr8f X-Received: by 2002:adf:8af0:: with SMTP id z45-v6mr5045403wrz.150.1524157207123; Thu, 19 Apr 2018 10:00:07 -0700 (PDT) X-Received: by 2002:adf:8af0:: with SMTP id z45-v6mr5045380wrz.150.1524157206937; Thu, 19 Apr 2018 10:00:06 -0700 (PDT) Received: from buildbot.pitowers.org ([2a00:2381:fdf7:14:3509:880e:14cc:3c11]) by smtp.gmail.com with ESMTPSA id a139sm5581532wma.43.2018.04.19.10.00.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Apr 2018 10:00:05 -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 v4 0/3] lan78xx: Read configuration from Device Tree Date: Thu, 19 Apr 2018 17:59:37 +0100 Message-Id: <1524157180-27276-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. v4: - Rename nodes in bindings doc. 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