Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp50876rdd; Mon, 8 Jan 2024 17:17:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKsWm9QJ4OOXBm++JuKqu07TNJjEGVOHZlgQaxE2mU0HdPA5usvyuN2QEid7Oab5xqeFp8 X-Received: by 2002:a5d:4482:0:b0:336:7b7f:781a with SMTP id j2-20020a5d4482000000b003367b7f781amr136761wrq.25.1704763077641; Mon, 08 Jan 2024 17:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704763077; cv=none; d=google.com; s=arc-20160816; b=q/J0Yg5peHEpI+zRZDeSloEB3ZgtjQFeXtaUihS33g3w9tYKCtJvdcFaAxvV0GYIlE fFs99hnay2hjebHOJ2YnknUXNXa4jt8hHF7Q6e0Qgf+8An/h9WkZi5eAIOcWM/NKiP+/ fYJnBCp0CnYi+DnJ0tmUQM6J0RwR2rVk3Y4xO9Fzb+Pxag6MvmtwZtJE9YpHkSBCJylY avYsKbtLaWAiCql/k6hDa1mHuoj03CNkxsC85QSQk2Be8kKlUwVr3hHP0RN3lNMXwVlp MTTgkhl4F7zIS/3JHZkCAgNi/yj6sDYaSIe7gP3ngqrD/yXQG6rsX7MQlH2m2L2YfsDX C2pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FPrSPQwpGRXGcWgS2/Xl7mlZOd6cB77MFosAaFhdoXM=; fh=f2530uQuFU6gTjydPfA47iMPP96/zmYeGuzVqpEDVHE=; b=liUAwpbrZXMupwUX3PyMYCfvSTHRc2RewWE/1IpV7XTVloaSKMavYl5BcIOe0eAsPY Xam0kfP7TSycZBC80Chhqt/Gj0PPGbBuO+RQsqjs+q0L7PqcW7RGP+6vpWI6YFeXS+2I bDVIqWxjRQPz/+uYh2810yPPA//kX9jCkl0dLpD7CUt77q/Wn6Ya5CgQYjIai/4jTKNl x8xrpNpPjZGJT4durjRy4sNsPM5/Y2u+mhl92XoCx3sBM1zNy87hQfqxhudba8+CDhOG tJpFblfwiytkpRXsUJxAK0wuGKGYwkVf6cLXWhMjw1+lkfKN7+KFr49Kv6V6UO0b8DSy vAzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="v/lbuY5V"; spf=pass (google.com: domain of linux-kernel+bounces-20253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i20-20020a05640242d400b005580e511196si5837edc.644.2024.01.08.17.17.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 17:17:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="v/lbuY5V"; spf=pass (google.com: domain of linux-kernel+bounces-20253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6511B1F2433F for ; Tue, 9 Jan 2024 01:17:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED7492115; Tue, 9 Jan 2024 01:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="v/lbuY5V" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0FAA10E4; Tue, 9 Jan 2024 01:17:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=FPrSPQwpGRXGcWgS2/Xl7mlZOd6cB77MFosAaFhdoXM=; b=v/lbuY5VEwWYEVTql+YCU+QKc+ CLCLuKd8C+OmDI8F37K59Sa/4G3AFc/FLuCvmzG8EzkAfglmDQKNLCgBKQcB368CevY1ibCXPVoc7 mj6fQqXS535fd3WMvyBjIGcKgkswF5nUsvs2RiFX7RoK9tBWxq0oRfwizY1QEBmevEGI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rN0kC-004hJv-Da; Tue, 09 Jan 2024 02:17:28 +0100 Date: Tue, 9 Jan 2024 02:17:28 +0100 From: Andrew Lunn To: Christian Marangi Cc: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Jacek Anaszewski , =?iso-8859-1?Q?Fern=E1ndez?= Rojas , Sven Schwermer , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: Re: [net-next PATCH v9 3/5] net: phy: add support for PHY LEDs polarity modes Message-ID: References: <20240105142719.11042-1-ansuelsmth@gmail.com> <20240105142719.11042-4-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240105142719.11042-4-ansuelsmth@gmail.com> On Fri, Jan 05, 2024 at 03:27:15PM +0100, Christian Marangi wrote: > Add support for PHY LEDs polarity modes. Some PHY require LED to be set > to active low to be turned ON. Adds support for this by declaring > active-low property in DT. > > PHY driver needs to declare .led_polarity_set() to configure LED > polarity modes. Function will pass the index with the LED index and a > bitmap with all the required modes to set. > > Current supported modes are: > - active-low with the flag PHY_LED_ACTIVE_LOW. LED is set to active-low > to turn it ON. > - inactive-high-impedance with the flag PHY_LED_INACTIVE_HIGH_IMPEDANCE. > LED is set to high impedance to turn it OFF. > > Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn Andrew