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-status = &led_status;
17 compatible = "gpio-leds";
20 label = "dir-320-b1:green:status";
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
25 label = "dir-320-b1:green:usb";
26 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
30 label = "dir-320-b1:green:wps";
31 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-keys-polled";
43 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
49 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
55 compatible = "gpio-export";
59 gpio-export,name = "usb";
60 gpio-export,output = <1>;
61 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
65 gpio-export,name = "root_hub";
66 gpio-export,output = <1>;
67 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
78 compatible = "jedec,spi-nor";
80 spi-max-frequency = <10000000>;
90 reg = <0x30000 0x10000>;
94 factory: partition@40000 {
96 reg = <0x40000 0x10000>;
102 reg = <0x50000 0x7b0000>;
108 state_default: pinctrl0 {
110 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
111 ralink,function = "gpio";
117 mtd-mac-address = <&factory 0x4>;
121 mediatek,portmap = <0x2f>;
122 mediatek,led_polarity = <0x17>;
126 ralink,mtd-eeprom = <&factory 0>;