Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2928022rwb; Mon, 15 Aug 2022 14:13:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Ab+4dB4Fd1EazE364Q/Du1yCrqxQM64kDPIUzUWC7WKATCuawBwJ7L5m+NiwigUcF77Id X-Received: by 2002:aa7:95a8:0:b0:52d:4185:198d with SMTP id a8-20020aa795a8000000b0052d4185198dmr18394437pfk.65.1660598012468; Mon, 15 Aug 2022 14:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598012; cv=none; d=google.com; s=arc-20160816; b=lI216OhtsGm7aK/rSNzVbxySn6T3j6T7I/SA1PkxDcqQQR+GoeYWq4IbSQgF04788c nJtyg1FmhbCmuxM2C0azOBBJSQqki45XQMDyNvQaLPYNnqb83HqZABF5WCUI3Hnk3g6C vOyZVsZQPWV/CDUCMlU9hTMPV/WQcbQg7aFXcEG/qmmwbHiFkzm6g4EXeCfKO5cV0H6T mXb0Tg815br9LH17gZynr+RNm/JAgHMMSu8dZGW9Of6cizcBJ91Ua05GvVgZHpLY1/hl 79UTs3mNsM4IdFWR6GMpjg5h49dDHWMyIh4DYHYv61HgWO+7mV5JOAnqhPuzzwch5nK/ Vq6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=A9oVzVzBBSmzZVggGUL3J8Qfb/J34oSUQWlK3rBM7TM=; b=rl0v3pe/L0q/GHJUbFIL/n7iIjJPOKr14FRlZd1w9rxHBze2ekhJJHUi6mLvUIMfh3 jGCXDd/7p89pr7zlNaiK7A/pAk+3ow+N7n5Ke9C9AiupCkaD4HqYLI268B5jnDCi1JAr oCeHoks/T/U3OgQhmr5XfTMCvw33iWus66Ii84svIN1DAN4pv0A6rTiaB5Ug5ezfZPcr 86KlW/7EBlU+qrauhdy7g/cT9VPsFf/bpcocPSVNiWhHFr7vwYTIKjTmCPfD/NNJo6wd HUNYNVuMFb0AxQbKIIeqLmQ/PDaFSdsyTfoSPop4t1k3VL4eGnA625pqm26nE4VWOsiE N0kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vaxvNLAu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ng11-20020a17090b1a8b00b001f021b4f1d5si20115406pjb.1.2022.08.15.14.13.21; Mon, 15 Aug 2022 14:13:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vaxvNLAu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345022AbiHOUn6 (ORCPT + 99 others); Mon, 15 Aug 2022 16:43:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345716AbiHOUkV (ORCPT ); Mon, 15 Aug 2022 16:40:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94394AF0F5; Mon, 15 Aug 2022 12:07:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CA2C761281; Mon, 15 Aug 2022 19:07:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D87F9C433D6; Mon, 15 Aug 2022 19:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590443; bh=wx3Pqq+F2h2jfSI8/LFoPCkQS2DBaKaEJmT2ns3U6iY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vaxvNLAuhysmiUBxDU3CL44Rm9Fzrpxp1DbTq8Fc0c8Msv2bkK7L6+2onJpLH0YcS qULJSh8I7GdC5UKG7MhuDZDdgcrNezrMZF84b3aX9FaXbo9lpJOuUPx521nbW7SuLx syFzRGLyTEcQcbO2AAoUWcAXwy47IaKhHsTSStKg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, INAGAKI Hiroshi , Nick Hainke , Matthias Brugger , Sasha Levin Subject: [PATCH 5.18 0260/1095] arm64: dts: mt7622: fix BPI-R64 WPS button Date: Mon, 15 Aug 2022 19:54:19 +0200 Message-Id: <20220815180440.497785898@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Hainke [ Upstream commit c98e6e683632386a3bd284acda4342e68aec4c41 ] The bananapi R64 (BPI-R64) experiences wrong WPS button signals. In OpenWrt pushing the WPS button while powering on the device will set it to recovery mode. Currently, this also happens without any user interaction. In particular, the wrong signals appear while booting the device or restarting it, e.g. after doing a system upgrade. If the device is in recovery mode the user needs to manually power cycle or restart it. The official BPI-R64 sources set the WPS button to GPIO_ACTIVE_LOW in the device tree. This setting seems to suppress the unwanted WPS button press signals. So this commit changes the button from GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW. The official BPI-R64 sources can be found on https://github.com/BPI-SINOVOIP/BPI-R64-openwrt Fixes: 0b6286dd96c0 ("arm64: dts: mt7622: add bananapi BPI-R64 board") Suggested-by: INAGAKI Hiroshi Signed-off-by: Nick Hainke Link: https://lore.kernel.org/r/20220630111746.4098-1-vincent@systemli.org Signed-off-by: Matthias Brugger Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts index 2b9bf8dd14ec..7538918c7a82 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts @@ -49,7 +49,7 @@ factory { wps { label = "wps"; linux,code = ; - gpios = <&pio 102 GPIO_ACTIVE_HIGH>; + gpios = <&pio 102 GPIO_ACTIVE_LOW>; }; }; -- 2.35.1