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/gpio/gpio.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
10 compatible = "dlink,dir-510l", "ralink,mt7620a-soc";
11 model = "D-Link DIR-510L";
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
21 bootargs = "console=ttyS1,57600";
25 compatible = "gpio-keys";
29 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
44 label = "green:status";
45 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
50 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
56 mediatek,portmap = "llllw";
67 compatible = "jedec,spi-nor";
69 spi-max-frequency = <50000000>;
72 compatible = "fixed-partitions";
84 reg = <0x10000 0x200000>;
89 compatible = "openwrt,uimage", "denx,uimage";
90 openwrt,ih-magic = <IH_MAGIC_OKLI>;
91 openwrt,offset = <0x10000>;
93 reg = <0x210000 0xde0000>;
96 config: partition@ff0000 {
98 reg = <0xff0000 0x10000>;
102 compatible = "fixed-layout";
103 #address-cells = <1>;
106 eeprom_config_e05d: eeprom@e05d {
107 reg = <0xe05d 0x200>;
110 macaddr_config_e490: macaddr@e490 {
111 compatible = "mac-base";
113 #nvmem-cell-cells = <1>;
135 reg = <0x0000 0 0 0 0>;
136 nvmem-cells = <&eeprom_config_e05d>, <&macaddr_config_e490 2>;
137 nvmem-cell-names = "eeprom", "mac-address";
143 groups = "i2c", "uartf";