1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 compatible = "dlink,dir-510l", "ralink,mt7620a-soc";
12 model = "D-Link DIR-510L";
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
22 bootargs = "console=ttyS1,57600";
26 compatible = "gpio-keys";
30 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
45 function = LED_FUNCTION_STATUS;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
51 function = LED_FUNCTION_STATUS;
52 color = <LED_COLOR_ID_RED>;
53 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
59 mediatek,portmap = "llllw";
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <50000000>;
75 compatible = "fixed-partitions";
87 reg = <0x10000 0x200000>;
92 compatible = "openwrt,uimage", "denx,uimage";
93 openwrt,ih-magic = <IH_MAGIC_OKLI>;
94 openwrt,offset = <0x10000>;
96 reg = <0x210000 0xde0000>;
99 config: partition@ff0000 {
101 reg = <0xff0000 0x10000>;
105 compatible = "fixed-layout";
106 #address-cells = <1>;
109 eeprom_config_e05d: eeprom@e05d {
110 reg = <0xe05d 0x200>;
113 macaddr_config_e490: macaddr@e490 {
114 compatible = "mac-base";
116 #nvmem-cell-cells = <1>;
138 reg = <0x0000 0 0 0 0>;
139 nvmem-cells = <&eeprom_config_e05d>, <&macaddr_config_e490 2>;
140 nvmem-cell-names = "eeprom", "mac-address";
146 groups = "i2c", "uartf";