5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "fon,fonera-20n", "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>;
49 compatible = "denx,uimage";
51 reg = <0x50000 0x7b0000>;
57 compatible = "gpio-leds";
60 label = "fonera-20n:orange:wifi";
61 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
65 label = "fonera-20n:green:power";
66 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
70 label = "fonera-20n:orange:usb";
71 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
72 trigger-sources = <&otg_port1>;
73 linux,default-trigger = "usbport";
78 compatible = "gpio-keys-polled";
83 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
89 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_RFKILL>;
91 linux,input-type = <EV_SW>;
97 state_default: pinctrl0 {
99 ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
100 ralink,function = "gpio";
106 mtd-mac-address = <&factory 0x28>;
110 #address-cells = <1>;
113 mediatek,portmap = <0x2f>;
116 compatible = "swconfig,port";
118 swconfig,segment = "lan";
119 swconfig,portmap = <0 4>;
123 compatible = "swconfig,port";
125 swconfig,segment = "lan";
126 swconfig,portmap = <1 3>;
130 compatible = "swconfig,port";
132 swconfig,segment = "lan";
133 swconfig,portmap = <2 2>;
137 compatible = "swconfig,port";
139 swconfig,segment = "lan";
140 swconfig,portmap = <3 1>;
144 compatible = "swconfig,port";
146 swconfig,segment = "wan";
147 swconfig,portmap = <4 0>;
152 ralink,mtd-eeprom = <&factory 0>;