1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "sitecom,wlr-4100-v1-002", "ralink,mt7620a-soc";
10 model = "Sitecom WLR-4100 v1 002";
13 bootargs = "console=ttyS0,115200";
17 led-boot = &led_power;
18 led-failsafe = &led_power;
19 led-running = &led_power;
20 led-upgrade = &led_power;
24 compatible = "gpio-leds";
27 label = "amber:power";
28 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
34 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy1tpt";
40 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys";
49 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
61 compatible = "gpio-export";
65 gpio-export,name = "usb-power";
66 gpio-export,output = <1>;
67 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
84 compatible = "jedec,spi-nor";
86 spi-max-frequency = <20000000>;
89 compatible = "fixed-partitions";
100 label = "u-boot-env";
101 reg = <0x30000 0x10000>;
105 factory: partition@40000 {
107 reg = <0x40000 0x10000>;
112 compatible = "denx,uimage";
114 reg = <0x50000 0x790000>;
119 reg = <0x7e0000 0x10000>;
125 reg = <0x7f0000 0x10000>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
136 nvmem-cells = <&macaddr_factory_4>;
137 nvmem-cell-names = "mac-address";
143 mediatek,fixed-link = <1000 1 1 1>;
153 qca,ar8327-initvals = <
154 0x04 0x06200000 /* PORT0 PAD MODE CTRL */
155 0x08 0x01000000 /* PORT5 PAD MODE CTRL RX delay EN all ports 0, 5, 6 */
156 0x7c 0x0000007e /* PORT0_STATUS */
157 0x94 0x00000000 /* PORT6_STATUS */
164 mediatek,ephy-base = /bits/ 8 <8>;
178 ralink,mtd-eeprom = <&factory 0x0>;
183 groups = "uartf", "i2c", "wled", "spi refclk";
189 compatible = "nvmem-cells";
190 #address-cells = <1>;
193 macaddr_factory_4: macaddr@4 {