Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4353236pxb; Thu, 14 Oct 2021 03:44:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz83Izkq44og598RlyO7GmbVtNaEJtB3Fz5qQsJbY0b/KyYeKITpKERNuLQyq/WcP9k6HHm X-Received: by 2002:a17:90a:b288:: with SMTP id c8mr5233176pjr.67.1634208276946; Thu, 14 Oct 2021 03:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634208276; cv=none; d=google.com; s=arc-20160816; b=xPGusbEXaNn5U3eWkJ9qkz/e3VljzcT62KXoBAmvt/2KA+c2wuJwq/pVCWDnmrTxTr cAfsXK2YQ54hHw83jGUvnHgCEdZ0ff9sL8dxGdf/l2khNVN4i5f1IDQeJY29oUg+wiRp B7n24RLGUXJiwu1fnNTDSEIrYcX+4kLploXcXZrgULRjgDhLw0tLLFDLWyxZlGwZTc3e okH1nLPLIdUxaQg2m200d28jH6QBs50tuEl/W/Em1yB9kI+Whqc04N+5cBiG4jdab1u6 B2py+viN0st40eIttcMV1tvO6Yo98B1iJFOMizbvrLe2h9vrJ7H8wlxBFCyD0OVhApE7 0+lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ymPmJPxbKGAADZMWPYz6ltcT2W+yMMc6qHIuD/emDls=; b=fMBtX1I89tKwg9HrZoQss8wcfSUoIlKBvouYGWHRgz7ACNeMlgTelNo7jGBeZXzw/v hWCxHU9BFosWCY0t90izSgnnZyHHQgD9tHy94cC180rQesR759I/8HnJpCMvqBlhThTO 0HtclPTHHZhqSS/fbHXiWlr40M3ZYqBr0KhT+aIXv3pHq5PupKhHUKs/YwagaOHjiIHV ieCJsQSd6/kQ31avBXxrU6/lxQR3JDQf27hiAKmNmQTn6paU6i188njLnPUWmzB7Uvte QoQh4aTdRPY4O1PbitNNNNXVyUEjU3Sm5BY6XYP/MFFfG8fgEImfl2HgNndEVvwvR33b rCIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SgFxRO+6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 19si3268063pjd.6.2021.10.14.03.44.23; Thu, 14 Oct 2021 03:44:36 -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=@kernel.org header.s=k20201202 header.b=SgFxRO+6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230080AbhJNKpS (ORCPT + 99 others); Thu, 14 Oct 2021 06:45:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:42942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbhJNKpR (ORCPT ); Thu, 14 Oct 2021 06:45:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A50A561029; Thu, 14 Oct 2021 10:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634208193; bh=aWMglBh9pGCOmiZ88eOVpvJvmJl3/pOcN/7VDiuqDNU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SgFxRO+6xvvs5vx4lximIeqbNre80UgWO61jBHG29uq9+hp3FdKUOtf3hnfj8t3vN 3fMS2d15RPSusAQrIolmMnc084ndG+ddTGle9/JPozqJkpZrBw34XcGzXuBPBsGd9N yeKiij+uvhRAGUngk2tQYS9UHUOvQrnjvmd2jQmwH012Dy5u6mL0g/j0hzGPw4oQFO uaecRUm+jRy5ZfklXzFJG//cU3xo1U8hbSnZbLIORBw3BMlqRiSgiJ1ngVcq012ahW eCGa/teKbGSsAI40NV3AMCMB0Me/W9JN/znRwWNjv/HVAJ+248zKhJkkQSjddpy1ZS kQCH9WBIoO9JA== Date: Thu, 14 Oct 2021 12:43:09 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pavel Machek Cc: devicetree@vger.kernel.org, linux-leds@vger.kernel.org, Andrew Lunn , robh+dt@kernel.org, Jacek Anaszewski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] dt-bindings: leds: Add `excludes` property Message-ID: <20211014124309.10b42043@dellmb> In-Reply-To: <20211014102918.GA21116@duo.ucw.cz> References: <20211013204424.10961-1-kabel@kernel.org> <20211013204424.10961-2-kabel@kernel.org> <20211014102918.GA21116@duo.ucw.cz> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Oct 2021 12:29:18 +0200 Pavel Machek wrote: > Hi! > > > Some RJ-45 connectors have LEDs wired in the following way: > > > > LED1 > > +--|>|--+ > > | | > > A---+--|<|--+---B > > LED2 > > > > With + on A and - on B, LED1 is ON and LED2 is OFF. Inverting the > > polarity turns LED1 OFF and LED2 ON. > > > > So these LEDs exclude each other. > > > > Add new `excludes` property to the LED binding. The property is a > > phandle-array to all the other LEDs that are excluded by this LED. > > I don't think this belongs to the LED binding. > > This is controller limitation, and the driver handling the controller > needs to know about it... so it does not need to learn that from the > LED binding. It's not necessarily a controller limitation, rather a limitation of the board (or ethernet connector, in the case of LEDs on an ethernet connector). But I guess we could instead document this property in the ethernet PHY controller binding for a given PHY. Marek