Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4816332rwj; Tue, 20 Dec 2022 15:39:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXs3eej7QZwMhNon8WeH7APVgetsxrXeovzT15xfT5hS0sAgtHdFfYDwwZLQm7LG+0DjYD3q X-Received: by 2002:a62:36c4:0:b0:578:7e9d:97b2 with SMTP id d187-20020a6236c4000000b005787e9d97b2mr226026pfa.3.1671579576572; Tue, 20 Dec 2022 15:39:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671579576; cv=none; d=google.com; s=arc-20160816; b=uOjyJjCQ4u+djpUVvh6jfj5+AE2NS8t+fjH5fg+v4T6YJo9SORzpixqMn4zG7Cfqib 04bK9vFGSBwtdDWhwVaINkIFQXt1rvFq+WRp9fRsygvL/jLP7PZfvtx+xqiQBcqn8r+M AThKNw5zmKFDBDM6sl7i1EZrWmwCJ7SzXgNWt11oFCVcEAyYGRPB7nGHARXLmchgqfj/ GUzrtdPZScPwHJslubBCUZPLmXx6Rl1wD9w518RBqZxFiwj6hleSFp3SKRCM4c9coL31 rYC7S9b+vPIJz7a80Xj7gYbPJ0mlQ/4PUtwfg2KsafkWw0uCzVvKTVoczWdYnnCzhqvb 8fLA== 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=XOP4wK+mEn7F2t6GIDkEELbXIkHpNStzq9dDTEsVFLA=; b=DK1JbA+Ij666Eoky/a0/6wMWdtQzagVH7KF7/TWyA7pgAKz7lfbq0prGrcZCZrC6OL h7aOF1MiCaj9oCkH+E81nvGJjQyX9lAdcbs9G4Kn8MplK89/Ld3qtH8we0qHYjEb3wHo m+ZzJ2pTi45sraoZgbVdAj8yWHspAbxBuHwAIUWi05JQeMi8KMEkidBQ4dIS+NPwfl8/ bdohOWRkaPYR+l/Z+YK7RSuda/q+eGFjcUCidubWS3zyOFVRvl4NG79d6jAg6h6Y2dW/ vszUJdFvheMWdHBaJG5xZeJEGOwWwN2ZOzMZLl8bDMwfjGeaN40d+V+GAcaoEP1aNJW2 muHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="jDc/DLDp"; 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 d18-20020a056a0024d200b0057e80a12f25si16007839pfv.84.2022.12.20.15.39.27; Tue, 20 Dec 2022 15:39:36 -0800 (PST) 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="jDc/DLDp"; 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 S234198AbiLTXYF (ORCPT + 68 others); Tue, 20 Dec 2022 18:24:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229727AbiLTXYC (ORCPT ); Tue, 20 Dec 2022 18:24:02 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8367DD2; Tue, 20 Dec 2022 15:24:01 -0800 (PST) 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=XOP4wK+mEn7F2t6GIDkEELbXIkHpNStzq9dDTEsVFLA=; b=jDc/DLDpUDTD6Ht930S6kXrnS/ PFIG3LZeSkSKd5zukwM01tlqHai/fDHff4DnPkhUebmibRAl6pLBCzhUIhmjGf7AhKqejbKTgGB7i VkGQhJ4T3wN/CcsXTECcPGqhleLlcvcGTRJgtCbexnAY3ZUA2SvNTANw4lrJGmxh/uDI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p7lxe-0008Ce-4D; Wed, 21 Dec 2022 00:23:50 +0100 Date: Wed, 21 Dec 2022 00:23:50 +0100 From: Andrew Lunn To: Christian Marangi Cc: Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Pavel Machek , "Russell King (Oracle)" , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-leds@vger.kernel.org, Tim Harvey , Alexander Stein , Rasmus Villemoes Subject: Re: [PATCH v7 11/11] dt-bindings: net: dsa: qca8k: add LEDs definition example Message-ID: References: <20221214235438.30271-1-ansuelsmth@gmail.com> <20221214235438.30271-12-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221214235438.30271-12-ansuelsmth@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham 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, Dec 15, 2022 at 12:54:38AM +0100, Christian Marangi wrote: > Add LEDs definition example for qca8k using the offload trigger as the > default trigger and add all the supported offload triggers by the > switch. > > Signed-off-by: Christian Marangi > --- > .../devicetree/bindings/net/dsa/qca8k.yaml | 24 +++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml > index 978162df51f7..4090cf65c41c 100644 > --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml > +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml > @@ -65,6 +65,8 @@ properties: > internal mdio access is used. > With the legacy mapping the reg corresponding to the internal > mdio is the switch reg with an offset of -1. > + Each phy have at least 3 LEDs connected and can be declared > + using the standard LEDs structure. > > patternProperties: > "^(ethernet-)?ports$": > @@ -202,6 +204,7 @@ examples: > }; > - | > #include > + #include > > mdio { > #address-cells = <1>; > @@ -284,6 +287,27 @@ examples: > > internal_phy_port1: ethernet-phy@0 { > reg = <0>; > + > + leds { > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { > + reg = <0>; > + color = ; > + function = LED_FUNCTION_LAN; > + function-enumerator = <1>; > + linux,default-trigger = "netdev"; > + }; > + > + led@1 { > + reg = <1>; > + color = ; > + function = LED_FUNCTION_LAN; > + function-enumerator = <1>; > + linux,default-trigger = "netdev"; > + }; > + }; > }; I don't see anything here which is specific to the QCA8K. I really hope the same binding should work for any PHY which has LEDs. So please move this into ethernet-phy.yaml. Andrew