diff --git a/target/linux/ramips/dts/mt7620a_bolt_bl201.dts b/target/linux/ramips/dts/mt7620a_bolt_bl201.dts index 2e0ab9de7..e6ad5f6d8 100644 --- a/target/linux/ramips/dts/mt7620a_bolt_bl201.dts +++ b/target/linux/ramips/dts/mt7620a_bolt_bl201.dts @@ -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 = ðernet; + }; + 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 = ; }; }; }; +&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"; }; }; diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index 4533e5699..fc96fd3ba 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -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 diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds index 5a1964ac8..413c44c6f 100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds @@ -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 diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index d24711a89..c0f6fec52 100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -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"