3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "dlink,dir-320-b1", "ralink,rt5350-soc";
8 model = "D-Link DIR-320 B1";
11 led-boot = &led_status;
12 led-failsafe = &led_status;
13 led-running = &led_status;
14 led-upgrade = &led_status;
18 compatible = "gpio-leds";
21 label = "green:status";
22 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
27 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
32 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-keys-polled";
42 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
48 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
54 compatible = "gpio-export";
58 gpio-export,name = "usb";
59 gpio-export,output = <1>;
60 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
64 gpio-export,name = "root_hub";
65 gpio-export,output = <1>;
66 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
75 compatible = "jedec,spi-nor";
77 spi-max-frequency = <10000000>;
80 compatible = "fixed-partitions";
92 reg = <0x30000 0x10000>;
96 factory: partition@40000 {
97 compatible = "nvmem-cells";
99 reg = <0x40000 0x10000>;
100 #address-cells = <1>;
104 eeprom_factory_0: eeprom@0 {
108 macaddr_factory_4: macaddr@4 {
114 compatible = "denx,uimage";
116 reg = <0x50000 0x7b0000>;
124 groups = "i2c", "jtag", "uartf";
130 nvmem-cells = <&macaddr_factory_4>;
131 nvmem-cell-names = "mac-address";
135 mediatek,portmap = <0x2f>;
136 mediatek,led_polarity = <0x17>;
140 nvmem-cells = <&eeprom_factory_0>;
141 nvmem-cell-names = "eeprom";