5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "fon,fonera20n", "ralink,rt3052-soc";
10 model = "La Fonera 2.0N";
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>;
42 factory: partition@40000 {
44 reg = <0x40000 0x10000>;
50 reg = <0x50000 0x7b0000>;
56 compatible = "gpio-leds";
59 label = "fonera20n:orange:wifi";
60 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
64 label = "fonera20n:green:power";
65 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
69 label = "fonera20n:orange:usb";
70 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
71 trigger-sources = <&otg_port1>;
72 linux,default-trigger = "usbport";
77 compatible = "gpio-keys-polled";
82 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
88 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_RFKILL>;
90 linux,input-type = <EV_SW>;
96 state_default: pinctrl0 {
98 ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
99 ralink,function = "gpio";
105 mtd-mac-address = <&factory 0x28>;
109 #address-cells = <1>;
112 mediatek,portmap = <0x2f>;
115 compatible = "swconfig,port";
117 swconfig,segment = "lan";
118 swconfig,portmap = <0 4>;
122 compatible = "swconfig,port";
124 swconfig,segment = "lan";
125 swconfig,portmap = <1 3>;
129 compatible = "swconfig,port";
131 swconfig,segment = "lan";
132 swconfig,portmap = <2 2>;
136 compatible = "swconfig,port";
138 swconfig,segment = "lan";
139 swconfig,portmap = <3 1>;
143 compatible = "swconfig,port";
145 swconfig,segment = "wan";
146 swconfig,portmap = <4 0>;
151 ralink,mtd-eeprom = <&factory 0>;