2 * Copyright (c) 2017 MediaTek Inc.
3 * Author: Ming Huang <ming.huang@mediatek.com>
4 * Sean Wang <sean.wang@mediatek.com>
6 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/gpio/gpio.h>
13 #include "mt7622.dtsi"
14 #include "mt6380.dtsi"
17 model = "MediaTek MT7622 RFB1 board";
18 compatible = "mediatek,mt7622-rfb1", "mediatek,mt7622";
25 stdout-path = "serial0:115200n8";
26 bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512";
31 proc-supply = <&mt6380_vcpu_reg>;
32 sram-supply = <&mt6380_vm_reg>;
36 proc-supply = <&mt6380_vcpu_reg>;
37 sram-supply = <&mt6380_vm_reg>;
42 compatible = "gpio-keys";
43 poll-interval = <100>;
53 linux,code = <KEY_WPS_BUTTON>;
59 reg = <0 0x40000000 0 0x20000000>;
60 device_type = "memory";
63 reg_1p8v: regulator-1p8v {
64 compatible = "regulator-fixed";
65 regulator-name = "fixed-1.8V";
66 regulator-min-microvolt = <1800000>;
67 regulator-max-microvolt = <1800000>;
71 reg_3p3v: regulator-3p3v {
72 compatible = "regulator-fixed";
73 regulator-name = "fixed-3.3V";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
80 reg_5v: regulator-5v {
81 compatible = "regulator-fixed";
82 regulator-name = "fixed-5V";
83 regulator-min-microvolt = <5000000>;
84 regulator-max-microvolt = <5000000>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&irrx_pins>;
105 pinctrl-names = "default";
106 pinctrl-0 = <ð_pins>;
110 compatible = "mediatek,eth-mac";
112 phy-handle = <&phy5>;
116 #address-cells = <1>;
119 phy5: ethernet-phy@5 {
127 pinctrl-names = "default";
128 pinctrl-0 = <&i2c1_pins>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&i2c2_pins>;
139 pinctrl-names = "default", "state_uhs";
140 pinctrl-0 = <&emmc_pins_default>;
141 pinctrl-1 = <&emmc_pins_uhs>;
144 max-frequency = <50000000>;
147 vmmc-supply = <®_3p3v>;
148 vqmmc-supply = <®_1p8v>;
149 assigned-clocks = <&topckgen CLK_TOP_MSDC30_0_SEL>;
150 assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
155 pinctrl-names = "default", "state_uhs";
156 pinctrl-0 = <&sd0_pins_default>;
157 pinctrl-1 = <&sd0_pins_uhs>;
160 max-frequency = <50000000>;
163 cd-gpios = <&pio 81 GPIO_ACTIVE_LOW>;
164 vmmc-supply = <®_3p3v>;
165 vqmmc-supply = <®_3p3v>;
166 assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>;
167 assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
171 pinctrl-names = "default";
172 pinctrl-0 = <¶llel_nand_pins>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&spi_nor_pins>;
182 compatible = "jedec,spi-nor";
188 pinctrl-names = "default";
189 pinctrl-0 = <&pcie0_pins>;
198 /* eMMC is shared pin with parallel NAND */
199 emmc_pins_default: emmc-pins-default {
201 function = "emmc", "emmc_rst";
205 /* "NDL0","NDL1","NDL2","NDL3","NDL4","NDL5","NDL6","NDL7",
206 * "NRB","NCLE" pins are used as DAT0,DAT1,DAT2,DAT3,DAT4,
207 * DAT5,DAT6,DAT7,CMD,CLK for eMMC respectively
210 pins = "NDL0", "NDL1", "NDL2",
211 "NDL3", "NDL4", "NDL5",
212 "NDL6", "NDL7", "NRB";
223 emmc_pins_uhs: emmc-pins-uhs {
230 pins = "NDL0", "NDL1", "NDL2",
231 "NDL3", "NDL4", "NDL5",
232 "NDL6", "NDL7", "NRB";
234 drive-strength = <4>;
240 drive-strength = <4>;
248 groups = "mdc_mdio", "rgmii_via_gmac2";
252 i2c1_pins: i2c1-pins {
259 i2c2_pins: i2c2-pins {
266 i2s1_pins: i2s1-pins {
269 groups = "i2s_out_mclk_bclk_ws",
275 pins = "I2S1_IN", "I2S1_OUT", "I2S_BCLK",
276 "I2S_WS", "I2S_MCLK";
277 drive-strength = <12>;
282 irrx_pins: irrx-pins {
289 irtx_pins: irtx-pins {
296 /* Parallel nand is shared pin with eMMC */
297 parallel_nand_pins: parallel-nand-pins {
304 pcie0_pins: pcie0-pins {
307 groups = "pcie0_pad_perst",
313 pcie1_pins: pcie1-pins {
316 groups = "pcie1_pad_perst",
322 pmic_bus_pins: pmic-bus-pins {
329 pwm7_pins: pwm1-2-pins {
332 groups = "pwm_ch7_2";
336 wled_pins: wled-pins {
343 sd0_pins_default: sd0-pins-default {
349 /* "I2S2_OUT, "I2S4_IN"", "I2S3_IN", "I2S2_IN",
350 * "I2S4_OUT", "I2S3_OUT" are used as DAT0, DAT1,
351 * DAT2, DAT3, CMD, CLK for SD respectively.
354 pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
355 "I2S2_IN","I2S4_OUT";
357 drive-strength = <8>;
362 drive-strength = <12>;
371 sd0_pins_uhs: sd0-pins-uhs {
378 pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
379 "I2S2_IN","I2S4_OUT";
390 /* Serial NAND is shared pin with SPI-NOR */
391 serial_nand_pins: serial-nand-pins {
398 spic0_pins: spic0-pins {
405 spic1_pins: spic1-pins {
412 /* SPI-NOR is shared pin with serial NAND */
413 spi_nor_pins: spi-nor-pins {
420 /* serial NAND is shared pin with SPI-NOR */
421 serial_nand_pins: serial-nand-pins {
428 uart0_pins: uart0-pins {
431 groups = "uart0_0_tx_rx" ;
435 uart2_pins: uart2-pins {
438 groups = "uart2_1_tx_rx" ;
442 watchdog_pins: watchdog-pins {
444 function = "watchdog";
451 pinctrl-names = "default";
452 pinctrl-0 = <&pwm7_pins>;
457 pinctrl-names = "default";
458 pinctrl-0 = <&pmic_bus_pins>;
472 pinctrl-names = "default";
473 pinctrl-0 = <&spic0_pins>;
478 pinctrl-names = "default";
479 pinctrl-0 = <&spic1_pins>;
484 vusb33-supply = <®_3p3v>;
485 vbus-supply = <®_5v>;
494 pinctrl-names = "default";
495 pinctrl-0 = <&uart0_pins>;
500 pinctrl-names = "default";
501 pinctrl-0 = <&uart2_pins>;
506 pinctrl-names = "default";
507 pinctrl-0 = <&watchdog_pins>;