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-status = &led_power;
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x800000>;
32 reg = <0x30000 0x10000>;
36 factory: partition@40000 {
38 reg = <0x40000 0x10000>;
44 reg = <0x50000 0x7b0000>;
49 compatible = "gpio-leds";
52 label = "fonera20n:orange:wifi";
53 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
57 label = "fonera20n:green:power";
58 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
62 label = "fonera20n:orange:usb";
63 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
68 compatible = "gpio-keys-polled";
75 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
81 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_RFKILL>;
83 linux,input-type = <EV_SW>;
89 state_default: pinctrl0 {
91 ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
92 ralink,function = "gpio";
98 mtd-mac-address = <&factory 0x28>;
102 mediatek,portmap = <0x2f>;
105 compatible = "swconfig,port";
106 swconfig,segment = "lan";
107 swconfig,portmap = <0 4>;
111 compatible = "swconfig,port";
112 swconfig,segment = "lan";
113 swconfig,portmap = <1 3>;
117 compatible = "swconfig,port";
118 swconfig,segment = "lan";
119 swconfig,portmap = <2 2>;
123 compatible = "swconfig,port";
124 swconfig,segment = "lan";
125 swconfig,portmap = <3 1>;
129 compatible = "swconfig,port";
130 swconfig,segment = "wan";
131 swconfig,portmap = <4 0>;
136 ralink,mtd-eeprom = <&factory 0>;