From patchwork Fri Feb 23 11:22:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13568921 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E8BDC54798 for ; Fri, 23 Feb 2024 11:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=MIDoYSlpnhkDWsPdBmo2kNP/4BR7i2BSgpXXxrjOxXA=; b=iiGoW9hDU4YW2A Nrb7HSpUrNMl0hOWQpYUCBJZQG0qe+khq6IVPe+PdZClI9M4X8ut0xsDBNvT0irXWz23o1VAVS+3v QvCBt/QqlussSQCmvG6PJ2UZ66m7KtnMep2iNybPYIqSxQy2qCCSJiUH6NcO3JFUCVSKl6ymxSQJn VcNLQp1Dd7lp6R1TuSZ39widA49xzTRKADItcqDuL8IaMgHW9BzY3eu/Bh9OHtNAVWC2EKcRElFPz POCsV6BhSreJKsIqcc23Yr7RUfJS/ZfZ3C9etqxRGp4Cf2UuRdHQ40rKzJtBapMMdqdrXyC8yorRZ rlwHEwBhinYC+N5yaelw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdTeR-0000000969W-3kEv; Fri, 23 Feb 2024 11:23:35 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdTdY-000000095yc-3XGt for linux-arm-kernel@lists.infradead.org; Fri, 23 Feb 2024 11:23:18 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5654621d62dso681251a12.3 for ; Fri, 23 Feb 2024 03:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708687358; x=1709292158; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UkDOlwqdJKpgBN8ZxM5dkFMSj6BTyDau6P8LZmuFdvk=; b=URH/Zwz8YxO102y1TNlR7c55P09m8RFxy/D2jxwLWmDYARDG5PvuKDQAmBE3CKw1EG 1qPHM8aUnHwOePrhwEFKQUR8MGgUw+vTAECDY75X5EfJNoOidOy74GBgDjXgzhEKqEkY 50onoSq0jBhTjkkR0afLL+3xQhLl00gwC10G8Iqr74y7pP7n8HMTthvqS1UepQIHiNhG 9OU87w5cDNYN8U5Q31ZQvNe4vG7dEFDyvjhZgtVpXML2XdVtfyPGstYxVbYQ51XjxLTl srj4nrmw7OnoBgTpqs6LFlezhONp6O+iIvugDcr1dOeqBFJufGiDGO1sNp8R74oM8dpf r8vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708687358; x=1709292158; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UkDOlwqdJKpgBN8ZxM5dkFMSj6BTyDau6P8LZmuFdvk=; b=IUuFfKGEmmGh4aauyyR1WLE1TGVU7EULS2JaMllWdQ9Tp40uAb1wpIteI7tdMonKPy xeKp82dAze191d+ITe84We0+ILzDyuS9rOaqlTMSPkq0F+4JzXQ7KXwaHcg+ACCMQu2z eL6jFXFFFMztMJfLjcLa7SR9mdSSSTTcmlC4EipMaL8ELLrm18dGJSwwqLGlNwNuTJmf MeA1yriH//bx603gPz8sfsV1d/IqrAfi9bzRrNzPB07o42DkA0NsabhDwIBQ10/W1qIc YGwfx2aUXGBF2pp1WBpOPC678t5JlpYQ9536dme4pLB+0BtqNF8yzyEVgkTxbaoU2vDh y9Uw== X-Forwarded-Encrypted: i=1; AJvYcCW8InWp8d50iCwS6a0im9X9htfEjLhm12oXzxietRoBHau32UOHE9BtE8HQJ1McEuW6JHZ6/miHOEwFQRiQ7MwWj1JvREAjg7B7ibw5/qOP2IYU+ew= X-Gm-Message-State: AOJu0YzlCyRMJTIG0XWBO2XL+ziJnVqsnQ608TfrqCA1td/AcK0OMTzU 36aQmlxP4Vj6h/xusDSbflDdZdwyWHRbix1CIbW9OLbQHkdXSef8 X-Google-Smtp-Source: AGHT+IFZW7dV98KKwCf84FGK0/EQszkPfkxlwIa3iHUC9ZlPt9zPVQjeD12dAL2y7Blnw8IOmLtBfA== X-Received: by 2002:aa7:d958:0:b0:564:5227:972 with SMTP id l24-20020aa7d958000000b0056452270972mr1045362eds.33.1708687357745; Fri, 23 Feb 2024 03:22:37 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id f23-20020a50a6d7000000b0056392b7d85fsm6776984edc.9.2024.02.23.03.22.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 03:22:35 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: AngeloGioacchino Del Regno , Matthias Brugger , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] dt-bindings: leds: Add LED_FUNCTION_WAN_ONLINE for Internet access Date: Fri, 23 Feb 2024 12:22:23 +0100 Message-Id: <20240223112223.1368-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240223_032243_600982_5D343EA8 X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki It's common for routers to have LED indicating link on the WAN port. Some devices however have an extra LED that's meant to be used if WAN connection is actually "online" (there is Internet access available). It was suggested to add #define for such use case. Link: https://lore.kernel.org/linux-devicetree/80e92209-5578-44e7-bd4b-603a29053ddf@collabora.com/T/#u Signed-off-by: Rafał Miłecki Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Linus Walleij --- include/dt-bindings/leds/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h index c56785bb9c9c..ecea167930d9 100644 --- a/include/dt-bindings/leds/common.h +++ b/include/dt-bindings/leds/common.h @@ -100,6 +100,7 @@ #define LED_FUNCTION_TX "tx" #define LED_FUNCTION_USB "usb" #define LED_FUNCTION_WAN "wan" +#define LED_FUNCTION_WAN_ONLINE "wan-online" #define LED_FUNCTION_WLAN "wlan" #define LED_FUNCTION_WLAN_2GHZ "wlan-2ghz" #define LED_FUNCTION_WLAN_5GHZ "wlan-5ghz"