ramips: fixes bolt_bl201 support (#11253)

This commit is contained in:
Yogi Hermawan 2023-05-28 20:30:48 +07:00 committed by GitHub
parent 7cbe26964d
commit 2f8f4dacf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 7 deletions

View File

@ -7,6 +7,14 @@
compatible = "bolt,bl201", "ralink,mt7620a-soc";
model = "Bolt BL201";
aliases {
led-boot = &power_red;
led-failsafe = &power_red;
led-running = &power_blue;
led-upgrade = &power_red;
label-mac-device = &ethernet;
};
chosen {
bootargs = "console=ttyS0,115200";
};
@ -75,12 +83,24 @@
reset {
label = "reset";
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&gpio2 {
status = "okay";
};
&gpio3 {
status = "okay";
};
@ -92,6 +112,7 @@
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
// m25p,fast-read;
partitions {
compatible = "fixed-partitions";
@ -101,12 +122,12 @@
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
@ -120,6 +141,22 @@
label = "firmware";
reg = <0x50000 0xf80000>;
};
partition@fd0000 {
label = "crash";
reg = <0xfd0000 0x10000>;
};
partition@fe0000 {
label = "reserved";
reg = <0xfe0000 0x10000>;
read-only;
};
partition@ff0000 {
label = "Bdata";
reg = <0xff0000 0x10000>;
};
};
};
};
@ -153,7 +190,7 @@
&state_default {
gpio {
groups = "wled", "i2c", "uartf", "wdt";
groups = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
function = "gpio";
};
};

View File

@ -136,7 +136,6 @@ define Device/bolt_bl201
DEVICE_VENDOR := Bolt
DEVICE_MODEL := BL201
DEVICE_PACKAGES := kmod-mt76x2
SUPPORTED_DEVICES += bolt_bl201
endef
TARGET_DEVICES += bolt_bl201

View File

@ -41,8 +41,9 @@ bdcom,wap2100-sk)
ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan2g" "wlan0"
;;
bolt,bl201)
ucidef_set_led_netdev "wlan0" "wlan0-link" "blue:wlan" "wlan0"
ucidef_set_led_netdev "wan" "eth0.2-link" "blue:wan" "eth0.2" "link"
ucidef_set_led_netdev "phy0-ap0" "phy0-ap0" "blue:wlan" "phy0-ap0"
ucidef_set_led_netdev "wan" "eth0.2" "blue:wan" "eth0.2"
ucidef_set_led_netdev "lan" "eth0.1" "blue:wps" "eth0.1"
;;
comfast,cf-wr800n)
ucidef_set_led_netdev "lan" "lan" "white:ethernet" eth0.1

View File

@ -11,7 +11,6 @@ ramips_setup_interfaces()
aigale,ai-br100|\
alfa-network,ac1200rm|\
asus,rt-n12p|\
bolt,bl201|\
dlink,dwr-116-a1|\
dlink,dwr-921-c1|\
dlink,dwr-922-e2|\
@ -34,6 +33,7 @@ ramips_setup_interfaces()
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
;;
alfa-network,r36m-e4g|\
bolt,bl201|\
zbtlink,zbt-we1026-h-32m)
ucidef_add_switch "switch0" \
"3:lan" "4:wan" "6@eth0"