1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "mediatek,mt7621-soc";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = ðernet;
21 bootargs = "console=ttyS0,57600";
25 compatible = "gpio-leds";
28 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
32 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
34 linux,default-trigger = "usbport";
37 led_internet: internet {
38 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
48 compatible = "gpio-keys";
52 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
58 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
63 reg_usb_vbus: regulator {
64 compatible = "regulator-fixed";
65 regulator-name = "usb_vbus";
66 regulator-min-microvolt = <5000000>;
67 regulator-max-microvolt = <5000000>;
68 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
74 vbus-supply = <®_usb_vbus>;
83 compatible = "mediatek,mt76";
85 mediatek,mtd-eeprom = <&factory 0x8000>;
86 ieee80211-freq-limit = <5000000 6000000>;
92 compatible = "mediatek,mt76";
94 mediatek,mtd-eeprom = <&factory 0x0>;
95 ieee80211-freq-limit = <2400000 2500000>;
100 mtd-mac-address = <&factory 0x4>;
104 state_default: pinctrl0 {
106 ralink,group = "uart3", "uart2", "jtag", "wdt";
107 ralink,function = "gpio";
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
122 reg = <0x0 0x100000>;
127 label = "SC PART_MAP";
128 reg = <0x100000 0x100000>;
134 reg = <0x200000 0x400000>;
139 reg = <0x600000 0x2800000>;
144 reg = <0x2e00000 0x1800000>;
148 factory: partition@4600000 {
150 reg = <0x4600000 0x200000>;
156 reg = <0x4800000 0x3800000>;