Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5817131pxb; Sun, 7 Nov 2021 21:12:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZeRyRqBkveVV89VE5bo+VM2A5I/y620daMzkvkcexbrWrz8AcmSEV/Hkb4nIn9fOgkMqh X-Received: by 2002:a50:becf:: with SMTP id e15mr105662305edk.114.1636348328487; Sun, 07 Nov 2021 21:12:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636348328; cv=none; d=google.com; s=arc-20160816; b=NliHu61tJSI9Gm847EUMRP2XWfQyBYrbVdJie6vAp+asw5jVbGuq0ghbTMZvmZrt6D eAhngvHxLixrlxTSaBoXT5gF27vUFk2vfkaG7Q/oMbAJKEQ7srEXivGOhFQoRofuQE0n IuyBmVs1gHWD3Y2X56eOwcyMFTU6qH7LOkMSenWVgu3epHQWL5KnnJ40mcQO0kBh2d6I Ohge5UOt5eqChz93T5Mb5UKbloM+y5e209CTpMIkFqUqPktGm1qf3OC8ldgLW3942DjS Pb7bCTfJGoDnmme8R5GSqOjgPbXoh1Z1b1roiy2t6zP1kSuppXmTON++MlF94BRizwH1 eRrg== 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=0HKqCgDTCY+2J8Qf1Kayus/TBPjnpMqSIEWYI1W7ln2uxJ7FMNdKzE5YdCtQVsmz8d O3Y6tqJktPVu8K+En67YQ246/i3Fk4HNoNrkRpowEThKq2q81lDyaCwuk4kecjli+LuQ 76F/q7/wLKaZsBwiOiHjuAae7GjKfPrHGaxLsD72nYWTRcinuMLbax+yKreNmgqt3oYn Y8OQFlsxCdblHaXiSfi44Xd/jmTJWMCljLsPj7r7BlLK0OSoEJVKhvYcdpWdkCfByW3B 9pqOOjhVeGtEqER7yvscljMX6dwTaU37hEdTWXL4aDTdSBbh07E04PmPSWaxc4lCkf2w YzJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PQf9IkCg; 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 k17si22946099edf.574.2021.11.07.21.11.45; Sun, 07 Nov 2021 21:12:08 -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=PQf9IkCg; 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 S236907AbhKHA2H (ORCPT + 99 others); Sun, 7 Nov 2021 19:28:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236824AbhKHA1z (ORCPT ); Sun, 7 Nov 2021 19:27:55 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62597C061764; Sun, 7 Nov 2021 16:25:11 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id o8so55585911edc.3; Sun, 07 Nov 2021 16:25:11 -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=PQf9IkCgbUfkwfSkTQ9cmvFGRVVwsMNE9Xg5lUXJGKHZtPH67mRBDLS80XrMBqdxW3 VQ0m0So5rQ3oTOp21xjT6FUfC8kf37o9bkiULvgQHagAAmZPIHPPbCSrWbFBEjlkaCu4 1AmzM6roYjsdsRj0Q9U+i2gUrbX/OfjksuYY3Fv607tgGSiNSJGFnKR+asNl/nKw4G3i ShGwK2HWodDj3FFLY54MmubjB8j+T5QYekye2MiGl5Gihj/UFwlbpq4mkj/MTeLfx0q6 IAvx2YwYOpPKsOJSqXo2r3glSov8XT7esWwobddnEFRHzVkHI2hNOpJBiChli+UdLZZr APyw== 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=WBGD2ifqIIMycS3bgFs7nBM5UXtJZgsWvSse7ygvIwXUU2wmX0ZQxlD/pLAuIrdWxZ FDwnXIguYSkKXpXhHpMDSExNJ6Mf/z7DwUxZtkzjklDXCZnShZH4K6PCoLa489GEHYcn 50m5suFTc7+L46in0BF+vvLTyDSZNTH5XJ7Z6LfSY9FPCdXE8P4XGQPSBhvyrBJGFKf3 HzvSgJOY+CiDyTfDYMkdOyOLpJsb3q19cWqLRH/s62Jm2IilMbISynF2npHPvu2nDtuy oIBNd1ovW4XNg32aUXWB15EOusUwe4rnP7wKUfclQnJ3CPcPkSTBy7j07sRj7dcspFNu hXCg== X-Gm-Message-State: AOAM533yQId/z8iRqdxIbbno9wN0CA0433zl8FkkYZk4U6bHYHnDQxpx cB/H0tHPCBNEuqdMOLtxYtM= X-Received: by 2002:aa7:c041:: with SMTP id k1mr101332405edo.330.1636331109888; Sun, 07 Nov 2021 16:25:09 -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 bf8sm8537878edb.46.2021.11.07.16.25.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 16:25:09 -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 Subject: [RFC PATCH v2 5/5] dt-bindings: net: dsa: qca8k: add LEDs definition example Date: Mon, 8 Nov 2021 01:25:00 +0100 Message-Id: <20211108002500.19115-6-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211108002500.19115-1-ansuelsmth@gmail.com> References: <20211108002500.19115-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