3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6 #include <dt-bindings/mtd/partitions/uimage.h>
9 compatible = "edimax,3g-6200n", "ralink,rt3050-soc";
10 model = "Edimax 3g-6200n";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
26 compatible = "fixed-partitions";
38 reg = <0x30000 0x10000>;
44 reg = <0x40000 0x10000>;
48 compatible = "fixed-layout";
52 eeprom_factory_0: eeprom@0 {
56 macaddr_factory_4: macaddr@4 {
64 reg = <0x3e0000 0x20000>;
69 compatible = "openwrt,uimage", "denx,uimage";
70 openwrt,offset = <FW_EDIMAX_OFFSET>;
71 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
73 reg = <0x50000 0x390000>;
79 compatible = "gpio-leds";
82 function = LED_FUNCTION_POWER;
83 color = <LED_COLOR_ID_GREEN>;
84 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
88 function = LED_FUNCTION_WLAN;
89 color = <LED_COLOR_ID_AMBER>;
90 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
95 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
96 trigger-sources = <&otg_port1>;
97 linux,default-trigger = "usbport";
102 compatible = "gpio-keys-polled";
103 poll-interval = <20>;
107 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_RESTART>;
112 label = "wlanswitch";
113 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_RFKILL>;
121 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
127 nvmem-cells = <&macaddr_factory_4>;
128 nvmem-cell-names = "mac-address";
132 mediatek,portmap = <0x2f>;
136 nvmem-cells = <&eeprom_factory_0>;
137 nvmem-cell-names = "eeprom";