5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dir-320-b1", "ralink,rt5350-soc";
10 model = "D-Link DIR-320 B1";
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
20 compatible = "gpio-leds";
23 label = "dir-320-b1:green:status";
24 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
28 label = "dir-320-b1:green:usb";
29 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
33 label = "dir-320-b1:green:wps";
34 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys-polled";
44 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
50 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
56 compatible = "gpio-export";
60 gpio-export,name = "usb";
61 gpio-export,output = <1>;
62 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
66 gpio-export,name = "root_hub";
67 gpio-export,output = <1>;
68 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <10000000>;
82 compatible = "fixed-partitions";
94 reg = <0x30000 0x10000>;
98 factory: partition@40000 {
100 reg = <0x40000 0x10000>;
105 compatible = "denx,uimage";
107 reg = <0x50000 0x7b0000>;
114 state_default: pinctrl0 {
116 ralink,group = "i2c", "jtag", "uartf";
117 ralink,function = "gpio";
123 mtd-mac-address = <&factory 0x4>;
127 mediatek,portmap = <0x2f>;
128 mediatek,led_polarity = <0x17>;
132 ralink,mtd-eeprom = <&factory 0>;