1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7628an.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "totolink,lr1200", "mediatek,mt7628dan";
11 model = "TOTOLINK LR1200";
15 led-failsafe = &led_sys;
16 led-running = &led_sys;
17 led-upgrade = &led_sys;
21 compatible = "gpio-leds";
24 label = "lr1200:blue:sys";
25 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
28 label = "lr1200:blue:sms";
29 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
32 label = "lr1200:blue:wifi";
33 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy0tpt";
37 label = "lr1200:blue:3g";
38 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
41 label = "lr1200:blue:4g";
42 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
45 label = "lr1200:blue:rssi1";
46 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
49 label = "lr1200:blue:rssi2";
50 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
53 label = "lr1200:blue:rssi3";
54 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
57 label = "lr1200:blue:rssi4";
58 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
63 compatible = "gpio-keys-polled";
68 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
77 gpios = <13 GPIO_ACTIVE_HIGH>;
79 line-name = "modem-reset";
84 state_default: pinctrl0 {
86 ralink,group = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an";
87 ralink,function = "gpio";
98 reg = <0x0000 0 0 0 0>;
99 mediatek,mtd-eeprom = <&factory 0x8000>;
100 ieee80211-freq-limit = <5000000 6000000>;
106 ralink,mtd-eeprom = <&factory 0x4>;
110 mtd-mac-address = <&factory 0x28>;
117 compatible = "jedec,spi-nor";
119 spi-max-frequency = <40000000>;
122 compatible = "fixed-partitions";
123 #address-cells = <1>;
133 label = "u-boot-env";
134 reg = <0x30000 0x10000>;
138 factory: partition@40000 {
140 reg = <0x40000 0x10000>;
145 compatible = "denx,uimage";
147 reg = <0x50000 0x7b0000>;