Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp34906rwl; Thu, 23 Mar 2023 12:18:00 -0700 (PDT) X-Google-Smtp-Source: AKy350aSC0VitVwG0RripTKl0PEEMQQEib2YIubF79WVJxUPZJTF26/ipPhQ5gecp2lVnJ7J0PnO X-Received: by 2002:a17:906:25d5:b0:932:40f4:5c44 with SMTP id n21-20020a17090625d500b0093240f45c44mr132559ejb.36.1679599080505; Thu, 23 Mar 2023 12:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679599080; cv=none; d=google.com; s=arc-20160816; b=0FLsYUacycbv6E+cl1u8NztnksfIiuLZ/+N8+Nct39QdUHiXGYTRRyyzsZp7nsv+IS 6ScTv3CC2XNTlsQPs9XMG5u++buQHeSONq1r22icbC0jxsnMeNJd7J4WK1z7xv05t0+0 K6iGvykZ3h05742jcScBxumDJ5E8xi0GXNUQ8f3PEmjVHPiGLDM8WmsrF3rVUXnsxq3Q 80OBTyhRzVLaEOsLafN/iuMVFQjd4dGYqAUy9mz5h3/p5R3Z+CsQEi5mzh2uX3fQpKLR 8i0WojggNBiUeIlmhEEoV5SfGxGCv28MrwjGpjDrURrm+slatevFiJ5YZ7Q0D9I+iHa8 oFnw== 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=aRHbTBB+ZgSTv8KzTFw1avZ2sf6wVSfYjmXj3OLadfU=; b=MT3hjibSIJytAT3Yk0T52NZ8FyPB14c++Q/U7eSQSaf8rzmQamSFoMGQAa8SpsRO9S kUmo6FubIwCEjUjvY8KB6RJhln7IZ2ZMWs4w5DIhHDLpzCQExTYfwwQGFHwEskAIX7j7 /30XglsXxpwKkzqvk0sMjeQfFHcv16tdt1Hqn113KNgON2AYoycoJ0JfqpT/VWVppOVB gyi3sRLilSjML7CjPUkNfGh18H7sUZWuY3KpImt+/7DaiOKw9oZLoG3s3SkSmQHKM+gQ 7G7GivVRuqOymGNpTsFs8rvU+NOis6FlIXMLks+rIT4zccXs6cUshSXHFfpaBTdQmQxw xfFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=WUsbZMTd; 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=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js2-20020a17090797c200b0093b6e1440b3si5800808ejc.764.2023.03.23.12.17.33; Thu, 23 Mar 2023 12:18:00 -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=@ucw.cz header.s=gen1 header.b=WUsbZMTd; 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=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231395AbjCWTLF (ORCPT + 99 others); Thu, 23 Mar 2023 15:11:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbjCWTLD (ORCPT ); Thu, 23 Mar 2023 15:11:03 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49D37171C; Thu, 23 Mar 2023 12:11:02 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 6FE291C0E45; Thu, 23 Mar 2023 20:11:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1679598660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aRHbTBB+ZgSTv8KzTFw1avZ2sf6wVSfYjmXj3OLadfU=; b=WUsbZMTdi1dQlK/4H3Xv9ArPjsuIMUxpSFwGMub4AZtfoYc0oMVOCdkbQ2YjKggzu6dMB1 8/6ydNZJvXxECORDcGhsUhgc71YQX105BVUfg1favqDeOxxfizoj39rK55mpyM+ncRrurM 7AuueYcYPNp8XcC2R2Lb0NBjGgM+2GI= Date: Thu, 23 Mar 2023 20:11:00 +0100 From: Pavel Machek To: Andrew Lunn Cc: Christian Marangi , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Heiner Kallweit , Russell King , Gregory Clement , Sebastian Hesselbarth , Andy Gross , Bjorn Andersson , Konrad Dybcio , Lee Jones , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [net-next PATCH v5 15/15] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port Message-ID: References: <20230319191814.22067-1-ansuelsmth@gmail.com> <20230319191814.22067-16-ansuelsmth@gmail.com> <318f65ef-fd63-446d-bd08-1ba51b1d1f72@lunn.ch> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rI4G7utm2RBg+ik3" Content-Disposition: inline In-Reply-To: <318f65ef-fd63-446d-bd08-1ba51b1d1f72@lunn.ch> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 --rI4G7utm2RBg+ik3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > The WAN port of the 370-RD has a Marvell PHY, with one LED on > > > the front panel. List this LED in the device tree. > > >=20 > > > Signed-off-by: Andrew Lunn > > > Signed-off-by: Christian Marangi > >=20 > > > @@ -135,6 +136,19 @@ &mdio { > > > pinctrl-names =3D "default"; > > > phy0: ethernet-phy@0 { > > > reg =3D <0>; > > > + leds { > > > + #address-cells =3D <1>; > > > + #size-cells =3D <0>; > > > + > > > + led@0 { > > > + reg =3D <0>; > > > + label =3D "WAN"; > > > + color =3D ; > > > + function =3D LED_FUNCTION_LAN; > > > + function-enumerator =3D <1>; > > > + linux,default-trigger =3D "netdev"; > > > + }; > > > + }; > > > }; > > > =20 > >=20 > > How will this end up looking in sysfs? >=20 > Hi Pavel >=20 > It is just a plain boring LED, so it will look like all other LEDs. > There is nothing special here. Well, AFAICT it will end up as /sys/class/leds/WAN, which is really not what we want. (Plus the netdev trigger should be tested; we'll need some kind of link to the ethernet device if we want this to work on multi-ethernet systems). > > Should documentation be added to Documentation/leds/leds-blinkm.rst > > ? >=20 > This has nothing to do with blinkm, which appears to be an i2c LED > driver. Sorry, I meant Should documentation be added to Documentation/leds/well-known-leds.txt ? Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --rI4G7utm2RBg+ik3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZBykRAAKCRAw5/Bqldv6 8hYAAJ9Bvn10XxUIr7aK5MpezU9ojjLFBQCdGvLFTqwn12xC4aE58YdyoLAftHM= =uXc6 -----END PGP SIGNATURE----- --rI4G7utm2RBg+ik3--