From patchwork Tue Jun 7 07:50:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1639836 X-Patchwork-Delegate: sander@svanheule.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=C7n67GNZ; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=svanheule.net header.i=@svanheule.net header.a=rsa-sha256 header.s=mail1707 header.b=iH1RX3y2; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LHN3C13HNz9sFw for ; Tue, 7 Jun 2022 17:56:23 +1000 (AEST) 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:References:In-Reply-To: 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: List-Owner; bh=5sClwFEAaubetEuID7KwjB3iZtvvsuI0TPOdgHzCMx0=; b=C7n67GNZJEJakT K5+Y0p4aMBbZX9UfTGQ4IkdzLVfI1DaXnPpRuPEw/G6C/mz6a46vbCEfKf9k/qQzQ38gP7hV7VObx hfIAKyKBzFcAkCJmvmMu0vrfQLmlDBooXQZu4eoGObVs/4wgWx4nnmWGF2N6jyT/dmFX+kqUtSNa4 B5WdQqnOS2amUUgsVKB3D49BvEnkV1I6ZyO2lwWURehxXOIQkdeK0FbKQosOy+UyNiHR4w3zKx/SU fAajQPs6v+DWJMmV7rSlNa492HpEtjK9lDjgg91DIuWLZN6Hdr5gixLIfiMt5kN4n2LiTOSG1SpRl JZOsMwNVBL1LW2tvfiaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyU2b-005cbw-V0; Tue, 07 Jun 2022 07:54:18 +0000 Received: from polaris.svanheule.net ([84.16.241.116]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyTyu-005aqB-2C for openwrt-devel@lists.openwrt.org; Tue, 07 Jun 2022 07:50:31 +0000 Received: from terra.. (unknown [IPv6:2a02:a03f:eaf9:8401:aa9f:5d01:1b2a:e3cd]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 89A5F2E3F8D; Tue, 7 Jun 2022 09:50:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1654588225; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zPXM2OHOEpaxlVaFpoo7sICwwkznkcaR3Fv2lOkiXKI=; b=iH1RX3y2uhD0AbjCLpaJUm2dAbl9HuOH2d3fi3UhyanBUT2RG6RVIslxhe6VAyhCK+1pog sT2K++946Upo8a5Ob11wVE4RLvB0jOoU/Ok5BZkj2PpPWRXJk55ktYHCYrcDQtIxy77fuv 5TnPnPx6DokCK8oE0oczH2wrj2aZuFzHcRS2F12WcVJKLDMAOTAD0gslcDqoYb+5BsXoFk D4mX8s3Dly1H42jCHwbRITTVhSzOUChxzye8lraq4UrZ7voy3PZOaYCLax9+ZGKrBMj6Gy HEy/sHYlCfs4ZW0rxXwqaNIMuo1CHW/Y+R/YttAUzBPqhI2YnBg75TVULEnleQ== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Jan Hoffmann , Sander Vanheule Subject: [PATCH v1 4/5] realtek: add system LED for ZyXEL XGS1250-12 Date: Tue, 7 Jun 2022 09:50:14 +0200 Message-Id: <1e902b1dc77f1a14250f0caa9fa81038bb9fd749.1654587762.git.sander@svanheule.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220607_005028_310616_652158B6 X-CRM114-Status: UNSURE ( 7.80 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The devicetree for the ZyXEL XGS1250-12 was missing the description of the front panel LED labeled "PWR SYS". Let's add it so it can be controlled by the user. Signed-off-by: Sander Vanheule --- .../dts-5.10/rtl9302_zyxel_xgs1250-12.dts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [84.16.241.116 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The devicetree for the ZyXEL XGS1250-12 was missing the description of the front panel LED labeled "PWR SYS". Let's add it so it can be controlled by the user. Signed-off-by: Sander Vanheule --- .../dts-5.10/rtl9302_zyxel_xgs1250-12.dts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts b/target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts index d8164fd5c22d..a57fc00c6e9f 100644 --- a/target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts +++ b/target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts @@ -5,11 +5,19 @@ #include #include +#include / { compatible = "zyxel,xgs1250-12", "realtek,rtl838x-soc"; model = "Zyxel XGS1250-12 Switch"; + aliases { + led-boot = &led_pwr_sys; + led-failsafe = &led_pwr_sys; + led-running = &led_pwr_sys; + led-upgrade = &led_pwr_sys; + }; + keys { compatible = "gpio-keys"; @@ -31,6 +39,19 @@ clock-frequency = <100000>; }; + leds { + compatible = "gpio-leds"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinmux_disable_sys_led>; + + led_pwr_sys: led-0 { + label = "green:power"; + color = ; + function = LED_FUNCTION_POWER; + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + }; + }; sfp0: sfp-p12 { compatible = "sff,sfp";