From patchwork Fri Dec 2 13:55:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan-Niklas Burfeind X-Patchwork-Id: 1711428 X-Patchwork-Delegate: mail@david-bauer.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=) Authentication-Results: legolas.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=PVl/WRiJ; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aiyionpri.me header.i=@aiyionpri.me header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=m2AnZ6l2; dkim-atps=neutral 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NNvds3nFtz23nB for ; Sat, 3 Dec 2022 00:57:37 +1100 (AEDT) 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=qkzBcIz+pvjfFVNFMyd64l0fln+4bnkgyXHA0aXLtMM=; b=PVl/WRiJvemdUG ATfNc/TI8kGWYpWkuYMOJXlYxPDPbL2JRENfa8bM5S1X0MyYHf8j1nux19NTD8bMKCJz2P3IgzdHI oF8008f42RttlquDaF0GOUFr8k4X9WS/7kboxgKH8zuscoOt+LrJav6cUXFuxXiejacNGnXpI+xHh EN0GbiANJaE7uHaMk8d12+DHvcVWDZ0GQg4V/mNTsf0GxEkC45gJ22GifhdAemXUE4l9HbecMGB1V 4GL58ccrZ+DW0xdA2xavPkunfHso6yyiyJ5w/xUcwVsQ/Yyw7oidnTYXN9Nla+CbFogTRVhLdViCy z0oQ53/fA1xifl8E7hbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p16Vt-00Ghms-86; Fri, 02 Dec 2022 13:55:37 +0000 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.162]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p16Vp-00Ghln-AI for openwrt-devel@lists.openwrt.org; Fri, 02 Dec 2022 13:55:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1669989327; s=strato-dkim-0002; d=aiyionpri.me; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=Du+p9s8mDLb0QN2xfWOsgx9ETu5sE54p9olyScuSpD0=; b=m2AnZ6l2YCzXKS1sWqj30P6t9Y6wD4zdY39ZpMYqPYqGZ7dDC18Xz478D5aFohwy78 bzN8P0LdNcbUCpOR/dDAq9u5rBclLyxOwUnHpDUiIE6Y+DPdZtdlnnLS12TeFRf5cPvv q3ABodYVfDOmiH8HtmacKuTLQifnQ5UADMUBoPpMNL+xe70LCY6+SrPZyascJwIL69r9 sRiD9gtee9N6kQ3LFrg5p6iY00KTqUgSimJc0/e1oTr9wgJOQkZY3v8y8g28H+N7fcbQ wkPy19O9V/m69FgQOPuHx8KOptYnWQG/OggFAW08IVnvC0ghcGboYHnNftodhs+OQP/U qEwA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":IWkkdEmxcvCtRDtHUQOu48a0Nfy9hOkboq9r6d0vrgVDHZTjCI2AM0yZX6WZJhCkHZRFuMg8nf1JZWzjimAMob71EzNjeiJB/qnKpQ==" X-RZG-CLASS-ID: mo00 Received: from chromia.fritz.box by smtp.strato.de (RZmta 48.2.1 AUTH) with ESMTPSA id qba3cbyB2DtRKOK (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 2 Dec 2022 14:55:27 +0100 (CET) From: Jan-Niklas Burfeind To: openwrt-devel@lists.openwrt.org Cc: INAGAKI Hiroshi , Jan-Niklas Burfeind Subject: [PATCH] realtek: update GPIO bindings for DGS-1210-10P Date: Fri, 2 Dec 2022 14:55:16 +0100 Message-Id: <20221202135516.4065670-1-git@aiyionpri.me> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_055533_611296_0E02F6EC X-CRM114-Status: GOOD ( 11.04 ) X-Spam-Score: -0.2 (/) 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: add three missing LEDs - PoE-Max - Link/Act - PoE add two missing buttons - mode - reset The last was dropped in commit 61a3d0075b15 ("realtek: update GPIO bindings in the dts files in dts-5.10") Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [81.169.146.162 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an 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 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [81.169.146.162 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 add three missing LEDs - PoE-Max - Link/Act - PoE add two missing buttons - mode - reset The last was dropped in commit 61a3d0075b15 ("realtek: update GPIO bindings in the dts files in dts-5.10") Signed-off-by: Jan-Niklas Burfeind --- Hello everyone, I just tested the missing GPIO assignments for the DGS-12-10-10P and verified the three LEDs as well as the reset button are working. The mode button should work, as its adress is 481 compared to resets 484, but I haven't found a way to test it yet. Thanks Jan-Niklas Burfeind .../dts-5.10/rtl8382_d-link_dgs-1210-10p.dts | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts index 7ab37aaa9f..16934ede3b 100644 --- a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts +++ b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts @@ -11,12 +11,34 @@ compatible = "gpio-keys-polled"; poll-interval = <20>; - /* is this pin 30 on the external RTL8231 (&gpio1)? */ - /*mode { + mode { + label = "mode"; + gpios = <&gpio1 30 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { label = "reset"; - gpios = <&gpio0 94 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 33 GPIO_ACTIVE_LOW>; linux,code = ; - };*/ + }; + }; + + leds { + link_act { + label = "green:link_act"; + gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; + }; + + poe { + label = "green:poe"; + gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; + }; + + poe_max { + label = "yellow:poe_max"; + gpios = <&gpio1 27 GPIO_ACTIVE_LOW>; + }; }; gpio1: rtl8231-gpio {