5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "upvel,ur-336un", "ralink,rt3052-soc";
10 model = "UPVEL UR-336UN";
13 led-status = &led_wps;
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 = "ur-336un:green:3g";
57 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
61 label = "ur-336un:green:gateway";
62 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
66 label = "ur-336un:green:ap";
67 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
71 label = "ur-336un:green:wps";
72 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
76 label = "ur-336un:green:station";
77 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-keys-polled";
87 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART>;
93 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
100 state_default: pinctrl0 {
102 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
103 ralink,function = "gpio";
109 mtd-mac-address = <&factory 0x4004>;
113 mediatek,portmap = <0x2f>;
117 ralink,mtd-eeprom = <&factory 0>;