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 = "Elecom WRC-2533";
18 compatible = "elecom,wrc-2533gent", "mediatek,mt7622";
21 led-boot = &led_power;
22 led-failsafe = &led_power;
23 led-running = &led_power;
24 led-upgrade = &led_power;
29 stdout-path = "serial0:115200n8";
30 bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200n8";
35 proc-supply = <&mt6380_vcpu_reg>;
36 sram-supply = <&mt6380_vm_reg>;
40 proc-supply = <&mt6380_vcpu_reg>;
41 sram-supply = <&mt6380_vm_reg>;
46 compatible = "gpio-keys";
47 poll-interval = <100>;
51 linux,code = <KEY_WPS_BUTTON>;
52 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
57 linux,code = <KEY_WPS_BUTTON>;
58 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
63 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
65 linux,input-type = <EV_SW>;
70 gpios = <&pio 16 GPIO_ACTIVE_LOW>;
72 linux,input-type = <EV_SW>;
77 gpios = <&pio 17 GPIO_ACTIVE_LOW>;
79 linux,input-type = <EV_SW>;
84 gpios = <&pio 18 GPIO_ACTIVE_LOW>;
86 linux,input-type = <EV_SW>;
91 compatible = "gpio-leds";
94 label = "wrc-2533:green:power";
95 gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
99 label = "wrc-2533:blue:power";
100 gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
104 label = "wrc-2533:red:power";
105 gpios = <&pio 73 GPIO_ACTIVE_HIGH>;
109 label = "wrc-2533:blue:usb";
110 gpios = <&pio 74 GPIO_ACTIVE_HIGH>;
114 label = "wrc-2533:red:wps";
115 gpios = <&pio 76 GPIO_ACTIVE_LOW>;
119 label = "wrc-2533:blue:wifi2g";
120 gpios = <&pio 85 GPIO_ACTIVE_LOW>;
124 label = "wrc-2533:blue:wifi5g";
125 gpios = <&pio 91 GPIO_ACTIVE_LOW>;
129 reg_usb_vbus: regulator {
130 compatible = "regulator-fixed";
131 regulator-name = "usb_vbus";
132 regulator-min-microvolt = <5000000>;
133 regulator-max-microvolt = <5000000>;
134 gpio = <&pio 22 GPIO_ACTIVE_LOW>;
139 reg = <0 0x40000000 0 0x3F000000>;
142 reg_1p8v: regulator-1p8v {
143 compatible = "regulator-fixed";
144 regulator-name = "fixed-1.8V";
145 regulator-min-microvolt = <1800000>;
146 regulator-max-microvolt = <1800000>;
150 reg_3p3v: regulator-3p3v {
151 compatible = "regulator-fixed";
152 regulator-name = "fixed-3.3V";
153 regulator-min-microvolt = <3300000>;
154 regulator-max-microvolt = <3300000>;
160 compatible = "mediatek,rtk-gsw";
161 mediatek,ethsys = <ðsys>;
162 mediatek,mdio = <&mdio>;
163 mediatek,reset-pin = <&pio 54 0>;
169 pinctrl-names = "default", "pcie1_pins";
170 pinctrl-0 = <&pcie0_pins>;
171 pinctrl-1 = <&pcie1_pins>;
177 reg = <0x0000 0 0 0 0>;
178 mediatek,mtd-eeprom = <&factory 0x05000>;
184 /* eMMC is shared pin with parallel NAND */
185 emmc_pins_default: emmc-pins-default {
187 function = "emmc", "emmc_rst";
191 /* "NDL0","NDL1","NDL2","NDL3","NDL4","NDL5","NDL6","NDL7",
192 * "NRB","NCLE" pins are used as DAT0,DAT1,DAT2,DAT3,DAT4,
193 * DAT5,DAT6,DAT7,CMD,CLK for eMMC respectively
196 pins = "NDL0", "NDL1", "NDL2",
197 "NDL3", "NDL4", "NDL5",
198 "NDL6", "NDL7", "NRB";
209 emmc_pins_uhs: emmc-pins-uhs {
216 pins = "NDL0", "NDL1", "NDL2",
217 "NDL3", "NDL4", "NDL5",
218 "NDL6", "NDL7", "NRB";
220 drive-strength = <4>;
226 drive-strength = <4>;
234 groups = "mdc_mdio", "rgmii_via_gmac2";
238 i2c1_pins: i2c1-pins {
245 i2c2_pins: i2c2-pins {
252 i2s1_pins: i2s1-pins {
255 groups = "i2s_out_mclk_bclk_ws",
261 pins = "I2S1_IN", "I2S1_OUT", "I2S_BCLK",
262 "I2S_WS", "I2S_MCLK";
263 drive-strength = <12>;
268 irrx_pins: irrx-pins {
275 irtx_pins: irtx-pins {
282 /* Parallel nand is shared pin with eMMC */
283 parallel_nand_pins: parallel-nand-pins {
290 pcie0_pins: pcie0-pins {
293 groups = "pcie0_pad_perst",
299 pcie1_pins: pcie1-pins {
302 groups = "pcie1_pad_perst",
308 pmic_bus_pins: pmic-bus-pins {
315 pwm7_pins: pwm1-2-pins {
318 groups = "pwm_ch7_2";
322 wled_pins: wled-pins {
329 sd0_pins_default: sd0-pins-default {
335 /* "I2S2_OUT, "I2S4_IN"", "I2S3_IN", "I2S2_IN",
336 * "I2S4_OUT", "I2S3_OUT" are used as DAT0, DAT1,
337 * DAT2, DAT3, CMD, CLK for SD respectively.
340 pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
341 "I2S2_IN","I2S4_OUT";
343 drive-strength = <8>;
348 drive-strength = <12>;
357 sd0_pins_uhs: sd0-pins-uhs {
364 pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
365 "I2S2_IN","I2S4_OUT";
376 /* Serial NAND is shared pin with SPI-NOR */
377 serial_nand_pins: serial-nand-pins {
384 spic0_pins: spic0-pins {
391 spic1_pins: spic1-pins {
398 /* SPI-NOR is shared pin with serial NAND */
399 spi_nor_pins: spi-nor-pins {
406 /* serial NAND is shared pin with SPI-NOR */
407 serial_nand_pins: serial-nand-pins {
414 uart0_pins: uart0-pins {
417 groups = "uart0_0_tx_rx" ;
421 uart2_pins: uart2-pins {
424 groups = "uart2_1_tx_rx" ;
428 watchdog_pins: watchdog-pins {
430 function = "watchdog";
445 pinctrl-names = "default";
446 pinctrl-0 = <&irrx_pins>;
452 pinctrl-names = "default";
453 pinctrl-0 = <ð_pins>;
455 compatible = "mediatek,eth-mac";
465 compatible = "mediatek,eth-mac";
475 #address-cells = <1>;
481 pinctrl-names = "default";
482 pinctrl-0 = <&i2c1_pins>;
487 pinctrl-names = "default";
488 pinctrl-0 = <&i2c2_pins>;
493 pinctrl-names = "default";
494 pinctrl-0 = <&pwm7_pins>;
499 pinctrl-names = "default";
500 pinctrl-0 = <&pmic_bus_pins>;
506 pinctrl-names = "default";
507 pinctrl-0 = <&serial_nand_pins>;
511 #address-cells = <1>;
513 compatible = "spi-nand";
514 spi-max-frequency = <104000000>;
518 compatible = "fixed-partitions";
519 #address-cells = <1>;
524 reg = <0x00000 0x0080000>;
530 reg = <0x80000 0x0040000>;
536 reg = <0xc0000 0x0080000>;
542 reg = <0x140000 0x0080000>;
546 factory: partition@1c0000 {
548 reg = <0x1c0000 0x0040000>;
554 reg = <0x200000 0x2000000>;
559 reg = <0x2200000 0x4000000>;
566 pinctrl-names = "default";
567 pinctrl-0 = <&spic0_pins>;
572 pinctrl-names = "default";
573 pinctrl-0 = <&spic1_pins>;
578 vusb33-supply = <®_3p3v>;
579 vbus-supply = <®_usb_vbus>;
588 pinctrl-names = "default";
589 pinctrl-0 = <&uart0_pins>;
594 pinctrl-names = "default";
595 pinctrl-0 = <&uart2_pins>;
600 pinctrl-names = "default";
601 pinctrl-0 = <&watchdog_pins>;
606 mediatek,mtd-eeprom = <&factory 0x0000>;