Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7926588rwl; Thu, 23 Mar 2023 10:17:33 -0700 (PDT) X-Google-Smtp-Source: AK7set+cQmloBIXAA3HIpFwycKhEwK0bYEIX6IQFwVGGG3zEx/24dXUe13/hgSDMLaX42NpcE6QL X-Received: by 2002:a17:906:3391:b0:932:748a:f0ea with SMTP id v17-20020a170906339100b00932748af0eamr12188761eja.63.1679591853153; Thu, 23 Mar 2023 10:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679591853; cv=none; d=google.com; s=arc-20160816; b=uMVVedkPOViv7wMKUfijEwxapiYe/8ox8Kq5JZwjOvVWzBFS1DI9JGwoHxMC5jviBC QyGDPVaYQfKbFyMoT3AW14P8Ub/DpeDjaXHe0r9nwxMmFmCg4RT96xgRCXaHvJJpvSoS XRRYVUYCPsJ0a84evm8fxLZ+NQWbsfSlDA1TS+rr67gWAMO9dsXjqmpLjPkE6J82dvaW r3kNclYPliL6/2X8nO5zbxoXa9ivJ3v+n7924GetnuXikCIxBe6zwck0B4wS6LwU4I/i jV4ikooSjgXaUtfntNbKDgoOACIqg4FcuAI1wTgmuCA6s0b+Un0+ZQ1yrztfDenCRCgQ kGNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EtUf/kME4TTvbhGEmdUh+hcyhm5L0g/SNih4ASarj5A=; b=MhMIkkcWYAiIO6pS2yT5xfSxunV6AyvbwuPR0+9yxXPnSlLgziA/mOQl/udCmd7FXd VNSWSxDofJPh+2f7jbcKofHeJl40lVT143F0Bb6CJCTe8RIQyGX8eare9wggrLF6Q2Tx P08/MU4Rb1fRlOPGfgx0OAy0o7ZSzSoqMGir6HPcOKXhXlUWxeXq96bm2B+TaZRSSL3F Gj0cUH9/ckp0BIcX9XKVZufvqaooQxiOswIms6Zh6rE19JqlgonaTFom1sEfkjKW4xfe tUGXhzdF6FMFElIBX4Q07faxXpWJ2N0rXIqt3hIZ7IlttLyQZt2jVbuZjV7ZyiAp5HD2 Ceug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=AF0+Azsr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw20-20020a170906c79400b0092cf025c703si18200498ejb.928.2023.03.23.10.17.00; Thu, 23 Mar 2023 10:17:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=AF0+Azsr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231684AbjCWRDF (ORCPT + 99 others); Thu, 23 Mar 2023 13:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231542AbjCWRC6 (ORCPT ); Thu, 23 Mar 2023 13:02:58 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0BB3EC; Thu, 23 Mar 2023 10:02:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=EtUf/kME4TTvbhGEmdUh+hcyhm5L0g/SNih4ASarj5A=; b=AF0+Azsrs80rxSKR9Dlg0HUjbE bm+6k+G9gGa1Gci8rzMmgG56qWZVsuyNbqX6OUckEHLm5KssGt0XHggerAG/qcAXBZrbIgZ7Pr4YY nm3soUITXlwTiqWCP5EqTa3czeBNCkWp51ApWTKBvOey56oW8mhx81aGSdAEMaYHYLWo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pfOKh-008Dm8-6N; Thu, 23 Mar 2023 18:02:35 +0100 Date: Thu, 23 Mar 2023 18:02:35 +0100 From: Andrew Lunn To: Pavel Machek Cc: Christian Marangi , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Heiner Kallweit , Russell King , Gregory Clement , Sebastian Hesselbarth , Andy Gross , Bjorn Andersson , Konrad Dybcio , Lee Jones , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [net-next PATCH v5 15/15] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port Message-ID: <318f65ef-fd63-446d-bd08-1ba51b1d1f72@lunn.ch> References: <20230319191814.22067-1-ansuelsmth@gmail.com> <20230319191814.22067-16-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 23, 2023 at 01:04:53PM +0100, Pavel Machek wrote: > Hi! > > > From: Andrew Lunn > > > > The WAN port of the 370-RD has a Marvell PHY, with one LED on > > the front panel. List this LED in the device tree. > > > > Signed-off-by: Andrew Lunn > > Signed-off-by: Christian Marangi > > > @@ -135,6 +136,19 @@ &mdio { > > pinctrl-names = "default"; > > phy0: ethernet-phy@0 { > > reg = <0>; > > + leds { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + led@0 { > > + reg = <0>; > > + label = "WAN"; > > + color = ; > > + function = LED_FUNCTION_LAN; > > + function-enumerator = <1>; > > + linux,default-trigger = "netdev"; > > + }; > > + }; > > }; > > > > How will this end up looking in sysfs? Hi Pavel It is just a plain boring LED, so it will look like all other LEDs. There is nothing special here. > Should documentation be added to Documentation/leds/leds-blinkm.rst > ? This has nothing to do with blinkm, which appears to be an i2c LED driver. Andrew