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";
73 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_RESTART>;
79 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RFKILL>;
81 linux,input-type = <EV_SW>;
87 state_default: pinctrl0 {
89 ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
90 ralink,function = "gpio";
96 mtd-mac-address = <&factory 0x28>;
100 #address-cells = <1>;
103 mediatek,portmap = <0x2f>;
106 compatible = "swconfig,port";
108 swconfig,segment = "lan";
109 swconfig,portmap = <0 4>;
113 compatible = "swconfig,port";
115 swconfig,segment = "lan";
116 swconfig,portmap = <1 3>;
120 compatible = "swconfig,port";
122 swconfig,segment = "lan";
123 swconfig,portmap = <2 2>;
127 compatible = "swconfig,port";
129 swconfig,segment = "lan";
130 swconfig,portmap = <3 1>;
134 compatible = "swconfig,port";
136 swconfig,segment = "wan";
137 swconfig,portmap = <4 0>;
142 ralink,mtd-eeprom = <&factory 0>;