Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4918287pxb; Tue, 5 Oct 2021 13:17:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgYD5K/v7X6O2QL/saUBcuRw4K8DutLOXzddaR6s/R3pbanzYPHP1XdshaVCdfLkiDNQ9t X-Received: by 2002:a17:906:1706:: with SMTP id c6mr28180939eje.343.1633465033243; Tue, 05 Oct 2021 13:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633465033; cv=none; d=google.com; s=arc-20160816; b=0OaqUnj4tVQ1/hoExgTKhmTCZ4XIBhmD3M09f3B6unDMv/yzxDPOFwGuCpucHcviQL C0yk6qwGxHbxU9k9WDArem6/iq+lGiQtUtQNx2MRSOQkSU35A4KIrPfzhD+aO/v1bwK1 kRIguHEJGuOmlQNzjLWtZl39dmuxkROA/A6C9hQKl43Oh7VAQvdiw8Lpxrwj7QDaX148 b0PY54lOgup4IpHOUhUJqt6hLPa/+fYNVCkjOLb0+2s+HI0EmT5EhiThJkGGJNvvMZgk zfBAyHcqVg/UAAQbjxcgLF1JS8cCx4xOFIJ1HwWzEe5nrYfi6au0gnIxYBDIWd6ocpLd Tbng== 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=Wq7nrL82/L3EOLhn+avQUN00z2EQ2FcNnYuF4o5Vwxc=; b=pratN5zgPi8KPriAkNohQRDclBCDDVrI6fTKHN8jnXoyj4BZuTiouMdSA8KKwXdFMW 1zUyE2FK8+Axo5y7qQI7CsT2rGQabp1PyDGqtM7LT4ot+xvk5F22PlGeHlproHeeHwFv ksiz18JYbE0ggOQ2ybOb198Zmhm7Ek7q2xYAgrwuBCeVzKG6NpuvOAnmD7r0sxgGd2kc kd1q2B72QyNYORQeCZDjubQKOOf3b4+Pr7uuFKyEsyb/3bMQwHCTQF6DMiZUBeflcFql U1y/JUodYYG1Lvxtj7qchPOLl0Lbqt3jszZ7dNxRAeMGOK4ipSJ53YT1PJeFRqHPd91z T05A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="AV/VFhOx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c3si23366170ejj.775.2021.10.05.13.16.49; Tue, 05 Oct 2021 13:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="AV/VFhOx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235845AbhJEUOA (ORCPT + 99 others); Tue, 5 Oct 2021 16:14:00 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50718 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235581AbhJEUN7 (ORCPT ); Tue, 5 Oct 2021 16:13:59 -0400 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=Wq7nrL82/L3EOLhn+avQUN00z2EQ2FcNnYuF4o5Vwxc=; b=AV/VFhOx8CPCsEz+WuHkHFZ7pH 3D7Sa/E0gSDzXv38L0ZyfveGdnlyDeZQSSSifGFbhZFlgWu2U2XrcYpVjGXqHAwOtKKebb5b73rKd gf1YjkWeejx3bP7apHZ7GC7Ta8vB/+amiGOkfjGzjD1jLXCUGy/I+1DkXUJtIDUAWtG8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mXqnE-009k7C-1I; Tue, 05 Oct 2021 22:12:04 +0200 Date: Tue, 5 Oct 2021 22:12:04 +0200 From: Andrew Lunn To: Jacek Anaszewski Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , Rob Herring , Pavel Machek , "linux-leds@vger.kernel.org" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: lets settle the LED `function` property regarding the netdev trigger Message-ID: References: <20211001143601.5f57eb1a@thinkpad> <20211003212654.30fa43f5@thinkpad> <20211004170847.3f92ef48@thinkpad> <0b1bc2d7-6e62-5adb-5aed-48b99770d80d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0b1bc2d7-6e62-5adb-5aed-48b99770d80d@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > There are two different ways this can be implemented. There can be two > > > independent LEDs within the same package. So you can generate three > > > colours. Or there can be two cross connected LEDs within the > > > package. Apply +ve you get one colour, apply -ve you get a different > > > colour. Since you cannot apply both -ve and +ve at the same time, you > > > cannot get both colours at once. > > > > > > If you have two independent LEDs, I would define two LEDs in DT. > > > > No, we have multicolor LED API which is meant for exactly this > > situation: a multicolor LED. > What do you mean by dependency here? https://www.youtube.com/watch?v=5M9p25OfKdg There are two different ways you can two LEDs in one package. Some Ethernet PHY RJ45 connector housings have bi-colour LEDs. Some have tri-colour LEDs, and some have mono-colour LEDs. Andrew