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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "sitecom,wlr-4100-v1-002", "ralink,mt7620a-soc";
11 model = "Sitecom WLR-4100 v1 002";
14 bootargs = "console=ttyS0,115200";
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
25 compatible = "gpio-leds";
28 function = LED_FUNCTION_POWER;
29 color = <LED_COLOR_ID_AMBER>;
30 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
36 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy1tpt";
41 function = LED_FUNCTION_WPS;
42 color = <LED_COLOR_ID_WHITE>;
43 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-keys";
52 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
58 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
64 compatible = "gpio-export";
68 gpio-export,name = "usb-power";
69 gpio-export,output = <1>;
70 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <20000000>;
92 compatible = "fixed-partitions";
103 label = "u-boot-env";
104 reg = <0x30000 0x10000>;
108 factory: partition@40000 {
110 reg = <0x40000 0x10000>;
114 compatible = "fixed-layout";
115 #address-cells = <1>;
118 eeprom_factory_0: eeprom@0 {
122 macaddr_factory_4: macaddr@4 {
129 compatible = "denx,uimage";
131 reg = <0x50000 0x790000>;
136 reg = <0x7e0000 0x10000>;
142 reg = <0x7f0000 0x10000>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
153 nvmem-cells = <&macaddr_factory_4>;
154 nvmem-cell-names = "mac-address";
160 mediatek,fixed-link = <1000 1 1 1>;
170 qca,ar8327-initvals = <
171 0x04 0x06200000 /* PORT0 PAD MODE CTRL */
172 0x08 0x01000000 /* PORT5 PAD MODE CTRL RX delay EN all ports 0, 5, 6 */
173 0x7c 0x0000007e /* PORT0_STATUS */
174 0x94 0x00000000 /* PORT6_STATUS */
181 mediatek,ephy-base = /bits/ 8 <8>;
193 nvmem-cells = <&eeprom_factory_0>;
194 nvmem-cell-names = "eeprom";
199 groups = "uartf", "i2c", "wled", "spi refclk";