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>;
23 compatible = "fixed-partitions";
35 reg = <0x30000 0x10000>;
39 factory: partition@40000 {
41 reg = <0x40000 0x10000>;
47 reg = <0x50000 0x7b0000>;
53 compatible = "gpio-leds";
56 label = "fonera20n:orange:wifi";
57 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
61 label = "fonera20n:green:power";
62 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
66 label = "fonera20n:orange:usb";
67 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
72 compatible = "gpio-keys-polled";
77 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_RESTART>;
83 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RFKILL>;
85 linux,input-type = <EV_SW>;
91 state_default: pinctrl0 {
93 ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
94 ralink,function = "gpio";
100 mtd-mac-address = <&factory 0x28>;
104 #address-cells = <1>;
107 mediatek,portmap = <0x2f>;
110 compatible = "swconfig,port";
112 swconfig,segment = "lan";
113 swconfig,portmap = <0 4>;
117 compatible = "swconfig,port";
119 swconfig,segment = "lan";
120 swconfig,portmap = <1 3>;
124 compatible = "swconfig,port";
126 swconfig,segment = "lan";
127 swconfig,portmap = <2 2>;
131 compatible = "swconfig,port";
133 swconfig,segment = "lan";
134 swconfig,portmap = <3 1>;
138 compatible = "swconfig,port";
140 swconfig,segment = "wan";
141 swconfig,portmap = <4 0>;
146 ralink,mtd-eeprom = <&factory 0>;