2023-04-04 10:38:40 +07:00
|
|
|
#include "mt7620a.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
2024-07-27 17:01:35 +07:00
|
|
|
#include <dt-bindings/mtd/partitions/uimage.h>
|
2023-04-04 10:38:40 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "bolt,bl201", "ralink,mt7620a-soc";
|
|
|
|
model = "Bolt BL201";
|
|
|
|
|
2023-05-28 20:30:48 +07:00
|
|
|
aliases {
|
2024-07-27 17:01:35 +07:00
|
|
|
led-boot = &led_reset;
|
|
|
|
led-failsafe = &led_reset;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_reset;
|
2023-05-28 20:30:48 +07:00
|
|
|
label-mac-device = ðernet;
|
|
|
|
};
|
|
|
|
|
2023-04-04 10:38:40 +07:00
|
|
|
chosen {
|
2024-07-27 17:01:35 +07:00
|
|
|
bootargs = "console=ttyS0,57600";
|
2023-04-04 10:38:40 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led_reset: led-reset {
|
|
|
|
label = "red:reset";
|
2023-04-04 10:38:40 +07:00
|
|
|
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led_power: led-power {
|
2023-04-04 10:38:40 +07:00
|
|
|
label = "blue:power";
|
|
|
|
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led-lte1 {
|
|
|
|
label = "blue:lte1";
|
2023-04-04 10:38:40 +07:00
|
|
|
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led-lte2 {
|
|
|
|
label = "blue:lte2";
|
2023-04-04 10:38:40 +07:00
|
|
|
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led-lte3 {
|
|
|
|
label = "blue:lte3";
|
2023-04-04 10:38:40 +07:00
|
|
|
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led-lte4 {
|
|
|
|
label = "blue:lte4";
|
2023-04-04 10:38:40 +07:00
|
|
|
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led-lte5 {
|
|
|
|
label = "red:lte5";
|
|
|
|
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
led-lte6 {
|
|
|
|
label = "red:lte6";
|
|
|
|
gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
led-wps {
|
2023-04-04 10:38:40 +07:00
|
|
|
label = "blue:wps";
|
|
|
|
gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led-voip {
|
|
|
|
label = "blue:voip";
|
|
|
|
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
|
2023-04-04 10:38:40 +07:00
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led-wlan2 {
|
|
|
|
label = "blue:wlan2";
|
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "phy1tpt";
|
2023-04-04 10:38:40 +07:00
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
led-wlan5 {
|
|
|
|
label = "blue:wlan5";
|
|
|
|
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "phy0tpt";
|
|
|
|
};
|
|
|
|
|
|
|
|
led-lan {
|
|
|
|
label = "green:lan";
|
|
|
|
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
led-wan {
|
|
|
|
label = "green:wan";
|
|
|
|
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
|
2023-04-04 10:38:40 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2023-04-04 10:38:40 +07:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
linux,code = <KEY_RESTART>;
|
2024-07-27 17:01:35 +07:00
|
|
|
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
|
2023-04-04 10:38:40 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-05-28 20:30:48 +07:00
|
|
|
&gpio0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2023-04-04 10:38:40 +07:00
|
|
|
&gpio3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
2024-07-27 17:01:35 +07:00
|
|
|
spi-max-frequency = <50000000>;
|
2023-04-04 10:38:40 +07:00
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x30000>;
|
2023-05-28 20:30:48 +07:00
|
|
|
read-only;
|
2023-04-04 10:38:40 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
partition@30000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x30000 0x10000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
factory: partition@40000 {
|
|
|
|
label = "factory";
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@50000 {
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0xf80000>;
|
2024-07-27 17:01:35 +07:00
|
|
|
compatible = "openwrt,uimage", "denx,uimage";
|
|
|
|
openwrt,ih-magic = <0x26112015>;
|
2023-04-04 10:38:40 +07:00
|
|
|
};
|
2023-05-28 20:30:48 +07:00
|
|
|
|
|
|
|
partition@fd0000 {
|
|
|
|
label = "crash";
|
|
|
|
reg = <0xfd0000 0x10000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@fe0000 {
|
|
|
|
label = "reserved";
|
|
|
|
reg = <0xfe0000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@ff0000 {
|
|
|
|
label = "Bdata";
|
|
|
|
reg = <0xff0000 0x10000>;
|
|
|
|
};
|
2023-04-04 10:38:40 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2023-04-04 10:38:40 +07:00
|
|
|
|
2024-07-27 17:01:35 +07:00
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x28>;
|
2023-04-04 10:38:40 +07:00
|
|
|
|
|
|
|
mediatek,portmap = "llllw";
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&factory 0x0>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pa_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie0 {
|
|
|
|
mt76@0,0 {
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x8000>;
|
|
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&state_default {
|
|
|
|
gpio {
|
2023-05-28 20:30:48 +07:00
|
|
|
groups = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
|
2023-04-04 10:38:40 +07:00
|
|
|
function = "gpio";
|
|
|
|
};
|
|
|
|
};
|