1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "head-weblink,hdrm200", "ralink,mt7620a-soc";
11 model = "Head Weblink HDRM200";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 bootargs = "console=ttyS1,57600";
25 compatible = "gpio-leds";
28 label = "hdrm200:red:rssi";
29 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
33 label = "hdrm200:green:system";
34 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
38 label = "hdrm200:green:wifi";
39 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-keys-polled";
49 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <10000000>;
70 compatible = "fixed-partitions";
82 reg = <0x30000 0x10000>;
86 factory: partition@40000 {
88 reg = <0x40000 0x10000>;
92 firmware: partition@50000 {
93 compatible = "denx,uimage";
95 reg = <0x50000 0xfb0000>;
128 mtd-mac-address = <&factory 0x4>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
134 phy-handle = <&phy4>;
140 phy-handle = <&phy5>;
147 phy4: ethernet-phy@4 {
152 phy5: ethernet-phy@5 {
160 ralink,mtd-eeprom = <&factory 0>;
164 state_default: pinctrl0 {
166 ralink,group = "i2c", "uartf", "pa", "spi refclk",
168 ralink,function = "gpio";
179 compatible = "mediatek,mt76";
180 reg = <0x0000 0 0 0 0>;
181 mediatek,mtd-eeprom = <&factory 0x8000>;
182 ieee80211-freq-limit = <5000000 6000000>;