3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "dlink,dir-320-b1", "ralink,rt5350-soc";
9 model = "D-Link DIR-320 B1";
12 led-boot = &led_status;
13 led-failsafe = &led_status;
14 led-running = &led_status;
15 led-upgrade = &led_status;
19 compatible = "gpio-leds";
22 function = LED_FUNCTION_STATUS;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
28 function = LED_FUNCTION_USB;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
34 function = LED_FUNCTION_WPS;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys-polled";
46 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
52 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
58 compatible = "gpio-export";
62 gpio-export,name = "usb";
63 gpio-export,output = <1>;
64 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
68 gpio-export,name = "root_hub";
69 gpio-export,output = <1>;
70 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <10000000>;
84 compatible = "fixed-partitions";
96 reg = <0x30000 0x10000>;
100 factory: partition@40000 {
102 reg = <0x40000 0x10000>;
106 compatible = "fixed-layout";
107 #address-cells = <1>;
110 eeprom_factory_0: eeprom@0 {
114 macaddr_factory_4: macaddr@4 {
121 compatible = "denx,uimage";
123 reg = <0x50000 0x7b0000>;
131 groups = "i2c", "jtag", "uartf";
137 nvmem-cells = <&macaddr_factory_4>;
138 nvmem-cell-names = "mac-address";
142 mediatek,portmap = <0x2f>;
143 mediatek,led_polarity = <0x17>;
147 nvmem-cells = <&eeprom_factory_0>;
148 nvmem-cell-names = "eeprom";