Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1070486pxb; Tue, 9 Nov 2021 04:46:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvLGUOrDbjSX4ceXIml+Wq0SYSvb3gvwK0cPPJb/5Zeh1GogkfhJMkBumSAgk9V7uK3+oC X-Received: by 2002:a17:907:8a24:: with SMTP id sc36mr9031032ejc.530.1636461989966; Tue, 09 Nov 2021 04:46:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636461989; cv=none; d=google.com; s=arc-20160816; b=xFbMSn1PM9sUS9y8Zv61ZHKOLd3S3qDwSwvT82ofn63S7WJUhMEtQnzgSUc3Fg4I6x orvtenw4zJrqE/8UG+siHaDrA86A30Bv7dc7CExbr59sqEOisA3QsdVDPaJ80WvZN45T ujcsfb+P0wetCDkN7pVpUPU8LSfIEa0EVhrrK12sNbcFCaj74GTdwNhbYprzd4AIVX15 mmBQTd+nFSMG6KTuYhdR4EsaKQKXjWIKMQhU471cg+1DPj0hotOFr0bol09kaH3+sa9s h0mkeFlB3NkefNYIfIiaWBI5ZadcAaaHnRpHu4yrvZhwr5N7zYGWAmnwIgC4q88dd2WF tf3g== 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=mrT39HXhsvQIv884aQ7FKStKCV5fQEcK++rSuH4MPzo=; b=kLSpaQqkSYm778Qhy2+SZX6gzZ/l0jxGxbUIibrIzrJflYB7pbjuGdnvwSvU88AXM/ Pd2NUUOnPg7plhNVq+dULXEqzyzwZv81/IZ5RmMS95L9W/MEpNKTM+xcUgEtdQNwTJ8h 7Nwlb8zwIyhqN+gwVQ9Qaw4XlQa3p893NsPTdD5a8cKScuZcmzKT7h3H0hQGfPGvb1ru WVf0GWXQ/MQh6BCV4gDzrwaAdj6STYEqCP3z9wpKy+25w/jax0Rpr5gWye3El81tSV2c T11YmJY3pzDnU1VOYCQkts7TpR2XAT3GrbqbkYiDuLdKcpmycZOqUZaDOt3dKnfAaay6 Ggcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TtLZw0cK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lh2si14993883ejb.206.2021.11.09.04.46.04; Tue, 09 Nov 2021 04:46:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TtLZw0cK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S240089AbhKIC3n (ORCPT + 99 others); Mon, 8 Nov 2021 21:29:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241602AbhKIC3K (ORCPT ); Mon, 8 Nov 2021 21:29:10 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC83EC061224; Mon, 8 Nov 2021 18:26:24 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id g14so69814924edz.2; Mon, 08 Nov 2021 18:26:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=mrT39HXhsvQIv884aQ7FKStKCV5fQEcK++rSuH4MPzo=; b=TtLZw0cKGccSEVuFq/ci2LfNq61NfHPpsdi/btVt0vocMNp7RvPxb1NweLVfLV26qu AP1dascAnKp9lbt4R7Lkz2Uiqv67q7bU+k+H9J7WTMWHLuIIwbWrlP2DgbgzOit+8Yb2 pnqbOLAXRr6rcSjACgmU6Vc8HlH/aSn8X8qozTBsW0tFkm0Q+rQUL4RG9yM0D7FWhrJQ dngdZ+DovbJaoWEUfteVxHajaJpTewt+84q+M183xwZZ3T4HI6jKNsUhmOvlKg3edc4F 1isyB0HZ1fWlade98AGS+W5R6icPtavNZ38ACxoooRTHLTReUoiIGUDS+VT2o45BWugg /p8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mrT39HXhsvQIv884aQ7FKStKCV5fQEcK++rSuH4MPzo=; b=yvOCdV1XBeGUQEXINSs5VQwA9Lr6Q80CTYmz5wh2d1ikTIhZY10IyZXTQPlx85bb3X wca4nFVq2Sbt9KiQb7ezVWyUOGsez7vbwhk+ff9Z3UkpNXgqFe7i8G+BNGp+atxIKZFa 7bkKspZsEjcLdYmz75i6F901k5cvsY6zLHUN2EEqDaReGntZrvg/N8XZfL50XEC4IPad UCWzvX68tJMrU+mdvtWat6wuo+0LIjAKx5tgbJANIyLUlOLPIogz9iVwOrNOGbV1msR+ 1HDXm8z83KH9jljyI8SZ0Y0ST7BzA774L4yw53cKxuDhUTYkQackopFRVtJyL38uYfT0 mQ1A== X-Gm-Message-State: AOAM532D2S/g2W8ym/XddbfNQrwp+XQ6YmjVcH7zaIG1VFqdAOyZkRVo ZQOQcwZ4QpZZR69KFRv9sMBuHPzU7sU= X-Received: by 2002:a50:d4cd:: with SMTP id e13mr5213578edj.29.1636424783388; Mon, 08 Nov 2021 18:26:23 -0800 (PST) Received: from Ansuel-xps.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id m5sm8760900ejc.62.2021.11.08.18.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 18:26:23 -0800 (PST) From: Ansuel Smith To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Jonathan Corbet , Pavel Machek , Ansuel Smith , 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, =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [RFC PATCH v3 8/8] dt-bindings: net: dsa: qca8k: add LEDs definition example Date: Tue, 9 Nov 2021 03:26:08 +0100 Message-Id: <20211109022608.11109-9-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211109022608.11109-1-ansuelsmth@gmail.com> References: <20211109022608.11109-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add LEDs definition example for qca8k using the offload trigger as the default trigger and add all the supported offload triggers by the switch. Signed-off-by: Ansuel Smith --- .../devicetree/bindings/net/dsa/qca8k.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 48de0ace265d..106d95adc1e8 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -64,6 +64,8 @@ properties: internal mdio access is used. With the legacy mapping the reg corresponding to the internal mdio is the switch reg with an offset of -1. + Each phy have at least 3 LEDs connected and can be declared + using the standard LEDs structure. properties: '#address-cells': @@ -340,6 +342,24 @@ examples: internal_phy_port1: ethernet-phy@0 { reg = <0>; + + leds { + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + linux,default-trigger = "offload-phy-activity"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + linux,default-trigger = "offload-phy-activity"; + }; + }; }; internal_phy_port2: ethernet-phy@1 { -- 2.32.0