Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2849744rwb; Thu, 17 Nov 2022 17:33:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf610CDGXly1GQakq17KNln55tMzQvT67hI37kVEw3O+dTVyuaiR02AyqmyL7/QYMpwOIg1w X-Received: by 2002:a17:907:8c05:b0:7b2:bb8e:702d with SMTP id ta5-20020a1709078c0500b007b2bb8e702dmr106107ejc.432.1668735198387; Thu, 17 Nov 2022 17:33:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668735198; cv=none; d=google.com; s=arc-20160816; b=zWlKoWyEeF4c9NRnxinj2pT6U1HYnThJdRRtOtH290mJtnZsFjexMhjE109xV/jxRq szBytxtwKVRj87YU61P9mZxg1ThNxDe/HlJrzYTyTcymz1xqFLRDmzIKZe3jpkbsCDmc jUPeg6SRgJV/Ih7IJtqI65TaANQRkbIiCzFuGAXYfKAv4bnav7/PFOAUvPpl2EV0ZToQ LhB4T1mGJ9qy3gnyOQgX65s2tKAmar20TGypPKq5Cf2UFXCSpGZq6ozS2okBHmEKjrql A7Rs5GsjcyfeDWY1Ib9blMKCd8ylYXr27l/09IbAepPfW9VRZnxe5hvXcgPi6TQV8tOM VLRg== 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:cc:to:from; bh=UB2Ef7NMRo74gikDaPa2wZt8UonzSD+q8vdlpNUxguk=; b=GCj2tXxFKTLkjHCJVU4PL/L2agP0HfHVncm3tge9uJSkr1jg0ETmAvzgnGpkBTuBLg hJPAm85x1daZ2JOqHsEPrsSBz6wixOY9Ng4SDfkCDZgk5wQcU26H1mKObujX/kQ9TC/O du0eZCI5zXY0EltGUD21jWEZkznf6nyZdWQUqYBlQ1uwTOMM9dbe3VnIPLxFXmzvQRAt Vf3lVwcIzgkD2z3BgoSOQNMBH5V+xewJzOga0fsP6bzSV2gkEFzMdYGUBvESWO3Ygovy HVfZUemKFgMfOQm3UOaKxsF+Uyr6sGbcPY33PwmQyRp6Aqw1RLgJNGxBMJ+eJRY0Q9Y2 hs+g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc42-20020a17090716aa00b007ae814af68dsi2413488ejc.355.2022.11.17.17.32.56; Thu, 17 Nov 2022 17:33:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240720AbiKRAo1 (ORCPT + 91 others); Thu, 17 Nov 2022 19:44:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239716AbiKRAoQ (ORCPT ); Thu, 17 Nov 2022 19:44:16 -0500 Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7BD362078; Thu, 17 Nov 2022 16:44:14 -0800 (PST) Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.93) (envelope-from ) id 1ovp2t-000nxs-MB; Fri, 18 Nov 2022 00:15:51 +0000 From: Tim Harvey To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, Andrew Lunn , Heiner Kallweit , Russell King , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski Cc: Tim Harvey Subject: [PATCH 1/3] dt-bindings: net: phy: dp83867: add LED mode property Date: Thu, 17 Nov 2022 16:15:46 -0800 Message-Id: <20221118001548.635752-2-tharvey@gateworks.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118001548.635752-1-tharvey@gateworks.com> References: <20221118001548.635752-1-tharvey@gateworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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: X-Mailing-List: linux-kernel@vger.kernel.org Add description for new property ti,led-modes in binding file. Signed-off-by: Tim Harvey --- .../devicetree/bindings/net/ti,dp83867.yaml | 6 ++++++ include/dt-bindings/net/ti-dp83867.h | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ti,dp83867.yaml b/Documentation/devicetree/bindings/net/ti,dp83867.yaml index b8c0e4b5b494..8b84c34d389f 100644 --- a/Documentation/devicetree/bindings/net/ti,dp83867.yaml +++ b/Documentation/devicetree/bindings/net/ti,dp83867.yaml @@ -118,6 +118,12 @@ properties: Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h for applicable values. + ti,led-modes: + description: | + List of LED modes - see dt-bindings/net/ti-dp83867.h for applicable + values. + $ref: schemas/types.yaml#/definitions/uint32-array + required: - reg diff --git a/include/dt-bindings/net/ti-dp83867.h b/include/dt-bindings/net/ti-dp83867.h index 6fc4b445d3a1..ea3e17b27427 100644 --- a/include/dt-bindings/net/ti-dp83867.h +++ b/include/dt-bindings/net/ti-dp83867.h @@ -50,4 +50,20 @@ #define DP83867_CLK_O_SEL_REF_CLK 0xC /* Special flag to indicate clock should be off */ #define DP83867_CLK_O_SEL_OFF 0xFFFFFFFF + +/* LED_CFG - LED configuration selection */ +#define DP83867_LED_SEL_LINK 0 +#define DP83867_LED_SEL_ACT 1 +#define DP83867_LED_SEL_ACT_TX 2 +#define DP83867_LED_SEL_ACT_RX 3 +#define DP83867_LED_SEL_COL 4 +#define DP83867_LED_SEL_LINK_1000BT 5 +#define DP83867_LED_SEL_LINK_100BT 6 +#define DP83867_LED_SEL_LINK_10BT 7 +#define DP83867_LED_SEL_LINK_10_100BT 8 +#define DP83867_LED_SEL_LINK_100_1000BT 9 +#define DP83867_LED_SEL_FULL_DUPLEX 10 +#define DP83867_LED_SEL_LINK_ACT 11 +#define DP83867_LED_SEL_ERR_TX_RX 13 +#define DP83867_LED_SEL_ERR_RX 14 #endif -- 2.25.1