Message ID | 20230307170046.28917-10-ansuelsmth@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3349wrd; Tue, 7 Mar 2023 14:46:21 -0800 (PST) X-Google-Smtp-Source: AK7set/c7J6cZeI8MZMjg6YA9qNjqCV1EenQTpZesp0TMIwzUhoN2Bq6kut+MJbAwZjf1YukJqdq X-Received: by 2002:a17:902:ce87:b0:196:3088:5dd6 with SMTP id f7-20020a170902ce8700b0019630885dd6mr19439209plg.13.1678229181369; Tue, 07 Mar 2023 14:46:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678229181; cv=none; d=google.com; s=arc-20160816; b=ygrVIvqH3+lCPu5s3rNWyeoCw9utUZUDEdP0YqKLGPMi64drX/3X/HhnS5rsBYet1w ctu0lbR//2IMfgaQ/a2p0XHfY/XkOQDBBVem1Ve3uwPnupJNKY68F1RNgAx9gYphFJvi rATabQ+ELLFC99yf+hLTxky2Aet0m6zopJQl0K0tuxsmPfzHBl89Cqch7IiTE7bkOs11 cS9tZo3y3ZEhgIdMJKhoRgyQY22yiz1Gw8ga3t8THhhE8Vg8HQfiVELLjYVrFfl9eoiJ +lj8In0rY9vE8uQoCdc/AQ4GNjV7s/TcMmNOLKH8HuNn8Ij39MvPXJLBJARQ5pICeh0e 02Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=1wDcE5BTiRUWu5IpXdTXJGaa7mTD/67d24QZlEDxG4g=; b=yBVMuQIGi8KLTZpdjaJKqFAH+cSWdvBfiyD2kYnpn1al5hMxPNzTssG8WIblAe7nP/ svbmxnc+RySE4CAp7kmSox+97HBUNBrGkV8Z+evPnwYpdx/+BiS5AzRuZ1Wy3Q6P4o47 UB5LnPcgH33qhchq9EGr7f9cuemhBjRQ/6xSCBKQd5PHkjXYbw6rqc/cJIfweIZ5O7Ym Y76IoSfbOjd6Ac4zUMYtFXYl4M7LmltEE59nLejlOqhuBmFiXkVlkcJ08CxX9EtPbgbd 6eIbrlJZ1jzDxn0f1SBysJjMqkP7NhyNrV5Nsx5inJnFtWf8QQyk3FgChOcb7qqsAJHT 19LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WDoaAo6J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a17090340c800b0019e2bd4840dsi14058495pld.448.2023.03.07.14.46.08; Tue, 07 Mar 2023 14:46:21 -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=@gmail.com header.s=20210112 header.b=WDoaAo6J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231705AbjCGWeO (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Tue, 7 Mar 2023 17:34:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231314AbjCGWdx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 7 Mar 2023 17:33:53 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1D6AA02A9; Tue, 7 Mar 2023 14:33:37 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id k37so8794636wms.0; Tue, 07 Mar 2023 14:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678228416; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1wDcE5BTiRUWu5IpXdTXJGaa7mTD/67d24QZlEDxG4g=; b=WDoaAo6JIUdl2kw+jFWE8rMH0sejm6rC1azuVDxCr7JZJh+7YHIGproCgk3ja9SsG8 ahK/Z9tGQ0hexAtbKI8a2mIcpca1UlAe6E3GWIc5+HIKMds9jsQGnSJDLvHG0Da/HLVs 3r43uj8OwxIV80rQYuayBkTjeZoPyE1jycr/p12/fS8dQfVrKQObz5V5jEKGHiv36wU5 9OnWJtGNlS1+NqUJArkJHVP+vdCFbttDjbF7RgAyUvVqy10g0i7DL7NytX6fXq4mzxmw /Jir8tDLcLDkMsC7PHJvb3CA7b6+r20eWcos5CIaR7/MhYtwlOK3idxCVcXwWvAX2XCe bJhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678228416; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1wDcE5BTiRUWu5IpXdTXJGaa7mTD/67d24QZlEDxG4g=; b=wjuuCHE5OXFDxoi0HAXfr3kAC38R+f83ThPk8jzPqNqp1EuBMSyLXGVI+A9TWvyh0/ jSdPkB2jV7rjaOPFeYl1qxA77qtgGG/SLfG9Q3NPO7H/9k3O+C3i9HbqI5DfL4OkX44X yrSxxhg3/2ij0HLBEtkHN+QOfNE1UAMvJQ9ljzoP76tT4LDbW5s7uhPnAyrzY2luxBt+ oub4itDSn//bM1I9YEcP24wdr+NbvmTojv2Mh/ZCIobBE8NUpF1p3a32U02wR8UeBY/z m4bsxaiw5WHYKFqkPjXMLvJpMxijpJ5bHIHk3UJ13aI5TxzSmIznS+uXUDgZX/Catgbs u2pw== X-Gm-Message-State: AO0yUKUZjz2nO3p93oMeFcrz96FE296kE8qwfRsEa+JmtEy40A9G3iTt JnJz0nv69ls8QIDD0SUHHaw= X-Received: by 2002:a05:600c:198e:b0:3eb:2b79:a40 with SMTP id t14-20020a05600c198e00b003eb2b790a40mr13176424wmq.20.1678228415951; Tue, 07 Mar 2023 14:33:35 -0800 (PST) Received: from localhost.localdomain (93-34-89-197.ip49.fastwebnet.it. [93.34.89.197]) by smtp.googlemail.com with ESMTPSA id q11-20020a05600c46cb00b003dc1d668866sm19233101wmo.10.2023.03.07.14.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 14:33:35 -0800 (PST) From: Christian Marangi <ansuelsmth@gmail.com> To: Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Gregory Clement <gregory.clement@bootlin.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Christian Marangi <ansuelsmth@gmail.com>, John Crispin <john@phrozen.org>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lee Jones <lee@kernel.org>, linux-leds@vger.kernel.org Subject: [net-next PATCH 09/11] dt-bindings: net: dsa: qca8k: add LEDs definition example Date: Tue, 7 Mar 2023 18:00:44 +0100 Message-Id: <20230307170046.28917-10-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307170046.28917-1-ansuelsmth@gmail.com> References: <20230307170046.28917-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759750841797015290?= X-GMAIL-MSGID: =?utf-8?q?1759750841797015290?= |
Series |
net: Add basic LED support for switch/phy
|
|
Commit Message
Christian Marangi
March 7, 2023, 5 p.m. UTC
Add LEDs definition example for qca8k Switch Family to describe how they
should be defined for a correct usage.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
.../devicetree/bindings/net/dsa/qca8k.yaml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
Comments
On 07/03/2023 18:00, Christian Marangi wrote: > Add LEDs definition example for qca8k Switch Family to describe how they > should be defined for a correct usage. > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Where is the changelog? This was v8 already! What happened with all review, changes? Best regards, Krzysztof
On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: > On 07/03/2023 18:00, Christian Marangi wrote: > > Add LEDs definition example for qca8k Switch Family to describe how they > > should be defined for a correct usage. > > > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> > > Where is the changelog? This was v8 already! What happened with all > review, changes? Did you read patch 0? We have decided to start again, starting small and working up. This patchset just adds plain, boring LEDs. No acceleration, on hardware offload. Just on/off, and fixed blink. What do you think makes the patchset is not bisectable? We are happy to address such issues, but i did not notice anything. Andrew
On 08/03/2023 14:57, Andrew Lunn wrote: > On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: >> On 07/03/2023 18:00, Christian Marangi wrote: >>> Add LEDs definition example for qca8k Switch Family to describe how they >>> should be defined for a correct usage. >>> >>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> >> >> Where is the changelog? This was v8 already! What happened with all >> review, changes? > > Did you read patch 0? > > We have decided to start again, starting small and working up. This > patchset just adds plain, boring LEDs. No acceleration, on hardware > offload. Just on/off, and fixed blink. Sure, but the patch is carried over. So what happened with all its feedback? Was there or was not? How can we know? > > What do you think makes the patchset is not bisectable? We are happy > to address such issues, but i did not notice anything. I didn't write anything like that here... Best regards, Krzysztof
On Wed, Mar 08, 2023 at 07:49:26PM +0100, Krzysztof Kozlowski wrote: > On 08/03/2023 14:57, Andrew Lunn wrote: > > On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: > >> On 07/03/2023 18:00, Christian Marangi wrote: > >>> Add LEDs definition example for qca8k Switch Family to describe how they > >>> should be defined for a correct usage. > >>> > >>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> > >> > >> Where is the changelog? This was v8 already! What happened with all > >> review, changes? > > > > Did you read patch 0? > > > > We have decided to start again, starting small and working up. This > > patchset just adds plain, boring LEDs. No acceleration, on hardware > > offload. Just on/off, and fixed blink. > > Sure, but the patch is carried over. So what happened with all its > feedback? Was there or was not? How can we know? > The history of the old series is a bit sad, not enough review, another dev asking for a different implementation and me doing an hybrid to reach a common point (and then disappear intro oblivion)... Short story is that this current series have nothing related to the HW offload feature and only in v7 it was asked to put the LED nodes in ethernet-phy.yaml I can put in the cover letter of v2 of this series the changelog of the previous series but they would only be related to other part that are not related to this. Just to give you some context and explain why the changelog was dropped. > > > > What do you think makes the patchset is not bisectable? We are happy > > to address such issues, but i did not notice anything. > > I didn't write anything like that here... >
On 08/03/2023 20:02, Christian Marangi wrote: > On Wed, Mar 08, 2023 at 07:49:26PM +0100, Krzysztof Kozlowski wrote: >> On 08/03/2023 14:57, Andrew Lunn wrote: >>> On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: >>>> On 07/03/2023 18:00, Christian Marangi wrote: >>>>> Add LEDs definition example for qca8k Switch Family to describe how they >>>>> should be defined for a correct usage. >>>>> >>>>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> >>>> >>>> Where is the changelog? This was v8 already! What happened with all >>>> review, changes? >>> >>> Did you read patch 0? >>> >>> We have decided to start again, starting small and working up. This >>> patchset just adds plain, boring LEDs. No acceleration, on hardware >>> offload. Just on/off, and fixed blink. >> >> Sure, but the patch is carried over. So what happened with all its >> feedback? Was there or was not? How can we know? >> > > The history of the old series is a bit sad, not enough review, another > dev asking for a different implementation and me doing an hybrid to > reach a common point (and then disappear intro oblivion)... > > Short story is that this current series have nothing related to the HW > offload feature and only in v7 it was asked to put the LED nodes in > ethernet-phy.yaml > > I can put in the cover letter of v2 of this series the changelog of the > previous series but they would only be related to other part that are > not related to this. > > Just to give you some context and explain why the changelog was dropped. I am less interested in the changelog of entire patchset but of the patches which are for me to review. Sending vX as v1 suggests that all previous review work on this patch could be in some limbo state. Maybe nothing happened in all previous version, but it's now my task to dig it? This is why you have "---" for the patch changelog. Best regards, Krzysztof
On Wed, Mar 08, 2023 at 08:09:34PM +0100, Krzysztof Kozlowski wrote: > On 08/03/2023 20:02, Christian Marangi wrote: > > On Wed, Mar 08, 2023 at 07:49:26PM +0100, Krzysztof Kozlowski wrote: > >> On 08/03/2023 14:57, Andrew Lunn wrote: > >>> On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: > >>>> On 07/03/2023 18:00, Christian Marangi wrote: > >>>>> Add LEDs definition example for qca8k Switch Family to describe how they > >>>>> should be defined for a correct usage. > >>>>> > >>>>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> > >>>> > >>>> Where is the changelog? This was v8 already! What happened with all > >>>> review, changes? > >>> > >>> Did you read patch 0? > >>> > >>> We have decided to start again, starting small and working up. This > >>> patchset just adds plain, boring LEDs. No acceleration, on hardware > >>> offload. Just on/off, and fixed blink. > >> > >> Sure, but the patch is carried over. So what happened with all its > >> feedback? Was there or was not? How can we know? > >> > > > > The history of the old series is a bit sad, not enough review, another > > dev asking for a different implementation and me doing an hybrid to > > reach a common point (and then disappear intro oblivion)... > > > > Short story is that this current series have nothing related to the HW > > offload feature and only in v7 it was asked to put the LED nodes in > > ethernet-phy.yaml > > > > I can put in the cover letter of v2 of this series the changelog of the > > previous series but they would only be related to other part that are > > not related to this. > > > > Just to give you some context and explain why the changelog was dropped. > > I am less interested in the changelog of entire patchset but of the > patches which are for me to review. Sending vX as v1 suggests that all > previous review work on this patch could be in some limbo state. Maybe > nothing happened in all previous version, but it's now my task to dig it? > OK, if you are intrested only on the DT changes I can list: From v0 to v6: - There was only qca8k Documentation addition for the leds node. Some extra binding were dropped due to implementation change but they were only specific to qca8k. In v7: - The default-trigger for netdev was introduced (this caused some warning for missing netdev trigger for that binding) - It was suggested and asked to make the LEDs generic and add Documentration for phy-ethernet.yaml In v8: - The netdev trigger was added to the list of accepted default-trigger - The Documentation for phy-ethernet.yaml was added Then we decided to "reboot" the series and: In v1: - The default-trigger is dropped (will be introduced later when the work for the netdev trigger will be done) - We use the default state to "keep" This should be the entire changelog excluding some changed things done from v0 to v6 with low review and implementation changed at least 3 times during the life of that series. > This is why you have "---" for the patch changelog.
> Then we decided to "reboot" the series and: > In v1: > - The default-trigger is dropped (will be introduced later when the work > for the netdev trigger will be done) > - We use the default state to "keep" There is one more change. The leds {} property moved from the PHY nodes into the port nodes, because these are MAC LEDs, not PHY LEDs. Andrew
diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 389892592aac..866b3cc73216 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -18,6 +18,8 @@ description: PHY it is connected to. In this config, an internal mdio-bus is registered and the MDIO master is used for communication. Mixed external and internal mdio-bus configurations are not supported by the hardware. + Each phy have at least 3 LEDs connected and can be declared + using the standard LEDs structure. properties: compatible: @@ -117,6 +119,7 @@ unevaluatedProperties: false examples: - | #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/leds/common.h> mdio { #address-cells = <1>; @@ -226,6 +229,27 @@ examples: label = "lan1"; phy-mode = "internal"; phy-handle = <&internal_phy_port1>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = <LED_COLOR_ID_WHITE>; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_AMBER>; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + default-state = "keep"; + }; + }; }; port@2 {