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-polled";
31 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 compatible = "gpio-leds";
40 label = "x1:green:system";
41 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
45 label = "x1:red:modem-offline";
46 gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
50 label = "x1:blue:modem-4g";
51 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
55 label = "x1:green:modem-3g";
56 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
60 label = "x1:green:modem-rssi-lowest";
61 gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
65 label = "x1:green:modem-rssi-low";
66 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
70 label = "x1:green:modem-rssi-medium";
71 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
75 label = "x1:green:modem-rssi-high";
76 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
80 label = "x1:green:modem-rssi-highest";
81 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <14000000>;
95 compatible = "fixed-partitions";
100 label = "bootloader";
107 reg = <0x30000 0x10000>;
111 factory: partition@40000 {
113 reg = <0x40000 0x10000>;
117 firmware: partition@50000 {
118 compatible = "denx,uimage";
120 reg = <0x50000 0xfb0000>;
131 mtd-mac-address = <&factory 0xe006>;
132 mediatek,portmap = "llllw";
136 state_default: pinctrl0 {
138 ralink,group = "jtag", "uart2", "wdt", "rgmii2";
139 ralink,function = "gpio";
149 compatible = "pci14c3,7603";
150 reg = <0x0000 0 0 0 0>;
151 mediatek,mtd-eeprom = <&factory 0x0000>;
152 ieee80211-freq-limit = <2400000 2500000>;
158 compatible = "pci14c3,7662";
159 reg = <0x0000 0 0 0 0>;
160 mediatek,mtd-eeprom = <&factory 0x8000>;
161 ieee80211-freq-limit = <5000000 6000000>;