From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A862C4361B for ; Sun, 20 Dec 2020 22:49:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1DF1422CBB for ; Sun, 20 Dec 2020 22:49:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728351AbgLTWsv (ORCPT ); Sun, 20 Dec 2020 17:48:51 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:35024 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726507AbgLTWsv (ORCPT ); Sun, 20 Dec 2020 17:48:51 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kr7Ui-00D2SS-MH; Sun, 20 Dec 2020 23:48:04 +0100 Date: Sun, 20 Dec 2020 23:48:04 +0100 From: Andrew Lunn To: Lars Povlsen Cc: Linus Walleij , devicetree@vger.kernel.org, Alexandre Belloni , linux-kernel@vger.kernel.org, Microchip Linux Driver Support , linux-gpio@vger.kernel.org, Andy Shevchenko , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v10 3/3] arm64: dts: sparx5: Add SGPIO devices Message-ID: <20201220224804.GA3107610@lunn.ch> References: <20201113145151.68900-1-lars.povlsen@microchip.com> <20201113145151.68900-4-lars.povlsen@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201113145151.68900-4-lars.povlsen@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 03:51:51PM +0100, Lars Povlsen wrote: > + led@8 { > + label = "eth12:green"; > + gpios = <&sgpio_out0 12 0 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + led@9 { > + label = "eth12:yellow"; > + gpios = <&sgpio_out0 12 1 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; Hi Lars I did not see these patches earlier, but i've been looking at the switch driver patches recently, so went digging. Can the Ethernet switch itself control these LEDs for indicating things like packet receive/transmit, link state, and link speed? Or are they purely software controlled? Thanks Andrew