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>
9 compatible = "dlink,dir-510l", "ralink,mt7620a-soc";
10 model = "D-Link DIR-510L";
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
20 bootargs = "console=ttyS1,57600";
24 compatible = "gpio-keys";
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
40 compatible = "gpio-leds";
43 label = "dir-510l:green:status";
44 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
48 label = "dir-510l:red:status";
49 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
55 mediatek,portmap = "llllw";
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <50000000>;
75 compatible = "fixed-partitions";
87 reg = <0x10000 0x200000>;
92 compatible = "amit,jimage";
94 reg = <0x210000 0xde0000>;
97 config: partition@ff0000 {
99 reg = <0xff0000 0x10000>;
120 reg = <0x0000 0 0 0 0>;
121 mtd-mac-address = <&config 0xe490>;
122 mtd-mac-address-increment = <(2)>;
123 mediatek,mtd-eeprom = <&config 0xe05d>;
128 mediatek,port4 = "ephy";
133 groups = "i2c", "uartf";