1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
10 led-failsafe = &led_power;
11 led-running = &led_power;
12 led-upgrade = &led_power;
13 label-mac-device = ðernet;
17 compatible = "gpio-leds";
20 function = LED_FUNCTION_WLAN;
21 color = <LED_COLOR_ID_BLUE>;
22 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
23 linux,default-trigger = "phy0tpt";
27 function = LED_FUNCTION_USB;
28 color = <LED_COLOR_ID_BLUE>;
29 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&ohci_port1>, <&ehci_port1>;
31 linux,default-trigger = "usbport";
35 function = LED_FUNCTION_POWER;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-keys";
46 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
64 compatible = "jedec,spi-nor";
66 spi-max-frequency = <80000000>;
70 compatible = "fixed-partitions";
82 reg = <0x30000 0x10000>;
88 reg = <0x40000 0x10000>;
92 compatible = "fixed-layout";
96 eeprom_factory_0: eeprom@0 {
100 eeprom_factory_8000: eeprom@8000 {
101 reg = <0x8000 0x200>;
104 macaddr_factory_28: macaddr@28 {
110 firmware: partition@50000 {
111 compatible = "openwrt,uimage", "denx,uimage";
113 openwrt,ih-magic = <0x12291000>;
114 /* reg property is set based on flash size in DTS files */
122 groups = "i2c", "rgmii1", "wled";
128 pinctrl-names = "default";
129 pinctrl-0 = <&ephy_pins>;
131 nvmem-cells = <&macaddr_factory_28>;
132 nvmem-cell-names = "mac-address";
134 mediatek,portmap = "llllw";
138 nvmem-cells = <&eeprom_factory_0>;
139 nvmem-cell-names = "eeprom";
140 pinctrl-names = "default", "pa_gpio";
141 pinctrl-0 = <&pa_pins>;
142 pinctrl-1 = <&pa_gpio_pins>;