1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/gpio/gpio.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 = "dir-510l:green:status";
45 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
49 label = "dir-510l:red:status";
50 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
56 mediatek,portmap = "llllw";
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <50000000>;
76 compatible = "fixed-partitions";
88 reg = <0x10000 0x200000>;
93 compatible = "amit,jimage";
95 reg = <0x210000 0xde0000>;
98 config: partition@ff0000 {
100 reg = <0xff0000 0x10000>;
121 reg = <0x0000 0 0 0 0>;
122 mtd-mac-address = <&config 0xe490>;
123 mtd-mac-address-increment = <(2)>;
124 mediatek,mtd-eeprom = <&config 0xe05d>;
129 mediatek,port4 = "ephy";
133 state_default: pinctrl0 {
135 ralink,group = "i2c", "uartf";
136 ralink,function = "gpio";