Received: by 10.192.165.156 with SMTP id m28csp1381929imm; Wed, 18 Apr 2018 08:48:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/FuqortrbbXZpBJT1OwGoaDNrrD/I8ltSxrT7Z01Xy0dc89R0fs9vbpEQmMlcaUrT3KCt5 X-Received: by 10.99.56.91 with SMTP id h27mr2136709pgn.82.1524066489152; Wed, 18 Apr 2018 08:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524066489; cv=none; d=google.com; s=arc-20160816; b=pSq21AesV0MboYyM24EzdxSf6PqCtuFwzUlCjBbc1Gwk0ZLMW9QBu8J2S/L9YeBftp tQVon58qXOlJinaad6OLF+mOp12uOwCEi94BPvob2whyZWDWI7bw9O3q7wEaqV90MGDQ /ITJjJ98DLhApSM0c2H9bGONWMqBG0wFbcEdH6nxNJuZRJ2F8CV7WGkxZFhm46Xu+BJg fPGfsRdDi/4WIz4v2fJz9hOKe+nFTXvIisXWoPD4miGYImBrPmZoM2YxGE6dZ/YLgFud /6J8/H/AnC+4W2ZZJekeP55U3zkHtWBPqKPiPlm6hA1Cxlxr0WxBDoeTLouVHF/mGQYb AdmQ== 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=wUE2TTVV8QF3wix5vZWhrGyAHU9PTxsEiBoyo+Df3o4=; b=B+iOv6Ug5pp5hyj4VaVfdAgaJ0xbnnKoCENkinM6k8EDvVReR6MuamvH7J87GwwHo3 bNvLuznCIKa04OQRgFZbx09dL+alARaH/rrTO4X0O/zKV4HH0BQUxJ+iMLKa6238GD91 818OAQmFSWynUtFs1sFMxmF+Bw2cTCKuU7hoCcgV4W9gr0EX3GJIZPke/b7QAnpdB9KS 5vCLj36Q0PrWYssX946CPPlQdHPVJMwsuKPs2WZ3xCoxaN71Ti9yHHMlaNrdEjXG5AzS lKalwp3jhv2asNfwLcX8+ZCUzAQNIPTfK+OT70UvdNLlWNBnZ1FmeS/LHHRBhBT6C3Uj TIxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=xPukQPD9; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=s7VJWtnv; 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 v2si1285303pgo.639.2018.04.18.08.47.55; Wed, 18 Apr 2018 08:48:09 -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=xPukQPD9; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=s7VJWtnv; 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 S1754002AbeDRPpm (ORCPT + 99 others); Wed, 18 Apr 2018 11:45:42 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:4043 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753859AbeDRPpf (ORCPT ); Wed, 18 Apr 2018 11:45:35 -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 w3IFXfSl028597 for ; Wed, 18 Apr 2018 16:45:34 +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=wUE2TTVV8QF3wix5vZWhrGyAHU9PTxsEiBoyo+Df3o4=; b=xPukQPD9Etdo+OChx3fj1EiyIVzXXBehns450wiiEu2DQ9HCrGq+xoyJ12+BZ3LdVgTr 0d0YDAp+mZAlPw4gkKws6X9BE92+ScE1+ocyq6kyjfg2T1F3z0/7IrQPK9vJYw6NPp2b sWDpv2R5XYd0DBql9ltoe+pe2LT5K7jB6lT71a2ztAnfIv0wEgikzNlSN+FIZj2lWHUG +IlrvyDMmmLkWQ5+oNL9as/XMoxZLrtKEMfa5OOPXVjmuZs4Hx/cau9yWnvC9/5EVZpn 1rDIponfa2xLxwOdxitbUvDPZE3utzHy7x14dmoK+xSUwsa1tda93Jieu0/vsEL7RzYU 9w== Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by mx07-00252a01.pphosted.com with ESMTP id 2hdrya8dsf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Wed, 18 Apr 2018 16:45:34 +0100 Received: by mail-wr0-f198.google.com with SMTP id o8-v6so2150644wra.12 for ; Wed, 18 Apr 2018 08:45:34 -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=wUE2TTVV8QF3wix5vZWhrGyAHU9PTxsEiBoyo+Df3o4=; b=s7VJWtnv7zRGMzglASv+1imVlVYnqdL0s3Y0bhE4IZ/YrClwZyTBfVSq53NvzlilIT akvw9LIYvInP6YaICkak+KKUaFzH2EzOPGmib1/MJDrPdNBZUnbldNnaiANSAPyF9XK/ uWYqjoG6s8TsiWUvR3eOLnHHzudqBpSQ6xypxhql7PRmROv+EAyNkuSuAmwq+HTr44ll wLXZacr1jPmo++8VQWZurBpx5Li7l6GqH5UyuXdi4rUa6qMTgN+dum1RK9zt+hwWMA5z eNtG8sEIMUF2M+Qa39g0lh7rJ4HOUrhjMiPnu1AlFJEGuiJ5cL+sPw9qA3mmrDYaNEIR OXLg== 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=wUE2TTVV8QF3wix5vZWhrGyAHU9PTxsEiBoyo+Df3o4=; b=E1NA3v1Z590KnwLraG/p+JxMhvznja7F3dts8o2o4VHcf0OOtdpkfWrsfDmrhsl/fb jhLSI458axzc+cg/u6Pu3/YD1qyIshZfycvR9kVYG8XsUPJaMNbP07FX6PnXqKnYcTCd JuhQKHkFrZbvGwN3PGmllRJ+C3O6IDQdZ8nfaow56YDjkWl5ZdOcL0akjJHNRG9A+3/n fUaopAnlMfLq2wiZK06+4CrsUZ2FDEdRlguQfNzPeMdjk7TchnF38nRuKQQhfHi3vIV0 0Ukh5oTQ8GiaxaqMk9NV08Qc6rAkW2/eGpM6pAF4dq3Y0w+i9SSquX3TiNLgk8Uwr8PU SLeg== X-Gm-Message-State: ALQs6tASRh+VMB5yoeQlKk2y+j9Ch/mjF2hunAc1NwO1DQZG4F+Xfh3D KI8qtRdrDpLtCIUlMf6EdOjZV3RNL+jFUt7NdyxtVQYoCkuHJoCw6eTngY+mAC71kCt0hvBUTvd Ldj9v9SZ/dBDoAhLRUcV8Q+1k X-Received: by 10.28.150.71 with SMTP id y68mr2262493wmd.139.1524066332620; Wed, 18 Apr 2018 08:45:32 -0700 (PDT) X-Received: by 10.28.150.71 with SMTP id y68mr2262474wmd.139.1524066332392; Wed, 18 Apr 2018 08:45:32 -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.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Apr 2018 08:45:31 -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 3/3] dt-bindings: Document the DT bindings for lan78xx Date: Wed, 18 Apr 2018 16:45:23 +0100 Message-Id: <1524066323-109628-4-git-send-email-phil@raspberrypi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524066323-109628-1-git-send-email-phil@raspberrypi.org> References: <1524066323-109628-1-git-send-email-phil@raspberrypi.org> 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. Document the supported properties in a bindings file. Signed-off-by: Phil Elwell --- .../devicetree/bindings/net/microchip,lan78xx.txt | 44 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/microchip,lan78xx.txt diff --git a/Documentation/devicetree/bindings/net/microchip,lan78xx.txt b/Documentation/devicetree/bindings/net/microchip,lan78xx.txt new file mode 100644 index 0000000..fa68f9b --- /dev/null +++ b/Documentation/devicetree/bindings/net/microchip,lan78xx.txt @@ -0,0 +1,44 @@ +Microchip LAN78xx Gigabit Ethernet controller + +The LAN78XX devices are usually configured by programming their OTP or with +an external EEPROM, but some platforms (e.g. Raspberry Pi 3 B+) have neither. +The Device Tree properties, if present, override the OTP and EEPROM. + +Required properties: +- compatible: Should be one of "usb424,7800", "usb424,7801" or "usb424,7850". + +Optional properties: +- local-mac-address: see ethernet.txt +- mac-address: see ethernet.txt +- microchip,led-modes: a 0..4 element vector, with each element configuring + the operating mode of an LED. Omitted LEDs are turned off. Allowed values + are defined in "include/dt-bindings/net/microchip-78xx.h". + +Example: + +/* Standard configuration for a Raspberry Pi 3 B+ */ +&usb { + usb1@1 { + compatible = "usb424,2514"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + usb1_1@1 { + compatible = "usb424,2514"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + ethernet: usbether@1 { + compatible = "usb424,7800"; + reg = <1>; + local-mac-address = [ 00 11 22 33 44 55 ]; + microchip,led-modes = < + LAN78XX_LINK_1000_ACTIVITY + LAN78XX_LINK_10_100_ACTIVITY + >; + }; + }; + }; +}; diff --git a/MAINTAINERS b/MAINTAINERS index 9c9bc63..5352bbb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14572,6 +14572,7 @@ M: Woojung Huh M: Microchip Linux Driver Support L: netdev@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/net/microchip,lan78xx.txt F: drivers/net/usb/lan78xx.* F: include/dt-bindings/net/microchip-78xx.h -- 2.7.4