From patchwork Wed Mar 20 12:43:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: INAGAKI Hiroshi X-Patchwork-Id: 781450 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 783E242044; Wed, 20 Mar 2024 12:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710938828; cv=none; b=hKw2akhhHjqvPsUQSbUvT3GSz8M+76h6R0XuiCfo22MUR2dN/MACknK6cCkihuv6WP9BAGGiewkSmjmgPSfSD6+sGTOZBSAmWYe/vV9NmjLkOuhyovx2njqPaTh+Z5wkF0gP2gwLkFTExFrdvXfLPVxXigxU0gZyz8ISSCMtUuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710938828; c=relaxed/simple; bh=BIegYTxgCUmL642uUOJmvGfYd2woaDUQMqU7ZtbU4ZY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TIy+ykM9PvvNKPRnL0IPT09x9XTIjEbdvbib8Auw9qLaNrvAl9NhlgmAo5vaXu0MfmzKoZYBok52OyjwUceLDlFwp/bPzVj5Xy9tNkg22BcXk1DVkRSQbn5qC+XzV2hF4Zt4U7IVb7xr6Q+Yk+rDFKOkJzBUFuUuzX3xqXL6MKg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kG6a7LD9; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kG6a7LD9" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1dddbe47ac1so5929315ad.1; Wed, 20 Mar 2024 05:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710938827; x=1711543627; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vtrT0ozIVwCHyglNbp+j7sWA5HMQ1d8+p78zxo8eM34=; b=kG6a7LD92N7QmPy1qlx+4On2HmfiIG/v+70Kd/1/RYlyF7L38nUiDKOXp1QRw3AFLl h4U1GTYRy7ESk8MRyhsbkgCv5c8sVHfpKUbgrEW/pwm1qztLHVVDdXv/jDb/UZQmtQ5h Z1MeEduMxcHAo6Yf3bYG1zXakOuEAnA/mJbpHyzZbcxb0Lgix6KX7uI/iOTIql5X1DPz PmZqsHkRzYx/YKGM3CEavPUvyFAZsLyY2e0dejhgE+9NUE6Jdge2e1Xt8ku69KYzF4TU Jt9089wJS1GH5ewBK72+hQLlw2zt/nT5wKg10xxqFQ6/JGo8gIAgVmqCtjvlL0zclmPH hrCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710938827; x=1711543627; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vtrT0ozIVwCHyglNbp+j7sWA5HMQ1d8+p78zxo8eM34=; b=gtSs0ghFEjnOr2I360azWBalaT81EvGnwQxy3Sbkv7Lm5GWu5ejn3XR8ZrwLBcYitf 6a1QQwqEVJ8tebRU5x1DxWyB8rzv7hx4tadpVEDtUr2+GIkzSEhxvXfWIMJQMJ7ppIY0 nxWDj/9IaowEd/YAFFSXHs1ICtq9vON+CL+mg01PW0aUjRWMVgM9T4nQ4kBuoIFQLhcO +zNSL6zQBKaNK08neDfpC1Bo/nm2kCXiidQVd+8+9NbZQj/ZjpuV2VDMcwtjIpU/jbsM CbZc6Z9Pqjk/R4AV9GGdQZXCqjN/evk6xQMP6zZDHAeISos4HCHp7WuA7lsmGvcuL9dM f6FA== X-Forwarded-Encrypted: i=1; AJvYcCU8oL0sH6jt4lGhItThZT1RIKVutYoBvOam02xwtNjrE0ebAgYLldmxNdymmVd5L3tGfx6XqtsZawHeEkrBG/hDmsPQa651ySt9K6JqCG2+ShleaaV1OKAUbpLmGgRCADFXELPD4dZ5pQ== X-Gm-Message-State: AOJu0YxFZLSFLhGPT/6EHQKGz8gDK5dfp+hDOPrvDtuCV5QHnNS1dlm3 CALwf9zK5IXCoCJIh74Xjip4SDt0iHxkeR8HIWK/Gkw6OfqxISWZ X-Google-Smtp-Source: AGHT+IGPG6oBU+MflgHr+6erRXWLJ2KbmvR5FDzl0LJM/phy3jDFo3G1umGwmn06CX/6RlEEQMuVzQ== X-Received: by 2002:a17:902:cec6:b0:1df:f859:91b6 with SMTP id d6-20020a170902cec600b001dff85991b6mr3180169plg.34.1710938826621; Wed, 20 Mar 2024 05:47:06 -0700 (PDT) Received: from localhost.localdomain (FL1-125-193-23-126.chb.mesh.ad.jp. [125.193.23.126]) by smtp.gmail.com with ESMTPSA id s14-20020a170902ea0e00b001dda32430b3sm13441004plg.89.2024.03.20.05.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 05:47:06 -0700 (PDT) From: INAGAKI Hiroshi To: pavel@ucw.cz, lee@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, INAGAKI Hiroshi , Hauke Mehrtens Subject: [PATCH 1/2] dt-bindings: leds: add LED_FUNCTION_MOBILE for mobile network Date: Wed, 20 Mar 2024 21:43:16 +0900 Message-ID: <20240320124431.221-2-musashino.open@gmail.com> X-Mailer: git-send-email 2.42.0.windows.2 In-Reply-To: <20240320124431.221-1-musashino.open@gmail.com> References: <20240320124431.221-1-musashino.open@gmail.com> Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add LED_FUNCTION_MOBILE for LEDs that indicate status of mobile network connection. As an example, "Mobile" LEDs on IIJ SA-W2 indicate status (no signal, too low, low, good) of mobile network connection via dongle connected to USB port. Suggested-by: Hauke Mehrtens Signed-off-by: INAGAKI Hiroshi --- 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 ecea167930d9..d4b8498bde7f 100644 --- a/include/dt-bindings/leds/common.h +++ b/include/dt-bindings/leds/common.h @@ -91,6 +91,7 @@ #define LED_FUNCTION_LAN "lan" #define LED_FUNCTION_MAIL "mail" #define LED_FUNCTION_MTD "mtd" +#define LED_FUNCTION_MOBILE "mobile" #define LED_FUNCTION_PANIC "panic" #define LED_FUNCTION_PROGRAMMING "programming" #define LED_FUNCTION_RX "rx" From patchwork Wed Mar 20 12:43:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: INAGAKI Hiroshi X-Patchwork-Id: 781719 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E136142059; Wed, 20 Mar 2024 12:47:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710938835; cv=none; b=YpjIx9XYDsL9QAinzJoBN7uraqv4Q1DYagHfWFxkO6cKRr6te5ZFvuypYhHAqbdcqmgdaYP9p1HFB+q11HKzg9EG7L/rbBoqWsQb8uF2TTgs/4SDR1JbhapKGL7OHC+qQIzB9wUpdA3KTrrUaeE/R5Drs4PB1+8ZB6xqTshErMg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710938835; c=relaxed/simple; bh=PumoaNRhqeCdjNpmQ5E5KB9UvPgXpFhOYon1tT9ulRY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IvY9xFBdSKNrjPp+eslL95aOxxYdNDA9U5rtk/x+HQ6AAWqmrJbBWrKX8ZpEQSKyBL/zoNU1joa0ddg1cAJkeF4gRUa5b4dNiVCy0M8Le4UEZqZXWIsnhEFhWXG+K34muQsB2AtdWNiVDEOEM+uxWR3tbeJzJlRY0aKbYyWVZHs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FTBnEuEH; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FTBnEuEH" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1dde26f7e1dso48869365ad.1; Wed, 20 Mar 2024 05:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710938833; x=1711543633; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PvL7pYKBZmrZonfhNQXehwF3fRzkkMerkgdJSvSaFCg=; b=FTBnEuEHkn5790o6qmiW+ORfkqq2h1fw6DFfdSN2ZCVu/p+ATwMBCstdEvdbA3mSyk u1earSm4B7JOkPSOSYeNRE/4spx6HJHU4rMhLJgb85nZr8zDhGV51y/2wOfxNNEI+LLe SYepyHERWFwfOczKYxDmWZ5GtcOdbdHLlvw98qXxGjV5umeCGP8bnaw2ZyFSc0CQu1hC 28lOeFZ8RXXz35tyKLY49c6I+hInU5om09Dx0Hqiqh5Tb91VIUt1fkU/fsXdmNWlFX++ 8E3MSSGdpZNj5fix4TVqPD8gASHpLtzdM2peYcmHFJe/XKd227m/Y+GlQnM4DyfhSPSo b8Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710938833; x=1711543633; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PvL7pYKBZmrZonfhNQXehwF3fRzkkMerkgdJSvSaFCg=; b=SbkqEJamsY/fcG4eUKOUfA8evrwIhKkRNS7dPUwApAHCoCdSW0Vc1sX5B7YPCEcSl5 KCx+iVjTzWh9XfjFAKiVXjXE2C9l+vZg2EPVdBkVS+L0pLQd0MuuhrFbWyahIWU3Iwh2 WbOMmiUQutdmgXkuNaA0jcwecJkHCxU6Q+yl4tHkleEdBFnBSUo+PM5zEId8Cgzq2DhJ vH2wEf2Er3pDlOFDJTxLktRD5TWQL3yqJ7wayfCYTPOmOuKpvjtgerpe1fOsaGgVYJtr FUbaI/b2a+heqxcDlg6B/nPbHGqu2y7LIuDmGy2t4nV6Eb7gmVGpmAhrTKn7tiWPEyYP CqzQ== X-Forwarded-Encrypted: i=1; AJvYcCUqfJ4RUyAZjH5De8fDdfTU4h60UtR9q63KjjUJnuzB0LDsZ2sOvYjeWzXuY0GHdINWJhDDLNzvhR2YE7ZZUsUNwnH/z0zKClQ6Yi2sC5cKvo281fS26mvEy7NVt27IIBKSCCQt5HU8wg== X-Gm-Message-State: AOJu0YwphOFDBVPO3HL6K7WoxHiy87fmQYmbGuj96MlSqyt5VWgLSKyw A2hYTjnvwQXtl3MyuHQjH3IYyYNW+vOGKkvI49mDTBDnPRAslHIn X-Google-Smtp-Source: AGHT+IEodf+2+PLLFYFKLAGrcuTI/vflqdPXjP76rpdQGRo+VCLOUE7oJACuXm7ijLkmTotZPot1Yw== X-Received: by 2002:a17:902:ea08:b0:1db:55cc:d226 with SMTP id s8-20020a170902ea0800b001db55ccd226mr15814248plg.66.1710938833134; Wed, 20 Mar 2024 05:47:13 -0700 (PDT) Received: from localhost.localdomain (FL1-125-193-23-126.chb.mesh.ad.jp. [125.193.23.126]) by smtp.gmail.com with ESMTPSA id s14-20020a170902ea0e00b001dda32430b3sm13441004plg.89.2024.03.20.05.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 05:47:12 -0700 (PDT) From: INAGAKI Hiroshi To: pavel@ucw.cz, lee@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, INAGAKI Hiroshi Subject: [PATCH 2/2] dt-bindings: leds: add LED_FUNCTION_SPEED_* for link speed on LAN/WAN Date: Wed, 20 Mar 2024 21:43:17 +0900 Message-ID: <20240320124431.221-3-musashino.open@gmail.com> X-Mailer: git-send-email 2.42.0.windows.2 In-Reply-To: <20240320124431.221-1-musashino.open@gmail.com> References: <20240320124431.221-1-musashino.open@gmail.com> Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add LED_FUNCTION_SPEED_LAN and LED_FUNCTION_SPEED_WAN for LEDs that indicate link speed of ethernet ports on LAN/WAN. This is useful to distinguish those LEDs from LEDs that indicate link status (up/down). example: Fortinet FortiGate 30E/50E have LEDs that indicate link speed on each of the ethernet ports in addition to LEDs that indicate link status (up/down). - 1000 Mbps: green:speed-(lan|wan)-N - 100 Mbps: amber:speed-(lan|wan)-N - 10 Mbps: (none, turned off) Signed-off-by: INAGAKI Hiroshi Reviewed-by: Rob Herring --- include/dt-bindings/leds/common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h index d4b8498bde7f..8d446cf88b4c 100644 --- a/include/dt-bindings/leds/common.h +++ b/include/dt-bindings/leds/common.h @@ -96,6 +96,8 @@ #define LED_FUNCTION_PROGRAMMING "programming" #define LED_FUNCTION_RX "rx" #define LED_FUNCTION_SD "sd" +#define LED_FUNCTION_SPEED_LAN "speed-lan" +#define LED_FUNCTION_SPEED_WAN "speed-wan" #define LED_FUNCTION_STANDBY "standby" #define LED_FUNCTION_TORCH "torch" #define LED_FUNCTION_TX "tx"