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 compatible = "cfi-flash";
14 reg = <0x1f000000 0x800000>;
28 reg = <0x30000 0x10000>;
32 factory: partition@40000 {
34 reg = <0x40000 0x10000>;
40 reg = <0x50000 0x7b0000>;
45 compatible = "gpio-leds";
48 label = "ur-336un:green:3g";
49 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
53 label = "ur-336un:green:gateway";
54 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
58 label = "ur-336un:green:ap";
59 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
63 label = "ur-336un:green:wps";
64 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
68 label = "ur-336un:green:station";
69 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
74 compatible = "gpio-keys-polled";
81 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_RESTART>;
87 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
94 state_default: pinctrl0 {
96 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
97 ralink,function = "gpio";
103 mtd-mac-address = <&factory 0x4004>;
107 mediatek,portmap = <0x2f>;
111 ralink,mtd-eeprom = <&factory 0>;