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>;
68 trigger-sources = <&otg_port1>;
69 linux,default-trigger = "usbport";
74 compatible = "gpio-keys-polled";
79 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
85 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RFKILL>;
87 linux,input-type = <EV_SW>;
93 state_default: pinctrl0 {
95 ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
96 ralink,function = "gpio";
102 mtd-mac-address = <&factory 0x28>;
106 #address-cells = <1>;
109 mediatek,portmap = <0x2f>;
112 compatible = "swconfig,port";
114 swconfig,segment = "lan";
115 swconfig,portmap = <0 4>;
119 compatible = "swconfig,port";
121 swconfig,segment = "lan";
122 swconfig,portmap = <1 3>;
126 compatible = "swconfig,port";
128 swconfig,segment = "lan";
129 swconfig,portmap = <2 2>;
133 compatible = "swconfig,port";
135 swconfig,segment = "lan";
136 swconfig,portmap = <3 1>;
140 compatible = "swconfig,port";
142 swconfig,segment = "wan";
143 swconfig,portmap = <4 0>;
148 ralink,mtd-eeprom = <&factory 0>;