Received: by 10.223.185.116 with SMTP id b49csp2089041wrg; Sat, 17 Feb 2018 11:59:54 -0800 (PST) X-Google-Smtp-Source: AH8x226KQg/KBx/jg4j8dKR4ZQyKrD8lFfAstBiLz9CwwBILrNH8jHD9eujnZaP75Vuv1CYXfgdV X-Received: by 2002:a17:902:b109:: with SMTP id q9-v6mr9731082plr.340.1518897594751; Sat, 17 Feb 2018 11:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518897594; cv=none; d=google.com; s=arc-20160816; b=w+1Cf/VN6pQWyKuiYNg+YyRAf/eyr03Qjbtpt8NxOUd4RxAdkumJtdbnA/bmD3EiBI ByEOnpnamIdIr9n9LIpuH7XzozRa0Q2PBEU3eonGkUiirNiJ9haRFBf7ojgWJSKbH5U/ v1QPT6jwXEYqCEMrhQfDAB9B3ik0s/0aEXkI3Js91b2ED3VsX9iavCa2jwA6c1HOL5Sz 43cdSDikG1N+NonbbWrLPay7tlF4jL7NgbOM8n9elKoxXVK2rZgwb6xdTnebkyuBvK+K ZkN7Pgtz2aoNmJ4hG+lBnTOLD/5Y6akYbwGOULVDjkugZOLozg02+ySOjc8OxKgD3sMs 4vWg== 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=ggFeX6qSzx/Z7Fju3nge+ax8sHXs/CYE+1qCG+bOcUw=; b=wtMQ1ZZWhbYgyptw9Fy3xw6E/Taz8n3tBXNG5siNZr3zBn7pp1nOuYGls/rllhoNx0 6l+7HwPNUHwGRJfDDKiSgQT9r95KCAqmp12SnIPWxUJeEzhL6L7Q1yRoYV54k+JA+gaq O7EOi42JaiIeVwz5nw52oxVodt/p6Co10aUKZwHsX48Oo+e1IKjX4m0vHQ60F1Z3KXs6 ROUvljUViRPbDbLEE/Gzi8sykhmJhFCEEqmzHxvBFLyn3E9bj/sO+xpcVf1AeQiipAGI tGdx7Lge/nKFQms5QeUizykbEbMvHd+qEgzYqQ2PDsVQxcgSkQOLZSFOCHaSeCW1AdhR lSUA== 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 v3-v6si3428814plb.522.2018.02.17.11.59.40; Sat, 17 Feb 2018 11:59:54 -0800 (PST) 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 S1751786AbeBQT6W (ORCPT + 99 others); Sat, 17 Feb 2018 14:58:22 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:18001 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751270AbeBQTzH (ORCPT ); Sat, 17 Feb 2018 14:55:07 -0500 X-UUID: 70c2f59c6cbf43fda434e2c1e40b1582-20180218 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1305155424; Sun, 18 Feb 2018 03:55:02 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 18 Feb 2018 03:55:01 +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; Sun, 18 Feb 2018 03:55:01 +0800 From: To: , , , , CC: , , Sean Wang Subject: [PATCH v3 04/15] arm64: dts: mt7622: add pinctrl related device nodes Date: Sun, 18 Feb 2018 03:54:39 +0800 Message-ID: <5bf0248c9c39ebe76b9790458832fc37b067b0d4.1518895232.git.sean.wang@mediatek.com> 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 pinctrl device nodes and rfb1 board, additionally include all pin groups possible being used on rfb1 board and available gpio keys. Signed-off-by: Sean Wang Cc: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 200 +++++++++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 7 + 2 files changed, 207 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index c08309d..fc8ef78 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -7,6 +7,8 @@ */ /dts-v1/; +#include + #include "mt7622.dtsi" / { @@ -17,11 +19,209 @@ bootargs = "console=ttyS0,115200n1"; }; + gpio-keys { + compatible = "gpio-keys-polled"; + poll-interval = <100>; + + factory { + label = "factory"; + linux,code = ; + gpios = <&pio 0 0>; + }; + + wps { + label = "wps"; + linux,code = ; + gpios = <&pio 102 0>; + }; + }; + memory { reg = <0 0x40000000 0 0x3F000000>; }; }; +&pio { + /* eMMC is shared pin with parallel NAND */ + emmc_pins_default: emmc-pins-default { + mux { + function = "emmc", "emmc_rst"; + groups = "emmc"; + }; + }; + + emmc_pins_uhs: emmc-pins-uhs { + mux { + function = "emmc"; + groups = "emmc"; + }; + }; + + eth_pins: eth-pins { + mux { + function = "eth"; + groups = "mdc_mdio", "rgmii_via_gmac2"; + }; + }; + + i2c1_pins: i2c1-pins { + mux { + function = "i2c"; + groups = "i2c1_0"; + }; + }; + + i2c2_pins: i2c2-pins { + mux { + function = "i2c"; + groups = "i2c2_0"; + }; + }; + + i2s1_pins: i2s1-pins { + mux { + function = "i2s"; + groups = "i2s_out_bclk_ws_mclk", + "i2s1_in_data", + "i2s1_out_data"; + }; + }; + + irrx_pins: irrx-pins { + mux { + function = "ir"; + groups = "ir_1_rx"; + }; + }; + + irtx_pins: irtx-pins { + mux { + function = "ir"; + groups = "ir_1_tx"; + }; + }; + + /* Parallel nand is shared pin with eMMC */ + parallel_nand_pins: parallel-nand-pins { + mux { + function = "flash"; + groups = "par_nand"; + }; + }; + + pcie0_pins: pcie0-pins { + mux { + function = "pcie"; + groups = "pcie0_pad_perst", + "pcie0_1_waken", + "pcie0_1_clkreq"; + }; + }; + + pcie1_pins: pcie1-pins { + mux { + function = "pcie"; + groups = "pcie1_pad_perst", + "pcie1_0_waken", + "pcie1_0_clkreq"; + }; + }; + + pmic_bus_pins: pmic-bus-pins { + mux { + function = "pmic"; + groups = "pmic_bus"; + }; + }; + + pwm7_pins: pwm1-2-pins { + mux { + function = "pwm"; + groups = "pwm_ch7_2"; + }; + }; + + wled_pins: wled-pins { + mux { + function = "led"; + groups = "wled"; + }; + }; + + sd0_pins_default: sd0-pins-default { + mux { + function = "sd"; + groups = "sd_0"; + }; + }; + + sd0_pins_uhs: sd0-pins-uhs { + mux { + function = "sd"; + groups = "sd_0"; + }; + }; + + /* Serial NAND is shared pin with SPI-NOR */ + serial_nand_pins: serial-nand-pins { + mux { + function = "flash"; + groups = "snfi"; + }; + }; + + spic0_pins: spic0-pins { + mux { + function = "spi"; + groups = "spic0_0"; + }; + }; + + spic1_pins: spic1-pins { + mux { + function = "spi"; + groups = "spic1_0"; + }; + }; + + /* SPI-NOR is shared pin with serial NAND */ + spi_nor_pins: spi-nor-pins { + mux { + function = "flash"; + groups = "spi_nor"; + }; + }; + + /* serial NAND is shared pin with SPI-NOR */ + serial_nand_pins: serial-nand-pins { + mux { + function = "flash"; + groups = "snfi"; + }; + }; + + uart0_pins: uart0-pins { + mux { + function = "uart"; + groups = "uart0_0_tx_rx" ; + }; + }; + + uart2_pins: uart2-pins { + mux { + function = "uart"; + groups = "uart2_1_tx_rx" ; + }; + }; + + watchdog_pins: watchdog-pins { + mux { + function = "watchdog"; + groups = "watchdog"; + }; + }; +}; + &uart0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 81207e6..8211bf7 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -147,6 +147,13 @@ #clock-cells = <1>; }; + pio: pinctrl@10211000 { + compatible = "mediatek,mt7622-pinctrl"; + reg = <0 0x10211000 0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + }; + gic: interrupt-controller@10300000 { compatible = "arm,gic-400"; interrupt-controller; -- 2.7.4