From patchwork Mon Nov 16 06:06:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DENG Qingfang X-Patchwork-Id: 1400655 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mail2.sysu.edu.cn Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=FqCSitqa; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CZJbf6pBlz9s0b for ; Mon, 16 Nov 2020 17:10:54 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; 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:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=odebe3W3pgYEvRwfIDCKRwOjyOb5I8Vb9h/JII1vbjM=; b=FqCSitqaiwSf961n3UCoUe+n67 tMHBhXuA77K3JxGvtyxyM3yPXBOu8Vri5A3ZXsFKKtNAW8XUFOxEWnJGo15cUQCKkZFenhmZe+yST 9ptUFdYKweEEpEqvruMr7l1CrCsolnkxn2PPtO8u+uSiMxCz0QLLZqbeyzc7j/fqAxbPqvwkf9Tgy 1phG4A97vy9fQNmmWISo47HK3PuYRu3No5eI1PQyxg0O/P23kv2+ntFw7jIoXa1atNdr7Rtm0kS9l sGG0DDLjC81MMEsIvyuLPyCzeK5nVyU/+tI7y+/6Q9jd1JwkCRGVEA75ZUSMDe5Eh0oHK1y/kd9/i v69fwImw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1keXgP-0007ve-Ky; Mon, 16 Nov 2020 06:08:09 +0000 Received: from smtpbg554.qq.com ([183.3.226.186] helo=qq.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1keXgI-0007uE-W4 for openwrt-devel@lists.openwrt.org; Mon, 16 Nov 2020 06:08:04 +0000 X-QQ-mid: bizesmtp20t1605506773t69vz7oo Received: from container-ubuntu.lan (unknown [171.211.28.125]) by esmtp6.qq.com (ESMTP) with SMTP id 0 for ; Mon, 16 Nov 2020 14:06:12 +0800 (CST) X-QQ-SSF: 0140000000800080K000B00A0000000 X-QQ-FEAT: Od4MAatqQNb9LMzsVI7PPm0Merht/m2l/Ls9qHt6KHrexkEJYL3a7mxOCzB8Y LILizPthz2nUhyp101SfNzSPAPjP5spQ4HoI2B9Awb7kNVOKkvhPMrvy62Fk1aBWgkgMzsH mtSQccRqIKIEBAiZM8I59v4vKlMHFcTtTPQyU6sSn01yWEOzoW5Z22xyU70cgjzeDziWbt8 ox1Iiyf2jMcZnmgwZmaQ23uMnM9L/IpkrbD3fHL/3ghLU1yhs2L0DeUuAT+i2gkVEyKE1GT lUGka9aojOqZc1ZlJbJBEr1+jWJE/3Qm6b+NJlpcJrpCDhtT8o2odY3jgplB2sghDHtQA0F uXvbXslGCTJfN+AuuM= X-QQ-GoodBg: 2 From: DENG Qingfang To: openwrt-devel@lists.openwrt.org Subject: [PATCH] ramips: mt7621: fix Telco X1 GPIO switches Date: Mon, 16 Nov 2020 14:06:12 +0800 Message-Id: <20201116060612.26135-1-dengqf6@mail2.sysu.edu.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:mail2.sysu.edu.cn:qybgweb:qybgweb11 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201116_010803_504686_B4B35C3C X-CRM114-Status: GOOD ( 10.07 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [183.3.226.186 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 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 GPIO base of MT7621 GPIO 0~31 is 480 on kernel 5.4 Fix the GPIO numbering. Signed-off-by: DENG Qingfang --- .../linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches b/target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches index f809df7f2f94..82bbdd24f674 100755 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches @@ -11,7 +11,7 @@ mikrotik,routerboard-760igs) ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "497" ;; telco-electronics,x1) - ucidef_add_gpio_switch "modem_reset" "Modem Reset" "16" + ucidef_add_gpio_switch "modem_reset" "Modem Reset" "496" ;; ubnt,edgerouter-x) ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "480"