[net-next,v4,09/14] dt-bindings: net: ethernet-controller: Document support for LEDs node
Message ID | 20230317023125.486-10-ansuelsmth@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp108883wrt; Thu, 16 Mar 2023 19:42:12 -0700 (PDT) X-Google-Smtp-Source: AK7set+UKAluTb5HP0ICSl/Xrld6xNRiWGH2RKCEKUtep15QIAFfv8fpZ6pY1tL1bwA3oUHVVQ1X X-Received: by 2002:a17:90a:1a01:b0:23b:55f3:d32e with SMTP id 1-20020a17090a1a0100b0023b55f3d32emr6216340pjk.41.1679020932044; Thu, 16 Mar 2023 19:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679020932; cv=none; d=google.com; s=arc-20160816; b=thxJeWrLQNESFkhHbfMDi05Ul2V7b2xPMgRrNUSPBOBtVmNH7ooenpNJH8jRW28Gl1 zmIKiySq1NzBhiz3MKOC4+BtqIJ8mBlrtuRE2vKojTru78s9+JvLAR8y8YejINxLFgKz UiUIace2IhioOff+Pzz7YuuOv/GzwRAVEoRBQMZJpErSj3dQZoJ+kozCG2MrQb/aQxxO nBRj6YQz5yF/SjNM34mjZ4rY9Al6AWYR4G6qu8N77vdJ/taKJQr8RyFED5TPO+dwm8QP MVaXDawh75dOiWuAKSjJpcChB46xaBCU44ssa4rrslCZvQlhYkDZa5BJm282TgL37r3t Od5w== 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:date:subject:to:from :dkim-signature; bh=mZv5FnCiudZKDVGAnq53ZSH02fIH+isgRk91M2T3n+E=; b=V3OYnf55e1Mec5AUP4SDQETK7pjE7notzcGOAK7orENYEubk/1Yc8eo18lVhQ7cfk4 W8eNiC1AgkBi9f3Rbr7ddieD5kRRM7ASh5BZcHQaBaex6WZiT16sewvwsFGE4P76cRkp 9416vk1uj2UQVTBeBdBWG2p78Gh1h8NDCO96Ab7qGkBWoEMC5EKpJk0m1paqNeyWJqL0 ihRajRtyVQLrlHC6HM0CI4vWE/eczc7qT2ORuVvaKHaJo+GUFp7DFYtzl4gQUj2/rIoR n4jFi2GYq/A1hh2/YbxD6PsAbJ2cFteY9k0yxWSsADHDKvAanPPs6NsMfQEKOU8ZnyKY BaBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RTp0mEPG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gq12-20020a17090b104c00b002340e488cc5si6511844pjb.96.2023.03.16.19.41.59; Thu, 16 Mar 2023 19:42:12 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RTp0mEPG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbjCQCeL (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Thu, 16 Mar 2023 22:34:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbjCQCdm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 16 Mar 2023 22:33:42 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72DDBB328A; Thu, 16 Mar 2023 19:33:33 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id p4so3182125wre.11; Thu, 16 Mar 2023 19:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679020412; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=mZv5FnCiudZKDVGAnq53ZSH02fIH+isgRk91M2T3n+E=; b=RTp0mEPG1x3QJnyW+mXKNUnNncVZBTlmPW9XN1NL6oKJ2YK/P6EiNv4TetcqzBuVrt aVAXC6nHT/OwmIgPFOyOz2Hl3f4MCFJwpWxFWOArr4Ha0f12Lhm/31IP0ssyeFXLBtcx rImaOYJtfuOw8QzUq5GfxJ1TIcG/0k8I5pkpAAoJb/czmE/QTnPEajyVU+gqkPrngOLL B/WBB1Ex04tUUBPXlAvQC76DuOyJkYx+RS67GJ7TI4APDMTp/1sc9cKINbCAKxKL0qEu qeOvFFIOiAESrufZCaThJe+6Guj1JTaWwOn4IFTkMVRIehW6NQu+hAEHU+UIpr4rh07B aFWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679020412; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mZv5FnCiudZKDVGAnq53ZSH02fIH+isgRk91M2T3n+E=; b=w/Ol2ZXOs/QCshLBg8/XSsoVYQvF8lxqTQ3IYtNXzHugjWMQNFKU+k5G6ZAfihIf4N Q3/xm47uxleD8Kih7T8ZKCDCxvwGa3nZeicliM6FIgDpmsG8/KiEg/YBGBlk/7zWFfcn e4UnNuDv9eA+3MNRf5MrwAuwig/szZs6+teRUT8r8RIqd7cSnZdEPATKDYFkVNIYre0s MXT/4SIOGR9cEBPr7HyHyi2m4ZSgV8SRkZcV2jbPH2H6Zf0DhbE34W/3CZMW+YHa/yGN MhEPQ7NZbzLPfVsg671G5scpP9tyzMeluvzrNgnstQrOAZCsCe+HYcwJL41dpuJwYqWB HY5g== X-Gm-Message-State: AO0yUKXGPOyQfB7i30dFzUixDZRnZSG20JIO+dRizr+ZjOYkKbTp9rI4 HkjYOBERNrzH1mBTj8S6rXM= X-Received: by 2002:adf:ee52:0:b0:2ce:a938:ecc9 with SMTP id w18-20020adfee52000000b002cea938ecc9mr6245320wro.69.1679020411651; Thu, 16 Mar 2023 19:33:31 -0700 (PDT) Received: from localhost.localdomain (93-34-89-197.ip49.fastwebnet.it. [93.34.89.197]) by smtp.googlemail.com with ESMTPSA id z15-20020a5d44cf000000b002ce9f0e4a8fsm782313wrr.84.2023.03.16.19.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 19:33:31 -0700 (PDT) From: Christian Marangi <ansuelsmth@gmail.com> To: Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Gregory Clement <gregory.clement@bootlin.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Christian Marangi <ansuelsmth@gmail.com>, John Crispin <john@phrozen.org>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Lee Jones <lee@kernel.org>, linux-leds@vger.kernel.org Subject: [net-next PATCH v4 09/14] dt-bindings: net: ethernet-controller: Document support for LEDs node Date: Fri, 17 Mar 2023 03:31:20 +0100 Message-Id: <20230317023125.486-10-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230317023125.486-1-ansuelsmth@gmail.com> References: <20230317023125.486-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760581052700855499?= X-GMAIL-MSGID: =?utf-8?q?1760581052700855499?= |
Series |
net: Add basic LED support for switch/phy
|
|
Commit Message
Christian Marangi
March 17, 2023, 2:31 a.m. UTC
Document support for LEDs node in ethernet-controller.
Ethernet Controller may support different LEDs that can be configured
for different operation like blinking on traffic event or port link.
Also add some Documentation to describe the difference of these nodes
compared to PHY LEDs, since ethernet-controller LEDs are controllable
by the ethernet controller regs and the possible intergated PHY doesn't
have control on them.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
.../bindings/net/ethernet-controller.yaml | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index 00be387984ac..a93673592314 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -222,6 +222,27 @@ properties: required: - speed + leds: + type: object + description: + Describes the LEDs associated by Ethernet Controller. + These LEDs are not integrated in the PHY and PHY doesn't have any + control on them. Ethernet Controller regs are used to control + these defined LEDs. + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^led(@[a-f0-9]+)?$': + $ref: /schemas/leds/common.yaml# + + additionalProperties: false + dependencies: pcs-handle-names: [pcs-handle]