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-polled";
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 label = "dir-510l:green:status";
46 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
50 label = "dir-510l:red:status";
51 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
58 mediatek,portmap = "llllw";
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <50000000>;
78 compatible = "fixed-partitions";
90 reg = <0x10000 0x200000>;
95 compatible = "amit,jimage";
97 reg = <0x210000 0xde0000>;
100 config: partition@ff0000 {
102 reg = <0xff0000 0x10000>;
123 reg = <0x0000 0 0 0 0>;
124 mtd-mac-address = <&config 0xe490>;
125 mtd-mac-address-increment = <(2)>;
126 mediatek,mtd-eeprom = <&config 0xe05d>;
131 mediatek,port4 = "ephy";
135 state_default: pinctrl0 {
137 ralink,group = "i2c", "uartf";
138 ralink,function = "gpio";