From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12515C4332F for ; Wed, 21 Dec 2022 13:00:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232415AbiLUNAB (ORCPT ); Wed, 21 Dec 2022 08:00:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbiLUNAA (ORCPT ); Wed, 21 Dec 2022 08:00:00 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 438DA22BEF; Wed, 21 Dec 2022 04:59:54 -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=QOrX1kzmd2Q/ZTwN75VlBeovPM2Shk8Xt9TZZkXuO1g=; b=Lw1khhZ7eRqd6SSnAAu7tA9eaT aYHhPYv9wp1o8VrLceaoH2/Tx1Pnwq+X6WxAYMA8aH5e8mLrgoKJ6C0ctFh2VYfOklrL/l6+maNYI GQwVFz0YDmYe4JMxaFTko3S6EuXCE9oEUHnNXSBBzdmK+P6Yf2HDJ/Xh4xGqyV8wHPKU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p7yh6-000B6G-M5; Wed, 21 Dec 2022 13:59:36 +0100 Date: Wed, 21 Dec 2022 13:59:36 +0100 From: Andrew Lunn To: Christian Marangi Cc: Rob Herring , 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> <63a30221.050a0220.16e5f.653a@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <63a30221.050a0220.16e5f.653a@mx.google.com> Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org > An alternative way would be set the reg to be the global led number in > the switch and deatch the phy from the calculation. > > Something like > port 0 led 0 = reg 0 > port 0 led 1 = reg 1 > port 1 led 0 = reg 2 > port 1 led 1 = reg 3 I would not do this. It will make LED controllers embedded in switches different to LEDs controllers embedded in PHYs. Ideally we want them identical. One binding to rule them all. Andrew