Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7741652ybi; Mon, 22 Jul 2019 19:48:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzF+HJYA7Y72bsVamo6ScOvB3lCTmkNyg0Us0zE08jPhtGpEqOF/c+C9E7D2RXhnltMPfF X-Received: by 2002:aa7:9146:: with SMTP id 6mr3279148pfi.67.1563850098133; Mon, 22 Jul 2019 19:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563850098; cv=none; d=google.com; s=arc-20160816; b=tEVFQ9xdMTjUwytq9UM2kODfc3SbOMRPMfu3cjt0Iq3QGhMPxzJ/ky+4eERSrIoXlF 7XXoDDNb7QoY0uepKk/a5h8At6IbUOgEUlNeqSTRV/ZIwUKxcYlO3Q3oqAZ/OD42O10e lp9Sr1ka1JcIuqf5p0xGv/IQWLxzbqZcdC0EbzOhJz7e2XbBXn1XlAvoHfPlAwDEY/1R ndqMe4ACqhK7qoaFM50vc4OIfSpHhSwXx/fZYxejVhOxMaJbIPX89W3V66LUaKrX7Fx0 qhiXtR2JcRvtO4rC3uIWLXVPSu58tPFcQJA+lb8sd+WNaLUd+EhfNNBSIyfEg9HQMS29 zm/A== 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; bh=W7vnDeoMM/iSr74EeN4MeRse8/vd2A2jqO++8QrETl8=; b=eaB/2SzkmSHc8GA0RInwGdya949lBZZku0+s8f/AS5bO8vt1AQOlkWmg6ffNX60O7h P9UWzmXGrUOmZEpqHy1t3a9PAUKR2hvxL7yaj9lbrrvHylTycC7InF4pIGDEkxxRkiB6 gMQOBNLjxP7xL5D1CfiHpfCvY6YhBKhpGavPuU+4OgQaX5SrqKtJWaDBZB/gQboEUNYP ZXFIyH0ie5e0j+EyjOVCLdbdf1U/zrVL1YZWpuB+wyRTjOO8NvfxzzPSpC4uL9NTu/Eq KIA1VLDGlPx3kN2oMZRwjpQKRXNOBKNDfDES4qlsD2AKFADYqLY3N2hTgkMxa49Hs007 Pr/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=MVRVLB+9; 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 j5si13192371pgi.181.2019.07.22.19.48.02; Mon, 22 Jul 2019 19:48:18 -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=@lunn.ch header.s=20171124 header.b=MVRVLB+9; 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 S1732222AbfGVTil (ORCPT + 99 others); Mon, 22 Jul 2019 15:38:41 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:57162 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbfGVTik (ORCPT ); Mon, 22 Jul 2019 15:38:40 -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:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=W7vnDeoMM/iSr74EeN4MeRse8/vd2A2jqO++8QrETl8=; b=MVRVLB+90AS2iyjSpeb3vvOfx1 MlFyHG0sFFrwhQ9VZcHRxx3SkeShfLO7lXloVgx0SHvCQmBC86ajgzdlsCauLhpdcL0F2b+gyTbQI ux/BkTFmue4zbsFV846raBxFBNkQHp7qbf1G5mgEyeqNxIpDbsZFRnTMRYBWgwHmy0hQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hpe8o-0004wK-41; Mon, 22 Jul 2019 21:38:34 +0200 Date: Mon, 22 Jul 2019 21:38:34 +0200 From: Andrew Lunn To: Matthias Kaehlcke Cc: Rob Herring , Florian Fainelli , "David S . Miller" , Mark Rutland , Heiner Kallweit , netdev , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Douglas Anderson Subject: Re: [PATCH v2 6/7] dt-bindings: net: realtek: Add property to configure LED mode Message-ID: <20190722193834.GG8972@lunn.ch> References: <20190703193724.246854-1-mka@chromium.org> <20190703193724.246854-6-mka@chromium.org> <20190703232331.GL250418@google.com> <20190722171418.GV250418@google.com> <20190722190133.GF8972@lunn.ch> <20190722191411.GW250418@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190722191411.GW250418@google.com> 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 > as of now it isn't even an API, the phy_device populates a new array > in its struct with the values from the DT. PHY drivers access the > array directly. Is it still preferable to post everything together? > > (maybe I'm too concerned about 'noise' from the driver patches while > we are figuring out what exactly the binding should be). We should try to have the DT parsing made generic in phylib, and add new driver API calls to actually configure the LEDs. Please also take a look at the Linux generic LED binding. It would be nice to have something compatible with that. With time, the code could morph into being part of the generic LED subsystem. So we are mostly talking about triggers. But we offload the trigger to the hardware, rather than have software trigger the blinking of the LEDs. So something like: ethernet-phy0 { reg = <0>; leds { phy-led@0 { reg = <0> label = "left:green"; linux,default-trigger = "phy_link_1000_active"; } phy-led@1 { reg = <1> label = "right:red"; linux,default-trigger = "phy_collision"; } } } Andrew