1 From 927c736a1a169713cd59140db5e82f8ed11dad60 Mon Sep 17 00:00:00 2001
2 From: Sean Wang <sean.wang@mediatek.com>
3 Date: Fri, 29 Dec 2017 11:06:52 +0800
4 Subject: [PATCH 212/224] arm64: dts: mt7622: add pinctrl related device nodes
6 add pinctrl device nodes and rfb1 board, additionally include all pin
7 groups possible being used on rfb1 board and available gpio keys.
9 Signed-off-by: Sean Wang <sean.wang@mediatek.com>
10 Cc: Matthias Brugger <matthias.bgg@gmail.com>
12 arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 200 +++++++++++++++++++++++++++
13 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 7 +
14 2 files changed, 207 insertions(+)
16 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
17 +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
22 +#include <dt-bindings/input/input.h>
24 #include "mt7622.dtsi"
28 bootargs = "console=ttyS0,115200n1";
32 + compatible = "gpio-keys-polled";
33 + poll-interval = <100>;
37 + linux,code = <BTN_0>;
43 + linux,code = <KEY_WPS_BUTTON>;
44 + gpios = <&pio 102 0>;
49 reg = <0 0x40000000 0 0x3F000000>;
54 + /* eMMC is shared pin with parallel NAND */
55 + emmc_pins_default: emmc-pins-default {
57 + function = "emmc", "emmc_rst";
62 + emmc_pins_uhs: emmc-pins-uhs {
69 + eth_pins: eth-pins {
72 + groups = "mdc_mdio", "rgmii_via_gmac2";
76 + i2c1_pins: i2c1-pins {
83 + i2c2_pins: i2c2-pins {
90 + i2s1_pins: i2s1-pins {
93 + groups = "i2s_out_bclk_ws_mclk",
99 + irrx_pins: irrx-pins {
102 + groups = "ir_1_rx";
106 + irtx_pins: irtx-pins {
109 + groups = "ir_1_tx";
113 + /* Parallel nand is shared pin with eMMC */
114 + parallel_nand_pins: parallel-nand-pins {
116 + function = "flash";
117 + groups = "par_nand";
121 + pcie0_pins: pcie0-pins {
124 + groups = "pcie0_pad_perst",
130 + pcie1_pins: pcie1-pins {
133 + groups = "pcie1_pad_perst",
139 + pmic_bus_pins: pmic-bus-pins {
142 + groups = "pmic_bus";
146 + pwm7_pins: pwm1-2-pins {
149 + groups = "pwm_ch7_2";
153 + wled_pins: wled-pins {
160 + sd0_pins_default: sd0-pins-default {
167 + sd0_pins_uhs: sd0-pins-uhs {
174 + /* Serial NAND is shared pin with SPI-NOR */
175 + serial_nand_pins: serial-nand-pins {
177 + function = "flash";
182 + spic0_pins: spic0-pins {
185 + groups = "spic0_0";
189 + spic1_pins: spic1-pins {
192 + groups = "spic1_0";
196 + /* SPI-NOR is shared pin with serial NAND */
197 + spi_nor_pins: spi-nor-pins {
199 + function = "flash";
200 + groups = "spi_nor";
204 + /* serial NAND is shared pin with SPI-NOR */
205 + serial_nand_pins: serial-nand-pins {
207 + function = "flash";
212 + uart0_pins: uart0-pins {
215 + groups = "uart0_0_tx_rx" ;
219 + uart2_pins: uart2-pins {
222 + groups = "uart2_1_tx_rx" ;
226 + watchdog_pins: watchdog-pins {
228 + function = "watchdog";
229 + groups = "watchdog";
237 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
238 +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
243 + pio: pinctrl@10211000 {
244 + compatible = "mediatek,mt7622-pinctrl";
245 + reg = <0 0x10211000 0 0x1000>;
250 gic: interrupt-controller@10300000 {
251 compatible = "arm,gic-400";
252 interrupt-controller;