1 // SPDX-License-Identifier: GPL-2.0
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "mediatek,mt7621-soc";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = ðernet;
20 bootargs = "console=ttyS0,57600";
24 compatible = "gpio-leds";
27 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
31 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
33 linux,default-trigger = "usbport";
36 led_internet: internet {
37 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
47 compatible = "gpio-keys";
51 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_WPS_BUTTON>;
57 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
62 reg_usb_vbus: regulator {
63 compatible = "regulator-fixed";
64 regulator-name = "usb_vbus";
65 regulator-min-microvolt = <5000000>;
66 regulator-max-microvolt = <5000000>;
67 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
73 vbus-supply = <®_usb_vbus>;
82 compatible = "mediatek,mt76";
84 mediatek,mtd-eeprom = <&factory 0x8000>;
85 ieee80211-freq-limit = <5000000 6000000>;
91 compatible = "mediatek,mt76";
93 mediatek,mtd-eeprom = <&factory 0x0>;
94 ieee80211-freq-limit = <2400000 2500000>;
99 mtd-mac-address = <&factory 0x4>;
104 ralink,group = "uart3", "uart2", "jtag", "wdt";
105 ralink,function = "gpio";
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
119 reg = <0x0 0x100000>;
124 label = "SC PART_MAP";
125 reg = <0x100000 0x100000>;
131 reg = <0x200000 0x400000>;
136 reg = <0x600000 0x2800000>;
141 reg = <0x2e00000 0x1800000>;
145 factory: partition@4600000 {
147 reg = <0x4600000 0x200000>;
153 reg = <0x4800000 0x3800000>;