Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2814688rwb; Mon, 15 Aug 2022 11:54:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR6KAabclGJA1uyQ3jLRDj0uodcXQ3qvYayY9RAYjDYQgSrhuZFtJxU2KElbNhTJzyNC5+zX X-Received: by 2002:a17:907:2cd3:b0:730:d372:60f8 with SMTP id hg19-20020a1709072cd300b00730d37260f8mr10610137ejc.692.1660589653885; Mon, 15 Aug 2022 11:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589653; cv=none; d=google.com; s=arc-20160816; b=wW/JtVpI16hWQ+w3j8oiVv3lTs9LQ/3klWQtxlAX7hzw4xDdbtqYK36+B/8UPtTDPz HhyJLBUrKEQD10PC4BCORA7h+8lOpOUMnt6U+BOpE6Seoi3FLSVVlqImP1IeU4LMYE1X +hJRgFAaN9Nyc6C4EbzfVu454OPCf10QHlX27qs+jV4QrRo/Ifq42abD8r87mFtj2Z9S wcMXTfZEXKoTY/Ub7JHBSmgrXf0JZSQ82wGCg+Zeeu1lNiE934IAREfXfyJBU/l8rTVg aVTpo+SlRB/gdKy0dqY4ry/VGRERd3lu1SYqCz9jZ9fcdpU6XesvMZ8gtc+FSPjHltMP p2GA== 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=QudbBKEYCnRDQXJZwcDQ5+B85h/xuPxeP2UjSy3jcv0=; b=Wl/XvgOCne691dexOub+vxC8TDPwHK7LqNL3XprOQ4IFm+hrLEiTn4+tpzeyOZyBrL f6aAPEOkUQkv73p3yvGUCOwlNxAGU/FyFeTOW87YGQGu36A0EsV7yIQSWh16L9MeD/Cc zmdJ+A8Wwz3RULIc9FFUQJ8XY9Yooo11JHtfaA1R2weWnWjCCrthR7K0N5m07xLRYZ+T CFf1JcuiR6cRAoit521RSHKhcvOa6zKuFKsj+OT80jkWxRtJ8jnmczz4uDuE17Z6ZYa/ 7urI7J91A7i1m8IxEWAloFyie5+AX7h+yMDdsTJAa4Z7o7p6TtTKqpGPymSkyn/Gn2v4 aB3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DZX14rMm; 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 m23-20020aa7d357000000b0043d1c347df3si7560548edr.152.2022.08.15.11.53.46; Mon, 15 Aug 2022 11:54:13 -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=DZX14rMm; 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 S232646AbiHOSii (ORCPT + 99 others); Mon, 15 Aug 2022 14:38:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242832AbiHOShs (ORCPT ); Mon, 15 Aug 2022 14:37:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BEA12DA93; Mon, 15 Aug 2022 11:23:30 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2C022B81076; Mon, 15 Aug 2022 18:23:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DD4EC433C1; Mon, 15 Aug 2022 18:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587807; bh=N2RdsRIrM6WRIGT5nWpuL/jnQ9CZ60x4iAu8Qb1OEYE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DZX14rMm2Lvc85SBgJcmMutbbvUKM4cXGEsPjNmO+lsNHL7adLS3QkQF54A81q/+Y FHtTg/dP/EkKkDIA/UIhDlBBWtfmFKuffyQ6W2Rnjr+eMGa9pHazhwKcEsX0hAqjUV LymdsbgnsruXqBi7aQCFkyOcs4hANcYlJtQ05m1E= 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.15 202/779] arm64: dts: mt7622: fix BPI-R64 WPS button Date: Mon, 15 Aug 2022 19:57:26 +0200 Message-Id: <20220815180345.915947932@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 2f77dc40b9b8..6b99d903b479 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