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-status = &led_status;
17 compatible = "gpio-leds";
20 label = "dir-300-b7:green:status";
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
25 label = "dir-300-b7:blue:wps";
26 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
31 compatible = "gpio-keys-polled";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
52 compatible = "jedec,spi-nor";
54 spi-max-frequency = <10000000>;
57 compatible = "fixed-partitions";
69 reg = <0x30000 0x10000>;
73 factory: partition@40000 {
75 reg = <0x40000 0x10000>;
81 reg = <0x50000 0x7b0000>;
88 state_default: pinctrl0 {
90 ralink,group = "i2c", "jtag", "uartf";
91 ralink,function = "gpio";
97 mtd-mac-address = <&factory 0x4>;
101 mediatek,portmap = <0x2f>;
102 mediatek,led_polarity = <0x17>;
107 ralink,led-polarity = <1>;
108 ralink,mtd-eeprom = <&factory 0>;