Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp372580imm; Thu, 21 Jun 2018 20:50:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJXmOH5vipqIf/10KPlrtzvqw6UebuQGmobqkXd1p+/pbkr2Qm8eXdIFCoAp/1nz+AWCjzT X-Received: by 2002:a65:664a:: with SMTP id z10-v6mr18054535pgv.43.1529639455047; Thu, 21 Jun 2018 20:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529639455; cv=none; d=google.com; s=arc-20160816; b=RotliCZ+ix4nvhcAqyszSE9moVA1yS8Uuo3EVbMR4PuCfmX+DTurUagtQctVnBzTKZ wsnWWI48kIjysS8MTIdn/6EMpBXyVbUDX5hNzlKN/FqvKqg/r//Zu/NUQKxR/6muNY3m 22qjJk/WtF5cq00BMMPfHFzu05SQXLuqdgKvi7dL78zpM/IXvmPR1XiENHVj7QzIPFFw +tsV5Jf+ohT8GDiJR81xGiDxzm4vL6vouWoQcDfSTPrOFlu2sN+Qy07XJkoV4GCqqhC/ 8XDqo0CHJyCwFT0HHPVa/cFSiq4PJQYDh3CIYviyr5K788VHxLnSVQDikLzOwjcx+U0c GKIQ== 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=A8gOPusWj58/5nZxED8l0Nk12QJLAgQycRRe4OhFq0Y=; b=cZzYWHrlWIoeAgXVVAizAiX9MR/Q51CB8xGdnp08CWekysRxN4ojJ2WyNK8R5LRUiy e8XQCY7fCqOWLCdxKKOxe+/dReXg2qUREvfmaRbF9yrtmKYlPZVzer5SPXohxLAsFVCn e+xDj0kgtDdep48nDkxzOhKqf9099+1JHx9EGXB51EkWcTifNn6o9ojFXNoXyfLoMoUy sYoPgig/D5FHv+kPgeik6RjGFvX2NMFwOS4cCezv19klsrPNIU0d+LIzNnvl6N0/8nNW WK7fB97g77AQQF7QN5r24smM8W/LnBZZuT/P/EQD/NJ9kUSpzvtJEUXG0YlLdkXhFnns RcQw== 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 o10-v6si5506589pgq.545.2018.06.21.20.50.38; Thu, 21 Jun 2018 20:50:55 -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 S934460AbeFVDtf (ORCPT + 99 others); Thu, 21 Jun 2018 23:49:35 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:24161 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S934360AbeFVDt1 (ORCPT ); Thu, 21 Jun 2018 23:49:27 -0400 X-UUID: 094df0132f534a8ea98762f85ba07c35-20180622 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1273518767; Fri, 22 Jun 2018 11:49:22 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 22 Jun 2018 11:49:15 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 22 Jun 2018 11:49:15 +0800 From: To: , CC: , , , Sean Wang Subject: [PATCH 6/7] arm64: dts: mt7622: use gpio-ranges to pinctrl device Date: Fri, 22 Jun 2018 11:49:09 +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 Using gpio-ranges property represent which GPIOs correspond to which pins on MT7622 pin controllers. For details, we can see section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt to know how to bind pinctrl and gpio drivers via the "gpio-ranges" property. Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index e2c5450..50cb56c 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -291,6 +291,7 @@ reg-names = "base", "eint"; gpio-controller; #gpio-cells = <2>; + gpio-ranges = <&pio 0 0 103>; interrupt-controller; interrupts = ; interrupt-parent = <&gic>; -- 2.7.4