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>;
111 compatible = "fixed-layout";
112 #address-cells = <1>;
115 eeprom_factory_0: eeprom@0 {
119 macaddr_factory_4: macaddr@4 {
126 compatible = "denx,uimage";
128 reg = <0x50000 0x790000>;
133 reg = <0x7e0000 0x10000>;
139 reg = <0x7f0000 0x10000>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
150 nvmem-cells = <&macaddr_factory_4>;
151 nvmem-cell-names = "mac-address";
157 mediatek,fixed-link = <1000 1 1 1>;
167 qca,ar8327-initvals = <
168 0x04 0x06200000 /* PORT0 PAD MODE CTRL */
169 0x08 0x01000000 /* PORT5 PAD MODE CTRL RX delay EN all ports 0, 5, 6 */
170 0x7c 0x0000007e /* PORT0_STATUS */
171 0x94 0x00000000 /* PORT6_STATUS */
178 mediatek,ephy-base = /bits/ 8 <8>;
190 nvmem-cells = <&eeprom_factory_0>;
191 nvmem-cell-names = "eeprom";
196 groups = "uartf", "i2c", "wled", "spi refclk";