3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "fon,fonera-20n", "ralink,rt3052-soc";
9 model = "La Fonera 2.0N";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
25 compatible = "fixed-partitions";
37 reg = <0x30000 0x10000>;
43 reg = <0x40000 0x10000>;
47 compatible = "fixed-layout";
51 eeprom_factory_0: eeprom@0 {
55 macaddr_factory_28: macaddr@28 {
62 compatible = "denx,uimage";
64 reg = <0x50000 0x7b0000>;
70 compatible = "gpio-leds";
73 label = "orange:wifi";
74 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
78 function = LED_FUNCTION_POWER;
79 color = <LED_COLOR_ID_GREEN>;
80 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
84 function = LED_FUNCTION_USB;
85 color = <LED_COLOR_ID_ORANGE>;
86 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
87 trigger-sources = <&otg_port1>;
88 linux,default-trigger = "usbport";
93 compatible = "gpio-keys-polled";
98 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
99 linux,code = <KEY_RESTART>;
104 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_RFKILL>;
106 linux,input-type = <EV_SW>;
113 groups = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
119 nvmem-cells = <&macaddr_factory_28>;
120 nvmem-cell-names = "mac-address";
124 #address-cells = <1>;
127 mediatek,portmap = <0x2f>;
130 compatible = "swconfig,port";
132 swconfig,segment = "lan";
133 swconfig,portmap = <0 4>;
137 compatible = "swconfig,port";
139 swconfig,segment = "lan";
140 swconfig,portmap = <1 3>;
144 compatible = "swconfig,port";
146 swconfig,segment = "lan";
147 swconfig,portmap = <2 2>;
151 compatible = "swconfig,port";
153 swconfig,segment = "lan";
154 swconfig,portmap = <3 1>;
158 compatible = "swconfig,port";
160 swconfig,segment = "wan";
161 swconfig,portmap = <4 0>;
166 nvmem-cells = <&eeprom_factory_0>;
167 nvmem-cell-names = "eeprom";