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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 901D5CCD1AB for ; Wed, 22 Oct 2025 07:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Cc:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=guMwcoH/KrBQdPKJIf6t9Kyfl+R3RaVO4b2Q0KhUG04=; b=YFuGWxAjkmUu11 r8kNUJUcE1Dhue66pC3FD7pAgJ6jZptQ7CZEHQE8SF2waWq3O+aj9n3hV2mjKTNB8w45I6DvN+yOb XSDxQul3v1/0fBOTVx5j9yRjRzZS3djRWaGa3qUYOAoXUZWthnePjRa56oxUNiTiUkOZSHKGVfppc SaUMK+yUAfZTGKgxsIlUGX2KMR38Ojx6lYEjb7NhqNzmnT/YfsrxS0UvZ+ZweUnUB1OozA35uB+Bw FJZJFJAImX07KXqNHuAObJizEgd/1V2rxArlp6lOtoPkYB2CtE5GtqFZ8Z/7iJzryprYq84hX/dpL PfexV7w9UU2aEbFQPnfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vBTFB-00000001s8M-0p6i; Wed, 22 Oct 2025 07:26:49 +0000 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vBTF7-00000001s5x-1lqP; Wed, 22 Oct 2025 07:26:47 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1761117986; cv=none; d=zohomail.com; s=zohoarc; b=GWdWVJIci83v/eS69HecZIVsU2dKjax3EaKZENbtz8G9fVU3kFO9nY0W8fbL857a5mW3ciUZqRmPGiAn2qFYSRfUsXikN42get9YJK0XRoxavO8HtvhmmTrh6sXVgQ091coljHNh/p5NRqUQXn8vNn0LieCpkgF8NE75OevzYL8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761117986; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=Ne+Pmve/YJpQYWLxsEpgG2oak24NJMv5+UeWTnSp+5I=; b=ZFwP3ceil6N4YJkKFYDLfc3uNtz7sFBZZs9URI8eHspzPQ9RO5mfmYIwTuRp/Pt0BgCsLXgGGmuDL0oIbK3wlG8wJHJesye68F3WBpKfNl3nVdW2Waqixq2ZVPbPC8gOtczfnFApIzT0yRx1/5t9XZJUMQlDgLGmCtf2orhIpWw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=sjoerd@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1761117986; s=zohomail; d=collabora.com; i=sjoerd@collabora.com; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=Ne+Pmve/YJpQYWLxsEpgG2oak24NJMv5+UeWTnSp+5I=; b=WS0HFeV7KBFtIbds/DTNEOfzlWHiuEhf7zgrHzyBNXymtekgif2dvr8//CXl1Eja 5o0inS7TmzZMLQ8iQ3Ei7kl5nEinVZYEVFx7L46Nzx0eWtQ5TQX0iSAx2IQCmJK8X72 FD3DTFDuVjIDxFN5LhSIHklpFieoF/gr9TrumGso= Received: by mx.zohomail.com with SMTPS id 1761117982200158.6072297880238; Wed, 22 Oct 2025 00:26:22 -0700 (PDT) Message-ID: <79d4a7379bce245d22b56c677fd7b3a263836239.camel@collabora.com> Subject: Re: [PATCH 15/15] arm64: dts: mediatek: mt7981b-openwrt-one: Enable leds From: Sjoerd Simons To: Andrew Lunn Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Ryder Lee , Jianjun Wang , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?UTF-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Lee Jones , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lorenzo Bianconi , Felix Fietkau , kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, netdev@vger.kernel.org, Daniel Golle , Bryan Hinton Date: Wed, 22 Oct 2025 09:26:11 +0200 In-Reply-To: References: <20251016-openwrt-one-network-v1-0-de259719b6f2@collabora.com> <20251016-openwrt-one-network-v1-15-de259719b6f2@collabora.com> Organization: Collabora User-Agent: Evolution 3.56.2-5 MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251022_002645_513101_098627D2 X-CRM114-Status: GOOD ( 12.60 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Hey, On Fri, 2025-10-17 at 19:35 +0200, Andrew Lunn wrote: > On Thu, Oct 16, 2025 at 12:08:51PM +0200, Sjoerd Simons wrote: > > The Openwrt One has 3 status leds at the front (red, white, green) as > > well as 2 software controlled leds for the LAN jack (amber, green). > > A previous patch in this series added 2 PHY LEDs. Are they connected > to a LAN jack? Are there multiple RJ45 connectors? Is it clear from > /sys/class/leds what LED is what? Yeah there are two RJ45 jacks. One referred to as WAN in the openwrt one documentation (2.5G), which uses phy integrated leds. One referred to as LAN, which for some reason is using software controlled leds rather then the phy's led controller, which this patch adds support for. When applying this set you'll get: ``` root@openwrt-debian:/sys/class/leds# ls -1 amber:lan green:lan green:status mdio-bus:0f:amber:wan mdio-bus:0f:green:wan mt76-phy0 mt76-phy1 red:status white:status ``` Which is hopefully clear enough -- Sjoerd Simons Collabora -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy