Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6446495rwl; Tue, 4 Apr 2023 12:55:16 -0700 (PDT) X-Google-Smtp-Source: AKy350ah8Auq1xcI60RMF/csp2rYS/35Clf8uCjV7YeUXxvIKdI5Rs2ccKbIOR9YJOu3h7dkD4p8 X-Received: by 2002:a17:906:5646:b0:947:8075:b0c8 with SMTP id v6-20020a170906564600b009478075b0c8mr629572ejr.22.1680638115807; Tue, 04 Apr 2023 12:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680638115; cv=none; d=google.com; s=arc-20160816; b=UrKMJ84vsmAU0ixqEUULSAG85+p5EXMAYDMC8dxd6YcupCjjuQzihWJmg3HxQkf4tb OUNL5vvQGFicxCy5rETOOQbRaMiALGzdciuWsn7IlmjNui2nRpJPQQbYt8Gh50odCC5x /WVq9TiLykgFcuYKhyvYxFvvKKBKWU56hsp2GcbhIX+WJd99mNXWV7yvQtyGLtIjRL9W bIDT2b+UIfQ54BqIIfgdG1fMAGQmmxBBbV0wE/iWCeoXhkerbm/VGAU3PvJmfNKCLZEe S8mXiOt56LUf4/ug9oN7jKMKt0OKevvVtcgCAiW5mpwK3V5x2jdQGKreyuSSdBjf29kK vbrQ== 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=/y9frG2WtrKdRepi7ezn+sZjLB5C7uTT0dTfaWYDEmU=; b=G8v+nJq8Fo7nqvfsAxU6Xv7cuipBA//k3LyPJF+X9egIB4p24qUzoSXkO+nGrgcquo 9djcLDxeETKT+cNY3DGgkgqRQVoZy4vorjnSprxZSLAGpYtgRWXts9m8aXpm1bBi6qpp nSDj/t+KcDlp6fUJi/l13SjGtczmy9Oo9fZrwBTvBWye971NMonIuY8+iaTDtMs3I1hO ybknQLTS5Me3n1KhwAMfaQFA0O7TncIEB1xhJcdAlf7kyHtbKH95ucrZFbYWOcDPCiIF 4Da9CiKrE+/ybW2scSpZsGgk2kHqCrPBcV1LHDY1i0bnHQyBQyfbVali2kio3UqPYHmb QKRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="x/9inwS7"; 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 hr8-20020a1709073f8800b0093fb84fcda5si10056161ejc.812.2023.04.04.12.54.50; Tue, 04 Apr 2023 12:55:15 -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="x/9inwS7"; 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 S236182AbjDDTwi (ORCPT + 99 others); Tue, 4 Apr 2023 15:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236180AbjDDTwg (ORCPT ); Tue, 4 Apr 2023 15:52:36 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03295421A; Tue, 4 Apr 2023 12:52:33 -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=/y9frG2WtrKdRepi7ezn+sZjLB5C7uTT0dTfaWYDEmU=; b=x/9inwS78iKQd/grPu0LUEQGES 6KLBGgh398gZyyYycS4Kwsy2h9C0xXOdKxmRNbHaMe//TnsgZ2TKNHrwg4sWVsiicShbFpGPLWIds 7o/YU/UlzcVBD6qNcADQNfNN3UVLyM6zTaEYjKwhXwvk2GVlxUBxZTjEDmbwexOY1W8Q=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pjmhS-009RgK-SM; Tue, 04 Apr 2023 21:52:14 +0200 Date: Tue, 4 Apr 2023 21:52:14 +0200 From: Andrew Lunn To: Pavel Machek Cc: Christian Marangi , Lee Jones , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Gregory Clement , Sebastian Hesselbarth , Andy Gross , Bjorn Andersson , Konrad Dybcio , John Crispin , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH v6 16/16] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port Message-ID: <7cadf888-8d6e-4b7d-8f94-7e869fd49ee2@lunn.ch> References: <20230327141031.11904-1-ansuelsmth@gmail.com> <20230327141031.11904-17-ansuelsmth@gmail.com> <2e5c6dfb-5f55-416f-a934-6fa3997783b7@lunn.ch> 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 > Acceptance criteria would be "consistent with documentation and with > other similar users". If the LED is really white, it should be > f1072004.mdio-mii\:white\:WAN, but you probably want > f1072004.mdio-mii\:white\:LAN (or :activity), as discussed elsewhere in the thread. Hi Pavel What i ended up with is: f1072004.mdio-mii:00:white:wan The label on the box is WAN, since it is meant to be a WiFi routers, and this port should connected to your WAN. And this is what the LED code came up with, given my DT description for this device. > Documentation is in Documentation/leds/well-known-leds.txt , so you > should probably add a new section about networking, and explain naming > scheme for network activity LEDs. When next users appear, I'll point > them to the documentation. I added a patch with the following text: * Ethernet LEDs Currently two types of Network LEDs are support, those controlled by the PHY and those by the MAC. In theory both can be present at the same time for one Linux netdev, hence the names need to differ between MAC and PHY. Do not use the netdev name, such as eth0, enp1s0. These are not stable and are not unique. They also don't differentiate between MAC and PHY. ** MAC LEDs Good: f1070000.ethernet:white:WAN Good: mdio_mux-0.1:00:green:left Good: 0000:02:00.0:yellow:top The first part must uniquely name the MAC controller. Then follows the colour. WAN/LAN should be used for a single LED. If there are multiple LEDs, use left/right, or top/bottom to indicate their position on the RJ45 socket. ** PHY LEDs Good: f1072004.mdio-mii:00: white:WAN Good: !mdio-mux!mdio@2!switch@0!mdio:01:green:right Good: r8169-0-200:00:yellow:bottom The first part must uniquely name the PHY. This often means uniquely identifying the MDIO bus controller, and the address on the bus. Andrew