Received: by 10.192.165.156 with SMTP id m28csp1411630imm; Wed, 18 Apr 2018 09:13:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx49U6g6S+dVcAlmqyLNJYQJWj/sL+VZ+pnC/l5D0SrLvOq5KjF85dp51JfXsq09EAEpijD1x X-Received: by 2002:a17:902:6045:: with SMTP id a5-v6mr2629193plt.138.1524067993808; Wed, 18 Apr 2018 09:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524067993; cv=none; d=google.com; s=arc-20160816; b=lWB4xtGlhpd9/2t0hrIHVk+RXkvTvV0DkIvbzoH/mxcZgSt6TMTdEtgk2arjdyncXB o/CIMIKClm/9dm+ijqcjKA8Rr1BdmT5lm/kTxexYnTgyLyi/v7DrJEmuTby4DgOTcHeC DcRXp1ToYjyZBh/lD2ZOqqWSSx5IBklL7i6byAG3KPH/EMlWmDV2qsPtmhcfm25h9WYh hwV4tRhZ5ydjZ+A+JcRKty0b3binrKinOF3s25YfN03N9icstpeT8Xwzcofflc2hib7f rgbZzGuG89sRqrSAWGASkfqG7vkbAsEEcUjDKcZ+L7l+Tzndi3v5LLSpwgePMxTlaIoq FyYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=CX4r7j83SkygQyKdHGIyeLAqe4iMqgFC/DLKAhTDoW4=; b=f0q0MICgNN48ZWqZzWQ0v3hCvrewb+OnrIYwV3euBcYv0irB7lZ/heJsQh3wO+Igji UQWuig+s12MwYiiNmerfNFIO81z1McD7KzRK3qT0vrcLLGqXn4Y4ZEe/hNFamma2FlI5 HrNZu0tNOv9ZpjRD2poDe7iPPtqCog03w5kOqf2SU+c64D3EDik94P3r0irzJ5onFupG QkuX76wF/pycx5LQPVatfpisru77eGETN9d60wYMxcARhPqS0Acc+DvBNoUark3TVnzM IrkLSfUBsbVlaPk4BA1fsMVmU/VksKUh3wwt67kciM3EAw3C7vi37ugMWKjYhuD+2TRu 8rcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ogJtnJNd; 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 f39-v6si1562515plb.162.2018.04.18.09.12.59; Wed, 18 Apr 2018 09:13:13 -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=pass header.i=@lunn.ch header.s=20171124 header.b=ogJtnJNd; 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 S1752630AbeDRQLk (ORCPT + 99 others); Wed, 18 Apr 2018 12:11:40 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:32804 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750872AbeDRQLj (ORCPT ); Wed, 18 Apr 2018 12:11:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=CX4r7j83SkygQyKdHGIyeLAqe4iMqgFC/DLKAhTDoW4=; b=ogJtnJNd/Rxw0U6lG5RPVs+c27/lHc/6+TzV9XHdMspyRoO2vWsDgiS4xXslKpgLcjqsghJWKAHuHiv/ltZkfCDmzP+L1UtzUF+j3duk08f79vEM/RD1b9ZHX6yXP6FBtCawPZ+t8E8zO3IbORvi3IoyQlly4rmNeyRleEWDspQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1f8pg1-000201-6V; Wed, 18 Apr 2018 18:11:21 +0200 Date: Wed, 18 Apr 2018 18:11:21 +0200 From: Andrew Lunn To: Phil Elwell Cc: 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 Subject: Re: [PATCH v2 2/3] lan78xx: Read LED states from Device Tree Message-ID: <20180418161121.GD3036@lunn.ch> References: <1524066323-109628-1-git-send-email-phil@raspberrypi.org> <1524066323-109628-3-git-send-email-phil@raspberrypi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1524066323-109628-3-git-send-email-phil@raspberrypi.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 18, 2018 at 04:45:22PM +0100, Phil Elwell wrote: > Add support for DT property "microchip,led-modes", a vector of zero > to four cells (u32s) in the range 0-15, each of which sets the mode > for one of the LEDs. Some possible values are: > > 0=link/activity 1=link1000/activity > 2=link100/activity 3=link10/activity > 4=link100/1000/activity 5=link10/1000/activity > 6=link10/100/activity 14=off 15=on > > These values are given symbolic constants in a dt-bindings header. > > Also use the presence of the DT property to indicate that the > LEDs should be enabled - necessary in the event that no valid OTP > or EEPROM is available. Hi Phil As i said last week, these are PHY properties, so should be in the PHY node in device tree. It should be the PHY driver which parses these properties and configures the LEDs, not the MAC. Andrew