Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4962113rwj; Tue, 20 Dec 2022 18:06:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXuTXB9EbG50DkxXxf7JA4tpRoSxwc4yj4IqTIJQ0flTocELyTYZrqSwFdhFMsKYplQ4s+4o X-Received: by 2002:a17:907:80cd:b0:801:d0bc:f616 with SMTP id io13-20020a17090780cd00b00801d0bcf616mr17422298ejc.62.1671588397619; Tue, 20 Dec 2022 18:06:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671588397; cv=none; d=google.com; s=arc-20160816; b=v068YMs/VxM9eDb5SgrACo/ZVFQm/q1OoyAeFogx98hgIQQHZK//ERjFLwLa0Dpl6+ zn1LoQFbVnWDCKS5QclxknlHPamwyR1WXrXuqNoFaieAs56csWdj4nDPkD5+g1EvGSPn lxzSlMZQrVebj7MOC+DBShMp8u4vR2iISPfjvm+WmGvo8ZuYj4bTZsjH43UJjAdzXpJq gfmbEKp8gTDjkLUZNEE2Pffsw+T7HYHL5It7H8W9WFPPu3lXg1l2bsMzPUrn0DzGTCni s4up8YsNATi2LItHQKoco6SwBA6oAqA/uNk39RiUc9YaL6S0ySS3zK25KlTB79QgH3id grEg== 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=59sGi5wsFZmEQD/ZiTGyF0MkmR+ZW973oaLWGzOPSbQ=; b=HTiz4fm43fG4O3Tvj5fvqtOXgCq6llew31kr4AzmaZpYPsOvMcBptWdKLaq4DQlg4v h3xsS703I1U+CrrPeTvcOXcZa9eTnasrhJe7ZztIKuZmlaGGXlqpkCBtnZBFni5q81y5 LFqwXA83zmgdsp7b4F7LQmJozLsHdjksqXYEJXzKbQfY7ZNeFdN6UF1EUwTg6RuaR6gl C7HY1GvVkwzjx61myFmznBe9844G1Cb+RhWRdHyNmfFpbUEsdUKO2miGKHdEjs9g77s9 9YW0CXwiFxqMMETwoIpzf7D/2YAsEyjp8P1crjWk6hrmuk+vqcWpIcpKO1f7MDg+zXi4 cT2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=2VjeEhvC; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr10-20020a170907720a00b00838fbbf7368si2267679ejc.969.2022.12.20.18.06.21; Tue, 20 Dec 2022 18:06:37 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=2VjeEhvC; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234306AbiLUBmL (ORCPT + 68 others); Tue, 20 Dec 2022 20:42:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbiLUBmJ (ORCPT ); Tue, 20 Dec 2022 20:42:09 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0729F1928E; Tue, 20 Dec 2022 17:42:07 -0800 (PST) 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=59sGi5wsFZmEQD/ZiTGyF0MkmR+ZW973oaLWGzOPSbQ=; b=2VjeEhvCOFLVL/UsfvefI9AQlt h032f0NJp/mTS8R7vLner+lAcqTpwqECb2yA5Hex0BwhUKzHqFNVBt4eteKZC0YwwRkuNmC/dlBIB B7R8W9DiEtgGOnrYA/MAV2N7aTnM6XnDnNMe1lZ6zyP+al6n+cXBLShUJpBDmhjSUm3k=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p7o7C-0008dE-PW; Wed, 21 Dec 2022 02:41:50 +0100 Date: Wed, 21 Dec 2022 02:41:50 +0100 From: Andrew Lunn To: Rob Herring Cc: Christian Marangi , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Jonathan Corbet , Pavel Machek , "Russell King (Oracle)" , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-leds@vger.kernel.org, Tim Harvey , Alexander Stein , Rasmus Villemoes Subject: Re: [PATCH v7 11/11] dt-bindings: net: dsa: qca8k: add LEDs definition example Message-ID: References: <20221214235438.30271-1-ansuelsmth@gmail.com> <20221214235438.30271-12-ansuelsmth@gmail.com> <20221220173958.GA784285-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 > > > + }; > > > + > > > + led@1 { > > > + reg = <1>; > > > + color = ; > > > + function = LED_FUNCTION_LAN; > > > + function-enumerator = <1>; > > > > Typo? These are supposed to be unique. Can't you use 'reg' in your case? > > reg in this context is the address of the PHY on the MDIO bus. This is > an Ethernet switch, so has many PHYs, each with its own address. Actually, i'm wrong about that. reg in this context is the LED number of the PHY. Typically there are 2 or 3 LEDs per PHY. There is no reason the properties need to be unique. Often the LEDs have 8 or 16 functions, identical for each LED, but with different reset defaults so they show different things. Andrew