Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6762967imm; Sun, 20 May 2018 10:04:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqnSgvPXOr+3JCK7CunVQN+AcuFI80+f2+z7erKiho+vhY9vYnU7Hhtx5ReuSVAmIyZJdER X-Received: by 2002:a17:902:5409:: with SMTP id d9-v6mr9363242pli.1.1526835878676; Sun, 20 May 2018 10:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526835878; cv=none; d=google.com; s=arc-20160816; b=uBFbW1i6kFeURlRGancROuWCrF8rI0iWu1fb+NiqdRSs6XrDtHYOnf8j3GHUONv45w hQsDAsHIlDqMvH61bV7xj31rL6v3bOJ4DprK2p++7zjhozY9uRjtgRRW1YRVv3b/Asmm 2kw3pdFjwMFdKUKwZYah2wWUB6IrItVW5ZdOocFK9OO3KFqDfQ6kBQsQQCrGgldd7Y0K GxppHZVUTQb5jGlTKvLf6Llhnw/hc8LMI2igy53cvsjtxOesasnYbntAM+ganTQ/8EmG KYBQDD0/yU9gGjZ9ub5HEUeVXdz+wGsLXGS835G4zIBOSMfpZoz9UOGOP+flOdzNn5W6 /l/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=4xwyqqNvSmG749RLVK1q4fnTvI7xdKWsBmGnSo86HAE=; b=gjrJqkbxpZo7wdwaPMo9zHioGDm/hTCyhvO11sZc6ZhNHvOBeGsPMa6TEdUnT5HlMk c5EdQD6TiKcZuNuqvAIwGQOz0CNOI5ERTtnIRNvxk21LwjQ40pJKpxsg4G2oIdr/Mhqd z5NSDK/wI6r/23QaJl8LktzoWT8RZ8f/A78ZYE5Z/aTxe1ZCYjW0YCV6fgm0KaeXRrsd OZvwqnMUVwzRZQYKIwMB1slZRLpGNMX5Y61asC/ObxUIPVl8P2sh3AvJqKSQnRFEyUot xrTfOHsjj02HVawXEBprf4OPbgq+/vlg9HS+NBA3k4Dq4q2o5M3bjCKbYBw+U+t+Xunt FBOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si9711294pgo.679.2018.05.20.10.04.24; Sun, 20 May 2018 10:04:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752637AbeETRCZ (ORCPT + 99 others); Sun, 20 May 2018 13:02:25 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47217 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751521AbeETRCT (ORCPT ); Sun, 20 May 2018 13:02:19 -0400 X-UUID: 41caa3c3a5824d9c9ed7d58f72e462e3-20180521 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1794921624; Mon, 21 May 2018 01:02:13 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 21 May 2018 01:02:12 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 21 May 2018 01:02:12 +0800 From: To: , , , , , CC: , , , Sean Wang Subject: [PATCH v1 7/7] arm64: dts: mt7622: add EINT support to pinctrl Date: Mon, 21 May 2018 01:01:53 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Add EINT support to pinctrl and set those GPIO keys as interrupt-driven keys. Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 2 +- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index b783764..1ff003e 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -34,7 +34,7 @@ }; gpio-keys { - compatible = "gpio-keys-polled"; + compatible = "gpio-keys"; poll-interval = <100>; factory { diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 9213c96..e2c5450 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -286,9 +286,15 @@ pio: pinctrl@10211000 { compatible = "mediatek,mt7622-pinctrl"; - reg = <0 0x10211000 0 0x1000>; + reg = <0 0x10211000 0 0x1000>, + <0 0x10005000 0 0x1000>; + reg-names = "base", "eint"; gpio-controller; #gpio-cells = <2>; + interrupt-controller; + interrupts = ; + interrupt-parent = <&gic>; + #interrupt-cells = <2>; }; watchdog: watchdog@10212000 { -- 2.7.4