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>;
62 reg_1p8v: regulator-1p8v {
63 compatible = "regulator-fixed";
64 regulator-name = "fixed-1.8V";
65 regulator-min-microvolt = <1800000>;
66 regulator-max-microvolt = <1800000>;
70 reg_3p3v: regulator-3p3v {
71 compatible = "regulator-fixed";
72 regulator-name = "fixed-3.3V";
73 regulator-min-microvolt = <3300000>;
74 regulator-max-microvolt = <3300000>;
79 reg_5v: regulator-5v {
80 compatible = "regulator-fixed";
81 regulator-name = "fixed-5V";
82 regulator-min-microvolt = <5000000>;
83 regulator-max-microvolt = <5000000>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&irrx_pins>;
104 pinctrl-names = "default";
105 pinctrl-0 = <ð_pins>;
109 compatible = "mediatek,eth-mac";
111 phy-handle = <&phy5>;
115 #address-cells = <1>;
118 phy5: ethernet-phy@5 {
126 pinctrl-names = "default";
127 pinctrl-0 = <&i2c1_pins>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&i2c2_pins>;
138 pinctrl-names = "default", "state_uhs";
139 pinctrl-0 = <&emmc_pins_default>;
140 pinctrl-1 = <&emmc_pins_uhs>;
143 max-frequency = <50000000>;
146 vmmc-supply = <®_3p3v>;
147 vqmmc-supply = <®_1p8v>;
148 assigned-clocks = <&topckgen CLK_TOP_MSDC30_0_SEL>;
149 assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
154 pinctrl-names = "default", "state_uhs";
155 pinctrl-0 = <&sd0_pins_default>;
156 pinctrl-1 = <&sd0_pins_uhs>;
159 max-frequency = <50000000>;
162 cd-gpios = <&pio 81 GPIO_ACTIVE_LOW>;
163 vmmc-supply = <®_3p3v>;
164 vqmmc-supply = <®_3p3v>;
165 assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>;
166 assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
170 pinctrl-names = "default";
171 pinctrl-0 = <¶llel_nand_pins>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&spi_nor_pins>;
181 compatible = "jedec,spi-nor";
187 pinctrl-names = "default";
188 pinctrl-0 = <&pcie0_pins>;
197 /* eMMC is shared pin with parallel NAND */
198 emmc_pins_default: emmc-pins-default {
200 function = "emmc", "emmc_rst";
204 /* "NDL0","NDL1","NDL2","NDL3","NDL4","NDL5","NDL6","NDL7",
205 * "NRB","NCLE" pins are used as DAT0,DAT1,DAT2,DAT3,DAT4,
206 * DAT5,DAT6,DAT7,CMD,CLK for eMMC respectively
209 pins = "NDL0", "NDL1", "NDL2",
210 "NDL3", "NDL4", "NDL5",
211 "NDL6", "NDL7", "NRB";
222 emmc_pins_uhs: emmc-pins-uhs {
229 pins = "NDL0", "NDL1", "NDL2",
230 "NDL3", "NDL4", "NDL5",
231 "NDL6", "NDL7", "NRB";
233 drive-strength = <4>;
239 drive-strength = <4>;
247 groups = "mdc_mdio", "rgmii_via_gmac2";
251 i2c1_pins: i2c1-pins {
258 i2c2_pins: i2c2-pins {
265 i2s1_pins: i2s1-pins {
268 groups = "i2s_out_mclk_bclk_ws",
274 pins = "I2S1_IN", "I2S1_OUT", "I2S_BCLK",
275 "I2S_WS", "I2S_MCLK";
276 drive-strength = <12>;
281 irrx_pins: irrx-pins {
288 irtx_pins: irtx-pins {
295 /* Parallel nand is shared pin with eMMC */
296 parallel_nand_pins: parallel-nand-pins {
303 pcie0_pins: pcie0-pins {
306 groups = "pcie0_pad_perst",
312 pcie1_pins: pcie1-pins {
315 groups = "pcie1_pad_perst",
321 pmic_bus_pins: pmic-bus-pins {
328 pwm7_pins: pwm1-2-pins {
331 groups = "pwm_ch7_2";
335 wled_pins: wled-pins {
342 sd0_pins_default: sd0-pins-default {
348 /* "I2S2_OUT, "I2S4_IN"", "I2S3_IN", "I2S2_IN",
349 * "I2S4_OUT", "I2S3_OUT" are used as DAT0, DAT1,
350 * DAT2, DAT3, CMD, CLK for SD respectively.
353 pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
354 "I2S2_IN","I2S4_OUT";
356 drive-strength = <8>;
361 drive-strength = <12>;
370 sd0_pins_uhs: sd0-pins-uhs {
377 pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
378 "I2S2_IN","I2S4_OUT";
389 /* Serial NAND is shared pin with SPI-NOR */
390 serial_nand_pins: serial-nand-pins {
397 spic0_pins: spic0-pins {
404 spic1_pins: spic1-pins {
411 /* SPI-NOR is shared pin with serial NAND */
412 spi_nor_pins: spi-nor-pins {
419 /* serial NAND is shared pin with SPI-NOR */
420 serial_nand_pins: serial-nand-pins {
427 uart0_pins: uart0-pins {
430 groups = "uart0_0_tx_rx" ;
434 uart2_pins: uart2-pins {
437 groups = "uart2_1_tx_rx" ;
441 watchdog_pins: watchdog-pins {
443 function = "watchdog";
450 pinctrl-names = "default";
451 pinctrl-0 = <&pwm7_pins>;
456 pinctrl-names = "default";
457 pinctrl-0 = <&pmic_bus_pins>;
471 pinctrl-names = "default";
472 pinctrl-0 = <&spic0_pins>;
477 pinctrl-names = "default";
478 pinctrl-0 = <&spic1_pins>;
483 vusb33-supply = <®_3p3v>;
484 vbus-supply = <®_5v>;
493 pinctrl-names = "default";
494 pinctrl-0 = <&uart0_pins>;
499 pinctrl-names = "default";
500 pinctrl-0 = <&uart2_pins>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&watchdog_pins>;