1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
11 compatible = "telco-electronics,x1", "mediatek,mt7621-soc";
12 model = "Telco Electronics X1";
15 led-boot = &system_led;
16 led-failsafe = &system_led;
17 led-running = &system_led;
18 led-upgrade = &system_led;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
39 label = "x1:green:system";
40 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
44 label = "x1:red:modem-offline";
45 gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
49 label = "x1:blue:modem-4g";
50 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
54 label = "x1:green:modem-3g";
55 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
59 label = "x1:green:modem-rssi-lowest";
60 gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
64 label = "x1:green:modem-rssi-low";
65 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
69 label = "x1:green:modem-rssi-medium";
70 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
74 label = "x1:green:modem-rssi-high";
75 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
79 label = "x1:green:modem-rssi-highest";
80 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
89 compatible = "jedec,spi-nor";
91 spi-max-frequency = <14000000>;
94 compatible = "fixed-partitions";
106 reg = <0x30000 0x10000>;
110 factory: partition@40000 {
112 reg = <0x40000 0x10000>;
116 firmware: partition@50000 {
117 compatible = "denx,uimage";
119 reg = <0x50000 0xfb0000>;
130 mtd-mac-address = <&factory 0xe006>;
131 mediatek,portmap = "llllw";
135 state_default: pinctrl0 {
137 ralink,group = "jtag", "uart2", "wdt", "rgmii2";
138 ralink,function = "gpio";
148 compatible = "pci14c3,7603";
149 reg = <0x0000 0 0 0 0>;
150 mediatek,mtd-eeprom = <&factory 0x0000>;
151 ieee80211-freq-limit = <2400000 2500000>;
157 compatible = "pci14c3,7662";
158 reg = <0x0000 0 0 0 0>;
159 mediatek,mtd-eeprom = <&factory 0x8000>;
160 ieee80211-freq-limit = <5000000 6000000>;