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>;
32 reg = <0x30000 0x10000>;
36 factory: partition@40000 {
38 reg = <0x40000 0x10000>;
44 reg = <0x50000 0x7b0000>;
49 compatible = "gpio-leds";
52 label = "ur-336un:green:3g";
53 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
57 label = "ur-336un:green:gateway";
58 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
62 label = "ur-336un:green:ap";
63 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
67 label = "ur-336un:green:wps";
68 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
72 label = "ur-336un:green:station";
73 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
78 compatible = "gpio-keys-polled";
83 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
89 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
96 state_default: pinctrl0 {
98 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
99 ralink,function = "gpio";
105 mtd-mac-address = <&factory 0x4004>;
109 mediatek,portmap = <0x2f>;
113 ralink,mtd-eeprom = <&factory 0>;