5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dir-300-b7", "ralink,rt5350-soc";
10 model = "D-Link DIR-300 B7";
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-300-b7:green:status";
24 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
28 label = "dir-300-b7:blue:wps";
29 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
34 compatible = "gpio-keys-polled";
39 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
45 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
55 compatible = "jedec,spi-nor";
57 spi-max-frequency = <10000000>;
60 compatible = "fixed-partitions";
72 reg = <0x30000 0x10000>;
76 factory: partition@40000 {
78 reg = <0x40000 0x10000>;
83 compatible = "denx,uimage";
85 reg = <0x50000 0x7b0000>;
92 state_default: pinctrl0 {
94 ralink,group = "i2c", "jtag", "uartf";
95 ralink,function = "gpio";
101 mtd-mac-address = <&factory 0x4>;
105 mediatek,portmap = <0x2f>;
106 mediatek,led_polarity = <0x17>;
111 ralink,led-polarity = <1>;
112 ralink,mtd-eeprom = <&factory 0>;