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 compatible = "cfi-flash";
14 reg = <0x1f000000 0x800000>;
28 reg = <0x30000 0x10000>;
32 factory: partition@40000 {
34 reg = <0x40000 0x10000>;
40 reg = <0x50000 0x7b0000>;
45 compatible = "gpio-leds";
48 label = "fonera20n:orange:wifi";
49 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
53 label = "fonera20n:green:power";
54 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
58 label = "fonera20n:orange:usb";
59 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-keys-polled";
71 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
77 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_RFKILL>;
79 linux,input-type = <EV_SW>;
85 state_default: pinctrl0 {
87 ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
88 ralink,function = "gpio";
94 mtd-mac-address = <&factory 0x28>;
98 mediatek,portmap = <0x2f>;
101 compatible = "swconfig,port";
102 swconfig,segment = "lan";
103 swconfig,portmap = <0 4>;
107 compatible = "swconfig,port";
108 swconfig,segment = "lan";
109 swconfig,portmap = <1 3>;
113 compatible = "swconfig,port";
114 swconfig,segment = "lan";
115 swconfig,portmap = <2 2>;
119 compatible = "swconfig,port";
120 swconfig,segment = "lan";
121 swconfig,portmap = <3 1>;
125 compatible = "swconfig,port";
126 swconfig,segment = "wan";
127 swconfig,portmap = <4 0>;
132 ralink,mtd-eeprom = <&factory 0>;