Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2203761rwl; Thu, 6 Apr 2023 07:12:45 -0700 (PDT) X-Google-Smtp-Source: AKy350a0Kl0IGVQsJxr0uWNu3DLqETVqZ7Ar/ZDxPNYClDZBNC5rb5yDkijbJINuLPvF3nw+E+g1 X-Received: by 2002:a17:906:ccc6:b0:8b1:2c37:ae97 with SMTP id ot6-20020a170906ccc600b008b12c37ae97mr5658895ejb.43.1680790364808; Thu, 06 Apr 2023 07:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680790364; cv=none; d=google.com; s=arc-20160816; b=elQvKvF9wjszyAaJA1I7pLy9haArkgHSnf0BtBNilLw0l0pACATeTLEq7R5zZ9Vlt+ wYb9V343enMmgQ3jX4U+ACNUhXJOXsquekQfNyQV1HZgQzqJmRnuQJ9WZcFoLbZr2TPs WUi7p2VRdjEVauQ/VINEY6U1zcPuFnXG4DJlopftXIrH7E2NFmOBIN8LuqSbyprnmyt8 u1bR2koZG8cynaz7GaQksv9Wnkh+ZVnbUUavkbfn0U3EdZG1vBu+AmZT3OL54OhaHD+R 3h/3Ymsr+CgPdApJrGyG6Hw38fNL45IpVCFPFvb326QNE5ilUJqgwe5qRooIoFkCc/FY 0CoQ== 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; bh=Nc5XJTaOIWq/+ghJJzs83WOcsawa6agTiIS3abEUxHk=; b=Iz+sbSvRKWLA0JBfKSyBfItG3xtWlpi3uwfHoSXg9Bn6pjO0b4w8/680uwxZj2Onz7 SAWKYbAcNfa4druv75/Uto/rSXBkN2Wly3LaNcvTUBVz4hVIVZpBNI9nzFzAPk8qu94F 2uw2ysELMaR9JKrLHziYT5lhUaABHrLJjbsB4sVOuc2Denv806at98ymT8b0lMt1qhWB Isvl1GWYEgPto8+yXDGDLu7aUdYY4cVdiOD0af4LRCvAkD0ztVazXmsx3GWY+fsnwn2S yNJ6MTXHbHI0bt8NywfTxntBh7sp6W+Qnfzei0rzAp7QS9qJs3IiKuLwKDpGmpiPdVdQ E9ww== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a17090622ce00b00948a5a9daf3si1173702eja.156.2023.04.06.07.12.18; Thu, 06 Apr 2023 07:12:44 -0700 (PDT) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239025AbjDFOLI (ORCPT + 99 others); Thu, 6 Apr 2023 10:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239046AbjDFOKx (ORCPT ); Thu, 6 Apr 2023 10:10:53 -0400 Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B81A1B441; Thu, 6 Apr 2023 07:10:20 -0700 (PDT) Received: by mail-oi1-f176.google.com with SMTP id w13so17754062oik.2; Thu, 06 Apr 2023 07:10:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680790219; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Nc5XJTaOIWq/+ghJJzs83WOcsawa6agTiIS3abEUxHk=; b=x8sssvE1fguDgTaa359uP6+nb6PL5dA/9tR89We4arWwIxw4PL//zqnK767J+5ckiE VAawNAP1jqBzz1gJJfINoqfz6WD+1phYvGVhdqyAWozBV2hGuXDKExZlLJkb7MQYsb4L iH4ENx0wBn/iOMcJEhzmfRWhjaGAMruy/xP8swITUMBjrmtGlOzJYuxsFhz+6/CEL11R TelINgsXL/wo/2gPN/XkIzC0mhvYoHau8jZfAlM+3sC5pUS424imm9o249J8qCHDJ493 +OY70UGOOgbegW48b4gpl2L3Cr9Ony8Cpo0vO3MgsY+1tm61DGuwWYfZHyYrNv0FXEQg fznQ== X-Gm-Message-State: AAQBX9dKY0xZp4nnkUUfw49KWRTyNWGn0yoYi5fzQp6a9jgK3VzfevtD UXNTvFYXTiN4Ofybr03MPA== X-Received: by 2002:a54:4585:0:b0:387:926e:35d3 with SMTP id z5-20020a544585000000b00387926e35d3mr3309739oib.20.1680790219545; Thu, 06 Apr 2023 07:10:19 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id y9-20020a4a9809000000b005251f71250dsm566500ooi.37.2023.04.06.07.10.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 07:10:19 -0700 (PDT) Received: (nullmailer pid 2976308 invoked by uid 1000); Thu, 06 Apr 2023 14:10:18 -0000 Date: Thu, 6 Apr 2023 09:10:18 -0500 From: Rob Herring To: Christian Marangi Cc: Pavel Machek , Lee Jones , Krzysztof Kozlowski , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Gregory Clement , Sebastian Hesselbarth , Andy Gross , Bjorn Andersson , Konrad Dybcio , John Crispin , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH v6 12/16] dt-bindings: net: dsa: qca8k: add LEDs definition example Message-ID: <20230406141018.GA2956156-robh@kernel.org> References: <20230327141031.11904-1-ansuelsmth@gmail.com> <20230327141031.11904-13-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230327141031.11904-13-ansuelsmth@gmail.com> X-Spam-Status: No, score=0.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 On Mon, Mar 27, 2023 at 04:10:27PM +0200, Christian Marangi wrote: > Add LEDs definition example for qca8k Switch Family to describe how they > should be defined for a correct usage. > > Signed-off-by: Christian Marangi > --- > .../devicetree/bindings/net/dsa/qca8k.yaml | 24 +++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml > index 389892592aac..ad354864187a 100644 > --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml > +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml > @@ -18,6 +18,8 @@ description: > PHY it is connected to. In this config, an internal mdio-bus is registered and > the MDIO master is used for communication. Mixed external and internal > mdio-bus configurations are not supported by the hardware. > + Each phy has at most 3 LEDs connected and can be declared > + using the standard LEDs structure. > > properties: > compatible: > @@ -117,6 +119,7 @@ unevaluatedProperties: false > examples: > - | > #include > + #include > > mdio { > #address-cells = <1>; > @@ -226,6 +229,27 @@ examples: > label = "lan1"; > phy-mode = "internal"; > phy-handle = <&internal_phy_port1>; > + > + leds { > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { > + reg = <0>; > + color = ; > + function = LED_FUNCTION_LAN; > + function-enumerator = <1>; > + default-state = "keep"; > + }; > + > + led@1 { > + reg = <1>; > + color = ; > + function = LED_FUNCTION_LAN; > + function-enumerator = <1>; Isn't function-enumerator supposed to be unique within a given 'function'? > + default-state = "keep"; > + }; > + }; > }; > > port@2 { > -- > 2.39.2 >